Home
last modified time | relevance | path

Searched refs:ContentCache (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Email/tests/src/com/android/email/provider/
DContentCacheTests.java19 import com.android.email.provider.ContentCache.CacheToken;
20 import com.android.email.provider.ContentCache.CachedCursor;
21 import com.android.email.provider.ContentCache.TokenList;
62 ContentCache.CounterMap<String> map = new ContentCache.CounterMap<String>(4); in testCounterMap()
156 int activeCount = ContentCache.sActiveCursors.getCount(activeCursor); in testCachedCursors()
181 assertFalse(ContentCache.sActiveCursors.contains(activeCursor)); in testCachedCursors()
206 ContentCache cache = new ContentCache("Name", SIMPLE_PROJECTION, 2); in testContentCacheRemoveEldestEntry()
263 ContentCache cache = new ContentCache("Name", SIMPLE_PROJECTION, 2); in testCloseCachedCursor()
268 assertEquals(2, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor()
275 assertEquals(0, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor()
[all …]
/packages/apps/Email/src/com/android/email/provider/
DContentCache.java76 public final class ContentCache { class
93 private static final ArrayList<ContentCache> sContentCaches = new ArrayList<ContentCache>();
284 private final ContentCache mCache;
292 public CachedCursor(Cursor cursor, ContentCache cache, String id) { in CachedCursor()
410 public ContentCache(String name, String[] baseProjection, int maxSize) { in ContentCache() method in ContentCache
748 for (ContentCache cache: sContentCaches) { in invalidateAllCaches()
762 private final ContentCache mCache;
789 Statistics(ContentCache cache) { in Statistics()
799 private void addCacheStatistics(ContentCache cache) { in addCacheStatistics()
842 for (ContentCache cache: sContentCaches) { in dumpStats()
DEmailProvider.java40 import com.android.email.provider.ContentCache.CacheToken;
130 private final ContentCache mCacheAccount =
131 new ContentCache("Account", Account.CONTENT_PROJECTION, MAX_CACHED_ACCOUNTS);
132 private final ContentCache mCacheHostAuth =
133 new ContentCache("HostAuth", HostAuth.CONTENT_PROJECTION, MAX_CACHED_ACCOUNTS * 2);
134 /*package*/ final ContentCache mCacheMailbox =
135 new ContentCache("Mailbox", Mailbox.CONTENT_PROJECTION,
137 private final ContentCache mCacheMessage =
138 new ContentCache("Message", Message.CONTENT_PROJECTION, 8);
139 private final ContentCache mCachePolicy =
[all …]
DDBHelper.java1005 ContentCache.invalidateAllCaches(); in upgradeFromVersion17ToVersion18()
/packages/apps/Email/tests/src/com/android/emailcommon/provider/
DQuickResponseTests.java24 import com.android.email.provider.ContentCache;
45 ContentCache.invalidateAllCaches(); in setUp()
DMailboxTests.java19 import com.android.email.provider.ContentCache;
63 ContentCache.invalidateAllCaches(); in setUp()
/packages/apps/Email/tests/src/com/android/email/
DDBTestHelper.java20 import com.android.email.provider.ContentCache;
243 ContentCache.invalidateAllCaches(); in getProviderContext()
DControllerProviderOpsTests.java23 import com.android.email.provider.ContentCache;
64 ContentCache.invalidateAllCaches(); in setUp()
/packages/apps/Email/tests/src/com/android/email/activity/
DRecentMailboxManagerTest.java27 import com.android.email.provider.ContentCache;
76 ContentCache.invalidateAllCaches(); in setUp()
/packages/apps/Email/
Dproguard.flags179 -keepclasseswithmembers class com.android.email.provider.ContentCache$CounterMap {