Home
last modified time | relevance | path

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

/frameworks/support/core-utils/java/android/support/v4/content/
DCursorLoader.java101 Cursor oldCursor = mCursor; in deliverResult() local
108 if (oldCursor != null && oldCursor != cursor && !oldCursor.isClosed()) { in deliverResult()
109 oldCursor.close(); in deliverResult()
/frameworks/base/core/java/android/content/
DCursorLoader.java105 Cursor oldCursor = mCursor; in deliverResult() local
112 if (oldCursor != null && oldCursor != cursor && !oldCursor.isClosed()) { in deliverResult()
113 oldCursor.close(); in deliverResult()
/frameworks/support/core-ui/java/android/support/v4/widget/
DCursorAdapter.java341 Cursor oldCursor = mCursor; in swapCursor() local
342 if (oldCursor != null) { in swapCursor()
343 if (mChangeObserver != null) oldCursor.unregisterContentObserver(mChangeObserver); in swapCursor()
344 if (mDataSetObserver != null) oldCursor.unregisterDataSetObserver(mDataSetObserver); in swapCursor()
360 return oldCursor; in swapCursor()
DCursorFilter.java65 Cursor oldCursor = mClient.getCursor(); in publishResults() local
67 if (results.values != null && results.values != oldCursor) { in publishResults()
/frameworks/base/core/java/android/widget/
DCursorAdapter.java369 Cursor oldCursor = mCursor; in swapCursor() local
370 if (oldCursor != null) { in swapCursor()
371 if (mChangeObserver != null) oldCursor.unregisterContentObserver(mChangeObserver); in swapCursor()
372 if (mDataSetObserver != null) oldCursor.unregisterDataSetObserver(mDataSetObserver); in swapCursor()
388 return oldCursor; in swapCursor()
DCursorFilter.java64 Cursor oldCursor = mClient.getCursor(); in publishResults() local
66 if (results.values != null && results.values != oldCursor) { in publishResults()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DCursorObjectAdapter.java79 Cursor oldCursor = mCursor; in swapCursor() local
83 return oldCursor; in swapCursor()
/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.java766 try (final Cursor oldCursor = in testFailToReplaceExisitingUnmappedRoots() argument
768 assertEquals(1, oldCursor.getCount()); in testFailToReplaceExisitingUnmappedRoots()
769 oldCursor.moveToNext(); in testFailToReplaceExisitingUnmappedRoots()
770 assertEquals("1", getString(oldCursor, Root.COLUMN_ROOT_ID)); in testFailToReplaceExisitingUnmappedRoots()
788 assertFalse(oldCursor.getString(0).equals(newCursor.getString(0))); in testFailToReplaceExisitingUnmappedRoots()
790 assertFalse(oldCursor.getString(0).equals(newCursor.getString(0))); in testFailToReplaceExisitingUnmappedRoots()