Home
last modified time | relevance | path

Searched refs:selectionArgs (Results 1 – 25 of 192) 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.java343 String selection, String[] selectionArgs, String sortOrder) { in query() argument
380 projection, selection, selectionArgs, sortOrder); in query()
393 selectionArgs, sortOrder); in query()
398 selectionArgs, sortOrder); in query()
417 selectionArgs, in query()
426 selectionArgs, in query()
438 || selectionArgs != null in query()
480 || selectionArgs != null in query()
514 finalSelection, selectionArgs, null, null, finalOrder); in query()
519 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()
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.java224 @Nullable String[] selectionArgs, in query() argument
226 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query()
235 @Nullable String[] selectionArgs, in query() argument
247 if (selection != null || selectionArgs != null) { in query()
252 selectionArgs = new String[]{ uri.getLastPathSegment() }; in query()
258 Cursor cursor = db.query(false, table, null, selection, selectionArgs, null, null, in query()
305 @NonNull Uri uri, @Nullable String selection, @Nullable String[] selectionArgs) { in delete() argument
309 if (selection != null || selectionArgs != null) { in delete()
319 if (selection != null || selectionArgs != null) { in delete()
324 selectionArgs = new String[]{uri.getLastPathSegment()}; 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/common/src/com/android/tv/common/util/sql/
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()
/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/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DCellBroadcastProvider.java176 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
185 + " selectionArgs = " + Arrays.toString(selectionArgs) in query()
203 CELL_BROADCASTS_TABLE_NAME, projection, selection, selectionArgs, in query()
208 return qb.query(getReadableDatabase(), projection, selection, selectionArgs, null, in query()
246 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
253 + " selectionArgs = " + Arrays.toString(selectionArgs)); in delete()
259 selection, selectionArgs); in delete()
267 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
275 + " selectionArgs = " + Arrays.toString(selectionArgs)); in update()
284 selectionArgs); in update()
/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/apps/TV/src/com/android/tv/util/
DAsyncDbTask.java96 String[] selectionArgs, in AsyncQueryTask() argument
103 mSelectionArgs = selectionArgs; in AsyncQueryTask()
207 String[] selectionArgs, in AsyncQueryListTask() argument
209 this(executor, context, uri, projection, selection, selectionArgs, orderBy, null); in AsyncQueryListTask()
218 String[] selectionArgs, in AsyncQueryListTask() argument
221 super(executor, context, uri, projection, selection, selectionArgs, orderBy); in AsyncQueryListTask()
272 String[] selectionArgs, in AsyncQueryItemTask() argument
274 super(executor, context, uri, projection, selection, selectionArgs, orderBy); in AsyncQueryItemTask()
351 String[] selectionArgs, in AsyncProgramQueryTask() argument
360 selectionArgs, in AsyncProgramQueryTask()
/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()
/packages/apps/Messaging/src/com/android/messaging/mmslib/
DSqliteWrapper.java38 String[] projection, String selection, String[] selectionArgs, String sortOrder) { in query() argument
40 return resolver.query(uri, projection, selection, selectionArgs, sortOrder); in query()
51 ContentValues values, String where, String[] selectionArgs) { in update() argument
53 return resolver.update(uri, values, where, selectionArgs); in update()
64 String where, String[] selectionArgs) { in delete() argument
66 return resolver.delete(uri, where, selectionArgs); in delete()
/packages/apps/Messaging/tests/src/com/android/messaging/
DFakeContentProvider.java111 final String[] selectionArgs, final String sortOrder) { in query() argument
115 + " with " + (selectionArgs == null ? null : TextUtils.join(";", selectionArgs))); in query()
118 if (content.match(uri.toString(), selection, selectionArgs)) { in query()
126 final Cursor cursor = mProvider.query(uri, projection, selection, selectionArgs, in query()
161 public int delete(final Uri uri, final String selection, final String[] selectionArgs) { in delete() argument
168 final String[] selectionArgs) { in update() argument
/packages/apps/TV/src/com/android/tv/search/
DTvProviderSearch.java148 String[] selectionArgs, in insertSelectionArgumentStrings() argument
156 selectionArgs[pos] = query; in insertSelectionArgumentStrings()
163 selectionArgs[pos] = selectionArg; in insertSelectionArgumentStrings()
245 String[] selectionArgs = new String[len]; in searchChannels() local
247 selectionArgs, 0, query, columnForExactMatching, columnForPartialMatching); in searchChannels()
253 Channels.CONTENT_URI, projection, selection, selectionArgs, null)) { in searchChannels() argument
384 String[] selectionArgs = new String[len + 2]; in searchPrograms() local
386 selectionArgs[0] = String.valueOf(now + SEARCH_TIME_FRAME_MS); in searchPrograms()
387 selectionArgs[1] = String.valueOf(now); in searchPrograms()
389 selectionArgs, 2, query, columnForExactMatching, columnForPartialMatching); in searchPrograms()
[all …]

12345678