Home | History | Annotate | Download | only in provider

Lines Matching full:underlyingcursor

265         Cursor underlyingCursor = getOneRowCursor();
266 Cursor cachedCursor1 = new CachedCursor(underlyingCursor, cache, "1");
267 Cursor cachedCursor2 = new CachedCursor(underlyingCursor, cache, "1");
268 assertEquals(2, ContentCache.sActiveCursors.getCount(underlyingCursor));
272 assertFalse(underlyingCursor.isClosed());
275 assertEquals(0, ContentCache.sActiveCursors.getCount(underlyingCursor));
277 assertTrue(underlyingCursor.isClosed());
279 underlyingCursor = getOneRowCursor();
281 underlyingCursor, "2", SIMPLE_PROJECTION, cache.getCacheToken("2"));
282 cachedCursor2 = new CachedCursor(underlyingCursor, cache, "2");
283 assertEquals(2, ContentCache.sActiveCursors.getCount(underlyingCursor));
286 assertEquals(0, ContentCache.sActiveCursors.getCount(underlyingCursor));
288 assertFalse(underlyingCursor.isClosed());
290 cachedCursor2 = new CachedCursor(underlyingCursor, cache, "2");
291 assertEquals(1, ContentCache.sActiveCursors.getCount(underlyingCursor));
296 assertEquals(0, ContentCache.sActiveCursors.getCount(underlyingCursor));
297 assertTrue(underlyingCursor.isClosed());