Age | Commit message (Collapse) | Author |
|
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
|
|
Change-Id: I2cef8757f082ea1e44d21d7ec73fd71de83058a3
|
|
Change-Id: Ib4d1312606bd11c00d768eb1a164a26e89c398cd
(cherry picked from commit 03a51c8ff06ad5fc90ef25216e98135150dec487)
|
|
Change-Id: Ib4d1312606bd11c00d768eb1a164a26e89c398cd
|
|
- 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)
|
|
Change-Id: I84da7fab150e938033335694abf854932e3f7a09
(cherry picked from commit 1ea7b6db110c42fc983e4673d8b92ec94593468a)
|
|
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)
|
|
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
|
|
|
|
This is still hooked up to EmailSyncAdapterService
Change-Id: I3194a09b50d38aa0b69ce2879c0f97dacccabd63
|
|
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
|
|
- 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
|
|
|
|
- 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
|
|
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)
|
|
Change-Id: I2a4a9fa068b6a28580336183fcac29f1e2d71534
(cherry picked from commit 88b9aaa0993cd83c8fbeafc052e67f3ee94fc1b7)
|
|
Change-Id: I3c022d06e4f036962f12d167af21d73eeb59922f
|
|
This call lets the service know that the push settings for an
account have changed.
Change-Id: Iea155f145711966e0959d3ccb337fe8b1f40b952
(cherry picked from commit 45d80e843e2852dad534de08c22b57a455406ba9)
|
|
- 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
|
|
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)
|
|
- 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)
|
|
|
|
|
|
Change-Id: Iecfd5e662f33a09ee5eb61d760446d5e6d093b91
(cherry picked from commit 70a8aecc56c2a0cfa0629a7b7d0716b1d2b527a5)
|
|
Change-Id: I84da7fab150e938033335694abf854932e3f7a09
(cherry picked from commit 1ea7b6db110c42fc983e4673d8b92ec94593468a)
|
|
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)
|
|
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)
|
|
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)
|
|
Change-Id: I32f13594f1639841b7d3f648f7e90d1bbc2cc67c
(cherry picked from commit 9b65e33c47be5170272eea4075aaa4f393539cdc)
|
|
Change-Id: Ib9203857c82c9da6ff345afd153fbb59867c781b
(cherry picked from commit 10c0088f01c8c72aba465d8cb5724ee1c6ae7933)
|
|
Change-Id: Ie5ca6fa84c8a4617e63a438d995e5cbf9715e516
|
|
Change-Id: Ib988e0ea31b813c7fab329e529b1ef08afa4404f
|
|
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
|
|
Change-Id: Iecfd5e662f33a09ee5eb61d760446d5e6d093b91
|
|
|
|
* commit 'd8faf7dae1e26d223aa8bae7341afd576b270150':
Don't ping or sync if we're on security hold.
|
|
* commit 'd99c1068f74ed00b32edcf6392a51d840153526f':
Don't ping or sync if we're on security hold.
|
|
* commit 'd99c1068f74ed00b32edcf6392a51d840153526f':
Don't ping or sync if we're on security hold.
|
|
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
|
|
Change-Id: I84da7fab150e938033335694abf854932e3f7a09
|
|
* commit 'b0cecf7ee9b4018b9d52398e4346afeff1e2865d':
Don't modify the ping on the main thread.
|
|
* commit 'db1ca5f71ea90df7179b981c71f3ec757207b92e':
Don't modify the ping on the main thread.
|
|
* commit 'db1ca5f71ea90df7179b981c71f3ec757207b92e':
Don't modify the ping on the main thread.
|
|
modifyPing makes DB & network calls, bad to do on main thread.
Instead just issue a ping only sync request.
Bug: 11715063
Change-Id: Id5219283fd70758a4e14ae1ca27024ef09b080ce
|
|
installed" into jb-ub-mail-ur10
* commit '65fe416111a9ad1a98604159f3b150ef652a4e1d':
Make sure the client certificate is always installed
|
|
* commit 'a883a5a7ef1a09baa691c0a428d3dbb83eadd50c':
Handle provisioning errors for all sync operations.
|
|
into jb-ub-mail-ur10
* commit 'c6ab99791727c95f96aef14fabafc2c0be53a6a4':
Make sure the client certificate is always installed
|
|
* commit '7f0b7b0d66b40ec3004fbc329dbd34a801608b92':
Handle provisioning errors for all sync operations.
|
|
into jb-ub-mail-ur10
* commit 'c6ab99791727c95f96aef14fabafc2c0be53a6a4':
Make sure the client certificate is always installed
|
|
* commit '7f0b7b0d66b40ec3004fbc329dbd34a801608b92':
Handle provisioning errors for all sync operations.
|