Home
last modified time | relevance | path

Searched refs:selection (Results 1 – 25 of 475) sorted by relevance

12345678910>>...19

/aosp12/packages/apps/Dialer/java/com/android/dialer/common/database/
H A DSelection.java70 private final String selection; field in Selection
74 this.selection = selection; in Selection()
80 return selection; in getSelection()
89 return selection.isEmpty(); in isEmpty()
127 return fromString("NOT " + selection.getSelection(), selection.getSelectionArgs()); in not()
183 if (selection == null) { in Builder()
187 this.selection.append(parenthesized(selection)); in Builder()
194 this.selection.append(selection.getSelection()); in Builder()
210 if (selection.isEmpty()) { in and()
217 this.selection.append(selection.getSelection()); in and()
[all …]
/aosp12/system/extras/simpleperf/
H A Devent_selection_set.cpp230 !IsEventAttrSupported(selection->event_attr, selection->event_type_modifier.name)) { in BuildAndCheckEventSelection()
238 selection->event_fds.clear(); in BuildAndCheckEventSelection()
261 EventSelection selection; in AddEventGroup() local
356 for (auto& selection : group) { in UnionSampleType() local
364 for (auto& selection : group) { in SetEnableOnExec() local
394 for (auto& selection : group) { in SampleIdAll() local
425 for (auto& selection : group) { in SetBranchSampling() local
509 selection = &group[0]; in SetTracepointFilter()
513 if (selection == nullptr) { in SetTracepointFilter()
568 for (auto& selection : group) { in OpenEventFilesOnGroup() local
[all …]
/aosp12/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
H A DDragStartListenerTest.java27 import androidx.recyclerview.selection.Selection;
131 assertTrue(selection.size() == 1); in testDragStart_nonSelectedItem()
132 assertTrue(selection.contains("1234")); in testDragStart_nonSelectedItem()
138 selection.add("1234"); in testDragStart_selectedItem()
139 selection.add("5678"); in testDragStart_selectedItem()
144 assertTrue(selection.size() == 2); in testDragStart_selectedItem()
145 assertTrue(selection.contains("1234")); in testDragStart_selectedItem()
152 selection.add("5678"); in testDragStart_newNonSelectedItem()
157 assertTrue(selection.size() == 1); in testDragStart_newNonSelectedItem()
166 selection.add("5678"); in testCtrlDragStart_newNonSelectedItem()
[all …]
/aosp12/packages/apps/Calendar/src/com/android/calendar/alerts/
H A DDismissAlarmsService.java74 String selection; in onHandleIntent() local
118 selection.append(CalendarAlerts.STATE); in buildMultipleEventsQuery()
119 selection.append("="); in buildMultipleEventsQuery()
122 selection.append(" AND ("); in buildMultipleEventsQuery()
124 selection.append("="); in buildMultipleEventsQuery()
125 selection.append(eventIds[0]); in buildMultipleEventsQuery()
127 selection.append(" OR "); in buildMultipleEventsQuery()
129 selection.append("="); in buildMultipleEventsQuery()
130 selection.append(eventIds[i]); in buildMultipleEventsQuery()
132 selection.append(")"); in buildMultipleEventsQuery()
[all …]
/aosp12/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
H A DMockContentProvider.java96 mSelection = selection; in withSelection()
330 mSelection = Preconditions.checkNotNull(selection); in withSelection()
393 @Nullable String selection, in Update() argument
397 mSelection = selection; in Update()
425 @Nullable String selection, in equals() argument
428 Objects.equals(mSelection, selection) && in equals()
502 @Nullable String selection, in expectUpdate() argument
582 @Nullable String selection, in update() argument
606 @Nullable String selection, in updateToString() argument
620 if (delete.equals(uri, selection, selectionArgs)) { in delete()
[all …]
/aosp12/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
H A DMmsSmsProvider.java358 selection = concatSelections( in query()
407 selection, in query()
419 || selection != null in query()
461 || selection != null in query()
547 String selection = "address=?"; in getSingleAddressId() local
926 selection, in getFirstLockedMessage()
932 selection, in getFirstLockedMessage()
1031 selection, in getMessagesByPhoneNumber()
1035 selection, in getMessagesByPhoneNumber()
1234 public int delete(Uri uri, String selection, in delete() argument
[all …]
H A DCarrierProvider.java61 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()
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/files/
H A DActionHandler.java40 import androidx.recyclerview.selection.Selection;
142 if (selection.isEmpty()) { in openSelectedInNewWindow()
146 assert(selection.size() == 1); in openSelectedInNewWindow()
232 if (selection.isEmpty()) { in getSelectedOrFocused()
235 selection.add(focusModelId); in getSelectedOrFocused()
239 return selection; in getSelectedOrFocused()
247 if (selection.isEmpty()) { in cutToClipboard()
268 if (selection.isEmpty()) { in copyToClipboard()
283 if (selection.isEmpty() || selection.size() > 1) { in viewInOwner()
302 if (selection.isEmpty()) { in showDeleteDialog()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
H A DRecoverableKeyStoreDb.java131 String selection = in getKey() local
140 selection, in getKey() argument
208 String selection = in getStatusForAllKeys() local
216 selection, in getStatusForAllKeys() argument
246 String selection = in setRecoveryStatus() local
275 String selection = in getAllKeys() local
289 selection, in getAllKeys() argument
359 selection, in getUserSerialNumbers() argument
415 String selection = in invalidateKeysForUserIdOnCustomScreenLock() local
428 String selection = in getPlatformKeyGenerationId() local
[all …]
/aosp12/packages/apps/Gallery2/src/com/android/photos/data/
H A DPhotoProvider.java275 selection = addIdToSelection(match, selection); in deleteInTransaction()
277 return deleteCascade(uri, match, selection, selectionArgs); in deleteInTransaction()
318 selection = addIdToSelection(match, selection); in query()
337 selection = addIdToSelection(match, selection); in updateInTransaction()
340 rowsUpdated = db.update(table, values, selection, selectionArgs); in updateInTransaction()
350 protected static String addIdToSelection(int match, String selection) { in addIdToSelection() argument
359 return selection; in addIdToSelection()
361 return DatabaseUtils.concatenateWhere(selection, where); in addIdToSelection()
487 photoSelectionFromAlbums(selection), selectionArgs); in deleteCascade()
499 int deleted = db.delete(table, selection, selectionArgs); in deleteCascade()
[all …]
/aosp12/packages/services/Mtp/src/com/android/mtp/
H A DMapper.java190 final String selection; in startAddingDocuments() local
193 selection = COLUMN_PARENT_DOCUMENT_ID + " = ?"; in startAddingDocuments()
196 selection = COLUMN_PARENT_DOCUMENT_ID + " IS NULL"; in startAddingDocuments()
242 String selection, in putDocuments() argument
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()
370 final String selection; in cancelAddingDocuments() local
373 selection = COLUMN_PARENT_DOCUMENT_ID + " = ?"; in cancelAddingDocuments()
376 selection = COLUMN_PARENT_DOCUMENT_ID + " IS NULL"; in cancelAddingDocuments()
[all …]
/aosp12/packages/apps/Dialer/java/com/android/dialer/blocking/
H A DFilteredNumberProvider.java64 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 …]
/aosp12/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteQueryBuilder.java502 return query(db, projectionIn, selection, selectionArgs, in query()
550 projectionIn, selection, groupBy, having, in query()
728 final String unwrappedSql = buildDelete(selection); in delete()
860 String where = computeWhere(selection); in buildQuery()
929 final String where = computeWhere(selection); in buildUpdate()
935 public String buildDelete(String selection) { in buildDelete() argument
940 final String where = computeWhere(selection); in buildDelete()
990 String selection, in buildUnionSubQuery() argument
1010 projectionIn, selection, groupBy, having, in buildUnionSubQuery()
1029 String selection, in buildUnionSubQuery() argument
[all …]
/aosp12/packages/providers/MediaProvider/src/com/android/providers/media/util/
H A DSQLiteQueryBuilder.java523 projectionIn, selection, groupBy, having, in query()
532 if (isStrict() && hasUserWhere(selection)) { in query()
652 if (isStrict() && hasUserWhere(selection)) {
705 return delete(db, selection, selectionArgs);
729 final String unwrappedSql = buildDelete(selection);
734 if (isStrict() && hasUserWhere(selection)) {
770 return !Strings.isNullOrEmpty(selection);
882 String where = computeWhere(selection);
993 final String where = computeWhere(selection);
999 public String buildDelete(String selection) {
[all …]
/aosp12/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/query/
H A DDatabaseResultTask.java177 return query(whereClause, selection, baseRank); in firstWordQuery()
193 return query(whereClause, selection, baseRank); in secondaryWordQuery()
208 return query(whereClause, selection, baseRank); in anyWordQuery()
224 selection, null, null, null)) { in query() argument
277 String[] selection = new String[size]; in buildSingleWordSelection() local
280 selection[i] = query; in buildSingleWordSelection()
282 return selection; in buildSingleWordSelection()
294 String[] selection = new String[size]; in buildAnyWordSelection() local
299 selection[i] = query; in buildAnyWordSelection()
300 selection[i + 1] = subStringQuery; in buildAnyWordSelection()
[all …]
/aosp12/frameworks/base/core/java/android/content/
H A DAsyncQueryHandler.java52 public String selection; field in AsyncQueryHandler.WorkerArgs
80 args.selection, args.selectionArgs, in handleMessage()
100 args.result = resolver.update(args.uri, args.values, args.selection, in handleMessage()
105 args.result = resolver.delete(args.uri, args.selection, args.selectionArgs); in handleMessage()
165 String[] projection, String selection, String[] selectionArgs, in startQuery() argument
175 args.selection = selection; in startQuery()
234 ContentValues values, String selection, String[] selectionArgs) { in startUpdate() argument
244 args.selection = selection; in startUpdate()
262 String selection, String[] selectionArgs) { in startDelete() argument
271 args.selection = selection; in startDelete()
/aosp12/packages/providers/TvProvider/src/com/android/providers/tv/util/
H A DSqlParams.java26 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()
/aosp12/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
H A DBlockedNumberProvider.java193 public int delete(@NonNull Uri uri, @Nullable String selection, in delete() argument
218 throwForNonEmptySelection(selection); in deleteBlockedNumberWithId()
230 if (!TextUtils.isEmpty(selection)) { in deleteBlockedNumber()
232 Utils.wrapSelectionWithParens(selection), in deleteBlockedNumber()
238 selection, selectionArgs); in deleteBlockedNumber()
279 throwForNonEmptySelection(selection); in queryBlockedListWithId()
300 private void throwForNonEmptySelection(String selection) { in throwForNonEmptySelection() argument
301 if (!TextUtils.isEmpty(selection)) { in throwForNonEmptySelection()
396 String selection = selectionBuilder.toString(); in unblock() local
399 selection, Arrays.toString(selectionArgs))); in unblock()
[all …]
/aosp12/packages/apps/TV/common/src/com/android/tv/common/util/sql/
H A DSqlParams.java29 public SqlParams(String tables, @Nullable String selection, @Nullable String... selectionArgs) { in SqlParams() argument
31 setWhere(selection, selectionArgs); in SqlParams()
50 public void setWhere(String selection, String... selectionArgs) { in setWhere() argument
51 mSelection = selection; in setWhere()
55 public void appendWhere(String selection, String... selectionArgs) { in appendWhere() argument
56 mSelection = DatabaseUtils.concatenateWhere(mSelection, selection); in appendWhere()
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
H A DDragStartListener.java27 import androidx.recyclerview.selection.MutableSelection;
28 import androidx.recyclerview.selection.Selection;
29 import androidx.recyclerview.selection.SelectionTracker;
122 Selection<String> selection = getSelectionToBeCopied(modelId, event); in startDrag() local
124 final List<DocumentInfo> srcs = mDocsConverter.apply(selection); in startDrag()
149 MutableSelection<String> selection = new MutableSelection<>(); in getSelectionToBeCopied() local
159 mSelectionMgr.copySelection(selection); in getSelectionToBeCopied()
161 selection.add(modelId); in getSelectionToBeCopied()
164 return selection; in getSelectionToBeCopied()
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/
H A DDatabaseWrapper.java198 final String[] projection, final String selection, in explainQueryPlan() argument
207 selection, in explainQueryPlan()
265 searchTable, selection, cursor.getCount())); in query()
274 searchTable, columns, selection, selectionArgs, in query()
282 explainQueryPlan(qb, mDatabase, projection, selection, queryArgs, in query()
296 qb.getTables(), selection, cursor.getCount())); in query()
301 public long queryNumEntries(final String table, final String selection, in queryNumEntries() argument
314 selection, retval)); in queryNumEntries()
338 final String selection, final String[] selectionArgs) { in update() argument
346 count = mDatabase.update(table, values, selection, selectionArgs); in update()
[all …]
/aosp12/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
H A DBugStorageProvider.java246 @Nullable String selection, in query() argument
257 @Nullable String selection, in query() argument
271 if (selection != null || selectionArgs != null) { in query()
275 selection = COLUMN_ID + "=?"; in query()
335 if (selection != null || selectionArgs != null) { in delete()
345 if (selection != null || selectionArgs != null) { in delete()
349 selection = COLUMN_ID + " = ?"; in delete()
356 if (selection != null || selectionArgs != null) { in delete()
364 selection = COLUMN_ID + " = ?"; in delete()
380 @Nullable String selection, in update() argument
[all …]
/aosp12/packages/modules/adb/tools/
H A Dadb_usbreset.cpp69 std::variant<std::monostate, AllDevices, SingleDevice, Serial> selection; in main() local
81 SetOption(&selection, AllDevices{}); in main()
83 SetOption(&selection, Serial{optarg}); in main()
85 SetOption(&selection, Serial{optarg}); in main()
91 if (std::get_if<std::monostate>(&selection)) { in main()
94 SetOption(&selection, Serial{env}); in main()
158 if (auto s = std::get_if<Serial>(&selection)) { in main()
170 } else if (std::get_if<SingleDevice>(&selection) && selected_devices.size() != 1) { in main()
/aosp12/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DProfileProvider.java66 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
68 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query()
72 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
77 return mDelegate.queryLocal(uri, projection, selection, selectionArgs, sortOrder, -1, in query()
91 protected int updateInTransaction(Uri uri, ContentValues values, String selection, in updateInTransaction() argument
94 return mDelegate.updateInTransaction(uri, values, selection, selectionArgs); in updateInTransaction()
98 protected int deleteInTransaction(Uri uri, String selection, String[] selectionArgs) { in deleteInTransaction() argument
100 return mDelegate.deleteInTransaction(uri, selection, selectionArgs); in deleteInTransaction()
/aosp12/packages/apps/Dialer/java/com/android/dialer/calllog/database/
H A DAnnotatedCallLogContentProvider.java88 @Nullable String selection, in query() argument
99 queryBuilder.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
109 queryBuilder.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
124 queryBuilder.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
192 @NonNull Uri uri, @Nullable String selection, @Nullable String[] selectionArgs) { in delete() argument
204 selection = getSelectionWithId(id); in delete()
211 int rows = database.delete(AnnotatedCallLog.TABLE, selection, selectionArgs); in delete()
226 @Nullable String selection, in update() argument
237 int rows = database.update(AnnotatedCallLog.TABLE, values, selection, selectionArgs); in update()
252 selection = getSelectionWithId(ContentUris.parseId(uri)); in update()
[all …]

12345678910>>...19