Home
last modified time | relevance | path

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

/packages/apps/Messaging/src/com/android/messaging/ui/
DCursorRecyclerAdapter.java240 public Cursor swapCursor(final Cursor newCursor) { in swapCursor() argument
241 if (newCursor == mCursor) { in swapCursor()
253 mCursor = newCursor; in swapCursor()
254 if (newCursor != null) { in swapCursor()
256 newCursor.registerContentObserver(mChangeObserver); in swapCursor()
259 newCursor.registerDataSetObserver(mDataSetObserver); in swapCursor()
261 mRowIDColumn = newCursor.getColumnIndexOrThrow("_id"); in swapCursor()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DSuggestionsAdapterBase.kt153 private fun changeSuggestions(newCursor: SuggestionCursor?) { in changeSuggestions()
155 Log.d(TAG, "changeCursor(" + newCursor + ") count=" + (newCursor?.count ?: 0)) in changeSuggestions()
157 if (newCursor === currentSuggestions) { in changeSuggestions()
158 if (newCursor != null) { in changeSuggestions()
164 currentSuggestions = newCursor in changeSuggestions()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactListAdapter.java67 public Cursor swapCursor(final Cursor newCursor) { in swapCursor() argument
68 mSectionIndexer = new ContactSectionIndexer(newCursor); in swapCursor()
69 return super.swapCursor(newCursor); in swapCursor()
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSlicesDatabaseHelperTest.java97 Cursor newCursor = mDatabase.rawQuery("SELECT * FROM slices_index", null); in testUpgrade_dropsOldData() local
98 assertThat(newCursor.getCount()).isEqualTo(0); in testUpgrade_dropsOldData()
/packages/apps/Dialer/java/com/android/dialer/calllog/ui/
DNewCallLogFragment.java297 public void onLoadFinished(Loader<Cursor> loader, Cursor newCursor) { in onLoadFinished() argument
300 if (newCursor == null) { in onLoadFinished()
310 CallLogDatabaseComponent.get(getContext()).coalescer().coalesce(newCursor); in onLoadFinished()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/
DPeopleAndOptionsFragment.java191 public Cursor swapCursor(final Cursor newCursor) { in swapCursor() argument
193 if (newCursor != oldCursor) { in swapCursor()
194 mOptionsCursor = newCursor; in swapCursor()
/packages/apps/Dialer/java/com/android/dialer/searchfragment/cp2/
DContactFilterCursor.java131 MatrixCursor newCursor = new MatrixCursor(Projections.CP2_PROJECTION, coalescedContacts.size()); in createCursor() local
133 newCursor.addRow(contact.toCursorRow()); in createCursor()
135 return newCursor; in createCursor()
/packages/services/Mtp/tests/src/com/android/mtp/
DMtpDatabaseTest.java784 try (final Cursor newCursor = mDatabase.queryChildDocuments( in testFailToReplaceExisitingUnmappedRoots() argument
786 assertEquals(2, newCursor.getCount()); in testFailToReplaceExisitingUnmappedRoots()
787 newCursor.moveToNext(); in testFailToReplaceExisitingUnmappedRoots()
788 assertFalse(oldCursor.getString(0).equals(newCursor.getString(0))); in testFailToReplaceExisitingUnmappedRoots()
789 newCursor.moveToNext(); in testFailToReplaceExisitingUnmappedRoots()
790 assertFalse(oldCursor.getString(0).equals(newCursor.getString(0))); in testFailToReplaceExisitingUnmappedRoots()
/packages/apps/Calendar/src/com/android/calendar/
DUtils.kt415 val newCursor = MatrixCursor(columnNames) in matrixCursorFromCursor() constant
423 newCursor.addRow(data) in matrixCursorFromCursor()
425 return newCursor in matrixCursorFromCursor()
/packages/modules/NetworkStack/src/com/android/networkstack/ipmemorystore/
DIpMemoryStoreDatabase.java534 public Cursor newCursor(final SQLiteDatabase db, final SQLiteCursorDriver masterQuery, in newCursor() method in IpMemoryStoreDatabase.CustomCursorFactory