/packages/apps/Gallery2/src/com/android/photos/data/ |
D | PhotoProvider.java | 272 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 …]
|
D | SQLiteContentProvider.java | 84 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/ |
D | MockContentProvider.java | 95 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 …]
|
D | ForwardingContentProvider.java | 54 String[] selectionArgs, String sortOrder) { in query() argument 56 return mClient.query(url, projection, selection, selectionArgs, sortOrder); in query() 65 String[] selectionArgs, String sortOrder, CancellationSignal cancellationSignal) { in query() argument 67 return mClient.query(url, projection, selection, selectionArgs, sortOrder, in query() 111 public synchronized int delete(Uri url, String selection, String[] selectionArgs) { in delete() argument 113 return mClient.delete(url, selection, selectionArgs); in delete() 121 String selection, String[] selectionArgs) { in update() argument 123 return mClient.update(url, values, selection, selectionArgs); in update()
|
/packages/apps/Dialer/java/com/android/dialer/common/database/ |
D | Selection.java | 71 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/ |
D | CallLogQueryHandler.java | 107 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/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarProvider2.java | 869 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 879 return queryInternal(uri, projection, selection, selectionArgs, sortOrder, callingUid); in query() 956 String selection, String[] selectionArgs, String sortOrder, in queryWorkProfileProvider() argument 979 selection, selectionArgs, sortOrder); in queryWorkProfileProvider() 984 String[] selectionArgs, String sortOrder, int callingUid) { in queryInternal() argument 1005 return mDbHelper.getSyncState().query(db, projection, selection, selectionArgs, in queryInternal() 1011 selectionArgs = insertSelectionArg(selectionArgs, in queryInternal() 1014 selectionArgs, sortOrder); in queryInternal() 1021 selectionArgs, sortOrder, corpAdditionalPathSegments); in queryInternal() 1033 selectionArgs = insertSelectionArg(selectionArgs, uri.getPathSegments().get(1)); in queryInternal() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsProvider2.java | 2211 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument 2228 updates = mProfileProvider.update(uri, values, selection, selectionArgs); in update() 2232 updates = super.update(uri, values, selection, selectionArgs); in update() 2243 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument 2259 deletes = mProfileProvider.delete(uri, selection, selectionArgs); in delete() 2263 deletes = super.delete(uri, selection, selectionArgs); in delete() 3008 final String[] selectionArgs = { in deleteDataGroupMembership() local 3014 db.delete(Tables.DATA, SELECTION_GROUPMEMBERSHIP_DATA, selectionArgs); in deleteDataGroupMembership() 3208 private int deleteData(String selection, String[] selectionArgs, boolean callerIsSyncAdapter) { in deleteData() argument 3219 selection, selectionArgs, null, null); in deleteData() [all …]
|
D | ProfileProvider.java | 66 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/ |
D | MmsSmsProvider.java | 325 String selection, String[] selectionArgs, String sortOrder) { in query() argument 362 projection, selection, selectionArgs, sortOrder); in query() 375 selectionArgs, sortOrder); in query() 380 selectionArgs, sortOrder); in query() 399 selectionArgs, in query() 408 selectionArgs, in query() 420 || selectionArgs != null in query() 462 || selectionArgs != null in query() 496 finalSelection, selectionArgs, null, null, finalOrder); in query() 501 selectionArgs, sortOrder, smsTable, pduTable); in query() [all …]
|
D | CarrierProvider.java | 62 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()
|
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/ |
D | BugStorageProvider.java | 247 @Nullable String[] selectionArgs, in query() argument 249 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query() 258 @Nullable String[] selectionArgs, in query() argument 271 if (selection != null || selectionArgs != null) { in query() 276 selectionArgs = new String[]{ uri.getLastPathSegment() }; in query() 282 Cursor cursor = db.query(false, table, null, selection, selectionArgs, null, null, in query() 330 @NonNull Uri uri, @Nullable String selection, @Nullable String[] selectionArgs) { in delete() argument 335 if (selection != null || selectionArgs != null) { in delete() 345 if (selection != null || selectionArgs != null) { in delete() 350 selectionArgs = new String[]{uri.getLastPathSegment()}; in delete() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/preferredsim/impl/ |
D | PreferredSimFallbackProvider.java | 67 @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/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 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/ |
D | SqlParams.java | 29 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/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
D | CellBroadcastProvider.java | 173 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 182 + " selectionArgs = " + Arrays.toString(selectionArgs) in query() 200 CELL_BROADCASTS_TABLE_NAME, projection, selection, selectionArgs, in query() 205 return qb.query(getReadableDatabase(), projection, selection, selectionArgs, null, in query() 258 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument 265 + " selectionArgs = " + Arrays.toString(selectionArgs)); in delete() 271 selection, selectionArgs); in delete() 279 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument 287 + " selectionArgs = " + Arrays.toString(selectionArgs)); in update() 297 selectionArgs); in update() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/calllog/database/ |
D | AnnotatedCallLogContentProvider.java | 89 @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/apps/TV/src/com/android/tv/util/ |
D | AsyncDbTask.java | 96 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/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/ |
D | BlockedNumberProvider.java | 185 @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/Messaging/src/com/android/messaging/mmslib/ |
D | SqliteWrapper.java | 38 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/Dialer/java/com/android/dialer/phonelookup/database/ |
D | PhoneLookupHistoryContentProvider.java | 95 @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/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppProvider.java | 266 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/Settings/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCardFeatureProviderImpl.java | 49 final String[] selectionArgs = {String.valueOf(threshold)}; in getContextualCards() local 51 selectionArgs /* selectionArgs */, null /* groupBy */, null /* having */, in getContextualCards() 63 final String[] selectionArgs = {cardName}; in markCardAsDismissed() local 64 final int rowsUpdated = db.update(CARD_TABLE, values, selection, selectionArgs); in markCardAsDismissed() 77 final String[] selectionArgs = {String.valueOf(threshold)}; in resetDismissedTime() local 78 final int rowsUpdated = database.update(CARD_TABLE, values, selection, selectionArgs); in resetDismissedTime()
|
/packages/apps/Messaging/tests/src/com/android/messaging/ |
D | FakeContentProvider.java | 111 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/providers/MediaProvider/src/com/android/providers/media/util/ |
D | SQLiteQueryBuilder.java | 461 final String[] selectionArgs = queryArgs.getStringArray(QUERY_ARG_SQL_SELECTION_ARGS); in query() local 466 return query(helper, projectionIn, selection, selectionArgs, groupBy, having, sortOrder, in query() 471 String selection, String[] selectionArgs, String groupBy, in query() argument 474 return query(db, projectionIn, selection, selectionArgs, groupBy, in query() 515 String selection, String[] selectionArgs, String groupBy, in query() argument 557 final String[] sqlArgs = selectionArgs; in query() 615 @Nullable String selection, @Nullable String[] selectionArgs) { 619 return update(db, values, selection, selectionArgs); 638 @Nullable String selection, @Nullable String[] selectionArgs) { 676 if (selectionArgs == null) { [all …]
|