History log of /packages/apps/Exchange/src/com/android/exchange/eas/EasPing.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f8cccaecc8148d12d58ffcba5ce7366191316ac0 25-Jun-2014 Martin Hibdon <mhibdon@google.com> Make Calendar and Contacts syncing go through EasService

Now, instead of forwarding the request to the EmailSyncAdapterService,
both Calendar and Contacts syncAdapterServices actually make calls
through to the EasService to perform the sync.

Change-Id: I60346736e1639838593f4b52934a3d15b3faf543
/packages/apps/Exchange/src/com/android/exchange/eas/EasPing.java
61ebb38e67421fd122c81f046bf11778b61a2113 11-Jun-2014 Martin Hibdon <mhibdon@google.com> Update IEmailService

This is not yet finished, but it's needed to fix push syncs on
exchange, which are currently broken.
Now the actual work of syncing up and down is done in EasService.
EmailSyncAdapterService just gets the onPerformSync() call and
has the EasService do the work. This makes way for eventually
moving the sync adapter and the ping synchronizer out of exchange
and into email.

Change-Id: Ic5608887230393560612c9fa45992e4413317bfd
/packages/apps/Exchange/src/com/android/exchange/eas/EasPing.java
bb0141b49e7eff978fa445249dc888461ea581e3 03-Jun-2014 Martin Hibdon <mhibdon@google.com> Delete obsolete code

ExchangeService was only being used for GalSearch. That
code has been moved EasService.
Other services, EasAccountService, EasOutboxService, and
EasSyncService are no longer used and have been removed,
along with a bunch of other unused helper classes.

Change-Id: I25c7e53896125818cfd6d3e3bf630ff671f142d1
/packages/apps/Exchange/src/com/android/exchange/eas/EasPing.java
2cc96b73358378d57c53a45d6da63a77b618a45d 17-Mar-2014 Yu Ping Hu <yph@google.com> If Ping encounters an error, wait before repinging.

This is a short-term fix; we should implement smarter backoff
behavior later. However, let's fix the battery burn immediately.

This CL also includes a fix to re-pinging in the error case for
people who do not have mail sync enabled.

Bug: 12589402
Bug: 13227663
Change-Id: If61d4a42fe846d8f4b5c16e84d6196ad61ddbe0e
(cherry picked from commit aac54f00981e2eb22d22b6886e4c033948f31a0b)
/packages/apps/Exchange/src/com/android/exchange/eas/EasPing.java
8c95506ad96f5990d5e4d4ca86b05ec95dd4b1d6 28-Feb-2014 Yu Ping Hu <yph@google.com> Fix regular sync, part 1.

- 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

Conflicts:
src/com/android/exchange/service/EasService.java
/packages/apps/Exchange/src/com/android/exchange/eas/EasPing.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/eas/EasPing.java
dc15b97b8975b994992d14d2cf3e6c8a80645b5d 18-Oct-2013 Yu Ping Hu <yph@google.com> Do not reuse old connections.

- Only keep connections in the cache for a limited time
(currently 10 minutes).
- Always get connection manager from the cache, don't keep
a reference in the EasServerConnection.

Also add some logging.

Bug: 11249423
Change-Id: I7c7da95745770fd2cb3ba58d63fc1fcdcc8eb232
/packages/apps/Exchange/src/com/android/exchange/eas/EasPing.java
4427badd747b7c172934014b9f95a1be1256f35a 09-Oct-2013 Martin Hibdon <mhibdon@google.com> Allow multiple mailboxes to sync at one time

b/11103878

Change-Id: I6a3944c9171948d3f80bbb51294841a84cf409aa
/packages/apps/Exchange/src/com/android/exchange/eas/EasPing.java
6285ee2ecc9136238accd4ce7927b59cd95792ae 03-Oct-2013 Yu Ping Hu <yph@google.com> Improve logic for when we start ping threads.

Also adds the ping kicker, and improves a log message.

Bug: 11081520

Change-Id: I9cc0088071a2a4e2beb03112a1f808146e576741
/packages/apps/Exchange/src/com/android/exchange/eas/EasPing.java
55f26fbb0146cd64a244510bfcb7dbb14569466e 02-Oct-2013 Martin Hibdon <mhibdon@google.com> Handle errors on ping

b/11030802
We now handle server errors > 100.

Change-Id: I7103035fb43e708b0dabd87266e8fb8ad92d069f
/packages/apps/Exchange/src/com/android/exchange/eas/EasPing.java
110837ebff288a75f9bda067c38e2c46797d99b5 27-Sep-2013 Alon Albert <aalbert@google.com> Unify Log Tags

Use a single log tag

Change-Id: I6f08c1eb6e84971cc21497ca14bf60860f75bab4
/packages/apps/Exchange/src/com/android/exchange/eas/EasPing.java
26b41fab64a805f3f938e135addbb9603f1637af 20-Aug-2013 Martin Hibdon <mhibdon@google.com> Update EasPing durations

b/10328857
Now when an exchange ping returns with an expiration,
we increase our duration. If it times out, we decrease.
Also, if we get a response that indicates our duration
is outside of acceptable limits, the duration is updated.

Change-Id: I6173e40ebf297f253fbeed3d56b00e7146a13220
/packages/apps/Exchange/src/com/android/exchange/eas/EasPing.java
328ca0d959f7e729e96f19538c8f3af8fe782a09 14-Aug-2013 Yu Ping Hu <yph@google.com> Change Provision & FolderSync to be an EasOperation.

Provisioning should happen for any operation, so it needed
to get moved to the new infrastructure. FolderSync got moved
as the easiest way to test it.

The current provisioning flow kinda sucks but it's the same
as it was before and it works. Further cleanup can wait.

Change-Id: I52ee9eff36777919f517854514ee9f838dc9d433
/packages/apps/Exchange/src/com/android/exchange/eas/EasPing.java
ff7e02603bc8196f411c0c491d74a42e747b7dc5 08-Aug-2013 Yu Ping Hu <yph@google.com> Decouple operation management from EasServerConnection.

This restructuring touches a regrettable number of files,
but allows us to put common code in a common base class.
(Before, it was messy because it would be muddled with the
connection management code.) Specifically, we want common
error paths to be handled in one place, although this isn't
implemented yet.

The new class of interest is EasOperation. This CL changes
Ping to use this base class. Future changes will switch all
operations to work this way.

Change-Id: I1bd26336e8916cafe592352f8ee05616bce8181c
/packages/apps/Exchange/src/com/android/exchange/eas/EasPing.java