/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/ |
D | MockContentProvider.java | 83 public Query withSelection(String selection, String... selectionArgs) { in withSelection() argument 85 mSelectionArgs = selectionArgs; in withSelection() 125 String[] selectionArgs, String sortOrder) { in equals() argument 138 if (!mAnySelection && !Arrays.equals(selectionArgs, mSelectionArgs)) { in equals() 296 public Delete withSelection(String selection, @Nullable String[] selectionArgs) { in withSelection() argument 298 mSelectionArgs = selectionArgs; in withSelection() 335 private boolean equals(Uri uri, String selection, String[] selectionArgs) { in equals() argument 337 && Arrays.equals(mSelectionArgs, selectionArgs); in equals() 361 @Nullable String[] selectionArgs) { in Update() argument 365 mSelectionArgs = selectionArgs; in Update() [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 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/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsProvider2.java | 2247 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument 2252 return mProfileProvider.update(uri, values, selection, selectionArgs); in update() 2255 return super.update(uri, values, selection, selectionArgs); in update() 2259 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument 2264 return mProfileProvider.delete(uri, selection, selectionArgs); in delete() 2267 return super.delete(uri, selection, selectionArgs); in delete() 2972 final String[] selectionArgs = { in deleteDataGroupMembership() local 2978 db.delete(Tables.DATA, SELECTION_GROUPMEMBERSHIP_DATA, selectionArgs); in deleteDataGroupMembership() 3172 private int deleteData(String selection, String[] selectionArgs, boolean callerIsSyncAdapter) { in deleteData() argument 3183 selection, selectionArgs, null); in deleteData() [all …]
|
D | ProfileProvider.java | 61 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 63 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query() 67 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 70 return mDelegate.queryLocal(uri, projection, selection, selectionArgs, sortOrder, -1, in query() 82 String[] selectionArgs) { in updateInTransaction() argument 84 return mDelegate.updateInTransaction(uri, values, selection, selectionArgs); in updateInTransaction() 88 protected int deleteInTransaction(Uri uri, String selection, String[] selectionArgs) { in deleteInTransaction() argument 90 return mDelegate.deleteInTransaction(uri, selection, selectionArgs); in deleteInTransaction()
|
D | FastScrollingIndexCache.java | 127 private static String buildCacheKey(Uri queryUri, String selection, String[] selectionArgs, in buildCacheKey() argument 139 if (selectionArgs != null) { in buildCacheKey() 140 for (int i = 0; i < selectionArgs.length; i++) { in buildCacheKey() 142 appendIfNotNull(sb, selectionArgs[i]); in buildCacheKey() 204 public Bundle get(Uri queryUri, String selection, String[] selectionArgs, String sortOrder, in get() argument 208 final String key = buildCacheKey(queryUri, selection, selectionArgs, sortOrder, in get() 236 public void put(Uri queryUri, String selection, String[] selectionArgs, String sortOrder, in put() argument 240 final String key = buildCacheKey(queryUri, selection, selectionArgs, sortOrder, in put()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarProvider2.java | 830 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 834 return queryInternal(uri, projection, selection, selectionArgs, sortOrder); in query() 841 String[] selectionArgs, String sortOrder) { in queryInternal() argument 856 return mDbHelper.getSyncState().query(db, projection, selection, selectionArgs, in queryInternal() 862 selectionArgs = insertSelectionArg(selectionArgs, in queryInternal() 865 selectionArgs, sortOrder); in queryInternal() 877 selectionArgs = insertSelectionArg(selectionArgs, uri.getPathSegments().get(1)); in queryInternal() 891 selectionArgs = insertSelectionArg(selectionArgs, uri.getPathSegments().get(1)); in queryInternal() 913 selectionArgs = insertSelectionArg(selectionArgs, uri.getPathSegments().get(1)); in queryInternal() 933 return handleInstanceQuery(qb, begin, end, projection, selection, selectionArgs, in queryInternal() [all …]
|
D | SQLiteContentProvider.java | 72 String[] selectionArgs, boolean callerIsSyncAdapter); in updateInTransaction() argument 77 protected abstract int deleteInTransaction(Uri uri, String selection, String[] selectionArgs, in deleteInTransaction() argument 146 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument 155 count = updateInTransaction(uri, values, selection, selectionArgs, in update() 168 count = updateInTransaction(uri, values, selection, selectionArgs, in update() 179 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument 188 count = deleteInTransaction(uri, selection, selectionArgs, isCallerSyncAdapter); in delete() 200 count = deleteInTransaction(uri, selection, selectionArgs, isCallerSyncAdapter); in delete()
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | MmsSmsProvider.java | 321 String selection, String[] selectionArgs, String sortOrder) { in query() argument 348 projection, selection, selectionArgs, sortOrder); in query() 361 selectionArgs, sortOrder); in query() 366 selectionArgs, sortOrder); in query() 385 selectionArgs, in query() 394 selectionArgs, in query() 406 || selectionArgs != null in query() 448 || selectionArgs != null in query() 482 finalSelection, selectionArgs, null, null, finalOrder); in query() 487 selectionArgs, sortOrder, smsTable, pduTable); in query() [all …]
|
D | MmsProvider.java | 90 String selection, String[] selectionArgs, String sortOrder) { in query() argument 239 selectionArgs, null, null, finalSortOrder); in query() 577 String[] selectionArgs) { in delete() argument 637 selectionArgs, uri); in delete() 639 deletedRows = deleteParts(db, finalSelection, selectionArgs); in delete() 641 deletedRows = deleteTempDrmData(db, finalSelection, selectionArgs); in delete() 643 deletedRows = db.delete(table, finalSelection, selectionArgs); in delete() 653 String selection, String[] selectionArgs, Uri uri) { in deleteMessages() argument 655 selection, selectionArgs, null, null, null); in deleteMessages() 673 int count = db.delete(TABLE_PDU, selection, selectionArgs); in deleteMessages() [all …]
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | Utility.java | 563 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/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/ |
D | BlockedNumberProvider.java | 181 @Nullable String[] selectionArgs) { in update() argument 190 @Nullable String[] selectionArgs) { in delete() argument 197 numRows = deleteBlockedNumber(selection, selectionArgs); in delete() 222 private int deleteBlockedNumber(String selection, String[] selectionArgs) { in deleteBlockedNumber() argument 234 selection, selectionArgs); in deleteBlockedNumber() 239 @Nullable String[] selectionArgs, @Nullable String sortOrder) { in query() argument 242 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query() 247 @Nullable String[] selectionArgs, @Nullable String sortOrder, in query() argument 255 cursor = queryBlockedList(projection, selection, selectionArgs, sortOrder, in query() 284 private Cursor queryBlockedList(String[] projection, String selection, String[] selectionArgs, in queryBlockedList() argument [all …]
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | AsyncQueryServiceTest.java | 118 work[index].selectionArgs = TEST_SELECTION_ARGS; in testQuery() 126 work[index].projection, work[index].selection, work[index].selectionArgs, in testQuery() 174 work[index].selectionArgs = TEST_SELECTION_ARGS; in testUpdate() 181 work[index].selection, work[index].selectionArgs, work[index].delayMillis); in testUpdate() 200 work[index].selectionArgs = TEST_SELECTION_ARGS; in testDelete() 210 work[index].selectionArgs, in testDelete() 373 work.selectionArgs = TEST_SELECTION_ARGS; in generateWork() 383 aqs.startDelete(w.token, w.cookie, w.uri, w.selection, w.selectionArgs, in startWork() 602 String[] selectionArgs, String orderBy) { in query() argument 608 assertEquals(mWork[index].selectionArgs, selectionArgs); in query() [all …]
|
/packages/apps/TV/src/com/android/tv/search/ |
D | TvProviderSearch.java | 143 private void insertSelectionArgumentStrings(String[] selectionArgs, int pos, in insertSelectionArgumentStrings() argument 148 selectionArgs[pos] = query; in insertSelectionArgumentStrings() 155 selectionArgs[pos] = selectionArg; in insertSelectionArgumentStrings() 211 String[] selectionArgs = new String[len]; in searchChannels() local 212 insertSelectionArgumentStrings(selectionArgs, 0, query, columnForExactMatching, in searchChannels() 218 selectionArgs, null)) { in searchChannels() argument 333 String[] selectionArgs = new String[len + 2]; in searchPrograms() local 334 selectionArgs[0] = selectionArgs[1] = String.valueOf(System.currentTimeMillis()); in searchPrograms() 335 insertSelectionArgumentStrings(selectionArgs, 2, query, columnForExactMatching, in searchPrograms() 341 selectionArgs, null)) { in searchPrograms() argument [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 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/Calendar/src/com/android/calendar/ |
D | AsyncQueryService.java | 170 String selection, String[] selectionArgs, String orderBy) { in startQuery() argument 181 info.selectionArgs = selectionArgs; in startQuery() 238 String selection, String[] selectionArgs, long delayMillis) { in startUpdate() argument 249 info.selectionArgs = selectionArgs; in startUpdate() 275 String[] selectionArgs, long delayMillis) { in startDelete() argument 285 info.selectionArgs = selectionArgs; in startDelete()
|
D | Event.java | 308 int startDay, int endDay, String selection, String[] selectionArgs, String orderBy) { in instancesQuery() argument 318 selectionArgs = WHERE_CALENDARS_ARGS; in instancesQuery() 321 if (selectionArgs != null && selectionArgs.length > 0) { in instancesQuery() 322 selectionArgs = Arrays.copyOf(selectionArgs, selectionArgs.length + 1); in instancesQuery() 323 selectionArgs[selectionArgs.length - 1] = WHERE_CALENDARS_ARGS[0]; in instancesQuery() 325 selectionArgs = WHERE_CALENDARS_ARGS; in instancesQuery() 328 return cr.query(builder.build(), projection, selection, selectionArgs, in instancesQuery()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppProvider.java | 296 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 343 if (selectionArgs == null) { in query() 345 } else if (selectionArgs.length == 0) { in query() 348 for (int i = 0; i < selectionArgs.length; ++i) { in query() 352 sb.append(selectionArgs[i]); in query() 362 Cursor ret = qb.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query() 375 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument 402 count = db.update(DB_TABLE, values, myWhere, selectionArgs); in update() 419 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument 442 count = db.delete(DB_TABLE, myWhere, selectionArgs); in delete()
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | CalendarProvider2Test.java | 1125 String[] selectionArgs = new String[] { in updateAndCheckColor() local 1135 selectionArgs); in updateAndCheckColor() 1152 private int deleteMatchingCalendars(String selection, String[] selectionArgs) { in deleteMatchingCalendars() argument 1153 return mResolver.delete(mCalendarsUri, selection, selectionArgs); in deleteMatchingCalendars() 2684 long end, String selection, String[] selectionArgs, String orderBy) { in queryInstances() argument 2691 selectionArgs = WHERE_CALENDARS_ARGS; in queryInstances() 2694 if (selectionArgs != null && selectionArgs.length > 0) { in queryInstances() 2695 selectionArgs = Arrays.copyOf(selectionArgs, selectionArgs.length + 1); in queryInstances() 2696 selectionArgs[selectionArgs.length - 1] = WHERE_CALENDARS_ARGS[0]; in queryInstances() 2698 selectionArgs = WHERE_CALENDARS_ARGS; in queryInstances() [all …]
|
/packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/ |
D | PartnerBookmarksProvider.java | 359 String selection, String[] selectionArgs, String sortOrder) { in query() argument 375 selectionArgs = DatabaseUtils.appendSelectionArgs(selectionArgs, in query() 382 selectionArgs = DatabaseUtils.appendSelectionArgs(selectionArgs, in query() 406 if (selectionArgs != null) { in query() 407 args = DatabaseUtils.appendSelectionArgs(args, selectionArgs); in query() 426 return qb.query(db, projection, selection, selectionArgs, groupBy, null, sortOrder, limit); in query() 442 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument 447 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
|
/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/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/src/com/android/dialer/database/ |
D | VoicemailArchiveProvider.java | 88 @Nullable String[] selectionArgs, in query() argument 93 .query(db, projection, selection, selectionArgs, null, null, sortOrder); in query() 136 public int delete(Uri uri, @Nullable String selection, @Nullable String[] selectionArgs) { in delete() argument 139 Cursor cursor = queryBuilder.query(db, null, selection, selectionArgs, null, null, null); in delete() 149 selectionArgs); in delete() 160 @Nullable String[] selectionArgs) { in update() argument 166 selectionArgs); in update()
|
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/ |
D | BluetoothMapEmailProvider.java | 390 public int delete(Uri uri, String where, String[] selectionArgs) { in delete() argument 498 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 505 return queryAccount(projection, selection, selectionArgs, sortOrder); in query() 508 return queryFolder(accountId, projection, selection, selectionArgs, sortOrder); in query() 511 return queryMessage(accountId, projection, selection, selectionArgs, sortOrder); in query() 530 …stract protected Cursor queryAccount(String[] projection, String selection, String[] selectionArgs, in queryAccount() argument 543 …Cursor queryFolder(String accountId, String[] projection, String selection, String[] selectionArgs, in queryFolder() argument 563 …ursor queryMessage(String accountId, String[] projection, String selection, String[] selectionArgs, in queryMessage() argument 577 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | DatabaseWrapper.java | 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() 271 final String selection, final String[] selectionArgs, final String groupBy, in query() argument 274 searchTable, columns, selection, selectionArgs, in query() 302 final String[] selectionArgs) { in queryNumEntries() argument 309 DatabaseUtils.queryNumEntries(mDatabase, table, selection, selectionArgs); in queryNumEntries() 338 final String selection, final String[] selectionArgs) { in update() argument 346 count = mDatabase.update(table, values, selection, selectionArgs); in update()
|