Searched refs:sActiveCursors (Results 1 – 2 of 2) sorted by relevance
159 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()
97 /*package*/ static final CounterMap<Cursor> sActiveCursors = new CounterMap<Cursor>(24); field in ContentCache299 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()