Home
last modified time | relevance | path

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

/aosp12/frameworks/base/core/java/android/content/
H A DCursorLoader.java113 Cursor oldCursor = mCursor; in deliverResult() local
120 if (oldCursor != null && oldCursor != cursor && !oldCursor.isClosed()) { in deliverResult()
121 oldCursor.close(); in deliverResult()
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/
H A DCursorRecyclerAdapter.java244 final Cursor oldCursor = mCursor; in swapCursor() local
245 if (oldCursor != null) { in swapCursor()
247 oldCursor.unregisterContentObserver(mChangeObserver); in swapCursor()
250 oldCursor.unregisterDataSetObserver(mDataSetObserver); in swapCursor()
271 return oldCursor; in swapCursor()
/aosp12/frameworks/base/core/java/android/widget/
H A 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()
H A DCursorFilter.java64 Cursor oldCursor = mClient.getCursor(); in publishResults() local
66 if (results.values != null && results.values != oldCursor) { in publishResults()
/aosp12/packages/apps/Dialer/java/com/android/dialer/smartdial/
H A DSmartDialCursorLoader.java120 Cursor oldCursor = this.cursor; in deliverResult() local
129 if (oldCursor != null && oldCursor != cursor) { in deliverResult()
130 releaseResources(oldCursor); in deliverResult()
/aosp12/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
H A DBaseCursorPagerAdapter.java180 Cursor oldCursor = mCursor; in swapCursor() local
190 return oldCursor; in swapCursor()
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/
H A DPeopleAndOptionsFragment.java192 final Cursor oldCursor = mOptionsCursor; in swapCursor() local
193 if (newCursor != oldCursor) { in swapCursor()
197 return oldCursor; in swapCursor()
/aosp12/packages/services/Mtp/tests/src/com/android/mtp/
H A 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()
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
H A DConversationListFragment.java288 final Cursor oldCursor = mAdapter.swapCursor(cursor); in onConversationListCursorUpdated() local
290 if (mListState != null && cursor != null && oldCursor == null) { in onConversationListCursorUpdated()
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
H A DConversationFragment.java865 final Cursor oldCursor = mAdapter.swapCursor(cursor); in onConversationMessagesCursorUpdated() local
867 if (cursor != null && oldCursor == null) { in onConversationMessagesCursorUpdated()