Searched refs:newCursor (Results 1 – 10 of 10) sorted by relevance
240 public Cursor swapCursor(final Cursor newCursor) { in swapCursor() argument241 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()
153 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()
67 public Cursor swapCursor(final Cursor newCursor) { in swapCursor() argument68 mSectionIndexer = new ContactSectionIndexer(newCursor); in swapCursor()69 return super.swapCursor(newCursor); in swapCursor()
97 Cursor newCursor = mDatabase.rawQuery("SELECT * FROM slices_index", null); in testUpgrade_dropsOldData() local98 assertThat(newCursor.getCount()).isEqualTo(0); in testUpgrade_dropsOldData()
297 public void onLoadFinished(Loader<Cursor> loader, Cursor newCursor) { in onLoadFinished() argument300 if (newCursor == null) { in onLoadFinished()310 CallLogDatabaseComponent.get(getContext()).coalescer().coalesce(newCursor); in onLoadFinished()
191 public Cursor swapCursor(final Cursor newCursor) { in swapCursor() argument193 if (newCursor != oldCursor) { in swapCursor()194 mOptionsCursor = newCursor; in swapCursor()
131 MatrixCursor newCursor = new MatrixCursor(Projections.CP2_PROJECTION, coalescedContacts.size()); in createCursor() local133 newCursor.addRow(contact.toCursorRow()); in createCursor()135 return newCursor; in createCursor()
784 try (final Cursor newCursor = mDatabase.queryChildDocuments( in testFailToReplaceExisitingUnmappedRoots() argument786 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()
415 val newCursor = MatrixCursor(columnNames) in matrixCursorFromCursor() constant423 newCursor.addRow(data) in matrixCursorFromCursor()425 return newCursor in matrixCursorFromCursor()
534 public Cursor newCursor(final SQLiteDatabase db, final SQLiteCursorDriver masterQuery, in newCursor() method in IpMemoryStoreDatabase.CustomCursorFactory