9e2ddca59d048fc9ac55278b193ee36b330a7981 |
|
17-Mar-2010 |
Jim Shuma <jshuma@google.com> |
Add "vibrate when silent" mode to notifications * Add "vibrate when silent" choice in UI * Add storage for it in Email's provider. Existing accounts default to their current settings (always vibrate / never vibrate). * Respect new mode when notifications are posted * Updated existing unit tests Bug: 2457183 Change-Id: I5c933ac39dbef8b2028255f330e0b084a445421a
/packages/apps/Email/src/com/android/email/service/MailService.java
|
e37881aac562c066e6e666349749e40b7c116a21 |
|
02-Mar-2010 |
Makoto Onuki <omakoto@google.com> |
Store UUID instead of _id in desktop shortcuts. - Because AccountBackupRestore won't preserve _id. - Now MessageList accepts both Donut(1.6)-style URIs and Eclair(2.0-2.1)-style URIs. Bug 2479609
/packages/apps/Email/src/com/android/email/service/MailService.java
|
c18f8f615f134a2b391d06e2d8d49434a8bb94e5 |
|
24-Feb-2010 |
Makoto Onuki <omakoto@google.com> |
Enable calendar sync for Exchange accounts when upgrading. On the first boot after upgrade from Eclair, enable calendar sync for all the existing Exchange accounts, if any, and show notification. Note on this version, nothing happens when you click on the "Calendar added" notification. We're waiting for an API (action or something) to launch calendar. Bug 2428718
/packages/apps/Email/src/com/android/email/service/MailService.java
|
5f32e2d31f5839081de1f9ee78b4c8b06d5c1150 |
|
13-Feb-2010 |
Jeff Hamilton <jham@android.com> |
Don't use hard coded package names. Change-Id: Id65967a87afa969f5410f4fdee058d450776a32e
/packages/apps/Email/src/com/android/email/service/MailService.java
|
3d2b3b3b3554be2ac23d9a49fee00faa9693e857 |
|
05-Feb-2010 |
Andrew Stadler <stadler@android.com> |
Logic to move phone into security-admin mode * Create notification to display when syncs fail due to security * Create psuedo-activity (no UI) to manage device admin state transitions * Clean up and flesh out SecurityPolicy APIs' * Add placeholders in EasSyncService showing how to react when policies are not met and sync cannot continue. Note: There are some STOPSHIP todo's at the top of SecurityPolicy.java. These should explain any code that you might think is "missing".
/packages/apps/Email/src/com/android/email/service/MailService.java
|
87a520d7b9cc40ae7a91b3723b8bd5fc4a241e61 |
|
20-Jan-2010 |
Mike Lockwood <lockwood@android.com> |
Use default values rather than hard coding green for LED notification color. Change-Id: Id192ea4d34725abf9ce892bc24e5c8562215f3e3 BUG: 2329568 Signed-off-by: Mike Lockwood <lockwood@android.com>
/packages/apps/Email/src/com/android/email/service/MailService.java
|
5e91cccd4b530eb2aeace5c5bf4f3328a5b5d69d |
|
20-Jan-2010 |
Andrew Stadler <stadler@android.com> |
Quick backup/restore of accounts * Workaround for (HTC bug 2275383) & (Moto bug 2226582) * Adds checkpoints for backing up and restoring accounts * Uses legacy Account / prefs to back up accounts - this is because some of this code will be reused for legacy account migration * Unit tests of Account & LegacyConversions * Unit tests of backup & restore * Not done: testing of EAS/Account Manager interface (this will require deeper dependency injection, to avoid the embedded calls to the Account Manager and other system services.)
/packages/apps/Email/src/com/android/email/service/MailService.java
|
d16b4b921fef0a79a12fd90a5fad353413ba80ea |
|
21-Oct-2009 |
Marc Blank <mblank@google.com> |
Go to combined inbox from notification for 2+ accounts (#2147265) * The problem is that PendingIntents aren't updated when a notification is updated, so the changed extras when a 2nd account gets a new message aren't seen by MessageList when it's started up upon tapping the notification (it uses the extras from the 1st account to get a new message) * The fix is to use the newish (cupcake) flag in the PendingIntent that causes the extras in the PendingIntent to be updated Change-Id: Ia4ab14954b2c1413526016975216b2516372f2aa
/packages/apps/Email/src/com/android/email/service/MailService.java
|
deffba584e9a66ca3dca3c897728fd1b8c66b368 |
|
28-Sep-2009 |
Andrew Stadler <stadler@android.com> |
Stop forcing email logging for all users * Don't force Email.Debug == true * Also, remove some unneeded development logging from MailService
/packages/apps/Email/src/com/android/email/service/MailService.java
|
27bc39399e47e8f14cbb42834990546eb93851de |
|
18-Sep-2009 |
Andrew Stadler <stadler@android.com> |
Turn off debugging code that was accidentally left on. This goes with Change I52e53c4b. Change-Id: Ife5672af1c0c5cf2b2c279a9a912beb26c64390d
/packages/apps/Email/src/com/android/email/service/MailService.java
|
01f61ef912879c12665d2073917626cb3ee7df0a |
|
18-Sep-2009 |
Andrew Stadler <stadler@android.com> |
Fix acct settings -> inbox checks -> notifications This cleans up a number of bugs that could be generically described as "MailService and Notifications not being updated when accounts or account settings are changed." This also fixes a number of race conditions, one of which was causing accounts to be refreshed in a nearly-endless loop, and another which could cause an endless loop of alarms to be posted & fired.. Specific changes: * Update/reschedule any time an account is edited (this was accidentally broken and being handled on EAS only.) * Make sure we reschedule if an account becomes unavailable * Clear notifications whenever refreshing accounts * Reload local copy of account settings whenever refreshing accounts * When restoring prev sync times (this happens when process is killed), be sure to also recalculate next sync times. * Set flags on the pending intents to make sure old pending intents are not being reused. * Set a watchdog each time we check the mail, so if we are killed during the mail check, we will be woken up again to retry. * Fix a 2nd race condition in which a just-created account fails to sync, due to not (yet) having an inbox. * Clean up handling of Controller callback: * Fix a minor bug in which refresh of non-inbox mailboxes would delay the next timed sync of the inbox for that account. * If the checkmail ended in an error (result != null) the service was never rescheduled. Bugs Fixed: bug 2078149 - Update service and notifications when account settings change or accounts are added/deleted. bug 2084412 - Fix race condition caused by first intent being refired bug 2071484 - Make sure we wake up later if killed during mail check Change-Id: I3ee0d1b389c652351de5eb798c32a2daea244067
/packages/apps/Email/src/com/android/email/service/MailService.java
|
d2174733b146eeccd5f3b3b95f98e1e1aaafb257 |
|
08-Sep-2009 |
satok <satok@google.com> |
Auto-sync of stale mailboxes BUG: 2050116 - auto sync onResume - add mNonPushMode -- mNonPushMode is updated in SetFooterTask
/packages/apps/Email/src/com/android/email/service/MailService.java
|
7b03c7936a2fd238f366fe145619308e5b31a8ec |
|
05-Sep-2009 |
Andrew Stadler <stadler@android.com> |
A bit more debugging to catch the service race condition. NOTE: This switches on Email.DEBUG for everyone, and should be removed. Change-Id: I700099a9aa5e5c64d8c282cb8d07a47c7c408862
/packages/apps/Email/src/com/android/email/service/MailService.java
|
9b9a2e69b920823c18b27740ee77cef007316d60 |
|
04-Sep-2009 |
Andrew Stadler <stadler@android.com> |
Improve logging in MailService The goal is to generate better reports to help find the race condition described in bug 2084412 Change-Id: Idfc453af17edf08e89d2aa656585b83ed48691c8
/packages/apps/Email/src/com/android/email/service/MailService.java
|
68c3c7518e132bdbfd17a0b122fbe09c08e0acdc |
|
23-Aug-2009 |
Marc Blank <mblank@google.com> |
Use LED for notification (same parameters as Gmail and GTalk services) * Agreed to by Erick and Prasenjit Change-Id: I1a0f3642c9b10f981b2feed55762407ed853763d
/packages/apps/Email/src/com/android/email/service/MailService.java
|
df86adf87328a439347260331592509787020420 |
|
25-Aug-2009 |
Andrew Stadler <stadler@android.com> |
Finish the code to demand-load partially loaded messages. This happens in two primary cases: 1. When a very large POP message was skipped during initial sync 2. When any message was interrupted during initial sync, e.g. by a dropped connection. Changes: * Added loadMessageForView and callbacks to Controller (and touched all files with Controller listeners) * Rewrote loadMessageForView in legacy MessagingController to work with provider. * Update flow in MessageView to use loadMessageForView when needed. * Restored the use of "loading.html" and "empty.html" assets (although I think we should replace them with simple layouts & views.) * Some random cleanup in MessageView Satisfies bug # 2065563
/packages/apps/Email/src/com/android/email/service/MailService.java
|
4bc4fed47bec36b48203ae7dd6cd7e4727cfea70 |
|
23-Aug-2009 |
Dianne Hackborn <hackbod@google.com> |
Use new service command processing to avoid leaving the service running. The service still needs to schedule an alarm in its onStartCommand() so that it will run in its next poll interval. Change-Id: I66228ef573e84a5c7d33bcb07f4772626079b960
/packages/apps/Email/src/com/android/email/service/MailService.java
|
e1f0b0a9bcc78ade7f3b2ac540705701f19cd6cd |
|
25-Aug-2009 |
Andrew Stadler <stadler@android.com> |
MessageView: next/prev navigation. in addition: - fix AND-OR precedence in cursor query in MessageList. - move special mailbox ids from MessageList to Mailbox - move shared code from MessageList to com.android.email.Utility - add invisible prev/next to landscape in order to avoid special-case in code - select mailbox list using IN() instead of list of OR Note: Checked in by Andy to facilitate further work on MessageView. Change-Id: I8049be2b45fed1e4e697a0ed895492c4d0e59e0a
/packages/apps/Email/src/com/android/email/service/MailService.java
|
4b41bae270ea4c49ec8403084db43ee9b37cdda4 |
|
20-Aug-2009 |
Andrew Stadler <stadler@android.com> |
Enable IMAP/POP sending and EAS resend * Finish IMAP/POP sections of Controller.sendMessage * Rewrite MessagingController.sendPendingMessagesSynchronous * Add deleteAllAttachmentFiles to AttachmentProvider, and unit test * Rework sendMessage callbacks and integrate into MessageList UI * Send pending from UI TODO: * Find other places from which to call deleteAllAttachmentFiles
/packages/apps/Email/src/com/android/email/service/MailService.java
|
c0c9c33322deecace00a32766e0a1b355aad4b31 |
|
20-Aug-2009 |
Marc Blank <mblank@google.com> |
Add URI's that atomically add a value to a particular field (Account or Mailbox) * Message, etc. could be added, if this had a use case * Unit test added for both Account and Mailbox cases * Eclipse changed some parens around; it won't happen again
/packages/apps/Email/src/com/android/email/service/MailService.java
|
cbe513d4305893edde60aca645b290f31f7643da |
|
19-Aug-2009 |
Andrew Stadler <stadler@android.com> |
Integrate EAS push notifications with the main notifications. * Use the new account-based field for number of new messages * Add support for async notifications in MailService * Change EAS to call MailService to notify user
/packages/apps/Email/src/com/android/email/service/MailService.java
|
46d7d7f1b6387d144c3f9e7c987418dc8f55fad4 |
|
18-Aug-2009 |
Andrew Stadler <stadler@android.com> |
Rework service to use provider accounts and controller. * Rewrite service logic to select and update one account at a time * Add checkmail API to Controller, and much rework/cleanup of existing callback API's * Rewrite notification posting code * Rewire connection to MessageList to be opened by notifications, to cancel notifications, and to reset the "new message" count whenever an account is viewed. * Boilerplate cleanup to a lot of activities because they share the callbacks that have had minor changes. * Remove old push controls from Store API In progress: * To provide notification mechanism for EAS pushed mail
/packages/apps/Email/src/com/android/email/service/MailService.java
|
9e2c6bd5f21f2d19eef7ebfe30e6fdf94ede0857 |
|
23-Jul-2009 |
Andrew Stadler <stadler@android.com> |
Remove saveOrUpdate from EmailContent to prevent stale writes * Numerous classes modified to deal with this change * Fixes bugs 1993292 and 1994671 * Renamed various setter and getter methods to reflect the underlying field names * Renamed syncFrequency to syncInterval in Account and Mailbox * Convenience method added to AccountSettings to save only user settings * Calls to content.update(context, content.toContentValues()), which save all fields, should be double-checked for correctness, making sure that content has current data and will not conflict with other threads that might modify that data * Ran all unit tests to confirm proper function NOTE: The logic to enforce single default account no longer works, because that logic is in Account.save() and does not run via Account.update(). I have patched out a small section of the relevant unit test and will file a bug to come back for this fix.
/packages/apps/Email/src/com/android/email/service/MailService.java
|
ded3c915d88a5ee2d143b75cbf5718dae92a2f1c |
|
11-Jul-2009 |
Andrew Stadler <stadler@android.com> |
Add folders to AccountFolderList * Scan folders and write into child cursors * Clicking a folder takes you to MessageList * Remove most links to FolderMessageList (nearly dead!) * Repair 1-account startup behavior (takes you directly to inbox) * Cleanup a few basic things like context menus & refresh TODO: Magic mailbox section at the top TODO: As always, better linkage to sync engine(s) TODO: Menus, context menus, etc. TODO: Proper handling of expandable list - accounts should stay open?
/packages/apps/Email/src/com/android/email/service/MailService.java
|
72dce733900a812cf11a5ac08756362030556849 |
|
09-Jul-2009 |
Andrew Stadler <stadler@android.com> |
Convert Accounts to AccountFolderList * Move relevant sources & resources to new name * Convert from ListView to ExpandableListView * No children yet - selecting account simply jumps to FML (temp) * No other change to functionality (e.g. no menu changes yet)
/packages/apps/Email/src/com/android/email/service/MailService.java
|
7b0b463477ef7172bd4b9e19c6338634ebedd8ee |
|
23-Jun-2009 |
Andrew Stadler <stadler@android.com> |
List messages from MessagingController & Stores. * update MessageListener callbacks and remove the callbacks that edit data (this comes through the provider now). * provide simple linkage via Controller to sync a mailbox * update FolderMessageList to trigger mailbox sync * rewrite synchronize to push messages into provider * small improvements to FML (sorting; show read/unread status) * note: trailing whitespace cleanup in some files
/packages/apps/Email/src/com/android/email/service/MailService.java
|
a290f503f14432163f74548a5e5d1dc5003ad049 |
|
15-Jun-2009 |
Marc Blank <mblank@google.com> |
Refactored EmailStore, EmailContent, EmailProvider EmailStore goes away, replaced by EmailContent All database activity is moved to EmailProvider
/packages/apps/Email/src/com/android/email/service/MailService.java
|
c0033f24a26a08c47aa38d957f42cf63cfa3c345 |
|
09-Jun-2009 |
Andrew Stadler <stadler@android.com> |
Convert remainder of app to use provider-based accounts What works: * Unit tests, except for com.android.email.activity.setup.* * Editing existing accounts * Create new accounts * Checking account settings against server * Mail sync using accounts * Viewing mailboxes What breaks (in approx order of planned fixes) * Unit tests in com.android.email.activity.setup.* * Viewing messages * Composing messages * Some details of account editing * Import of existing accounts
/packages/apps/Email/src/com/android/email/service/MailService.java
|
dab90a7b350e9c7dc23d501f12a40060d7178763 |
|
07-May-2009 |
Andy Stadler <nobody@android.com> |
AI 148377: Push Mode changes: (1) Add android.permission.WAKE_LOCK and READ_PHONE_STATE so a push mode service can hold an active network connection, monitor roaming status, etc. (2) Refresh push mode status on Refresh(), not just on Check, so UI (settings) changes, which call refresh(), propagate immediately to the stores. BUG=1776149 Automated import of CL 148377
/packages/apps/Email/src/com/android/email/service/MailService.java
|
c5c2b9673907d44fa03ac277a9028704b6277c7b |
|
01-May-2009 |
Andy Stadler <nobody@android.com> |
AI 148145: Remove the account-based storage of store persistent data, and instead combine it with the same code that handles folder persistent data (in the database). The schema is really simple; Rows with a folder id of -1 are store data. This also adds the ability to use keys to store multiple values, instead of a single string per account. Added/updated unit tests. 3rd party stores will need slight code changes because the persistent callbacks now accept keys. BUG=1807499 Automated import of CL 148145
/packages/apps/Email/src/com/android/email/service/MailService.java
|
cd7e5664f9de81dbe3ba8e57941ca6aa6c1dc3d7 |
|
14-Apr-2009 |
Andy Stadler <> |
AI 146061: Add persistent storage that Store classes can access. The current design for Store classes (e.g. IMAP) did not provide for any persistent storage. This is the beginning of a mechanism to provide that. It's quite simplisitic - each Store can read/write one persistent string - but that's enough for the first simple use case (saving some sync data for EAS). The core changes here - suggest reviewing first - are in Account.java, Store.java, and AccountUnitTests.java. Everything else is just following the API change that was necessary. Note that, by definition, this only applies to remote stores (e.g. IMAP, POP3). You'll see everywhere that LocalStore is passed null, and this is correct - LocalStore *is* persistent storage and does not need access (so far, at least). BUG=1786939 Automated import of CL 146061
/packages/apps/Email/src/com/android/email/service/MailService.java
|
8664ecf1817e9965f9910dd12f6115ef4aaa8f2a |
|
09-Apr-2009 |
Andy Stadler <> |
AI 145227: Add callback for push-mode stores to report async updates. The logic for this is quite simplistic, for now: When the store reports that it has new messages, it triggers a service refresh, just as if a pull-mode interval had expired and it is time to check the server. Note, unfortunately at this time there are no tests, because there are not currently any good test seams in MailService.java. BUG=1776149 Automated import of CL 145227
/packages/apps/Email/src/com/android/email/service/MailService.java
|
ea6fea9bb22368c10083d5dce52adae86e51a243 |
|
08-Apr-2009 |
Andy Stadler <> |
AI 144953: Provide UI for push mode accounts. 1. Generalize the code for the various spinners that control account check frequency. 2. Provide an API for looking up store attributes (and refactor existing instatiateStore logic to use it). 3. Cleanup the old code that was used to setup frequency spinners. 4. Hardwire Exchange accounts to default into push mode. Notes to tester: 1. For each account type (POP, IMAP, EAS) we need to check that auto & manual creation "do the right thing" for frequencies. POP & IMAP should offer "none" or time intervals, while EAS should offer "push", "none", or time intervals. 2. EAS accounts should default to "push", all others to "15 min" 3. Make sure that you can edit existing account settings and see the right choices (only EAS should be offered push). 4. I couldn't write an automated test for the mail checker service, please confirm that POP & IMAP accounts are checked at the right intervals (or never, if set for "none".) BUG=1776149 Automated import of CL 144953
/packages/apps/Email/src/com/android/email/service/MailService.java
|
3db9542af6be894a4b053c3c6eb9baf456cc8a44 |
|
05-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@136594
/packages/apps/Email/src/com/android/email/service/MailService.java
|
96c5af40d639d629267794f4f0338a267ff94ce5 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/packages/apps/Email/src/com/android/email/service/MailService.java
|
8c2158a5ebb88e226c23b66ff95910158a2727df |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/packages/apps/Email/src/com/android/email/service/MailService.java
|
687f9962d7095e18ef994cd0e64337f02ed1a5bd |
|
18-Dec-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Code drop from //branches/cupcake/...@124589
/packages/apps/Email/src/com/android/email/service/MailService.java
|
8978aac1977408b05e386ae846c30920c7faa0a6 |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
/packages/apps/Email/src/com/android/email/service/MailService.java
|