Home
last modified time | relevance | path

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

12345

/packages/apps/Browser/src/com/android/browser/provider/
DBrowserProvider2.java855 Object[] getSelectionWithAccounts(Uri uri, String selection, String[] selectionArgs) { in getSelectionWithAccounts() argument
864 selectionArgs = DatabaseUtils.appendSelectionArgs(selectionArgs, in getSelectionWithAccounts()
873 return new Object[] { selection, selectionArgs, hasAccounts }; in getSelectionWithAccounts()
877 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
912 selectionArgs = DatabaseUtils.appendSelectionArgs(selectionArgs, in query()
918 selectionArgs = DatabaseUtils.appendSelectionArgs(selectionArgs, in query()
922 Object[] withAccount = getSelectionWithAccounts(uri, selection, selectionArgs); in query()
924 selectionArgs = (String[]) withAccount[1]; in query()
966 if (selectionArgs != null) { in query()
967 args = DatabaseUtils.appendSelectionArgs(args, selectionArgs); in query()
[all …]
DSnapshotProvider.java152 String[] selectionArgs, String sortOrder) { in query() argument
163 selectionArgs = DatabaseUtils.appendSelectionArgs(selectionArgs, in query()
173 Cursor cursor = qb.query(db, projection, selection, selectionArgs, in query()
215 String[] selectionArgs) { in deleteDataFiles() argument
217 selectionArgs, null, null, null); in deleteDataFiles()
235 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
245 selectionArgs = DatabaseUtils.appendSelectionArgs(selectionArgs, in delete()
250 deleteDataFiles(db, selection, selectionArgs); in delete()
251 deleted = db.delete(TABLE_SNAPSHOTS, selection, selectionArgs); in delete()
264 String[] selectionArgs) { in update() argument
DSQLiteContentProvider.java76 String[] selectionArgs, boolean callerIsSyncAdapter); in updateInTransaction() argument
81 public abstract int deleteInTransaction(Uri uri, String selection, String[] selectionArgs, in deleteInTransaction() argument
149 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
157 count = updateInTransaction(uri, values, selection, selectionArgs, in update()
166 count = updateInTransaction(uri, values, selection, selectionArgs, callerIsSyncAdapter); in update()
173 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
181 count = deleteInTransaction(uri, selection, selectionArgs, callerIsSyncAdapter); in delete()
189 count = deleteInTransaction(uri, selection, selectionArgs, callerIsSyncAdapter); in delete()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DProfileProvider.java75 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
77 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query()
81 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
85 return mDelegate.queryLocal(uri, projection, selection, selectionArgs, sortOrder, -1, in query()
98 String[] selectionArgs) { in updateInTransaction() argument
101 return mDelegate.updateInTransaction(uri, values, selection, selectionArgs); in updateInTransaction()
105 protected int deleteInTransaction(Uri uri, String selection, String[] selectionArgs) { in deleteInTransaction() argument
108 return mDelegate.deleteInTransaction(uri, selection, selectionArgs); in deleteInTransaction()
DVoicemailStatusTable.java77 public int delete(UriData uriData, String selection, String[] selectionArgs) { in delete() argument
81 selectionArgs); in delete()
86 String[] selectionArgs, String sortOrder) { in query() argument
94 Cursor c = qb.query(db, projection, combinedClause, selectionArgs, null, null, sortOrder); in query()
103 String[] selectionArgs) { in update() argument
107 selectionArgs); in update()
DFastScrollingIndexCache.java112 private static String buildCacheKey(Uri queryUri, String selection, String[] selectionArgs, in buildCacheKey() argument
124 if (selectionArgs != null) { in buildCacheKey()
125 for (int i = 0; i < selectionArgs.length; i++) { in buildCacheKey()
127 appendIfNotNull(sb, selectionArgs[i]); in buildCacheKey()
189 public Bundle get(Uri queryUri, String selection, String[] selectionArgs, String sortOrder, in get() argument
193 final String key = buildCacheKey(queryUri, selection, selectionArgs, sortOrder, in get()
221 public void put(Uri queryUri, String selection, String[] selectionArgs, String sortOrder, in put() argument
225 final String key = buildCacheKey(queryUri, selection, selectionArgs, sortOrder, in put()
DContactsProvider2.java1964 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
1980 return mProfileProvider.update(uri, values, selection, selectionArgs); in update()
1983 return super.update(uri, values, selection, selectionArgs); in update()
1988 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
1996 return mProfileProvider.delete(uri, selection, selectionArgs); in delete()
1999 return super.delete(uri, selection, selectionArgs); in delete()
2577 final String[] selectionArgs = { in deleteDataGroupMembership() local
2581 mActiveDb.get().delete(Tables.DATA, SELECTION_GROUPMEMBERSHIP_DATA, selectionArgs); in deleteDataGroupMembership()
2818 private int deleteData(String selection, String[] selectionArgs, boolean callerIsSyncAdapter) { in deleteData() argument
2827 selection, selectionArgs, null); in deleteData()
[all …]
DAbstractContactsProvider.java125 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
128 int deleted = deleteInTransaction(uri, selection, selectionArgs); in delete()
140 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
143 int updated = updateInTransaction(uri, values, selection, selectionArgs); in update()
276 protected abstract int deleteInTransaction(Uri uri, String selection, String[] selectionArgs); in deleteInTransaction() argument
279 String[] selectionArgs); in updateInTransaction() argument
DVoicemailTable.java39 public int delete(UriData uriData, String selection, String[] selectionArgs); in delete() argument
41 String[] selectionArgs, String sortOrder); in query() argument
43 String[] selectionArgs); in update() argument
DVoicemailContentTable.java160 public int delete(UriData uriData, String selection, String[] selectionArgs) { in delete() argument
169 cursor = query(uriData, FILENAME_ONLY_PROJECTION, selection, selectionArgs, null); in delete()
190 selectionArgs); in delete()
195 String[] selectionArgs, String sortOrder) { in query() argument
204 Cursor c = qb.query(db, projection, combinedClause, selectionArgs, null, null, sortOrder); in query()
213 String[] selectionArgs) { in update() argument
222 selectionArgs); in update()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/mocks/
DMockContentProvider.java82 public Query withSelection(String selection, String... selectionArgs) { in withSelection() argument
84 mSelectionArgs = selectionArgs; in withSelection()
124 String[] selectionArgs, String sortOrder) { in equals() argument
137 if (!mAnySelection && !equals(selectionArgs, mSelectionArgs)) { in equals()
249 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
254 if (query.equals(uri, projection, selection, selectionArgs, sortOrder)) { in query()
265 + queryToString(uri, projection, selection, selectionArgs, sortOrder)); in query()
273 queryToString(uri, projection, selection, selectionArgs, sortOrder)); in query()
279 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
304 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
[all …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsProvider.java289 String selection, String[] selectionArgs, String sortOrder) { in query() argument
305 projection, selection, selectionArgs, sortOrder); in query()
318 selectionArgs, sortOrder); in query()
323 selectionArgs, sortOrder); in query()
341 selectionArgs, in query()
350 selectionArgs, in query()
362 || selectionArgs != null in query()
403 || selectionArgs != null in query()
436 finalSelection, selectionArgs, null, null, finalOrder); in query()
441 selectionArgs, sortOrder); in query()
[all …]
DMmsProvider.java72 String selection, String[] selectionArgs, String sortOrder) { in query() argument
207 selectionArgs, null, null, finalSortOrder); in query()
528 String[] selectionArgs) { in delete() argument
588 selectionArgs, uri); in delete()
590 deletedRows = deleteParts(db, finalSelection, selectionArgs); in delete()
592 deletedRows = deleteTempDrmData(db, finalSelection, selectionArgs); in delete()
594 deletedRows = db.delete(table, finalSelection, selectionArgs); in delete()
604 String selection, String[] selectionArgs, Uri uri) { in deleteMessages() argument
606 selection, selectionArgs, null, null, null); in deleteMessages()
624 int count = db.delete(TABLE_PDU, selection, selectionArgs); in deleteMessages()
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DSQLiteContentProvider.java69 String[] selectionArgs, boolean callerIsSyncAdapter); in updateInTransaction() argument
74 protected abstract int deleteInTransaction(Uri uri, String selection, String[] selectionArgs, in deleteInTransaction() argument
139 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
147 count = updateInTransaction(uri, values, selection, selectionArgs, in update()
159 count = updateInTransaction(uri, values, selection, selectionArgs, in update()
170 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
178 count = deleteInTransaction(uri, selection, selectionArgs, isCallerSyncAdapter); in delete()
189 count = deleteInTransaction(uri, selection, selectionArgs, isCallerSyncAdapter); in delete()
DCalendarProvider2.java813 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
829 return mDbHelper.getSyncState().query(db, projection, selection, selectionArgs, in query()
835 selectionArgs = insertSelectionArg(selectionArgs, in query()
838 selectionArgs, sortOrder); in query()
850 selectionArgs = insertSelectionArg(selectionArgs, uri.getPathSegments().get(1)); in query()
864 selectionArgs = insertSelectionArg(selectionArgs, uri.getPathSegments().get(1)); in query()
884 selectionArgs = insertSelectionArg(selectionArgs, uri.getPathSegments().get(1)); in query()
904 return handleInstanceQuery(qb, begin, end, projection, selection, selectionArgs, in query()
925 selectionArgs, sortOrder, match == INSTANCES_SEARCH_BY_DAY, in query()
953 selectionArgs = insertSelectionArg(selectionArgs, uri.getPathSegments().get(1)); in query()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DAsyncQueryService.java170 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()
DEvent.java302 int startDay, int endDay, String selection, String[] selectionArgs, String orderBy) { in instancesQuery() argument
312 selectionArgs = WHERE_CALENDARS_ARGS; in instancesQuery()
315 if (selectionArgs != null && selectionArgs.length > 0) { in instancesQuery()
316 selectionArgs = Arrays.copyOf(selectionArgs, selectionArgs.length + 1); in instancesQuery()
317 selectionArgs[selectionArgs.length - 1] = WHERE_CALENDARS_ARGS[0]; in instancesQuery()
319 selectionArgs = WHERE_CALENDARS_ARGS; in instancesQuery()
322 return cr.query(builder.build(), projection, selection, selectionArgs, in instancesQuery()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/tests/
DCrashingIconProvider.java48 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
49 if (DBG) Log.d(TAG, "delete(" + uri + ", " + selection + ", " + selectionArgs + ")"); in delete()
66 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
73 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
/packages/apps/Email/src/com/android/email/data/
DThrottlingCursorLoader.java38 String[] selectionArgs, String sortOrder) { in ThrottlingCursorLoader() argument
39 this(context, uri, projection, selection, selectionArgs, sortOrder, in ThrottlingCursorLoader()
45 String[] selectionArgs, String sortOrder, int minTimeout, int maxTimeout) { in ThrottlingCursorLoader() argument
46 super(context, uri, projection, selection, selectionArgs, sortOrder); in ThrottlingCursorLoader()
/packages/experimental/RpcPerformance/src/com/android/rpc_performance/
DProvider.java32 String selection, String[] selectionArgs, in query() argument
43 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
47 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java303 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
358 if (selectionArgs == null) { in query()
360 } else if (selectionArgs.length == 0) { in query()
363 for (int i = 0; i < selectionArgs.length; ++i) { in query()
367 sb.append(selectionArgs[i]); in query()
377 Cursor ret = qb.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
390 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
417 count = db.update(DB_TABLE, values, myWhere, selectionArgs); in update()
434 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
457 count = db.delete(DB_TABLE, myWhere, selectionArgs); in delete()
/packages/apps/Contacts/src/com/android/contacts/
DGroupMemberLoader.java119 List<String> selectionArgs = new ArrayList<String>(); in createSelectionArgs() local
120 selectionArgs.add(GroupMembership.CONTENT_ITEM_TYPE); in createSelectionArgs()
121 selectionArgs.add(String.valueOf(mGroupId)); in createSelectionArgs()
122 return selectionArgs.toArray(new String[0]); in createSelectionArgs()
/packages/apps/Exchange/tests/src/com/android/exchange/provider/
DMockProvider.java97 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
98 if (selection != null || selectionArgs != null) { in delete()
139 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
141 if (selection != null || selectionArgs != null || sortOrder != null || projection == null) { in query()
178 public int update(Uri uri, ContentValues newValues, String selection, String[] selectionArgs) { in update() argument
179 if (selection != null || selectionArgs != null) { in update()
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/
DMockProvider.java97 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
98 if (selection != null || selectionArgs != null) { in delete()
139 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
141 if (selection != null || selectionArgs != null || sortOrder != null || projection == null) { in query()
178 public int update(Uri uri, ContentValues newValues, String selection, String[] selectionArgs) { in update() argument
179 if (selection != null || selectionArgs != null) { in update()
/packages/apps/Calendar/tests/src/com/android/calendar/
DAsyncQueryServiceTest.java97 work[index].selectionArgs = TEST_SELECTION_ARGS; in testQuery()
105 work[index].projection, work[index].selection, work[index].selectionArgs, in testQuery()
153 work[index].selectionArgs = TEST_SELECTION_ARGS; in testUpdate()
160 work[index].selection, work[index].selectionArgs, work[index].delayMillis); in testUpdate()
179 work[index].selectionArgs = TEST_SELECTION_ARGS; in testDelete()
189 work[index].selectionArgs, in testDelete()
352 work.selectionArgs = TEST_SELECTION_ARGS; in generateWork()
362 aqs.startDelete(w.token, w.cookie, w.uri, w.selection, w.selectionArgs, in startWork()
572 String[] selectionArgs, String orderBy) { in query() argument
578 assertEquals(mWork[index].selectionArgs, selectionArgs); in query()
[all …]

12345