Searched refs:resultCursor (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Settings/src/com/android/settings/slices/ |
D | SlicesDatabaseAccessor.java | 102 try (Cursor resultCursor = database.query(TABLE_SLICES_INDEX, columns, in getSliceUris() argument 105 if (!resultCursor.moveToFirst()) { in getSliceUris() 110 final Uri uri = Uri.parse(resultCursor.getString(0 /* SLICE_URI */)); in getSliceUris() 115 } while (resultCursor.moveToNext()); in getSliceUris() 126 final Cursor resultCursor = database.query(TABLE_SLICES_INDEX, SELECT_COLUMNS_ALL, in getIndexedSliceData() local 129 int numResults = resultCursor.getCount(); in getIndexedSliceData() 132 resultCursor.close(); in getIndexedSliceData() 137 resultCursor.close(); in getIndexedSliceData() 142 resultCursor.moveToFirst(); in getIndexedSliceData() 143 return resultCursor; in getIndexedSliceData()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapVcardManagerNestedClassesTest.java | 198 Cursor resultCursor = ContactCursorFilter.filterByOffset(contactCursor, offset); in ContactCursorFilter_filterByOffset() local 201 assertThat(resultCursor.getCount()).isEqualTo(1); in ContactCursorFilter_filterByOffset() 202 assertThat(getContactsIdFromCursor(resultCursor, 0)).isEqualTo(1003); in ContactCursorFilter_filterByOffset() 228 Cursor resultCursor = in ContactCursorFilter_filterByRange() local 232 assertThat(resultCursor.getCount()).isEqualTo(3); in ContactCursorFilter_filterByRange() 233 assertThat(getContactsIdFromCursor(resultCursor, 0)).isEqualTo(1002); in ContactCursorFilter_filterByRange() 234 assertThat(getContactsIdFromCursor(resultCursor, 1)).isEqualTo(1003); in ContactCursorFilter_filterByRange() 235 assertThat(getContactsIdFromCursor(resultCursor, 2)).isEqualTo(1004); in ContactCursorFilter_filterByRange()
|
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
D | UsbSettingsStorage.java | 80 Cursor resultCursor = queryFor(db, device)) { in getSettings() 81 if (resultCursor.getCount() > 1) { in getSettings() 83 + " returned " + resultCursor.getCount() + " results"); in getSettings() 85 if (resultCursor.getCount() == 0) { in getSettings() 89 List<UsbDeviceSettings> settings = constructSettings(resultCursor); in getSettings() 135 Cursor resultCursor = db.query( in getAllSettings() 143 return constructSettings(resultCursor); in getAllSettings()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestDocumentsProvider.java | 141 final MatrixCursor resultCursor = new MatrixCursor(columnNames, count); in filterCursorByString() local 150 final MatrixCursor.RowBuilder builder = resultCursor.newRow(); in filterCursorByString() 169 return resultCursor; in filterCursorByString()
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/query/ |
D | DatabaseResultTask.java | 222 try (Cursor resultCursor = database.query(TABLE_PREFS_INDEX, SELECT_COLUMNS, in query() argument 225 return mConverter.convertCursor(resultCursor, baseRank, mSiteMapManager); in query()
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/ |
D | PickerDbFacade.java | 943 List<Cursor> resultCursor = new ArrayList<>(); in queryMediaForUiWithIdSelection() local 949 batchedQueryForIdSelection(query, resultCursor, null, localIds); in queryMediaForUiWithIdSelection() 951 batchedQueryForIdSelection(query, resultCursor, getCloudProvider(), in queryMediaForUiWithIdSelection() 955 Cursor[] resultCursorsAsArray = resultCursor.toArray(new Cursor[0]); in queryMediaForUiWithIdSelection() 963 private void batchedQueryForIdSelection(QueryFilter query, List<Cursor> resultCursor, in batchedQueryForIdSelection() argument 982 resultCursor.add( in batchedQueryForIdSelection()
|