replicant-packages_apps_Email/tests/src/com/android/email
Marc Blank 6e418aa41a Improve EmailContent caching...
* Guarantee that up to 16 Account (with HostAuths), and Policy rows
  are always cached.  Also, 6 commonly used Mailboxes per Account
  (Inbox, Outbox, Drafts, Sent, Trash, and Search)
* Precache these rows when EmailProvider starts up
* Ensure that newly added, precachable rows are cached when created
* Clean up some inefficient/wrong caching code
* Fix a commonly called method in NotificationManager in which we
  load a single Mailbox row using selection vs withAppendedId
* Confirm that we don't read from the database in typical use and
  heavy message loading
* Add a special URI for finding mailbox by type (using the cache)
* Add special-case code for EmailContent.count(Account.CONTENT_URI)
  which is used in a number of places (including on the UI thread)
  and whose value is easily determined
* Add a special URI to get the default account id
* Confirm that all unit tests work

The goal here is to be able to load all Account, HostAuth, Policy,
and Mailbox objects (by id) without worrying about disk access.
There will still be a single disk read for uncommon Mailbox reads,
but this should be considered acceptable.

Change-Id: Ibc9aa7acc73185e360b0b6f3053b90a985e97210
TODO: Unit tests
2011-06-21 21:39:19 -07:00
..
activity Improve EmailContent caching... 2011-06-21 21:39:19 -07:00
mail First implementation of IMAP search 2011-06-16 20:26:52 -07:00
provider Improve EmailContent caching... 2011-06-21 21:39:19 -07:00
service Fix MailService unit tests 2011-06-21 13:03:48 -07:00
AccountTestCase.java Fix MailService unit tests 2011-06-21 13:03:48 -07:00
ControllerProviderOpsTests.java Improve EmailContent caching... 2011-06-21 21:39:19 -07:00
DBTestHelper.java Improve EmailContent caching... 2011-06-21 21:39:19 -07:00
GroupMessagingListenerUnitTests.java eclair snapshot 2009-11-12 18:46:09 -08:00
LegacyConversionsTests.java Complete rewrite of account backup/restore code 2011-05-09 10:39:17 -07:00
MessagingControllerUnitTests.java Move Account into its own top-level class 2011-06-13 15:37:22 -07:00
MockClock.java Make ThrottlingCursorLoader smarter 2010-09-22 18:01:01 -07:00
MockSharedPreferences.java Make ImapStore tests use mocks where possible 2011-04-25 16:50:37 -04:00
MockVendorPolicy.java DO NOT MERGE: Extract MockVendorPolicy, add standard mechanism to inject it. 2010-09-20 16:45:48 -07:00
NotificationControllerTest.java Move Account into its own top-level class 2011-06-13 15:37:22 -07:00
RefreshManagerTest.java Move Account into its own top-level class 2011-06-13 15:37:22 -07:00
ResourceHelperTest.java Show color chips for combined view. 2010-11-23 13:03:06 -08:00
SecurityPolicyTests.java Improve EmailContent caching... 2011-06-21 21:39:19 -07:00
SingleRunningTaskTest.java Email split, part huit: Refactor constants, clean emailcommon 2011-02-14 12:18:10 -08:00
SmallTests.java auto import from //depot/cupcake/@135843 2009-03-03 19:32:22 -08:00
TestUtils.java Email split, part huit: Refactor constants, clean emailcommon 2011-02-14 12:18:10 -08:00
ThrottleTest.java Extract the throttling part from ThrottlingCursorLoader 2010-10-01 17:46:59 -07:00
UtilityLargeTest.java Move Account into its own top-level class 2011-06-13 15:37:22 -07:00
VendorPolicyLoaderTest.java DO NOT MERGE: Extract MockVendorPolicy, add standard mechanism to inject it. 2010-09-20 16:45:48 -07:00