Home
last modified time | relevance | path

Searched refs:oldCursor (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/content/
DCursorLoader.java112 Cursor oldCursor = mCursor; in deliverResult() local
119 if (oldCursor != null && oldCursor != cursor && !oldCursor.isClosed()) { in deliverResult()
120 oldCursor.close(); in deliverResult()
/frameworks/base/core/java/android/widget/
DCursorAdapter.java376 Cursor oldCursor = mCursor; in swapCursor() local
377 if (oldCursor != null) { in swapCursor()
378 if (mChangeObserver != null) oldCursor.unregisterContentObserver(mChangeObserver); in swapCursor()
379 if (mDataSetObserver != null) oldCursor.unregisterDataSetObserver(mDataSetObserver); in swapCursor()
395 return oldCursor; in swapCursor()
DCursorFilter.java64 Cursor oldCursor = mClient.getCursor(); in publishResults() local
66 if (results.values != null && results.values != oldCursor) { in publishResults()
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
DBaseCursorPagerAdapter.java180 Cursor oldCursor = mCursor; in swapCursor() local
190 return oldCursor; in swapCursor()
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DMtpDatabaseTest.java767 try (final Cursor oldCursor = in testFailToReplaceExisitingUnmappedRoots() argument
769 assertEquals(1, oldCursor.getCount()); in testFailToReplaceExisitingUnmappedRoots()
770 oldCursor.moveToNext(); in testFailToReplaceExisitingUnmappedRoots()
771 assertEquals("1", getString(oldCursor, Root.COLUMN_ROOT_ID)); in testFailToReplaceExisitingUnmappedRoots()
789 assertFalse(oldCursor.getString(0).equals(newCursor.getString(0))); in testFailToReplaceExisitingUnmappedRoots()
791 assertFalse(oldCursor.getString(0).equals(newCursor.getString(0))); in testFailToReplaceExisitingUnmappedRoots()