3d16e5d4b994d92db51962c8c461c53bee04309f |
25-Jun-2014 |
Anthony Lee <anthonylee@google.com> |
Move over to the new AttachmentService. Change-Id: I4a687b003884ea6a92a755fcbf394001bfc96a38
ttachmentDownloadServiceTests.java
|
ff52eef8e691645e657f02a21c9d51968c2bdcfd |
25-Jun-2014 |
Anthony Lee <anthonylee@google.com> |
Revamp logging & remove the threading around downloads. There is no need to launch a new AsyncTask around adding an attachment to the queue of downloads. We can restore the attachment in the worker thread of AttachmentService instead. Also reworked the logging so we can trace the flow of the AttachmentService if we need to debug again in the future. Change-Id: I368ebb4322bc0af0f4cadedf102959d621e5ee80
ttachmentServiceTests.java
|
39e3bd63b59e3f562e7cbdc4b6b070b0d08c639a |
04-Jun-2014 |
Anthony Lee <anthonylee@google.com> |
Some more cleanup and code rearrangement & added unit tests for ServiceCallback. Change-Id: I6017e50455df3dda9ef6ec54ffd4fbc4e9b1a2d9
ttachmentServiceTests.java
|
a72a12241f413f113d61d318757a49b7e33c2af6 |
16-May-2014 |
Anthony Lee <anthonylee@google.com> |
Factored out Watchdog code and cleaned up other stuff. Moved testing code to the bottom of the file. The next CL should be the removal of the DownloadSet. Also fixed b/15003801, so that the test will not fail. Change-Id: Ie8320782d6b292d5a367af95d7c58d70a4213ead
ttachmentServiceTests.java
|
0e49862711852775acc91aa8d2dee2b6b70ea1d0 |
12-May-2014 |
Anthony Lee <anthonylee@google.com> |
Introduction of DownloadQueue and associated tests. Also a bit of cleanup around log tags and DownloadRequest. Change-Id: I33221f099ed691e5258e1741cf0a63381404f520
ttachmentServiceTests.java
|
7037a0bd3d8e925a9115f475f5c0d05ddae2eeee |
17-Dec-2013 |
Jerry Xie <jjx@google.com> |
Disable, suppress, remove broken and obsolete Email tests Change-Id: Ia4dcba1c6966f23dd2a15e69324b7345aed8f944
ttachmentDownloadServiceTests.java
mailBroadcastProcessorServiceTests.java
ailServiceTests.java
|
17d3a29c9d8f7a27c463239f190bdcc4e0804527 |
27-Nov-2013 |
Jerry Xie <jjx@google.com> |
Get Email units to compile Change-Id: I171a0e2421c5006d9862ad94f886932146547020
ttachmentDownloadServiceTests.java
mailBroadcastProcessorServiceTests.java
ailServiceTests.java
|
bc8bc050b080287c35241f5ab0c310bbbdb6e805 |
15-Nov-2013 |
Yu Ping Hu <yph@google.com> |
During upgrade, ignore protocols whose strings don't change. Copied from https://googleplex-android-review.googlesource.com/#/c/389215/ in order to submit for ur10, also made a minor change to early out when we know it's a no-op. Bug: 11258856 Change-Id: I28415e97225a216c16abb6ad7c48a860c5370173
mailBroadcastProcessorServiceTests.java
|
afe097f318a7eeac9d240d2bedbc5caba7640ea8 |
26-Jul-2013 |
Yu Ping Hu <yph@google.com> |
Simplify account reconciliation. - Rather than handle by type, do them all at once. - Simplify when reconciliation happens. Bug: 9056861 Change-Id: If264678c82c63090246ef8ff857c8e46f6672c85
ailServiceTests.java
|
323eea8ac8d5645612a38065c62996059aff58f6 |
18-May-2012 |
Marc Blank <mblank@google.com> |
Don't use a repeating alarm for AttachmentDownloadService * Guarantees we can't have runaway alarms * Manually merged from Email1 Bug: 6494254 Change-Id: I7f272f650ab34d50ec71ad503951ada3bbf203af
ttachmentDownloadServiceTests.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
ttachmentDownloadServiceTests.java
ailServiceTests.java
|
4f813fb12937de74d3ccec730b8de0c9de7a87e0 |
14-Feb-2012 |
Marc Blank <mblank@google.com> |
Convert POP3 to service * Remove MessagingController and (almost all of) MailService Change-Id: I8953b58b237de6a71fda770f1727bd94081fec55
ttachmentDownloadServiceTests.java
ailServiceTests.java
|
faf9ecc992c34de53969335f9fb403d2b17f3163 |
03-Oct-2011 |
Marc Blank <mblank@google.com> |
Enforce "auto-sync app data" setting for POP3/IMAP * We were using the deprecated ConnectivityManager for this; we should now be using the setting in ContentResolver * Also, remove broadcast receiver code that is no longer relevant Bug: 5405352 Change-Id: I985a95071aea92d235a2708925f775b817ba2328
ttachmentDownloadServiceTests.java
|
002a1802cad235ffa8f7152e0d0a5a2ebad14f63 |
16-Sep-2011 |
Ben Komalo <benkomalo@google.com> |
Prevent flicker in opening Email. Welcome had some assumptions that some things had to be done asynchronously, such as checking inbox status. This can now be done on the UI thread and so transition into Email can be done immediately in onCreate, except if there's reconciliating to be done Bug: 4599569 Change-Id: Iaaac21e73c985c60e1b7974fb0429948b35968e4
ailServiceTests.java
|
4e4aba9ebc43c6a83190f3a883fa05bb7d5100b3 |
19-Jul-2011 |
Marc Blank <mblank@google.com> |
Clean up account reconciliation * Move AccountReconciler to the Email app (from EmailCommon) * Ensure that Controller.deleteAccountSync() performs ALL actions needed to clean up after an account deletion (delete attachment files, reset policies, refresh the UI, etc.) * Add reconcileAccounts() API to AccountService * Remove accountDeleted() and restoreAccountsIfNeede() from the AccountService API * Remove unused callback Bug: 4883073 Bug: 4767084 Change-Id: I43ffaf009db1a6f306bb0f2a74fb4dd3b2c4b966
ailServiceTests.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
ttachmentDownloadServiceTests.java
|
cbc842c5c91f90517b6766e15aafc051b75af872 |
21-Jun-2011 |
Marc Blank <mblank@google.com> |
Fix MailService unit tests * These broke when we split Email/Exchange * We now use a test authenticator and a test account type, which is actually far cleaner than dealing with actual accounts Change-Id: Ib7c9f884eac484c33642a8036f47466ce641c567
ailServiceTests.java
|
f5418f1f93b02e7fab9f15eb201800b65510998e |
14-Jun-2011 |
Marc Blank <mblank@google.com> |
Move Account into its own top-level class Change-Id: Ide7c991b7d4d418dbe17164421425bf898ba64ee
ttachmentDownloadServiceTests.java
mailBroadcastProcessorServiceTests.java
ailServiceTests.java
|
12b82d9374947c9268217f45befe8a74bd9b60d7 |
20-May-2011 |
Ben Komalo <benkomalo@google.com> |
Move HostAuth to top level class. No other changes made. Change-Id: I1c6497c98abc0f99443ea42d8aed6295b263c123
mailBroadcastProcessorServiceTests.java
ailServiceTests.java
|
53ea83ebf91f820692e8fa8e781f5cc982dd94db |
14-May-2011 |
Ben Komalo <benkomalo@google.com> |
Move Mailbox to top level class. No other changes made. Change-Id: I3d8f3c521dc0d902be313b25252b4b6a4a96e7ee
ttachmentDownloadServiceTests.java
|
bdf1a7eb6ec7d6008d353fb110b11f895ce91dac |
01-Mar-2011 |
Todd Kennedy <toddke@google.com> |
Fix unit test build Change-Id: I8fcb16d4b10214668daac73a7cb9e274b07c154c
mailBroadcastProcessorServiceTests.java
|
ffe6ef342a6d9ea958aaee11b57db54e52252dde |
23-Feb-2011 |
Todd Kennedy <toddke@google.com> |
fix UnsupportedOperationException in tests We're using the mock context to prevent modifying the real databases. However, we need the real context to create intents. Use the real context in the few places we must use it. Change-Id: Icb8d289239218921c0b4b5c93ac7983830d90394
ttachmentDownloadServiceTests.java
|
8c89674b64f6669fa94bf593abad0f1e2255a812 |
22-Feb-2011 |
Todd Kennedy <toddke@google.com> |
Always set a delete policy for legacy accounts The delete policy can only be set for POP3 accounts. However, the delete policy is used for all legacy accounts (that includes IMAP). As such, we need to make sure IMAP accounts also have their policy set; even though the setting is not configurable by the user. The delete policy does not mean anything for Exchange accounts, so, we do not need to modify the account setup code for them. bug 3074164 Change-Id: Iab10d2997404b3b0c10a60a64fb652540c0d2d1a
mailBroadcastProcessorServiceTests.java
|
3a5c1fb274a9ce72d708d88509bf2607cb018ddd |
13-Feb-2011 |
Marc Blank <mblank@google.com> |
Email split, part neuf: Setup, logging, attachment glue * Make "Exchange" option in account setup depend upon availability of the Exchange EmailService * Make presence of Exchange logging depend upon availability of the Exchange EmailService * Make AttachmentDownloadService use service rather than ExchangeService class * Move SSLUtils to emailcommon/utility * Move account manager type defs to emailcommon/AccountManagerTypes * Update proguard.flags * This is the penultimate CL for the Email package itself; the next CL creates a clean, SDK-compatible Email application Bug: 3442973 Change-Id: I9162cf5fa6b5a043ded0fdd1e25fd3ce5948ad8f
ttachmentDownloadServiceTests.java
ailServiceTests.java
|
31d9acbf0623872f9d4a2b3210b5970854b654c7 |
12-Feb-2011 |
Marc Blank <mblank@google.com> |
Email split, part huit: Refactor constants, clean emailcommon * There are three pieces to this CL (sorry): 1) Move and/or rename some constants into emailcommon 2) Move Utility to emailcommon, moving the few UI related utilities back into Email (FolderProperties and UiUtilities) 3) Remove all references to resources from emailcommon * The three pieces relate in that, between them, they allow the emailcommon static library to compile cleanly Bug: 3442973 Change-Id: Ic5e3abaa2a1b36999e0b6653c6c2134ea1bd544f
ailServiceTests.java
|
a7bc0319a75184ad706bb35c049af107ac3688e6 |
10-Feb-2011 |
Marc Blank <mblank@google.com> |
Email split, part six: EmailContent * Moved EmailContent to emailcommon Change-Id: Ib3db1bfcfe74554c0e5afd3cfce6d72f26e9aeb9
ttachmentDownloadServiceTests.java
ailServiceTests.java
|
0d4fc55861ed4393aa82f124f2865695ef564641 |
09-Feb-2011 |
Marc Blank <mblank@google.com> |
Email split, part one: EmailService * Create emailcommon package * Move EmailService classes to emailcommon package * Change references to aidl's to emailcommon package * Add getApiLevel() command to EmailService Bug: 3442973 Change-Id: Ic7d2115363cdff6ebb86c46650b0a5b2109b1c72
ttachmentDownloadServiceTests.java
|
ed9938cd9caf4937eadb3e35333e2fe2b157bde5 |
26-Jan-2011 |
Marc Blank <mblank@google.com> |
Protect against threading issues in AttachmentDownloadService Bug: 3391148 Change-Id: I513b5678815db262ea5660661336432f1e203c9e
ttachmentDownloadServiceTests.java
|
c50b6f685ba26a38b8110f6ca0115b12f84d643c |
14-Jan-2011 |
Makoto Onuki <omakoto@google.com> |
Use broadcast to detect system account update. Instead of AccountsUpdatedListener. Bug 3211657 Change-Id: I1e60092fc06fe80b9914ff7264c24fcbfa950745
ailServiceTests.java
|
201a24f51e166f66f99c17da3356aa4fdb7fa54d |
06-Jan-2011 |
Andy Stadler <stadler@google.com> |
Harden MailService against half-created accounts * Add simple sanity checks to scanned accounts, skip over if bad * Fix existing unit tests and add new unit test for this change * Also fixed minor bug in EmailContent that was never triggered in production code (only discovered it via a unit test). * Also fixed minor bug in an existing unit test Bug: 2937595 Change-Id: Id60bbb5d8bd923db043d46891c7f89d7debb0a11
ailServiceTests.java
|
edb05ca5ee21a9f410416b427141be59be01f5d2 |
15-Dec-2010 |
Marc Blank <mblank@google.com> |
Harden AttachmentDownloadService; fix storage calculation Bug: 3292720 Bug: 3286634 Change-Id: I378aac369ee8317c0c41b1f021a3731b81bcb380
ttachmentDownloadServiceTests.java
|
75a873be8420e50f0aeb5a77716358ee0ca66b01 |
09-Dec-2010 |
Marc Blank <mblank@google.com> |
Implement prefetch of IMAP/EAS attachments * Load attachments in the background for IMAP/EAS messages * Download an attachment from account X if: 1) 25% of total storage free 2) Attachments for X use < 1/N of 25% of total storage, where N is the number of AccountManager accounts * Add accountKey to Attachment table for performance Change-Id: I913aa710f34f48fcc4210ddf77393ab38323fe59
ttachmentDownloadServiceTests.java
|
eb4965942387619c1b44c751affda83c4a2401dc |
17-Oct-2010 |
Marc Blank <mblank@google.com> |
Prevent MailService from spamming AccountManager during reconcile * When any Account is modified, MailService gets a content notification and runs reconciliation in an AsyncTask. Reconciliation ends up calling the AccountManager, which also runs asynchronously. The net effect is that, especially during unit tests, where we create/destroy accounts rapidly, these calls can "back up", ending in a situation in which the worker pool for AsyncTask is filled, with a resulting RejectedExecutionException * We fix this by preventing more than one request for reconciliation to be queued at a time * Added a unit test that thrashes the notification handler Bug: 2937628 Change-Id: Iaf25806efb46831f31704604360df091752d9525
ailServiceTests.java
|
fe6e3eae2a318f89634c82222acfdaac32ee6cf1 |
07-Oct-2010 |
Marc Blank <mblank@google.com> |
Fix MailService unit test Bug: 2844726 Change-Id: I168b3db49bf422b33d05f25cfff1c7be15150c2b
ailServiceTests.java
|
64b64cca01c1a827c1b3824f099fd638cfb15826 |
27-Aug-2010 |
Marc Blank <mblank@google.com> |
Rename SyncManager to ExchangeService * Updated comments and checked for 100-columns Change-Id: I4ab5aaa9425714f8e035e1952db3fec63d498ae1
ailServiceTests.java
|
c184f36c2df16431693d7709e28ded593efc3da7 |
24-Aug-2010 |
Marc Blank <mblank@google.com> |
Revert "Convert Controller to a full service" This reverts commit 0e6d972641c19467d6b26351ce14a3f44c9fd6f4. Change-Id: I005fc34152396806468edef919a3620961ddb4fe
ailServiceTests.java
|
f19f9cf4d3e5229715da77fe05a1a2bbd8da3f41 |
20-Aug-2010 |
Marc Blank <mblank@google.com> |
Simplify AttachmentDownloadService; add unit tests * Changed our queue from a TreeMap to a TreeSet that uses an easily testable comparator * Remove the ugly bit twiddling priority computation * Test DownloadSet (the logic behind queue ordering, addition, removal, query, etc.) Change-Id: Ia8427900b8f39a243a5407349775802d0a4fad4f
ttachmentDownloadServiceTests.java
|
0e6d972641c19467d6b26351ce14a3f44c9fd6f4 |
20-Aug-2010 |
Marc Blank <mblank@google.com> |
Convert Controller to a full service Change-Id: I2078fd047ff46f85936c8bf798a5edd3678bb5b4
ailServiceTests.java
|
4be3bc1ec8a52308ee1998f0a31d7e491e06b3c1 |
14-Aug-2010 |
Makoto Onuki <omakoto@google.com> |
Properly unregister mock controllers Some tests create mock controllers. They register themselves to MessagingController when instantiated, but never unregister. Added a cleanup method, and call it for each instance. (I was hoping it would spped up unit tests, but it didn't. Still it's a nice thing to do.) Change-Id: Ia90f0380aef388d22f7cfcf6e9203e05444b3285
ailServiceTests.java
|
e6cc662abc0b5fffe223cda5e980b4f05a4e91dd |
08-Jul-2010 |
Marc Blank <mblank@google.com> |
Use AccountManager for POP/IMAP; refactor setup classes There are two major, interrelated parts to this CL: 1) Clean up the activities to reduce the use of Intents to pass information between activities; instead, we use a common SetupData structure that automatically saved/restored as necessary during the setup flow. A fair amount of code and inconsistent use of Bundle extras has been eliminated in the process. * Create SetupData structure, setters/getters, and initialization methods to simplify the preservation of state during setup flow * Remove all state/flow extras from Intents; Intents now only specify the Activity to be started, which should greatly simplify the transition to Fragments. * Remove all state/flow fields from Activities * Modify existing setup activity unit tests and confirm tests pass 2) Create AccountManager accounts for POP/IMAP email accounts to provide consistency in user experience. Also, internal flows are now identical as between account types. * Move account reconciliation from SyncManager to MailService, so that reconciliation is consistent between email and exchange accounts; move unit tests as appropriate * Add a "Sync Email" setting for POP/IMAP/EAS * Change MailService to respect the "Sync Email" setting in Settings -> Accounts & sync * Create PopImapSyncAdapterService to handle manual POP/IMAP sync as requested by SyncManager; add EmailSyncAdapterService to perform the same function for EAS * Use new PopImapAuthenticatorService to add AccountManager accounts for POP/IMAP accounts; setup appropriate stanzas in AndroidManifest and add related xml files * Update AccountSettings to use SetupData Miscellaneous other changes: * Only allow valid port numbers in incoming/outgoing setup Bug: 1712475 Change-Id: Ibdac52fb2c5578b86bf3992ddb1acd10f162391a
ailServiceTests.java
|
42ff939e3a8a69ca5937aa5d6a2a932ae2e80752 |
25-Jun-2010 |
Marc Blank <mblank@google.com> |
Prevent MailService from potential looping due to EAS accounts * The code assumed that all accounts used the scheduler in MailService whereas only those using MessagingController do so (i.e. EAS does not) * Change setupSyncReportsLocked to set the syncInterval for accounts that don't use MessagingController to Account.CHECK_INTERVAL_NEVER * Add unit test for the changed code Change-Id: I74a3dae21d9ec16f9903bdf2a1c28092ae89cc50
ailServiceTests.java
|