History log of /packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3a8c86b18265eb3786bf32b5c043b5942ddb4e45 11-Oct-2013 Tony Mantler <nicoya@google.com> The ServiceMap caches locale-dependent strings. Destroy it on configuration changes.

b/10785115

Change-Id: I39df8a002cafdbaf4d41c9916d62a79a03d48804
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
3aad3fcb8bb916c989fe67cfbf527eb0df6fc6d1 25-Sep-2013 Martin Hibdon <mhibdon@google.com> Move calendar and contacts to the new account on upgrade

b/10805685

Change-Id: I08de135f166ad10812c9318efe649694e5c448d0
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
aad690f699f61793facecc950d3d060baa62fd45 21-Sep-2013 Martin Hibdon <mhibdon@google.com> Improve display of attachments in pop

b/10714298
This is related to this CL in UnifiedEmail
https://googleplex-android-review.git.corp.google.com/#/c/363626/1

Change-Id: Idea2827791ed52e7558b11aaea07b1f3f1764db5
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
7d6d8c87f86a17cae59af645637458b17e72c716 18-Sep-2013 Martin Hibdon <mhibdon@google.com> Clear exchange sync keys upon app upgrade

b/10211620
The problem here is that on app upgrade, we need to change
the types of all email accounts. To do this, we have to
create new accounts and delete the old ones. This resulted
in calendar and contacts data getting deleted.
But we were copying over the last sync keys from the old
account, so on the next sync, we would only get new data.
This means that all of the data that we had gotten on
a previous sync would never be sent again, so calendar
events and contacts would be missing forever.
Now, we just don't migrate the old sync keys. This means
that on the next sync, we'll get all data, and restore
our original state.
This is still not ideal, because it means that any locally
created data that has not yet been synced will be lost
(b/10805685), but it's much better than it was.

Change-Id: I150c4dbdf490a8f3880261e2469795896ebfeab5
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
24bb2dabd9dd7d8bd39fed53f312ae6034e373bb 13-Sep-2013 Martin Hibdon <mhibdon@google.com> Kill the process when an account is deleted.

b/10653370
This prevents NPEs if a serviec happens to still be running
when an account is deleted.
This mirrors a similar pattern in the gmail app.

Change-Id: I6fd8ae5ffe41580df0a321ec22535403e3f32eee
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
e4ac06080ba8b8e57531982ea290354b1a9a4305 28-Aug-2013 Paul Westbrook <pwestbro@google.com> Don't use implicit events

Bug: 10189773
Change-Id: I4579f2e465bd23b8ab4cdf291bfbe80cf6518328
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
b5eed31d1bdfcb8e8b316c9c49331295718001bd 09-Aug-2013 Yu Ping Hu <yph@google.com> Synchronize all access to the EmailServiceInfo map.

Bug: 10255995
Change-Id: I36bee575a923b5c8bfbaea7babdf9f2c5e9bd378
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
2075c97f608a853923980865b72147a5c8ef71f0 30-Jul-2013 Yu Ping Hu <yph@google.com> Delete most of IEmailServiceCallback.

The old callback mechanism is deprecated, in favor of making
calls on the ContentProvider.

Bug: 9842867

Change-Id: I65f559e593cda24456c4ffb96f785e054626dd0b
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
48b14fde961ef57103f7a31196254e357987f203 25-Jul-2013 Yu Ping Hu <yph@google.com> Fix all periodic syncs on upgrade.

Bug: 9844218

Change-Id: Ibacb309752b076faa3f96b5ad57dc121efd79bcb
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
02f0b1eee8f5de651ad5f0289146f88fea99bce0 27-Jul-2013 Yu Ping Hu <yph@google.com> Remove MailService.

Change-Id: Ibffd0c9fb0eed4822dff28d1577fb455736cffd1
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
47bcb5a21a20ad59035ec4218e24cd45f1d49667 27-Jul-2013 Yu Ping Hu <yph@google.com> Cleanup service loading.

Authenticator upgrading no longer uses the services file
to specify upgrades, so we can remove the fields associated
with that functionality.

Change-Id: I2122f18614d714a3d5a565fb4a6a547ddc010b6f
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
462da178b1be608a74000956c53dc8ecb438c689 23-Jul-2013 Yu Ping Hu <yph@google.com> Move authenticator upgrade to app upgrade time.

This used to run when the app first initializes the service map.

Bug: 9391930
Bug: 9971936
Change-Id: Iebaeb2dc94ef62edb0be0a7d5a008a26c4f5edfb
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
9a1f00bee4c50c128df320a3795cfc8295d5e011 20-Jul-2013 Yu Ping Hu <yph@google.com> Change deleteAccountPIMData to take emailAddress, not id.

By the time the remote call actually runs, the account
may be deleted from the DB, so the account id is likely
useless.

Bug: 9021105
Change-Id: If28b4b8c4b5c52be35c6ff68b326c4ea28d7f7b4
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
d5acf0bbc00cbe9a2c075e1bd4825ccbd9851d8d 15-Jul-2013 Yu Ping Hu <yph@google.com> Explicitly pass a callback when loading attachments.

This is part of moving away from the explicit setCallback,
which either has race conditions or is very noisy, or both.
(Each IEmailService call that wants callbacks should just
pass the callback explicitly.)

I'm not yet changing how the services actually handle the
call. Each protocol will need to fix this on their own.

Bug: 9735207
Bug: 9842867
Change-Id: If8cf69ffe82f3544ace9e58b1db5a183f38d038a
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
560bfadc3151f7a06f3b06e9a6c92cfa534c63ec 26-May-2013 Scott Kennedy <skennedy@google.com> Unify LogTag

There is now only one LogTag class. The static initializer of
GmailApplication (existing) and EmailApplication (new) will now set
the log tag to "Gmail" and "Email", respectively. Up until that code
is run, it will be "UnifiedEmail".

"setprop log.tag.Gmail VERBOSE" (or .Email) will trigger all logs to
be printed as long as they go through LogUtils, regardless of what tag
is used by that individual log. This lets us still turn on logging
everywhere in one command, but also lets us use more descriptive tags
(like the class name).

And since we no longer have three com.android.mail.utils.LogTag
classes, builds will be much easier.

Also, we now use LogUtils everywhere.

Change-Id: I55f1c7a66ce50ead54877a13e40256422a56dc39
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
17d5bbf768c27ac7782b155e2ab25bcd480f5dcf 05-Apr-2013 Yu Ping Hu <yph@google.com> Improve mailbox sync and load more.

- Update syncTime for IMAP and POP whenever we sync.
- Change load more to simply include the delta in the RPC
rather than using the visibleLimit column.
- Add a query to get the message count for a Mailbox.
- Refactor code for updating totalCount and determining
the new message count when syncing.
- Remove dead code from Mailbox.
- Remove uses of visibleLimit from code.

Note that visibleLimit and messageCount in Mailbox table are
no longer useful and will be removed in a later change.

Bug: 8579767
Bug: 8523146
Change-Id: Ieb67e3b6f1c82c3b21b972c5a1e557cd75dc21db
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
32881e8dd375f16e6059452166503f7136f14ae5 05-Mar-2013 Paul Westbrook <pwestbro@google.com> Fix NPE after migrating older account

Change-Id: Ifeb3b1853ce3efd725227941103d29a00bc14fc2
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
5c523858385176c33a7456bb84035de78552d22d 20-Sep-2012 Marc Blank <mblank@google.com> Restore Imap1

* Restore Imap1 code
* Legacy users will use Imap1
* Existing Imap2 users will continue to use Imap2
* New accounts will be created in Imap1
* More to follow

Bug: 7203993

Change-Id: I8b86fcada59a854fd464d5269c94d00ebae85459
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
323954df41bb71076d11f52df6275a57ab2fd4dc 09-Sep-2012 Marc Blank <mblank@google.com> Merge "Create requireSetup attribute; use it for gImap" into jb-ub-mail
81b0f74efa39d80b0aa18686c96499faf0e2691f 08-Sep-2012 Marc Blank <mblank@google.com> Create requireSetup attribute; use it for gImap

Change-Id: Id5f37861e4d6f2c2ed0fe98bd8b4d7eb73868c09
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
af092bd5f850653b0d237fb55ccc896f74dc7982 08-Sep-2012 Marc Blank <mblank@google.com> EmailProvider dump

Change-Id: Id975c99427b41f4a56235dc6ba5ad515d6700fe5
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
b82ae909d7514bf06090ee3a120aef2154ab0296 24-Aug-2012 Marc Blank <mblank@google.com> Add support for "load more" for Imap2

* Use new attribute in services.xml to indicate support
* Initial implementation

Change-Id: Ia8709d606d521c6d495c343a47ee074b5024d340
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
e714bb9d153cfe13a7f0932e7d67ea08fa5a1d98 23-Aug-2012 Marc Blank <mblank@google.com> Convert authorities, intents, and account manager types

* Tested ok on wiped Nexus
* Tested ok on S3
* Upgrade verified on Nexus

Change-Id: If5d4ce594f8a309cdb59589d10b1d33f3b79326c
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
70edcf05387df33f4761b766add6b80999e425e9 22-Aug-2012 Marc Blank <mblank@google.com> Integrate Imap2 into Email

* Also, convert imap accounts to imap2
* The original imap service remains, but is no used
* There remain some questions about how the upgrade
should work in terms of settings

Change-Id: I0e05edad6a1553f428a2c2fa3daf1df878d4b5f7
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
b89744ecfb92a4b8fc66a23b942531d39910de44 16-Aug-2012 Marc Blank <mblank@google.com> Use appropriate prefix to infer server address

Bug: 6999072
Change-Id: I71aa184b1cfa0b6926f4dae8861f071f27d3acb2
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
cf3b3ae987e73453f2265673a7ba3a72a1a6b4ed 16-Aug-2012 Marc Blank <mblank@google.com> Prevent NPE while getting service

Bug: 6989095
Change-Id: I646e393ec77a2e31c92011868f705e0936e41d88
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
0b5f15d61ebf7c0e8428100637bc479ed93a4cb2 25-Jul-2012 Marc Blank <mblank@google.com> Make sure account capabilities get set properly in UIProvider

* Change getCapabilities API to take an account, rather than
the id of the account
* getCapabilities() can therefore execute even before Exchange
is fully up and running

Change-Id: Id4c2a9942ea7a21e0c56401c50206b680274b43e
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
54b6b8b072100551c1820d679108bd8356a0c8be 20-Jul-2012 Marc Blank <mblank@google.com> Prevent CME w/ sServiceList

Bug: 6854037
Change-Id: I0b9aadfa0b347c62bf8a3b0c5ec88330871cce2d
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
f419287f22ae44f25e1ba1f757ec33c7941bbfa8 28-Jun-2012 Marc Blank <mblank@google.com> DO NOT MERGE: Move emailcommon2 sources to emailcommon

Change-Id: I06df7e467cd2e0117df8b8db3ddc6ff9da13f1c7
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
03cd72805dab0379ed255d151f1c17cc60655fc3 25-Apr-2012 Marc Blank <mblank@google.com> Revert to old Email app

* These are the last sources in the ICS-MR1 tree

Change-Id: Ida4651bddd92a06a518d00f3e1f275ab3a80c8ae
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
e1a6088ee4e3f0e4344dd9bc38029b6d01431eab 02-Mar-2012 Marc Blank <mblank@google.com> Don't try to refresh combined inbox

Bug: 6022440
Change-Id: I182c0da80debff5579b850c20015253864a0cf9f
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
4f813fb12937de74d3ccec730b8de0c9de7a87e0 14-Feb-2012 Marc Blank <mblank@google.com> Convert POP3 to service

* Remove MessagingController and (almost all of) MailService

Change-Id: I8953b58b237de6a71fda770f1727bd94081fec55
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
c84467afe1b5e0a657ed7d6a9fa1e3fe1ff259a0 09-Feb-2012 Marc Blank <mblank@google.com> Start of IMAP conversion to Service architecture

* Handle startSync and loadMore
* Use SyncManager rather than MailService for periodic sync
and upload sync
* First of many CL's to disentangle sync from UI
* Note that the large majority of this CL is a refactoring
of IMAP specific code out of MessagingController and into
ImapService; MessagingController will eventually be
removed entirely from the app, as will much of Controller

Change-Id: I13546d0694479b33cf93c25920dedc1d38227f6c
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java
66a47b8dac5e97e37c30b928bc5a227d74baada9 27-Jun-2011 Marc Blank <mblank@google.com> Clean up/simplify ExchangeUtils/ExchangeStore

* Rename ExchangeUtils to EmailServiceUtils
* Create calls for Exchange to use (eventually remove these)
* Get rid of lots of nonsense in ExchangeStore

Change-Id: Ic538cfe1de57eca24088ee1f590264283d12f511
/packages/apps/Email/src/com/android/email/service/EmailServiceUtils.java