/packages/apps/Dialer/java/com/android/dialer/common/database/ |
D | Selection.java | 70 private final String selection; field in Selection 73 private Selection(@NonNull String selection, @NonNull String[] selectionArgs) { in Selection() argument 74 this.selection = selection; in Selection() 80 return selection; in getSelection() 89 return selection.isEmpty(); in isEmpty() 113 public static Selection fromString(@Nullable String selection, @Nullable String... args) { in fromString() argument 114 return new Builder(selection, args == null ? Collections.emptyList() : Arrays.asList(args)) in fromString() 119 public static Selection fromString(@Nullable String selection, Collection<String> args) { in fromString() argument 120 return new Builder(selection, args).build(); in fromString() 125 public static Selection not(@NonNull Selection selection) { in not() argument [all …]
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/selection/ |
D | GrantsAwareSelectionTest.kt | 17 package com.android.photopicker.core.selection 56 val selection: Selection<SelectionData> = in <lambda>() constant 65 val snapshot = selection.snapshot() in <lambda>() 69 .that(selection.flow.first()) in <lambda>() 76 val selection: Selection<SelectionData> = in testSelectionIsInitialized() constant 87 val snapshot = selection.snapshot() in testSelectionIsInitialized() 88 val flow = selection.flow.first() in testSelectionIsInitialized() 103 val selection: Selection<SelectionData> = in <lambda>() constant 115 .that(selection.add(SelectionData(1))) in <lambda>() 118 .that(selection.toggle(SelectionData(2))) in <lambda>() [all …]
|
D | SelectionImplTest.kt | 17 package com.android.photopicker.core.selection 52 val selection: Selection<SelectionData> = in <lambda>() constant 61 val snapshot = selection.snapshot() in <lambda>() 65 .that(selection.flow.first()) in <lambda>() 72 val selection: Selection<SelectionData> = in testSelectionIsInitialized() constant 83 val snapshot = selection.snapshot() in testSelectionIsInitialized() 84 val flow = selection.flow.first() in testSelectionIsInitialized() 99 val selection: Selection<SelectionData> = in <lambda>() constant 111 .that(selection.add(SelectionData(1))) in <lambda>() 114 .that(selection.toggle(SelectionData(2))) in <lambda>() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/ |
D | DragStartListenerTest.java | 26 import androidx.recyclerview.selection.MutableSelection; 27 import androidx.recyclerview.selection.Selection; 91 (Selection<String> selection) -> { in setUp() 129 Selection<String> selection = mListener.getSelectionToBeCopied("1234", in testDragStart_nonSelectedItem() local 131 assertTrue(selection.size() == 1); in testDragStart_nonSelectedItem() 132 assertTrue(selection.contains("1234")); in testDragStart_nonSelectedItem() 137 MutableSelection<String> selection = new MutableSelection<>(); in testDragStart_selectedItem() local 138 selection.add("1234"); in testDragStart_selectedItem() 139 selection.add("5678"); in testDragStart_selectedItem() 140 mSelectionMgr.replaceSelection(selection); in testDragStart_selectedItem() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | DismissAlarmsService.kt | 56 val selection: String in onHandleIntent() constant 61 selection = in onHandleIntent() 66 selection = buildMultipleEventsQuery(eventIds) in onHandleIntent() 72 selection = CalendarAlerts.STATE.toString() + "=" + CalendarAlerts.STATE_FIRED in onHandleIntent() 79 resolver.update(uri, values, selection, null) in onHandleIntent() 98 val selection = StringBuilder() in buildMultipleEventsQuery() constant 99 selection.append(CalendarAlerts.STATE) in buildMultipleEventsQuery() 100 selection.append("=") in buildMultipleEventsQuery() 101 selection.append(CalendarAlerts.STATE_FIRED) in buildMultipleEventsQuery() 103 selection.append(" AND (") in buildMultipleEventsQuery() [all …]
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | MmsSmsProvider.java | 339 String selection, String[] selectionArgs, String sortOrder) { in query() argument 356 SqlQueryChecker.checkQueryParametersForSubqueries(projection, selection, sortOrder); in query() 387 selection = DatabaseUtils.concatenateWhere(selection, selectionBySubIds); in query() 389 cursor = getCompleteConversations(projection, selection, sortOrder, smsTable, in query() 399 selection = concatSelections( in query() 400 selection, Threads.TYPE + "=" + threadType); in query() 408 projection, selection, selectionArgs, sortOrder); in query() 414 selection = DatabaseUtils.concatenateWhere(selection, selectionBySubIds); in query() 417 projection, selection, sortOrder, smsTable, pduTable); in query() 425 selection = DatabaseUtils.concatenateWhere(selection, selectionBySubIds); in query() [all …]
|
D | CarrierProvider.java | 61 public Cursor query(Uri uri, String[] projectionIn, String selection, in query() argument 67 + " selection=" + selection in query() 74 Cursor c = qb.query(db, projectionIn, selection, selectionArgs, null, null, sortOrder); in query() 92 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument 96 + " selection={" + selection + "}" in delete() 97 + " selection=" + selection in delete() 101 selection, selectionArgs); in delete() 107 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument 113 + " selection=" + selection in update() 117 values, selection, selectionArgs); in update()
|
D | SatelliteProvider.java | 45 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 51 + " selection=" + selection in query() 58 Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query() 85 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument 89 + " selection={" + selection + "}" in delete() 90 + " selection=" + selection in delete() 94 selection, selectionArgs); in delete() 100 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
|
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/ |
D | MockContentProvider.java | 95 public Query withSelection(String selection, String... selectionArgs) { in withSelection() argument 96 mSelection = selection; in withSelection() 136 public boolean equals(Uri uri, String[] projection, String selection, in equals() argument 150 if (!mAnySelection && !Objects.equals(selection, mSelection)) { in equals() 329 public Delete withSelection(String selection, @Nullable String[] selectionArgs) { in withSelection() argument 330 mSelection = Preconditions.checkNotNull(selection); in withSelection() 368 private boolean equals(Uri uri, String selection, String[] selectionArgs) { in equals() argument 369 return mUri.equals(uri) && Objects.equals(mSelection, selection) in equals() 393 @Nullable String selection, in Update() argument 397 mSelection = selection; in Update() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
D | ActionHandler.java | 38 import androidx.recyclerview.selection.ItemDetailsLookup.ItemDetails; 39 import androidx.recyclerview.selection.MutableSelection; 40 import androidx.recyclerview.selection.Selection; 141 Selection<String> selection = getStableSelection(); in openSelectedInNewWindow() local 142 if (selection.isEmpty()) { in openSelectedInNewWindow() 146 assert(selection.size() == 1); in openSelectedInNewWindow() 147 DocumentInfo doc = mModel.getDocument(selection.iterator().next()); in openSelectedInNewWindow() 231 final MutableSelection<String> selection = this.getStableSelection(); in getSelectedOrFocused() local 232 if (selection.isEmpty()) { in getSelectedOrFocused() 235 selection.add(focusModelId); in getSelectedOrFocused() [all …]
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
D | PhotoProvider.java | 272 public int deleteInTransaction(Uri uri, String selection, String[] selectionArgs, in deleteInTransaction() argument 275 selection = addIdToSelection(match, selection); in deleteInTransaction() 277 return deleteCascade(uri, match, selection, selectionArgs); in deleteInTransaction() 308 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 310 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query() 314 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 318 selection = addIdToSelection(match, selection); in query() 321 … Cursor c = query(table, projection, selection, selectionArgs, sortOrder, cancellationSignal); in query() 329 public int updateInTransaction(Uri uri, ContentValues values, String selection, in updateInTransaction() argument 337 selection = addIdToSelection(match, selection); in updateInTransaction() [all …]
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/components/mediagrid/ |
D | MediaGridTest.kt | 59 import com.android.photopicker.core.selection.SelectionImpl in <lambda>() 217 selection: SelectionImpl<Media>, in <lambda>() 222 val selected by selection.flow.collectAsStateWithLifecycle() in <lambda>() 226 selection = selected, in <lambda>() 267 val selection = in <lambda>() constant 275 /* selection= */ selection, in <lambda>() 287 val selection = in <lambda>() constant 305 /* selection= */ selection, in <lambda>() 321 val selection = in <lambda>() constant 329 /* selection= */ selection, in <lambda>() [all …]
|
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/data/ |
D | FederatedTrainingTaskDao.java | 83 private void deleteFederatedTrainingTask(String selection, String[] selectionArgs) { in deleteFederatedTrainingTask() argument 92 db.delete(FEDERATED_TRAINING_TASKS_TABLE, selection, selectionArgs); in deleteFederatedTrainingTask() 116 String selection, String[] selectionArgs) { in getFederatedTrainingTask() argument 122 db, selection, selectionArgs); in getFederatedTrainingTask() 127 String selection = FederatedTrainingTaskColumns.JOB_SCHEDULER_JOB_ID + " = ?"; in findAndRemoveTaskByJobId() local 130 Iterables.getOnlyElement(getFederatedTrainingTask(selection, selectionArgs), null); in findAndRemoveTaskByJobId() 133 deleteFederatedTrainingTask(selection, selectionArgs); in findAndRemoveTaskByJobId() 149 String selection = FederatedTrainingTaskColumns.POPULATION_NAME + " = ?"; in findAndRemoveTaskByPopulationName() local 152 Iterables.getOnlyElement(getFederatedTrainingTask(selection, selectionArgs), null); in findAndRemoveTaskByPopulationName() 155 deleteFederatedTrainingTask(selection, selectionArgs); in findAndRemoveTaskByPopulationName() [all …]
|
/packages/services/Mtp/src/com/android/mtp/ |
D | Mapper.java | 190 final String selection; in startAddingDocuments() local 193 selection = COLUMN_PARENT_DOCUMENT_ID + " = ?"; in startAddingDocuments() 196 selection = COLUMN_PARENT_DOCUMENT_ID + " IS NULL"; in startAddingDocuments() 212 selection + " AND " + COLUMN_ROW_STATE + " = ?", in startAddingDocuments() 242 String selection, in putDocuments() argument 262 queryCandidate(selection, args, mappingKeys, values)) { in putDocuments() 319 final String selection; in stopAddingDocuments() local 322 selection = COLUMN_PARENT_DOCUMENT_ID + " = ?"; in stopAddingDocuments() 325 selection = COLUMN_PARENT_DOCUMENT_ID + " IS NULL"; in stopAddingDocuments() 345 COLUMN_ROW_STATE + " = ? AND " + selection, in stopAddingDocuments() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/blocking/ |
D | FilteredNumberProvider.java | 64 Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { in query() argument 78 final Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, null); in query() 123 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument 130 selection = getSelectionWithId(selection, ContentUris.parseId(uri)); in delete() 136 db.delete(DialerDatabaseHelper.Tables.FILTERED_NUMBER_TABLE, selection, selectionArgs); in delete() 144 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument 151 selection = getSelectionWithId(selection, ContentUris.parseId(uri)); in update() 158 DialerDatabaseHelper.Tables.FILTERED_NUMBER_TABLE, values, selection, selectionArgs); in update() 165 private String getSelectionWithId(String selection, long id) { in getSelectionWithId() argument 166 if (TextUtils.isEmpty(selection)) { in getSelectionWithId() [all …]
|
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/ |
D | MainActivity.kt | 46 import com.android.photopicker.core.selection.LocalSelection in <lambda>() 47 import com.android.photopicker.core.selection.Selection in <lambda>() 74 @Inject @ActivityRetainedScoped lateinit var selection: Lazy<Selection<Media>> in <lambda>() variable in com.android.photopicker.MainActivity 159 LocalSelection provides selection.get(), in <lambda>() 190 selection.get().flow.collect { in <lambda>() 230 val snapshot = selection.get().snapshot() in <lambda>() 249 val deselectionSnapshot = selection.get().getDeselection().toHashSet() in <lambda>() 267 private suspend fun onMediaSelectionReady(selection: Set<Media>, deselection: Set<Media>) { in <lambda>() 274 setResultForApp(selection, canSelectMultiple = configuration.selectionLimit > 1) in <lambda>() 283 updateGrantsForApp(selection, deselection, uid) in <lambda>() [all …]
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/preview/ |
D | PreviewFeatureTest.kt | 68 import com.android.photopicker.core.selection.Selection 164 @Inject lateinit var selection: Selection<Media> variable in com.android.photopicker.features.preview.PreviewFeatureTest 325 selection = selection, in testNavigateToPreviewImage() 360 selection = selection, in testNavigateToPreviewVideo() 402 selection = selection, in testPreviewMediaToggleSelection() 424 .that(selection.snapshot()) in testPreviewMediaToggleSelection() 439 .that(selection.snapshot()) in testPreviewMediaToggleSelection() 452 selection = selection, in testNavigateToPreviewSelection() 458 selection.add(TEST_MEDIA_IMAGE) in testNavigateToPreviewSelection() 486 selection = selection, in testPreviewSelectionActions() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | SQLiteQueryBuilder.java | 489 final String selection = queryArgs.getString(QUERY_ARG_SQL_SELECTION); in query() local 495 return query(helper, projectionIn, selection, selectionArgs, groupBy, having, sortOrder, in query() 500 String selection, String[] selectionArgs, String groupBy, in query() argument 503 return query(db, projectionIn, selection, selectionArgs, groupBy, in query() 544 String selection, String[] selectionArgs, String groupBy, in query() argument 552 projectionIn, selection, groupBy, having, in query() 559 enforceStrictGrammar(selection, groupBy, having, sortOrder, limit); in query() 561 if (isStrict() && hasUserWhere(selection)) { in query() 578 final String wrappedSql = buildQuery(projectionIn, wrap(selection), groupBy, in query() 644 @Nullable String selection, @Nullable String[] selectionArgs) { [all …]
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/query/ |
D | DatabaseResultTask.java | 175 final String[] selection = buildSingleWordSelection(query, matchColumns.length); in firstWordQuery() local 177 return query(whereClause, selection, baseRank); in firstWordQuery() 191 final String[] selection = buildSingleWordSelection(query, matchColumns.length); in secondaryWordQuery() local 193 return query(whereClause, selection, baseRank); in secondaryWordQuery() 206 final String[] selection = buildAnyWordSelection(matchColumns.length * 2); in anyWordQuery() local 208 return query(whereClause, selection, baseRank); in anyWordQuery() 219 private Set<SearchResult> query(String whereClause, String[] selection, int baseRank) { in query() argument 224 selection, null, null, null)) { in query() argument 277 String[] selection = new String[size]; in buildSingleWordSelection() local 280 selection[i] = query; in buildSingleWordSelection() [all …]
|
/packages/providers/TvProvider/src/com/android/providers/tv/util/ |
D | SqlParams.java | 26 public SqlParams(String tables, String selection, String... selectionArgs) { in SqlParams() argument 28 setWhere(selection, selectionArgs); in SqlParams() 47 public void setWhere(String selection, String... selectionArgs) { in setWhere() argument 48 mSelection = selection; in setWhere() 52 public void appendWhere(String selection, String... selectionArgs) { in appendWhere() argument 53 mSelection = DatabaseUtils.concatenateWhere(mSelection, selection); in appendWhere()
|
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/inject/ |
D | EmbeddedServiceModule.kt | 32 import com.android.photopicker.core.selection.GrantsAwareSelectionImpl in <lambda>() 33 import com.android.photopicker.core.selection.Selection in <lambda>() 34 import com.android.photopicker.core.selection.SelectionImpl in <lambda>() 35 import com.android.photopicker.core.selection.SelectionStrategy in <lambda>() 36 import com.android.photopicker.core.selection.SelectionStrategy.Companion.determineSelectionStrategy in <lambda>() 81 private lateinit var selection: Selection<Media> in <lambda>() variable in com.android.photopicker.core.EmbeddedServiceModule 100 selection: Lazy<Selection<Media>>, in <lambda>() 116 selection, in <lambda>() 298 if (::selection.isInitialized) { in <lambda>() 299 return selection in <lambda>() [all …]
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/photogrid/ |
D | PhotoGridViewModelTest.kt | 29 import com.android.photopicker.core.selection.SelectionImpl 81 val selection = in testPhotoGridItemClickedUpdatesSelection() constant 103 selection, in testPhotoGridItemClickedUpdatesSelection() 109 .that(selection.snapshot().size) in testPhotoGridItemClickedUpdatesSelection() 119 .that(selection.snapshot()) in testPhotoGridItemClickedUpdatesSelection() 128 .that(selection.snapshot()) in testPhotoGridItemClickedUpdatesSelection() 137 val selection = in testShowsToastWhenSelectionFull() constant 173 selection, in testShowsToastWhenSelectionFull() 179 .that(selection.snapshot().size) in testShowsToastWhenSelectionFull()
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/albumgrid/ |
D | AlbumGridViewModelTest.kt | 29 import com.android.photopicker.core.selection.SelectionImpl 81 val selection = in testAlbumGridItemClickedUpdatesSelection() constant 105 selection, in testAlbumGridItemClickedUpdatesSelection() 111 .that(selection.snapshot().size) in testAlbumGridItemClickedUpdatesSelection() 121 .that(selection.snapshot()) in testAlbumGridItemClickedUpdatesSelection() 130 .that(selection.snapshot()) in testAlbumGridItemClickedUpdatesSelection() 139 val selection = in testAlbumGridShowsToastWhenSelectionFull() constant 175 selection, in testAlbumGridShowsToastWhenSelectionFull() 181 .that(selection.snapshot().size) in testAlbumGridShowsToastWhenSelectionFull()
|
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/ |
D | BlockedNumberProvider.java | 187 public int update(@NonNull Uri uri, @Nullable ContentValues values, @Nullable String selection, in update() argument 196 public int delete(@NonNull Uri uri, @Nullable String selection, in delete() argument 204 numRows = deleteBlockedNumber(selection, selectionArgs); in delete() 207 numRows = deleteBlockedNumberWithId(ContentUris.parseId(uri), selection); in delete() 220 private int deleteBlockedNumberWithId(long id, String selection) { in deleteBlockedNumberWithId() argument 221 throwForNonEmptySelection(selection); in deleteBlockedNumberWithId() 229 private int deleteBlockedNumber(String selection, String[] selectionArgs) { in deleteBlockedNumber() argument 233 if (!TextUtils.isEmpty(selection)) { in deleteBlockedNumber() 235 Utils.wrapSelectionWithParens(selection), in deleteBlockedNumber() 241 selection, selectionArgs); in deleteBlockedNumber() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | DatabaseWrapper.java | 198 final String[] projection, final String selection, in explainQueryPlan() argument 207 selection, in explainQueryPlan() 245 final String selection, final String[] selectionArgs, final String groupBy, in query() argument 250 explainQueryPlan(qb, mDatabase, projection, selection, selectionArgs, in query() 259 final Cursor cursor = mDatabase.query(searchTable, projection, selection, selectionArgs, in query() 265 searchTable, selection, cursor.getCount())); in query() 271 final String selection, final String[] selectionArgs, final String groupBy, in query() argument 274 searchTable, columns, selection, selectionArgs, in query() 279 final String[] projection, final String selection, final String[] queryArgs, in query() argument 282 explainQueryPlan(qb, mDatabase, projection, selection, queryArgs, in query() [all …]
|