Home
last modified time | relevance | path

Searched refs:selection (Results 1 – 25 of 149) sorted by relevance

123456

/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsProvider.java296 String selection, String[] selectionArgs, String sortOrder) { in query() argument
301 cursor = getCompleteConversations(projection, selection, sortOrder); in query()
308 selection = concatSelections( in query()
309 selection, Threads.TYPE + "=" + threadType); in query()
312 projection, selection, selectionArgs, sortOrder); in query()
315 projection, selection, sortOrder); in query()
320 selection, sortOrder); in query()
324 uri.getPathSegments().get(1), projection, selection, in query()
329 uri.getPathSegments().get(1), projection, selection, in query()
334 uri.getPathSegments().get(2), projection, selection, sortOrder); in query()
[all …]
DMmsProvider.java75 String selection, String[] selectionArgs, String sortOrder) { in query() argument
209 Cursor ret = qb.query(db, projection, selection, in query()
534 public int delete(Uri uri, String selection, in delete() argument
589 String finalSelection = concatSelections(selection, extraSelection); in delete()
611 String selection, String[] selectionArgs, Uri uri) { in deleteMessages() argument
613 selection, selectionArgs, null, null, null); in deleteMessages()
631 int count = db.delete(TABLE_PDU, selection, selectionArgs); in deleteMessages()
643 private static int deleteParts(SQLiteDatabase db, String selection, in deleteParts() argument
645 return deleteDataRows(db, TABLE_PART, selection, selectionArgs); in deleteParts()
648 private static int deleteTempDrmData(SQLiteDatabase db, String selection, in deleteTempDrmData() argument
[all …]
/packages/apps/Browser/src/com/android/browser/provider/
DBrowserProvider2.java855 Object[] getSelectionWithAccounts(Uri uri, String selection, String[] selectionArgs) { in getSelectionWithAccounts() argument
862 selection = DatabaseUtils.concatenateWhere(selection, in getSelectionWithAccounts()
868 selection = DatabaseUtils.concatenateWhere(selection, 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
890 selection = DatabaseUtils.concatenateWhere(selection, in query()
904 selection = DatabaseUtils.concatenateWhere( in query()
905 Bookmarks.IS_DELETED + "=0", selection); in query()
910 selection = DatabaseUtils.concatenateWhere(selection, in query()
916 selection = DatabaseUtils.concatenateWhere(selection, in query()
[all …]
DSnapshotProvider.java151 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
162 selection = DatabaseUtils.concatenateWhere(selection, "_id=?"); in query()
173 Cursor cursor = qb.query(db, projection, selection, selectionArgs, in query()
214 private void deleteDataFiles(SQLiteDatabase db, String selection, in deleteDataFiles() argument
216 Cursor c = db.query(TABLE_SNAPSHOTS, DELETE_PROJECTION, selection, in deleteDataFiles()
235 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
244 selection = DatabaseUtils.concatenateWhere(selection, TABLE_SNAPSHOTS + "._id=?"); in delete()
250 deleteDataFiles(db, selection, selectionArgs); in delete()
251 deleted = db.delete(TABLE_SNAPSHOTS, selection, selectionArgs); in delete()
263 public int update(Uri uri, ContentValues values, String selection, in update() argument
DSQLiteContentProvider.java75 public abstract int updateInTransaction(Uri uri, ContentValues values, String selection, 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/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java824 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
840 return mDbHelper.getSyncState().query(db, projection, selection, selectionArgs, in query()
844 + (selection == null ? "" : " AND (" + selection + ")"); in query()
854 selection = appendAccountToSelection(uri, selection, Calendars.ACCOUNT_NAME, in query()
856 selection = appendLastSyncedColumnToSelection(selection, uri); in query()
868 selection = appendAccountToSelection(uri, selection, Calendars.ACCOUNT_NAME, in query()
870 selection = appendLastSyncedColumnToSelection(selection, uri); in query()
882 selection = appendAccountToSelection(uri, selection, Calendars.ACCOUNT_NAME, in query()
890 selection = appendAccountToSelection(uri, selection, Calendars.ACCOUNT_NAME, in query()
917 return handleInstanceQuery(qb, begin, end, projection, selection, selectionArgs, in query()
[all …]
DSQLiteContentProvider.java68 protected abstract int updateInTransaction(Uri uri, ContentValues values, String selection, 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()
/packages/apps/Gallery2/src/com/android/photos/data/
DPhotoProvider.java272 public int deleteInTransaction(Uri uri, String selection, String[] selectionArgs, in deleteInTransaction() argument
275 selection = addIdToSelection(match, selection); 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
318 selection = addIdToSelection(match, selection); in query()
321 … Cursor c = query(table, projection, selection, selectionArgs, sortOrder, cancellationSignal); in query()
329 public int updateInTransaction(Uri uri, ContentValues values, String selection, in updateInTransaction() argument
337 selection = addIdToSelection(match, selection); in updateInTransaction()
[all …]
DSQLiteContentProvider.java83 public abstract int updateInTransaction(Uri uri, ContentValues values, String selection, 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/Calendar/src/com/android/calendar/alerts/
DDismissAlarmsService.java67 String selection; in onHandleIntent() local
72 selection = CalendarAlerts.STATE + "=" + CalendarAlerts.STATE_FIRED + " AND " + in onHandleIntent()
76 selection = buildMultipleEventsQuery(eventIds); in onHandleIntent()
82 selection = CalendarAlerts.STATE + "=" + CalendarAlerts.STATE_FIRED; in onHandleIntent()
90 resolver.update(uri, values, selection, null); in onHandleIntent()
110 StringBuilder selection = new StringBuilder(); in buildMultipleEventsQuery() local
111 selection.append(CalendarAlerts.STATE); in buildMultipleEventsQuery()
112 selection.append("="); in buildMultipleEventsQuery()
113 selection.append(CalendarAlerts.STATE_FIRED); in buildMultipleEventsQuery()
115 selection.append(" AND ("); in buildMultipleEventsQuery()
[all …]
/packages/apps/Email/src/com/android/email/provider/
DEmailProvider.java508 private void preCacheTable(Uri tableUri, String[] baseProjection, String selection) { in preCacheTable() argument
509 Cursor c = query(tableUri, EmailContent.ID_PROJECTION, selection, null, null); in preCacheTable()
691 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
755 result = db.delete(tableName, whereWithId(id, selection), selectionArgs); in delete()
761 mCacheMailbox.invalidate("Delete", uri, selection); in delete()
762 mCacheHostAuth.invalidate("Delete", uri, selection); in delete()
763 mCachePolicy.invalidate("Delete", uri, selection); in delete()
767 mCacheMessage.invalidate("Delete", uri, selection); in delete()
773 cache.invalidate("Delete", uri, selection); in delete()
791 whereWith(Attachment.MESSAGE_KEY + "=" + id, selection), selectionArgs); in delete()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsProvider2.java2056 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
2072 return mProfileProvider.update(uri, values, selection, selectionArgs); in update()
2075 return super.update(uri, values, selection, selectionArgs); in update()
2080 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
2088 return mProfileProvider.delete(uri, selection, selectionArgs); in delete()
2091 return super.delete(uri, selection, selectionArgs); in delete()
2655 private Long findGroupByRawContactId(String selection, long rawContactId) { in findGroupByRawContactId() argument
2658 PROJECTION_GROUP_ID, selection, in findGroupByRawContactId()
2939 private int deleteData(String selection, String[] selectionArgs, boolean callerIsSyncAdapter) { in deleteData() argument
2950 selection, selectionArgs, null); in deleteData()
[all …]
DProfileProvider.java76 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
78 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query()
82 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()
97 protected int updateInTransaction(Uri uri, ContentValues values, String selection, 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()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapVcardManager.java182 String selection = BluetoothPbapObexServer.createSelectionPara(type); in getCallHistorySize() local
186 callCursor = mResolver.query(myUri, null, selection, null, in getCallHistorySize()
201 String selection = BluetoothPbapObexServer.createSelectionPara(type); in loadCallHistoryList() local
211 callCursor = mResolver.query(myUri, projection, selection, null, in loadCallHistoryList()
366 String selection; in composeAndSendCallLogVcards() local
368 selection = recordSelection; in composeAndSendCallLogVcards()
370 selection = "(" + typeSelection + ") AND (" + recordSelection + ")"; in composeAndSendCallLogVcards()
373 if (V) Log.v(TAG, "Call log query selection is: " + selection); in composeAndSendCallLogVcards()
375 return composeAndSendVCards(op, selection, vcardType21, null, false); in composeAndSendCallLogVcards()
410 final String selection; in composeAndSendPhonebookVcards() local
[all …]
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
DMockContentProvider.java82 public Query withSelection(String selection, String... selectionArgs) { in withSelection() argument
83 mSelection = selection; in withSelection()
123 public boolean equals(Uri uri, String[] projection, String selection, in equals() argument
133 if (!mAnySelection && !equals(selection, mSelection)) { 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/apps/Calendar/tests/src/com/android/calendar/
DAsyncQueryServiceTest.java117 work[index].selection = TEST_SELECTION; in testQuery()
126 work[index].projection, work[index].selection, work[index].selectionArgs, in testQuery()
173 work[index].selection = TEST_SELECTION; in testUpdate()
181 work[index].selection, work[index].selectionArgs, work[index].delayMillis); in testUpdate()
199 work[index].selection = TEST_SELECTION; in testDelete()
209 work[index].selection, in testDelete()
372 work.selection = TEST_SELECTION; in generateWork()
383 aqs.startDelete(w.token, w.cookie, w.uri, w.selection, w.selectionArgs, in startWork()
601 public final Cursor query(Uri uri, String[] projection, String selection, in query() argument
607 assertEquals(mWork[index].selection, selection); in query()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DUtility.java658 String[] projection, String selection, String[] selectionArgs, String sortOrder,
662 Cursor c = context.getContentResolver().query(uri, projection, selection, selectionArgs,
680 String selection, String[] selectionArgs, String sortOrder, int column) {
681 return getFirstRowColumn(context, uri, projection, selection, selectionArgs,
689 String selection, String[] selectionArgs, String sortOrder, int column,
691 return getFirstRowColumn(context, uri, projection, selection, selectionArgs,
699 String selection, String[] selectionArgs, String sortOrder, int column) {
700 return getFirstRowColumn(context, uri, projection, selection, selectionArgs,
708 String selection, String[] selectionArgs, String sortOrder, int column,
710 return getFirstRowColumn(context, uri, projection, selection, selectionArgs,
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java833 final String selection, final String[] selectionArgs, in query() argument
836 Helpers.validateSelection(selection, sAppReadableColumnsSet); in query()
849 if (projection != null || selection != null || sort != null) { in query()
856 SqlSelection fullSelection = getWhereClause(uri, selection, selectionArgs, match); in query()
881 logVerboseQueryInfo(projection, selection, selectionArgs, sort, db); in query()
902 private void logVerboseQueryInfo(String[] projection, final String selection, in logVerboseQueryInfo() argument
924 sb.append(selection); in logVerboseQueryInfo()
1073 SqlSelection selection = getWhereClause(uri, where, whereArgs, match); in update() local
1075 count = db.update(DB_TABLE, filteredValues, selection.getSelection(), in update()
1076 selection.getParameters()); in update()
[all …]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPicasaSource.java110 String selection = PICASA_ALBUM_ID + " = '" + data.albumId + "'"; in openCursor() local
117 projection, selection, null, null); in openCursor()
195 StringBuilder selection = new StringBuilder(); in findImages() local
199 if (selection.length() > 0) { in findImages()
200 selection.append(" OR "); in findImages()
203 selection.append(PICASA_ALBUM_ID + " = '" + albumId + "'"); in findImages()
210 if (selection.length() == 0) { in findImages()
214 log(TAG, "selection is (" + selection.length() + "): " + selection.toString()); in findImages()
221 projection, selection.toString(), null, null); in findImages()
293 String selection = (PICASA_ALBUM_USER + " = '" + parts[2] + "' AND " + in resolveAlbumIds() local
[all …]
DLocalSource.java121 String selection = MediaStore.Images.Media.BUCKET_ID + " = '" + data.albumId + "'"; in openCursor() local
124 projection, selection, null, null); in openCursor()
175 String selection = ""; in findImages() local
180 if (selection.length() > 0) { in findImages()
181 selection += " OR "; in findImages()
183 selection += MediaStore.Images.Media.BUCKET_ID + " = '" + parts[1] + "'"; in findImages()
187 if (selection.isEmpty()) { in findImages()
192 projection, selection, null, null); in findImages()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java303 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
356 sb.append(selection); 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
401 if (selection != null) { in update()
403 myWhere = "( " + selection + " )"; in update()
405 myWhere = "( " + selection + " ) AND "; in update()
434 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
442 if (selection != null) { in delete()
444 myWhere = "( " + selection + " )"; in delete()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropDrawingUtils.java66 RectF bounds, boolean fixedAspect, int selection) { in drawIndicators() argument
67 boolean notMoving = (selection == CropObject.MOVE_NONE); in drawIndicators()
69 if ((selection == CropObject.TOP_LEFT) || notMoving) { in drawIndicators()
72 if ((selection == CropObject.TOP_RIGHT) || notMoving) { in drawIndicators()
75 if ((selection == CropObject.BOTTOM_LEFT) || notMoving) { in drawIndicators()
78 if ((selection == CropObject.BOTTOM_RIGHT) || notMoving) { in drawIndicators()
82 if (((selection & CropObject.MOVE_TOP) != 0) || notMoving) { in drawIndicators()
85 if (((selection & CropObject.MOVE_BOTTOM) != 0) || notMoving) { in drawIndicators()
88 if (((selection & CropObject.MOVE_LEFT) != 0) || notMoving) { in drawIndicators()
91 if (((selection & CropObject.MOVE_RIGHT) != 0) || notMoving) { in drawIndicators()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
DMainPanel.java50 private void selection(int position, boolean value) { in selection() method in MainPanel
152 selection(mCurrentSelected, false); in loadCategoryLookPanel()
157 selection(mCurrentSelected, true); in loadCategoryLookPanel()
165 selection(mCurrentSelected, false); in loadCategoryBorderPanel()
170 selection(mCurrentSelected, true); in loadCategoryBorderPanel()
178 selection(mCurrentSelected, false); in loadCategoryGeometryPanel()
183 selection(mCurrentSelected, true); in loadCategoryGeometryPanel()
191 selection(mCurrentSelected, false); in loadCategoryFiltersPanel()
196 selection(mCurrentSelected, true); in loadCategoryFiltersPanel()
/packages/apps/Calendar/src/com/android/calendar/
DAsyncQueryService.java170 String selection, String[] selectionArgs, String orderBy) { in startQuery() argument
180 info.selection = selection; in startQuery()
238 String selection, String[] selectionArgs, long delayMillis) { in startUpdate() argument
248 info.selection = selection; in startUpdate()
274 public void startDelete(int token, Object cookie, Uri uri, String selection, in startDelete() argument
284 info.selection = selection; in startDelete()
/packages/apps/Calendar/tests/src/com/android/calendar/event/
DEditEventHelperTest.java1267 int selection = EditEventHelper.DOES_NOT_REPEAT; in testUpdateRecurrenceRule() local
1275 EditEventHelper.updateRecurrenceRule(selection, mModel1, weekStart); in testUpdateRecurrenceRule()
1279 selection = EditEventHelper.REPEATS_CUSTOM; in testUpdateRecurrenceRule()
1281 EditEventHelper.updateRecurrenceRule(selection, mModel1, weekStart); in testUpdateRecurrenceRule()
1284 selection = EditEventHelper.REPEATS_DAILY; in testUpdateRecurrenceRule()
1286 EditEventHelper.updateRecurrenceRule(selection, mModel1, weekStart); in testUpdateRecurrenceRule()
1289 selection = EditEventHelper.REPEATS_EVERY_WEEKDAY; in testUpdateRecurrenceRule()
1291 EditEventHelper.updateRecurrenceRule(selection, mModel1, weekStart); in testUpdateRecurrenceRule()
1294 selection = EditEventHelper.REPEATS_WEEKLY_ON_DAY; in testUpdateRecurrenceRule()
1296 EditEventHelper.updateRecurrenceRule(selection, mModel1, weekStart); in testUpdateRecurrenceRule()
[all …]

123456