History log of /packages/apps/Exchange/src/com/android/exchange/service/PingSyncSynchronizer.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
85c66ca12d7debfbbcfc0a3cc3afab1673577d50 11-Aug-2014 Martin Hibdon <mhibdon@google.com> Restore automatic ping and backoff on error functionality

This functionality was lost when I converted to use EasService
for syncing. Now it's back. This means that:
1. We will always have a ping that is scheduled to run every hour,
so even if the regular ping is lost due to some code error,
we'll start it again within the hour. This code is currently disabled
so that we will be able to test and discover if pings are being lost.
If they are, and we can't figure out why, then we can enable this code.
2. If sync fails due to some error, we will not start the ping
immediately. Instead we'll wait five minutes and then restart it.
This keeps us from rapidly spinning and burning the battery in
cases where the server is misbehaving.

Change-Id: I26e74a198a9dd6c87401079d048b5918d4869b50
/packages/apps/Exchange/src/com/android/exchange/service/PingSyncSynchronizer.java
c9e6e7587ac847c6b99d91097f8e1bc64e9e56da 03-Mar-2014 Anthony Lee <anthonylee@google.com> Fill out implemenation of PingSyncSynchronizer. This class is not
enabled yet as it is utilized by EasService.

Change-Id: Iba3faef51df89b7fd103f43a33d7a401466a344c
(cherry picked from commit 53d0286f850eaec90f7f16ce17d3cb2e8c87eb3f)
/packages/apps/Exchange/src/com/android/exchange/service/PingSyncSynchronizer.java
dd316c9ade8257b2489c78fa3eb2763c9042b5dd 24-Feb-2014 Yu Ping Hu <yph@google.com> Flesh out EasService some, and start using it.

- 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
(cherry picked from commit c3ad5a3c532b60f73ff7337f0962211a6f14b919)
/packages/apps/Exchange/src/com/android/exchange/service/PingSyncSynchronizer.java
468ff529b5c80605a62d6fc7ecf87a8db46ea366 21-Feb-2014 Yu Ping Hu <yph@google.com> EasService fixes & improvements.

- 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.

Change-Id: Ibb0aa45cf5174ea5dd3ba6210104a25e9060dcf8
(cherry picked from commit 215cae569676dde52c864718515397e803eafa49)
/packages/apps/Exchange/src/com/android/exchange/service/PingSyncSynchronizer.java
6c4254903d2f42836c5b74a934e54441ccee6dbe 04-Feb-2014 Yu Ping Hu <yph@google.com> Add EasService & PingSyncSynchronizer.

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)
/packages/apps/Exchange/src/com/android/exchange/service/PingSyncSynchronizer.java