Home
last modified time | relevance | path

Searched refs:selectionArgs (Results 1 – 25 of 199) sorted by relevance

12345678

/packages/apps/Gallery2/src/com/android/photos/data/
DPhotoProvider.java272 public int deleteInTransaction(Uri uri, String selection, String[] selectionArgs, in deleteInTransaction() argument
276 selectionArgs = addIdToSelectionArgs(match, uri, selectionArgs); 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
319 selectionArgs = addIdToSelectionArgs(match, uri, selectionArgs); in query()
321 … Cursor c = query(table, projection, selection, selectionArgs, sortOrder, cancellationSignal); in query()
330 String[] selectionArgs, boolean callerIsSyncAdapter) { in updateInTransaction() argument
338 selectionArgs = addIdToSelectionArgs(match, uri, selectionArgs); in updateInTransaction()
[all …]
DSQLiteContentProvider.java84 String[] selectionArgs, boolean callerIsSyncAdapter); in updateInTransaction() argument
90 public abstract int deleteInTransaction(Uri uri, String selection, String[] selectionArgs, in deleteInTransaction() argument
159 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
167 count = updateInTransaction(uri, values, selection, selectionArgs, in update()
176 count = updateInTransaction(uri, values, selection, selectionArgs, callerIsSyncAdapter); in update()
183 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
191 count = deleteInTransaction(uri, selection, selectionArgs, callerIsSyncAdapter); in delete()
199 count = deleteInTransaction(uri, selection, selectionArgs, callerIsSyncAdapter); in delete()
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DMockContentProvider.java95 public Query withSelection(String selection, String... selectionArgs) { in withSelection() argument
97 mSelectionArgs = selectionArgs; in withSelection()
137 String[] selectionArgs, String sortOrder) { in equals() argument
154 if (!mAnySelection && !Arrays.equals(selectionArgs, mSelectionArgs)) { in equals()
329 public Delete withSelection(String selection, @Nullable String[] selectionArgs) { in withSelection() argument
331 mSelectionArgs = selectionArgs; in withSelection()
368 private boolean equals(Uri uri, String selection, String[] selectionArgs) { in equals() argument
370 && Arrays.equals(mSelectionArgs, selectionArgs); in equals()
394 @Nullable String[] selectionArgs) { in Update() argument
398 mSelectionArgs = selectionArgs; in Update()
[all …]
DForwardingContentProvider.java52 String[] selectionArgs, String sortOrder) { in query() argument
54 return mClient.query(url, projection, selection, selectionArgs, sortOrder); in query()
63 String[] selectionArgs, String sortOrder, CancellationSignal cancellationSignal) { in query() argument
65 return mClient.query(url, projection, selection, selectionArgs, sortOrder, in query()
109 public synchronized int delete(Uri url, String selection, String[] selectionArgs) { in delete() argument
111 return mClient.delete(url, selection, selectionArgs); in delete()
119 String selection, String[] selectionArgs) { in update() argument
121 return mClient.update(url, values, selection, selectionArgs); in update()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java852 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
862 return queryInternal(uri, projection, selection, selectionArgs, sortOrder); in query()
939 String selection, String[] selectionArgs, String sortOrder, in queryWorkProfileProvider() argument
962 selection, selectionArgs, sortOrder); in queryWorkProfileProvider()
967 String[] selectionArgs, String sortOrder) { in queryInternal() argument
985 return mDbHelper.getSyncState().query(db, projection, selection, selectionArgs, in queryInternal()
991 selectionArgs = insertSelectionArg(selectionArgs, in queryInternal()
994 selectionArgs, sortOrder); in queryInternal()
1001 selectionArgs, sortOrder, corpAdditionalPathSegments); in queryInternal()
1013 selectionArgs = insertSelectionArg(selectionArgs, uri.getPathSegments().get(1)); in queryInternal()
[all …]
/packages/apps/Dialer/java/com/android/dialer/common/database/
DSelection.java71 private final String[] selectionArgs; field in Selection
73 private Selection(@NonNull String selection, @NonNull String[] selectionArgs) { in Selection() argument
75 this.selectionArgs = selectionArgs; in Selection()
85 return selectionArgs; in getSelectionArgs()
178 private final List<String> selectionArgs = new ArrayList<>(); field in Selection.Builder
189 selectionArgs.addAll(args); in Builder()
195 Collections.addAll(selectionArgs, selection.selectionArgs); in Builder()
205 selectionArgs.toArray(new String[selectionArgs.size()])); in build()
218 Collections.addAll(selectionArgs, selection.getSelectionArgs()); in and()
232 Collections.addAll(selectionArgs, selection.getSelectionArgs()); in or()
/packages/apps/Dialer/java/com/android/dialer/database/
DCallLogQueryHandler.java107 List<String> selectionArgs = new ArrayList<>(); in fetchVoicemailStatus() local
111 .appendOmtpVoicemailStatusSelectionClause(context, where, selectionArgs); in fetchVoicemailStatus()
121 selectionArgs.toArray(new String[selectionArgs.size()]), in fetchVoicemailStatus()
135 List<String> selectionArgs = new ArrayList<>(); in fetchVoicemailUnreadCount() local
139 .appendOmtpVoicemailSelectionClause(context, where, selectionArgs); in fetchVoicemailUnreadCount()
147 selectionArgs.toArray(new String[selectionArgs.size()]), in fetchVoicemailUnreadCount()
155 List<String> selectionArgs = new ArrayList<>(); in fetchCalls() local
159 selectionArgs.add(Integer.toString(Calls.BLOCKED_TYPE)); in fetchCalls()
170 selectionArgs.add(Integer.toString(callType)); in fetchCalls()
178 selectionArgs.add(Long.toString(newerThan)); in fetchCalls()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsProvider2.java2200 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
2208 return mProfileProvider.update(uri, values, selection, selectionArgs); in update()
2211 return super.update(uri, values, selection, selectionArgs); in update()
2215 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
2222 return mProfileProvider.delete(uri, selection, selectionArgs); in delete()
2225 return super.delete(uri, selection, selectionArgs); in delete()
2928 final String[] selectionArgs = { in deleteDataGroupMembership() local
2934 db.delete(Tables.DATA, SELECTION_GROUPMEMBERSHIP_DATA, selectionArgs); in deleteDataGroupMembership()
3128 private int deleteData(String selection, String[] selectionArgs, boolean callerIsSyncAdapter) { in deleteData() argument
3139 selection, selectionArgs, null); in deleteData()
[all …]
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()
92 String[] selectionArgs) { 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()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsProvider.java325 String selection, String[] selectionArgs, String sortOrder) { in query() argument
352 projection, selection, selectionArgs, sortOrder); in query()
365 selectionArgs, sortOrder); in query()
370 selectionArgs, sortOrder); in query()
389 selectionArgs, in query()
398 selectionArgs, in query()
410 || selectionArgs != null in query()
452 || selectionArgs != null in query()
486 finalSelection, selectionArgs, null, null, finalOrder); in query()
491 selectionArgs, sortOrder, smsTable, pduTable); in query()
[all …]
DCarrierProvider.java62 String[] selectionArgs, String sortOrder) { in query() argument
68 + " selectionArgs=" + Arrays.toString(selectionArgs)); 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
98 + " selectionArgs=" + Arrays.toString(selectionArgs)); in delete()
101 selection, selectionArgs); in delete()
107 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
114 + " selectionArgs=" + Arrays.toString(selectionArgs)); in update()
117 values, selection, selectionArgs); in update()
DRcsProvider.java324 String[] selectionArgs, String sortOrder) { in query() argument
327 bundle.putStringArray(ContentResolver.QUERY_ARG_SQL_SELECTION_ARGS, selectionArgs); in query()
338 String[] selectionArgs = null; in query() local
343 selectionArgs = queryArgs.getStringArray( in query()
365 selectionArgs, sortOrder); in query()
377 selectionArgs, sortOrder); in query()
402 return mMessageHelper.queryIncomingMessageWithSelection(selection, selectionArgs); in query()
406 return mMessageHelper.queryOutgoingMessageWithSelection(selection, selectionArgs); in query()
417 return mMessageHelper.queryAllMessagesOnThread(uri, selection, selectionArgs); in query()
612 public synchronized int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
[all …]
DRcsProviderThreadHelper.java299 Cursor query1to1Thread(String[] projection, String selection, String[] selectionArgs, in query1to1Thread() argument
302 return db.query(RCS_1_TO_1_THREAD_TABLE, projection, selection, selectionArgs, null, in query1to1Thread()
310 Cursor queryGroupThread(String[] projection, String selection, String[] selectionArgs, in queryGroupThread() argument
313 return db.query(RCS_GROUP_THREAD_TABLE, projection, selection, selectionArgs, null, in queryGroupThread()
446 int delete1To1Thread(String selection, String[] selectionArgs) { in delete1To1Thread() argument
448 return db.delete(RCS_1_TO_1_THREAD_TABLE, selection, selectionArgs); in delete1To1Thread()
455 int deleteGroupThread(String selection, String[] selectionArgs) { in deleteGroupThread() argument
457 return db.delete(RCS_GROUP_THREAD_TABLE, selection, selectionArgs); in deleteGroupThread()
464 int update1To1Thread(ContentValues values, String selection, String[] selectionArgs) { in update1To1Thread() argument
473 return db.update(RCS_1_TO_1_THREAD_TABLE, values, selection, selectionArgs); in update1To1Thread()
[all …]
DMmsProvider.java93 String selection, String[] selectionArgs, String sortOrder) { in query() argument
242 selectionArgs, null, null, finalSortOrder); in query()
621 String[] selectionArgs) { in delete() argument
681 selectionArgs, uri); in delete()
683 deletedRows = deleteParts(db, finalSelection, selectionArgs); in delete()
685 deletedRows = deleteTempDrmData(db, finalSelection, selectionArgs); in delete()
687 deletedRows = db.delete(table, finalSelection, selectionArgs); in delete()
697 String selection, String[] selectionArgs, Uri uri) { in deleteMessages() argument
699 selection, selectionArgs, null, null, null); in deleteMessages()
717 int count = db.delete(TABLE_PDU, selection, selectionArgs); in deleteMessages()
[all …]
/packages/apps/Dialer/java/com/android/dialer/preferredsim/impl/
DPreferredSimFallbackProvider.java67 @Nullable String[] selectionArgs, in query() argument
78 selectionArgs, in query()
106 @NonNull Uri uri, @Nullable String selection, @Nullable String[] selectionArgs) { in delete() argument
111 && selectionArgs == null) { in delete()
123 .delete(PreferredSimDatabaseHelper.TABLE, selection, selectionArgs); in delete()
142 @Nullable String[] selectionArgs) { in update() argument
148 || selectionArgs == null in update()
149 || selectionArgs.length != 1) { in update()
152 values.put(PreferredSim.DATA_ID, selectionArgs[0]); in update()
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DBugStorageProvider.java134 @Nullable String[] selectionArgs, in query() argument
136 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query()
145 @Nullable String[] selectionArgs, in query() argument
157 if (selection != null || selectionArgs != null) { in query()
162 selectionArgs = new String[]{ uri.getLastPathSegment() }; in query()
168 Cursor cursor = db.query(false, table, null, selection, selectionArgs, null, null, in query()
215 @NonNull Uri uri, @Nullable String selection, @Nullable String[] selectionArgs) { in delete() argument
219 if (selection != null || selectionArgs != null) { in delete()
224 selectionArgs = new String[]{uri.getLastPathSegment()}; in delete()
230 return db.delete(BUG_REPORTS_TABLE, selection, selectionArgs); in delete()
[all …]
/packages/providers/TvProvider/src/com/android/providers/tv/util/
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
49 mSelectionArgs = selectionArgs; in setWhere()
52 public void appendWhere(String selection, String... selectionArgs) { in appendWhere() argument
54 if (selectionArgs != null) { in appendWhere()
55 mSelectionArgs = DatabaseUtils.appendSelectionArgs(mSelectionArgs, selectionArgs); in appendWhere()
/packages/apps/TV/src/com/android/tv/util/
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
52 mSelectionArgs = selectionArgs; in setWhere()
55 public void appendWhere(String selection, String... selectionArgs) { in appendWhere() argument
57 if (selectionArgs != null) { in appendWhere()
58 mSelectionArgs = DatabaseUtils.appendSelectionArgs(mSelectionArgs, selectionArgs); in appendWhere()
DAsyncDbTask.java91 String[] selectionArgs, in AsyncQueryTask() argument
98 mSelectionArgs = selectionArgs; in AsyncQueryTask()
202 String[] selectionArgs, in AsyncQueryListTask() argument
204 this(executor, context, uri, projection, selection, selectionArgs, orderBy, null); in AsyncQueryListTask()
213 String[] selectionArgs, in AsyncQueryListTask() argument
216 super(executor, context, uri, projection, selection, selectionArgs, orderBy); in AsyncQueryListTask()
267 String[] selectionArgs, in AsyncQueryItemTask() argument
269 super(executor, context, uri, projection, selection, selectionArgs, orderBy); in AsyncQueryItemTask()
337 String[] selectionArgs, in AsyncProgramQueryTask() argument
346 selectionArgs, in AsyncProgramQueryTask()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DUtility.java563 String[] projection, String selection, String[] selectionArgs, String sortOrder,
567 Cursor c = context.getContentResolver().query(uri, projection, selection, selectionArgs,
585 String selection, String[] selectionArgs, String sortOrder, int column) {
586 return getFirstRowColumn(context, uri, projection, selection, selectionArgs,
594 String selection, String[] selectionArgs, String sortOrder, int column,
596 return getFirstRowColumn(context, uri, projection, selection, selectionArgs,
604 String selection, String[] selectionArgs, String sortOrder, int column) {
605 return getFirstRowColumn(context, uri, projection, selection, selectionArgs,
613 String selection, String[] selectionArgs, String sortOrder, int column,
615 return getFirstRowColumn(context, uri, projection, selection, selectionArgs,
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllog/database/
DAnnotatedCallLogContentProvider.java89 @Nullable String[] selectionArgs, 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
201 selectionArgs == null, "Do not specify selection args when deleting by ID"); in delete()
211 int rows = database.delete(AnnotatedCallLog.TABLE, selection, selectionArgs); in delete()
227 @Nullable String[] selectionArgs) { in update() argument
237 int rows = database.update(AnnotatedCallLog.TABLE, values, selection, selectionArgs); in update()
251 selectionArgs == null, "Do not specify selection args when updating by ID"); in update()
[all …]
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberProvider.java185 @Nullable String[] selectionArgs) { in update() argument
194 @Nullable String[] selectionArgs) { in delete() argument
201 numRows = deleteBlockedNumber(selection, selectionArgs); in delete()
226 private int deleteBlockedNumber(String selection, String[] selectionArgs) { in deleteBlockedNumber() argument
238 selection, selectionArgs); in deleteBlockedNumber()
243 @Nullable String[] selectionArgs, @Nullable String sortOrder) { in query() argument
246 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query()
251 @Nullable String[] selectionArgs, @Nullable String sortOrder, in query() argument
259 cursor = queryBlockedList(projection, selection, selectionArgs, sortOrder, in query()
288 private Cursor queryBlockedList(String[] projection, String selection, String[] selectionArgs, in queryBlockedList() argument
[all …]
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyProviderTest.java277 String[] selectionArgs = { insertNumeric }; in testBulkInsertCarriers() local
280 + "\ntestInsertCarriers selectionArgs: " + selectionArgs); in testBulkInsertCarriers()
282 testProjection, selection, selectionArgs, null); in testBulkInsertCarriers()
447 String[] selectionArgs = { insertNumeric }; in doSimpleTestForUri() local
450 + "\ntestInsertCarriers selectionArgs: " + selectionArgs); in doSimpleTestForUri()
451 Cursor cursor = mContentResolver.query(uri, testProjection, selection, selectionArgs, null); in doSimpleTestForUri()
466 + "testInsertCarriers selectionArgs: " + selectionArgs); in doSimpleTestForUri()
471 cursor = mContentResolver.query(uri, testProjection, selection, selectionArgs, null); in doSimpleTestForUri()
500 String[] selectionArgs = { insertNumeric }; in testOwnedBy() local
503 + "\ntestInsertCarriers selectionArgs: " + selectionArgs); in testOwnedBy()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java266 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
310 if (selectionArgs == null) { in query()
312 } else if (selectionArgs.length == 0) { in query()
315 for (int i = 0; i < selectionArgs.length; ++i) { in query()
319 sb.append(selectionArgs[i]); in query()
329 Cursor ret = qb.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
341 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
368 count = db.update(DB_TABLE, values, myWhere, selectionArgs); in update()
381 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
404 count = db.delete(DB_TABLE, myWhere, selectionArgs); in delete()
/packages/apps/Dialer/java/com/android/dialer/phonelookup/database/
DPhoneLookupHistoryContentProvider.java95 @Nullable String[] selectionArgs, in query() argument
111 queryBuilder.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
182 @NonNull Uri uri, @Nullable String selection, @Nullable String[] selectionArgs) { in delete() argument
191 selectionArgs == null, "Do not specify selection args when deleting by number"); in delete()
196 selectionArgs = new String[] {number}; in delete()
201 int rows = database.delete(PhoneLookupHistory.TABLE, selection, selectionArgs); in delete()
226 @Nullable String[] selectionArgs) { in update() argument
234 int rows = database.update(PhoneLookupHistory.TABLE, values, selection, selectionArgs); in update()
249 selectionArgs == null, "Do not specify selection args when updating by ID"); in update()

12345678