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()
187 private void changeSuggestions(SuggestionCursor newCursor) { in changeSuggestions() argument189 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()
67 public Cursor swapCursor(final Cursor newCursor) { in swapCursor() argument68 mSectionIndexer = new ContactSectionIndexer(newCursor); in swapCursor()69 return super.swapCursor(newCursor); in swapCursor()
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()
94 Cursor newCursor = mDatabase.rawQuery("SELECT * FROM slices_index", null); in testUpgrade_dropsOldData() local95 assertThat(newCursor.getCount()).isEqualTo(0); in testUpgrade_dropsOldData()
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()
785 try (final Cursor newCursor = mDatabase.queryChildDocuments( in testFailToReplaceExisitingUnmappedRoots() argument787 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()
432 MatrixCursor newCursor = new MatrixCursor(columnNames); in matrixCursorFromCursor() local440 newCursor.addRow(data); in matrixCursorFromCursor()442 return newCursor; in matrixCursorFromCursor()
530 public Cursor newCursor(final SQLiteDatabase db, final SQLiteCursorDriver masterQuery, in newCursor() method in IpMemoryStoreDatabase.CustomCursorFactory