Home
last modified time | relevance | path

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

/packages/apps/UnifiedEmail/src/com/android/mail/content/
DObjectCursorLoader.java113 final Cursor oldCursor = mCursor; in deliverResult() local
120 if (oldCursor != null && oldCursor != cursor && !oldCursor.isClosed()) { in deliverResult()
121 oldCursor.close(); in deliverResult()
/packages/apps/Messaging/src/com/android/messaging/ui/
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()
/packages/apps/Dialer/java/com/android/dialer/app/dialpad/
DSmartDialCursorLoader.java119 Cursor oldCursor = mCursor; in deliverResult() local
128 if (oldCursor != null && oldCursor != cursor) { in deliverResult()
129 releaseResources(oldCursor); in deliverResult()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DConversationViewFragment.java1544 MessageCursor newCursor, MessageCursor oldCursor) { in onMessageCursorLoadFinished() argument
1554 if (oldCursor != null && !oldCursor.isClosed()) { in onMessageCursorLoadFinished()
1567 final int oldState = oldCursor.getStateHashCode(); in onMessageCursorLoadFinished()
1571 final boolean processedInPlace = processInPlaceUpdates(newCursor, oldCursor); in onMessageCursorLoadFinished()
1597 LogUtils.i(LOG_TAG, "old cursor: %s", oldCursor.getDebugDump()); in onMessageCursorLoadFinished()
1645 private boolean processInPlaceUpdates(MessageCursor newCursor, MessageCursor oldCursor) { in processInPlaceUpdates() argument
1653 if (!newCursor.moveToPosition(pos) || !oldCursor.moveToPosition(pos)) { in processInPlaceUpdates()
1658 final ConversationMessage oldMsg = oldCursor.getMessage(); in processInPlaceUpdates()
DAbstractConversationViewFragment.java216 MessageCursor newCursor, MessageCursor oldCursor); in onMessageCursorLoadFinished() argument
539 final MessageCursor oldCursor = mCursor; in onLoadFinished() local
541 onMessageCursorLoadFinished(loader, mCursor, oldCursor); in onLoadFinished()
DSecureConversationViewFragment.java243 MessageCursor newCursor, MessageCursor oldCursor) { in onMessageCursorLoadFinished() argument
DAnimatedAdapter.java1111 final Cursor oldCursor = super.swapCursor(c); in swapCursor() local
1114 return oldCursor; in swapCursor()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/
DPeopleAndOptionsFragment.java192 final Cursor oldCursor = mOptionsCursor; in swapCursor() local
193 if (newCursor != oldCursor) { in swapCursor()
197 return oldCursor; in swapCursor()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DConversationListFragment.java288 final Cursor oldCursor = mAdapter.swapCursor(cursor); in onConversationListCursorUpdated() local
290 if (mListState != null && cursor != null && oldCursor == null) { in onConversationListCursorUpdated()
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DDatabaseIndexingManagerTest.java831 final Cursor oldCursor = mDb.rawQuery("SELECT * FROM prefs_index WHERE data_title = '" + in testPerformIndexing_localeChanged_databaseDropped() local
833 assertThat(oldCursor.getCount()).isEqualTo(0); in testPerformIndexing_localeChanged_databaseDropped()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationFragment.java855 final Cursor oldCursor = mAdapter.swapCursor(cursor); in onConversationMessagesCursorUpdated() local
857 if (cursor != null && oldCursor == null) { in onConversationMessagesCursorUpdated()