Home
last modified time | relevance | path

Searched refs:sActiveCursors (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Email/tests/src/com/android/email/provider/
DContentCacheTests.java159 int activeCount = ContentCache.sActiveCursors.getCount(activeCursor); in testCachedCursors()
184 assertFalse(ContentCache.sActiveCursors.contains(activeCursor)); in testCachedCursors()
271 assertEquals(2, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor()
278 assertEquals(0, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor()
286 assertEquals(2, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor()
289 assertEquals(0, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor()
294 assertEquals(1, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor()
299 assertEquals(0, ContentCache.sActiveCursors.getCount(underlyingCursor)); in testCloseCachedCursor()
/packages/apps/Email/provider_src/com/android/email/provider/
DContentCache.java97 /*package*/ static final CounterMap<Cursor> sActiveCursors = new CounterMap<Cursor>(24); field in ContentCache
299 sActiveCursors.add(cursor); in CachedCursor()
310 int count = sActiveCursors.subtract(mCursor); in close()
418 if (evicted && !sActiveCursors.contains(oldValue)) { in ContentCache()
653 if (!sActiveCursors.contains(c)) { in unlockImpl()