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.java187 private void changeSuggestions(SuggestionCursor newCursor) { in changeSuggestions() argument
189 Log.d(TAG, "changeCursor(" + newCursor + ") count=" + in changeSuggestions()
190 (newCursor == null ? 0 : newCursor.getCount())); in changeSuggestions()
192 if (newCursor == mCurrentSuggestions) { in changeSuggestions()
193 if (newCursor != null) { in changeSuggestions()
199 mCurrentSuggestions = 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/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/Settings/tests/robotests/src/com/android/settings/slices/
DSlicesDatabaseHelperTest.java94 Cursor newCursor = mDatabase.rawQuery("SELECT * FROM slices_index", null); in testUpgrade_dropsOldData() local
95 assertThat(newCursor.getCount()).isEqualTo(0); in testUpgrade_dropsOldData()
/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.java785 try (final Cursor newCursor = mDatabase.queryChildDocuments( in testFailToReplaceExisitingUnmappedRoots() argument
787 assertEquals(2, newCursor.getCount()); in testFailToReplaceExisitingUnmappedRoots()
788 newCursor.moveToNext(); in testFailToReplaceExisitingUnmappedRoots()
789 assertFalse(oldCursor.getString(0).equals(newCursor.getString(0))); in testFailToReplaceExisitingUnmappedRoots()
790 newCursor.moveToNext(); in testFailToReplaceExisitingUnmappedRoots()
791 assertFalse(oldCursor.getString(0).equals(newCursor.getString(0))); in testFailToReplaceExisitingUnmappedRoots()
/packages/apps/Calendar/src/com/android/calendar/
DUtils.java432 MatrixCursor newCursor = new MatrixCursor(columnNames); in matrixCursorFromCursor() local
440 newCursor.addRow(data); in matrixCursorFromCursor()
442 return newCursor; in matrixCursorFromCursor()
/packages/modules/NetworkStack/src/com/android/server/connectivity/ipmemorystore/
DIpMemoryStoreDatabase.java530 public Cursor newCursor(final SQLiteDatabase db, final SQLiteCursorDriver masterQuery, in newCursor() method in IpMemoryStoreDatabase.CustomCursorFactory