summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-03-05Make sending an EasOperationMartin Hibdon
I needed to make some changes to the EasOperation to allow additional functionality to be put in the child classes: * Now child classes can override handleHttpError to change the result code based upon the http response. * Child classes can override onRequestMade to do any cleanup that must be done. This is needed because when sending a message, we need to put the message info into a temporary file. Only after sending the httpEntity can we delete that file. Change-Id: I5554393d521116ce28e396a90c8ddffd48b9a3d3
2014-03-05Get rid of the old search classMartin Hibdon
Change-Id: I2cef8757f082ea1e44d21d7ec73fd71de83058a3
2014-03-05Increment version.Yu Ping Hu
Change-Id: Ib4d1312606bd11c00d768eb1a164a26e89c398cd (cherry picked from commit 03a51c8ff06ad5fc90ef25216e98135150dec487)
2014-03-05Increment version.Yu Ping Hu
Change-Id: Ib4d1312606bd11c00d768eb1a164a26e89c398cd
2014-03-05Fix handling of display namesJay Shrauner
- create display name from email or phone if otherwise lacking a name - filter out results entirely lacking a name - query for larger than asked for result set for phone filter queries so can return requested number of results even with client side filtering of contacts lacking phone numbers - for email filter queries, filter out results without an email address Bug:12893832 Change-Id: I6168fb5bf9300b2e279c45ac9c0552451fc89296 (cherry picked from commit 4511cd31dc6cb0a3ef97661d72b4f2196b5b8fdd)
2014-03-05Fix Exchange unitsJerry Xie
Change-Id: I84da7fab150e938033335694abf854932e3f7a09 (cherry picked from commit 1ea7b6db110c42fc983e4673d8b92ec94593468a)
2014-03-05NPE fix in NameComparator when null strings are provided by theAnthony Lee
caller. This is the integration of an Exchange fix from Motorola. As part of this fix, unit tests have been introduced to verify that we are experiencing the correct behavior. Writing these unit tests required some factoring/unwrapped to make the code easier to test. Bug: 12894779 Change-Id: I3fe8278c56fb13e2e43f32c3eeba1cbe01ea3b8b (cherry picked from commit 6fd3b6c35d930ee045cb6cfe3d6770d450b7b523)
2014-03-04Add EasSyncCollectionTypeBase and its mail sync subclass.Yu Ping Hu
Each collection type (mail, contact, calendar, and eventually more) has certain details in the request formation and response handling that differ by type. Rather than subclass the operation, it seems better to put these details in a different class. Longer term, this decoupling should make it easier to eventually send a single sync request for all collections, rather than one per folder. That is not on tap for this release, however. This change adds only one subclass, for mail sync. The code is largely taken from the EasMailboxSyncHandler, which this replaces. The contacts and calendar subclasses will follow, as will replacing the old EasSyncHandler set of classes. Change-Id: I29e20faa5ff332f7af89e48c11577937fcbc983d
2014-03-05Merge "Make search an EasOperation" into ub-mail-klp-mr2Martin Hibdon
2014-03-04Make search an EasOperationMartin Hibdon
This is still hooked up to EmailSyncAdapterService Change-Id: I3194a09b50d38aa0b69ce2879c0f97dacccabd63
2014-03-04Fill out implemenation of PingSyncSynchronizer. This class is notAnthony Lee
enabled yet as it is utilized by EasService. Change-Id: Iba3faef51df89b7fd103f43a33d7a401466a344c Conflicts: src/com/android/exchange/service/EasService.java src/com/android/exchange/service/PingSyncSynchronizer.java src/com/android/exchange/service/PingTask.java
2014-03-04EasService fixes & improvements.Yu Ping Hu
- Make sure to call EmailContent.init. - Add function to determine if an account needs to ping. This is currently unused but will be necessary later. - Track the last ping/not ping status in PingSyncSynchronizer. This is used to know whether to restart a ping, rather than expecting the EasService to pass this in. (NOTE: This CP was missed from exchange branch initially, but some of the diffs got applied in another way.) Change-Id: Ibb0aa45cf5174ea5dd3ba6210104a25e9060dcf8
2014-03-04merge in ub-mail-klp-mr2-release history after reset to ub-mail-klp-mr2The Android Automerger
2014-03-03Fix regular sync, part 1.Yu Ping Hu
- Add support for new IEmailService#sync. - Don't pass SyncResult through EasOperations. This was probably a bad idea to begin with. Instead, callers that care should use performOperation()'s return value to set the results appropriately. - Fix upsync operations to signal request/network errors ASAP (and mark any unperformed upsyncs as retries). - In ESAS, bail early on first error. - In ESAS, set up forwarding to EasService for pushModify. - Converting mail downsync into an EasOperation. For now, not merging it with the EasSync class that already exists. Change-Id: I4719c5cafbd01a957f267b221cf3276010154176
2014-03-03Created an EasOperation for attachment loading.Anthony Lee
This class has been enabled within EmailSyncAdapterService although it was written as part of the move to EasService. Change-Id: Ica21e06013925b68faef32624c164f26b94fa6de (cherry picked from commit b31a8ded3eddd16ce7083ccf6c3d4774bc81b6ca)
2014-03-03Request FolderSync for EAS error status 8 & 12.Yu Ping Hu
Change-Id: I2a4a9fa068b6a28580336183fcac29f1e2d71534 (cherry picked from commit 88b9aaa0993cd83c8fbeafc052e67f3ee94fc1b7)
2014-02-27Fix a merge error I madeMartin Hibdon
Change-Id: I3c022d06e4f036962f12d167af21d73eeb59922f
2014-02-28Add pushModify to IEmailService.Yu Ping Hu
This call lets the service know that the push settings for an account have changed. Change-Id: Iea155f145711966e0959d3ccb337fe8b1f40b952 (cherry picked from commit 45d80e843e2852dad534de08c22b57a455406ba9)
2014-02-27Flesh out EasService some, and start using it.Yu Ping Hu
- Fix some of the TODOs. - Add it to the manifest. - Route some operations from EmailSyncAdapterService to it during testing/development. Note that this last bit is a bit Frankenstein right now, so it's guarded by a constant (which should stay false when checked in) and in no way will an account function "normally" during the transition. Change-Id: I52e5500c7eac1999963712f3bd96d114f9afc3ed Conflicts: src/com/android/exchange/service/EasService.java
2014-02-28Add EasService & PingSyncSynchronizer.Yu Ping Hu
This is the first step to decoupling actual sync execution from the mail sync adapter. This change does not yet move to using the new service, it only adds the code and necessary changes to existing operations to be compatible with it. This change should not affect existing functionality. Change-Id: I80663c2bc216fdee44756d83fd567bc2c447e993 (cherry picked from commit 6c715246946dc4a7b7ca535dd9ff7f3cfc227c6d)
2014-02-28Fix handling of display namesJay Shrauner
- create display name from email or phone if otherwise lacking a name - filter out results entirely lacking a name - query for larger than asked for result set for phone filter queries so can return requested number of results even with client side filtering of contacts lacking phone numbers - for email filter queries, filter out results without an email address Bug:12893832 Change-Id: I6168fb5bf9300b2e279c45ac9c0552451fc89296 (cherry picked from commit 4511cd31dc6cb0a3ef97661d72b4f2196b5b8fdd)
2014-02-27merge in ub-mail-klp-mr2-release history after reset to ub-mail-klp-mr2The Android Automerger
2014-02-27merge in ub-mail-klp-mr2-release history after reset to ub-mail-klp-mr2The Android Automerger
2014-02-27Disable broken Exchange unitsJerry Xie
Change-Id: Iecfd5e662f33a09ee5eb61d760446d5e6d093b91 (cherry picked from commit 70a8aecc56c2a0cfa0629a7b7d0716b1d2b527a5)
2014-02-27Fix Exchange unitsJerry Xie
Change-Id: I84da7fab150e938033335694abf854932e3f7a09 (cherry picked from commit 1ea7b6db110c42fc983e4673d8b92ec94593468a)
2014-02-27Do not send extraneous tags when confirming a remote wipe. b/12921830Anthony Lee
This is an integration of an Exchange patch from Motorola. getRequestEntity() was modified to not add tags that were not part of the protocol spec for remote wipe ack. Another big change was to unwrap this function so it could be unit tested w/o the need for bigger, bulkier classes. This lead to the creation of populateRequestEntitySerializer() and changes to other functions to make then reentrant and potentially static if possible. Oh...fixed a typo too. Change-Id: I0c9167c9609b3d6a6f77f3f3118d9ae790077b2d (cherry picked from commit 60b69ecd47d872c845b6bca46e4937d505a78101)
2014-02-27NPE fix in NameComparator when null strings are provided by theAnthony Lee
caller. b/12894779 This is the integration of an Exchange fix from Motorola. As part of this fix, unit tests have been introduced to verify that we are experiencing the correct behavior. Writing these unit tests required some factoring/unwrapped to make the code easier to test. Change-Id: I3fe8278c56fb13e2e43f32c3eeba1cbe01ea3b8b (cherry picked from commit 6fd3b6c35d930ee045cb6cfe3d6770d450b7b523)
2014-02-27Introduce the ability to dump the wbxml from EAS responses.Anthony Lee
Similar to CurlLogger that dumps the base64 represention of the EAS request, WbxmlResponseLogger will dump the base64 representation of responses from the server so that we can easily view the XML payload. Unit tests included. Change-Id: I96e2c2d508ac27002125ee83d307ff7cd75400c7 (cherry picked from commit 17403f2cc87358e7b768cb982921d28694a7932d)
2014-02-27Delete unused functions from IEmailService.aidl.Yu Ping Hu
Change-Id: I32f13594f1639841b7d3f648f7e90d1bbc2cc67c (cherry picked from commit 9b65e33c47be5170272eea4075aaa4f393539cdc)
2014-02-27Remove unused constant.Yu Ping Hu
Change-Id: Ib9203857c82c9da6ff345afd153fbb59867c781b (cherry picked from commit 10c0088f01c8c72aba465d8cb5724ee1c6ae7933)
2014-02-20Convert ExchangeTests to use android-support-testBrett Chabot
Change-Id: Ie5ca6fa84c8a4617e63a438d995e5cbf9715e516
2014-02-19Add test size annotation to test classes so they get run in continuousJerry Xie
Change-Id: Ib988e0ea31b813c7fab329e529b1ef08afa4404f
2014-01-22Eliminate redundant methods in Address classJames Lemieux
THIS DOES NOT CHANGE ANY EXISTING FUNCTIONALITY. Address.pack() has been removed and all calls replaced with its synonym Address.toHeader(). Address.unpack() has been renamed to Address.fromHeader() to follow the new naming convention. In days of yore, pack() and toHeader() used to do different things. Now they are identical and thus one is superfluous. We have standardized on toHeader() and fromHeader(). Change-Id: I233a139da7aa03602b76f931b03cdd0e8414d242
2013-12-06Disable broken Exchange unitsJerry Xie
Change-Id: Iecfd5e662f33a09ee5eb61d760446d5e6d093b91
2013-11-22Merge "Fix Exchange units" into ub-mail-masterJerry Xie
2013-11-19am d8faf7da: am d99c1068: Don\'t ping or sync if we\'re on security hold.Yu Ping Hu
* commit 'd8faf7dae1e26d223aa8bae7341afd576b270150': Don't ping or sync if we're on security hold.
2013-11-19am d99c1068: Don\'t ping or sync if we\'re on security hold.android-sdk-4.4.2_r1.0.1android-sdk-4.4.2_r1Yu Ping Hu
* commit 'd99c1068f74ed00b32edcf6392a51d840153526f': Don't ping or sync if we're on security hold.
2013-11-19am d99c1068: Don\'t ping or sync if we\'re on security hold.Yu Ping Hu
* commit 'd99c1068f74ed00b32edcf6392a51d840153526f': Don't ping or sync if we're on security hold.
2013-11-19Don't ping or sync if we're on security hold.Yu Ping Hu
We still allow FolderSync since that's one of the ways to clear the security hold. Also, correct a minor error in ping backoff logic. Bug: 11752556 Change-Id: Ide432ac5594dd02edab69677c2379865d602ed45
2013-11-19Fix Exchange unitsJerry Xie
Change-Id: I84da7fab150e938033335694abf854932e3f7a09
2013-11-15am b0cecf7e: am db1ca5f7: Don\'t modify the ping on the main thread.Yu Ping Hu
* commit 'b0cecf7ee9b4018b9d52398e4346afeff1e2865d': Don't modify the ping on the main thread.
2013-11-15am db1ca5f7: Don\'t modify the ping on the main thread.Yu Ping Hu
* commit 'db1ca5f71ea90df7179b981c71f3ec757207b92e': Don't modify the ping on the main thread.
2013-11-15am db1ca5f7: Don\'t modify the ping on the main thread.Yu Ping Hu
* commit 'db1ca5f71ea90df7179b981c71f3ec757207b92e': Don't modify the ping on the main thread.
2013-11-15Don't modify the ping on the main thread.Yu Ping Hu
modifyPing makes DB & network calls, bad to do on main thread. Instead just issue a ping only sync request. Bug: 11715063 Change-Id: Id5219283fd70758a4e14ae1ca27024ef09b080ce
2013-11-15am 65fe4161: am c6ab9979: Merge "Make sure the client certificate is always ↵Tony Mantler
installed" into jb-ub-mail-ur10 * commit '65fe416111a9ad1a98604159f3b150ef652a4e1d': Make sure the client certificate is always installed
2013-11-15am a883a5a7: am 7f0b7b0d: Handle provisioning errors for all sync operations.Yu Ping Hu
* commit 'a883a5a7ef1a09baa691c0a428d3dbb83eadd50c': Handle provisioning errors for all sync operations.
2013-11-15am c6ab9979: Merge "Make sure the client certificate is always installed" ↵Tony Mantler
into jb-ub-mail-ur10 * commit 'c6ab99791727c95f96aef14fabafc2c0be53a6a4': Make sure the client certificate is always installed
2013-11-15am 7f0b7b0d: Handle provisioning errors for all sync operations.Yu Ping Hu
* commit '7f0b7b0d66b40ec3004fbc329dbd34a801608b92': Handle provisioning errors for all sync operations.
2013-11-15am c6ab9979: Merge "Make sure the client certificate is always installed" ↵Tony Mantler
into jb-ub-mail-ur10 * commit 'c6ab99791727c95f96aef14fabafc2c0be53a6a4': Make sure the client certificate is always installed
2013-11-15am 7f0b7b0d: Handle provisioning errors for all sync operations.Yu Ping Hu
* commit '7f0b7b0d66b40ec3004fbc329dbd34a801608b92': Handle provisioning errors for all sync operations.