Home
last modified time | relevance | path

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

12345678

/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsProvider.java320 String selection, String[] selectionArgs, String sortOrder) { in query() argument
335 cursor = getCompleteConversations(projection, selection, sortOrder, smsTable, in query()
343 selection = concatSelections( in query()
344 selection, Threads.TYPE + "=" + threadType); in query()
347 projection, selection, selectionArgs, sortOrder); in query()
350 projection, selection, sortOrder, smsTable, pduTable); in query()
355 selection, sortOrder, smsTable, pduTable); in query()
359 uri.getPathSegments().get(1), projection, selection, in query()
364 uri.getPathSegments().get(1), projection, selection, in query()
369 uri.getPathSegments().get(2), projection, selection, sortOrder, smsTable, in query()
[all …]
DMmsProvider.java89 String selection, String[] selectionArgs, String sortOrder) { in query() argument
237 ret = qb.query(db, projection, selection, in query()
575 public int delete(Uri uri, String selection, in delete() argument
630 String finalSelection = concatSelections(selection, extraSelection); in delete()
652 String selection, String[] selectionArgs, Uri uri) { in deleteMessages() argument
654 selection, selectionArgs, null, null, null); in deleteMessages()
672 int count = db.delete(TABLE_PDU, selection, selectionArgs); in deleteMessages()
684 private static int deleteParts(SQLiteDatabase db, String selection, in deleteParts() argument
686 return deleteDataRows(db, TABLE_PART, selection, selectionArgs); in deleteParts()
689 private static int deleteTempDrmData(SQLiteDatabase db, String selection, in deleteTempDrmData() argument
[all …]
/packages/apps/Browser/src/com/android/browser/provider/
DBrowserProvider2.java857 Object[] getSelectionWithAccounts(Uri uri, String selection, String[] selectionArgs) { in getSelectionWithAccounts() argument
864 selection = DatabaseUtils.concatenateWhere(selection, in getSelectionWithAccounts()
870 selection = DatabaseUtils.concatenateWhere(selection, in getSelectionWithAccounts()
875 return new Object[] { selection, selectionArgs, hasAccounts }; in getSelectionWithAccounts()
879 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
892 selection = DatabaseUtils.concatenateWhere(selection, in query()
906 selection = DatabaseUtils.concatenateWhere( in query()
907 Bookmarks.IS_DELETED + "=0", selection); in query()
912 selection = DatabaseUtils.concatenateWhere(selection, in query()
918 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/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.java74 String selection; in onHandleIntent() local
79 selection = CalendarAlerts.STATE + "=" + CalendarAlerts.STATE_FIRED + " AND " + in onHandleIntent()
83 selection = buildMultipleEventsQuery(eventIds); in onHandleIntent()
89 selection = CalendarAlerts.STATE + "=" + CalendarAlerts.STATE_FIRED; in onHandleIntent()
97 resolver.update(uri, values, selection, null); in onHandleIntent()
117 StringBuilder selection = new StringBuilder(); in buildMultipleEventsQuery() local
118 selection.append(CalendarAlerts.STATE); in buildMultipleEventsQuery()
119 selection.append("="); in buildMultipleEventsQuery()
120 selection.append(CalendarAlerts.STATE_FIRED); in buildMultipleEventsQuery()
122 selection.append(" AND ("); in buildMultipleEventsQuery()
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java828 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
832 return queryInternal(uri, projection, selection, selectionArgs, sortOrder); in query()
838 private Cursor queryInternal(Uri uri, String[] projection, String selection, in queryInternal() argument
854 return mDbHelper.getSyncState().query(db, projection, selection, selectionArgs, in queryInternal()
858 + (selection == null ? "" : " AND (" + selection + ")"); in queryInternal()
868 selection = appendAccountToSelection(uri, selection, Calendars.ACCOUNT_NAME, in queryInternal()
870 selection = appendLastSyncedColumnToSelection(selection, uri); in queryInternal()
882 selection = appendAccountToSelection(uri, selection, Calendars.ACCOUNT_NAME, in queryInternal()
884 selection = appendLastSyncedColumnToSelection(selection, uri); in queryInternal()
896 selection = appendAccountToSelection(uri, selection, Calendars.ACCOUNT_NAME, in queryInternal()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsProvider2.java2191 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
2196 return mProfileProvider.update(uri, values, selection, selectionArgs); in update()
2199 return super.update(uri, values, selection, selectionArgs); in update()
2203 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
2208 return mProfileProvider.delete(uri, selection, selectionArgs); in delete()
2211 return super.delete(uri, selection, selectionArgs); in delete()
2780 private Long findGroupByRawContactId(String selection, long rawContactId) { in findGroupByRawContactId() argument
2783 PROJECTION_GROUP_ID, selection, in findGroupByRawContactId()
3020 private int deleteData(String selection, String[] selectionArgs, boolean callerIsSyncAdapter) { in deleteData() argument
3031 selection, selectionArgs, null); in deleteData()
[all …]
DProfileProvider.java59 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
61 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query()
65 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
67 return mDelegate.queryLocal(uri, projection, selection, selectionArgs, sortOrder, -1, in query()
78 protected int updateInTransaction(Uri uri, ContentValues values, String selection, in updateInTransaction() argument
81 return mDelegate.updateInTransaction(uri, values, selection, selectionArgs); in updateInTransaction()
85 protected int deleteInTransaction(Uri uri, String selection, String[] selectionArgs) { in deleteInTransaction() argument
87 return mDelegate.deleteInTransaction(uri, selection, selectionArgs); in deleteInTransaction()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDatabaseWrapper.java198 final String[] projection, final String selection, in explainQueryPlan() argument
207 selection, in explainQueryPlan()
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()
265 searchTable, selection, cursor.getCount())); in query()
271 final String selection, final String[] selectionArgs, final String groupBy, in query() argument
274 searchTable, columns, selection, selectionArgs, in query()
279 final String[] projection, final String selection, final String[] queryArgs, in query() argument
282 explainQueryPlan(qb, mDatabase, projection, selection, queryArgs, in query()
[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/Email/emailcommon/src/com/android/emailcommon/utility/
DUtility.java563 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/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/Gallery2/src/com/android/gallery3d/filtershow/category/
DMainPanel.java53 private void selection(int position, boolean value) { in selection() method in MainPanel
155 selection(mCurrentSelected, false); in loadCategoryLookPanel()
160 selection(mCurrentSelected, true); in loadCategoryLookPanel()
168 selection(mCurrentSelected, false); in loadCategoryBorderPanel()
173 selection(mCurrentSelected, true); in loadCategoryBorderPanel()
184 selection(mCurrentSelected, false); in loadCategoryGeometryPanel()
189 selection(mCurrentSelected, true); in loadCategoryGeometryPanel()
197 selection(mCurrentSelected, false); in loadCategoryFiltersPanel()
202 selection(mCurrentSelected, true); in loadCategoryFiltersPanel()
212 selection(mCurrentSelected, false); in loadCategoryVersionsPanel()
[all …]
/packages/apps/FMRadio/src/com/android/fmradio/
DFmProvider.java125 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
130 rows = mSqlDb.delete(TABLE_NAME, selection, selectionArgs); in delete()
140 + (TextUtils.isEmpty(selection) ? "" : " AND (" + selection + ")"), in delete()
199 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
211 Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
230 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
235 rows = mSqlDb.update(TABLE_NAME, values, selection, selectionArgs); in update()
245 + (TextUtils.isEmpty(selection) ? "" : " AND (" + selection + ")"), in update()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java853 private Cursor queryCleared(Uri uri, String[] projection, String selection, in queryCleared() argument
857 return query(uri, projection, selection, selectionArgs, sort); in queryCleared()
868 final String selection, final String[] selectionArgs, in query() argument
871 Helpers.validateSelection(selection, sAppReadableColumnsSet); in query()
884 if (projection != null || selection != null || sort != null) { in query()
891 SqlSelection fullSelection = getWhereClause(uri, selection, selectionArgs, match); in query()
916 logVerboseQueryInfo(projection, selection, selectionArgs, sort, db); in query()
937 private void logVerboseQueryInfo(String[] projection, final String selection, in logVerboseQueryInfo() argument
959 sb.append(selection); in logVerboseQueryInfo()
1112 SqlSelection selection = getWhereClause(uri, where, whereArgs, match); in update() local
[all …]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPicasaSource.java108 String selection = PICASA_ALBUM_ID + " = '" + data.albumId + "'"; in openCursor() local
115 projection, selection, null, null); in openCursor()
193 StringBuilder selection = new StringBuilder(); in findImages() local
197 if (selection.length() > 0) { in findImages()
198 selection.append(" OR "); in findImages()
201 selection.append(PICASA_ALBUM_ID + " = '" + albumId + "'"); in findImages()
208 if (selection.length() == 0) { in findImages()
212 log(TAG, "selection is (" + selection.length() + "): " + selection.toString()); in findImages()
219 projection, selection.toString(), null, null); in findImages()
291 String selection = (PICASA_ALBUM_USER + " = '" + parts[2] + "' AND " + in resolveAlbumIds() local
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java296 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
341 sb.append(selection); 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
386 if (selection != null) { in update()
388 myWhere = "( " + selection + " )"; in update()
390 myWhere = "( " + selection + " ) AND "; in update()
419 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
427 if (selection != null) { in delete()
429 myWhere = "( " + selection + " )"; in delete()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropDrawingUtils.java84 RectF bounds, boolean fixedAspect, int selection) { in drawIndicators() argument
85 boolean notMoving = (selection == CropObject.MOVE_NONE); in drawIndicators()
87 if ((selection == CropObject.TOP_LEFT) || notMoving) { in drawIndicators()
90 if ((selection == CropObject.TOP_RIGHT) || notMoving) { in drawIndicators()
93 if ((selection == CropObject.BOTTOM_LEFT) || notMoving) { in drawIndicators()
96 if ((selection == CropObject.BOTTOM_RIGHT) || notMoving) { in drawIndicators()
100 if (((selection & CropObject.MOVE_TOP) != 0) || notMoving) { in drawIndicators()
103 if (((selection & CropObject.MOVE_BOTTOM) != 0) || notMoving) { in drawIndicators()
106 if (((selection & CropObject.MOVE_LEFT) != 0) || notMoving) { in drawIndicators()
109 if (((selection & CropObject.MOVE_RIGHT) != 0) || notMoving) { in drawIndicators()
/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/DeskClock/src/com/android/deskclock/
DHandleApiCalls.java204 final String selection = String.format("%s=?", Alarm.ENABLED); in getEnabledAlarms() local
206 return Alarm.getAlarms(context.getContentResolver(), selection, args); in getEnabledAlarms()
288 final StringBuilder selection = new StringBuilder(); in handleSetAlarm() local
290 setSelectionFromIntent(intent, hour, minutes, selection, args); in handleSetAlarm()
433 StringBuilder selection, in setSelectionFromIntent() argument
435 selection.append(Alarm.HOUR).append("=?"); in setSelectionFromIntent()
437 selection.append(" AND ").append(Alarm.MINUTES).append("=?"); in setSelectionFromIntent()
441 selection.append(" AND ").append(Alarm.LABEL).append("=?"); in setSelectionFromIntent()
447 selection.append(" AND ").append(Alarm.DAYS_OF_WEEK).append("=?"); in setSelectionFromIntent()
452 selection.append(" AND ").append(Alarm.VIBRATE).append("=?"); in setSelectionFromIntent()
[all …]
/packages/providers/TvProvider/src/com/android/providers/tv/
DTvProvider.java517 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
520 SqlParams params = createSqlParams(OP_QUERY, uri, selection, selectionArgs); in query()
646 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
647 SqlParams params = createSqlParams(OP_DELETE, uri, selection, selectionArgs); in delete()
677 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
678 SqlParams params = createSqlParams(OP_UPDATE, uri, selection, selectionArgs); in update()
696 private SqlParams createSqlParams(String operation, Uri uri, String selection, in createSqlParams() argument
699 SqlParams params = new SqlParams(null, selection, selectionArgs); in createSqlParams()
705 if (!TextUtils.isEmpty(selection)) { in createSqlParams()
1119 String selection = WATCHED_PROGRAMS_COLUMN_CONSOLIDATED + "=? AND " in onConsolidate() local
[all …]
/packages/apps/Email/tests/src/com/android/email/provider/
DProviderTests.java857 private int count(Context context, Uri uri, String selection, String[] selectionArgs) { in count() argument
859 .query(uri, EmailContent.ID_PROJECTION, selection, selectionArgs, null); in count()
1106 String selection = EmailContent.MessageColumns.ACCOUNT_KEY + "=? AND " in testMessageDelete() local
1111 int numMessages = EmailContent.count(mMockContext, Message.CONTENT_URI, selection, selArgs); in testMessageDelete()
1119 numMessages = EmailContent.count(mMockContext, Message.CONTENT_URI, selection, selArgs); in testMessageDelete()
1127 numMessages = EmailContent.count(mMockContext, Message.CONTENT_URI, selection, selArgs); in testMessageDelete()
1157 String selection = EmailContent.MessageColumns.ACCOUNT_KEY + "=? AND " in testSyncedMessageDelete() local
1162 int numMessages = EmailContent.count(mMockContext, Message.CONTENT_URI, selection, selArgs); in testSyncedMessageDelete()
1167 EmailContent.count(mMockContext, Message.DELETED_CONTENT_URI, selection, selArgs); in testSyncedMessageDelete()
1175 numMessages = EmailContent.count(mMockContext, Message.CONTENT_URI, selection, selArgs); in testSyncedMessageDelete()
[all …]

12345678