History log of /packages/apps/Exchange/src/com/android/exchange/eas/EasFolderSync.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ec620ef7363101f5ce8208d17ac496e882d995fd 11-Oct-2014 Martin Hibdon <mhibdon@google.com> If and account can't be loaded, do not perform an operation

b/17939382
Now, all operations take an Account, rather than an
accountId. The account must be loaded prior to performing
the operation. If it cannot be for some reason, we won't
even start. This solves the problem of calling syncStart(),
and then being unable to call syncEnd() because we don't
have an account object.
I think this could still be cleaner. I'd rather not pass
the account in the constructor, and instead set it in
doOperation(). That's too big of a change for right now
though, maybe after the next release.

Change-Id: I460b7a55e545a5822d6424e5db9b344d50a55fa4
/packages/apps/Exchange/src/com/android/exchange/eas/EasFolderSync.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/EasFolderSync.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/EasFolderSync.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/EasFolderSync.java
7f0b7b0d66b40ec3004fbc329dbd34a801608b92 15-Nov-2013 Yu Ping Hu <yph@google.com> Handle provisioning errors for all sync operations.

Bug: 11247743
Change-Id: I095022380276141cbf29a6b7855a75d698ff5630
/packages/apps/Exchange/src/com/android/exchange/eas/EasFolderSync.java
9cdb8c8219349c654101ee5fc71e2986a6cebc3b 13-Nov-2013 Alon Albert <aalbert@google.com> Add Logging to Track Bug

Bug: 11247743
Change-Id: Ia168b8fd406d08a3c2fb43c90af673a772f7b64f
/packages/apps/Exchange/src/com/android/exchange/eas/EasFolderSync.java
3eef378426c7c88608f53f5a268baed40259ccf6 14-Oct-2013 Alon Albert <aalbert@google.com> Bring log change back in

Revert "Revert "Cleanup Logs""

This reverts commit a3f990ee76828d01e1e2812c4446221a1c523aa4.

Bug: 11149133
Change-Id: I3fabb4e508cf9063e056979c8ed807ebf372fa4a
/packages/apps/Exchange/src/com/android/exchange/eas/EasFolderSync.java
a3f990ee76828d01e1e2812c4446221a1c523aa4 12-Oct-2013 Alon Albert <aalbert@google.com> Revert "Cleanup Logs"

This reverts commit fcacd1e1e214f5f5b8aea0602e55ae6ca3bbf175.

Will re-merge this on Monday so we can still have logs from weekend testers

Change-Id: I697eed2806a17a180a8733110391f44d3a80fc59
/packages/apps/Exchange/src/com/android/exchange/eas/EasFolderSync.java
fcacd1e1e214f5f5b8aea0602e55ae6ca3bbf175 11-Oct-2013 Alon Albert <aalbert@google.com> Cleanup Logs

Bug: 11149133
Change-Id: I736cb022bfd7f136f6e88010b91837f2aa3171f2
/packages/apps/Exchange/src/com/android/exchange/eas/EasFolderSync.java
eaa09b0559676e1d5e7efde5ab41674ca672f4cc 07-Oct-2013 Martin Hibdon <mhibdon@google.com> Add some more logging.

b/9661767

Change-Id: Ib1735234353215e8263b90163025d11c6d898834
/packages/apps/Exchange/src/com/android/exchange/eas/EasFolderSync.java
be22ff8b8b3aa6057de165b76da433cabad4dcfd 21-Aug-2013 Yu Ping Hu <yph@google.com> Add operation for Settings.

This is needed for Provisioning for some versions of EAS.
Since all the code from EasAccountValidator is now converted
to some EasOperation or another, delete that old class.

Also, there were some goofs in provisioning and version
fetching which are now corrected.

Change-Id: I9cd4725ffa2698b1faee9ca497cb508341a4dda3
/packages/apps/Exchange/src/com/android/exchange/eas/EasFolderSync.java
b6ef78e8c4112d47d965b5b274d52fe8885f58fa 20-Aug-2013 Yu Ping Hu <yph@google.com> Make validation an operation.

This entails also making an operation for getting the
protocol version.

Change-Id: I8b2855cca338e3dbd8b6826b2c428b9e418a675e
/packages/apps/Exchange/src/com/android/exchange/eas/EasFolderSync.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/EasFolderSync.java