Searched refs:selection (Results 1 - 25 of 194) sorted by relevance

12345678

/packages/providers/TvProvider/src/com/android/providers/tv/util/
H A DSqlParams.java26 public SqlParams(String tables, String selection, String... selectionArgs) { argument
28 setWhere(selection, selectionArgs);
47 public void setWhere(String selection, String... selectionArgs) { argument
48 mSelection = selection;
52 public void appendWhere(String selection, String... selectionArgs) { argument
53 mSelection = DatabaseUtils.concatenateWhere(mSelection, selection);
/packages/apps/Calendar/src/com/android/calendar/alerts/
H A DDismissAlarmsService.java74 String selection;
79 selection = CalendarAlerts.STATE + "=" + CalendarAlerts.STATE_FIRED + " AND " +
83 selection = buildMultipleEventsQuery(eventIds);
89 selection = CalendarAlerts.STATE + "=" + CalendarAlerts.STATE_FIRED;
97 resolver.update(uri, values, selection, null);
117 StringBuilder selection = new StringBuilder();
118 selection.append(CalendarAlerts.STATE);
119 selection.append("=");
120 selection.append(CalendarAlerts.STATE_FIRED);
122 selection
[all...]
/packages/experimental/RpcPerformance/src/com/android/rpc_performance/
H A DProvider.java32 String selection, String[] selectionArgs,
43 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
47 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
31 query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
/packages/providers/BookmarkProvider/src/com/android/bookmarkstore/
H A DBookmarkProvider.java49 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
54 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
59 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
H A DNullContentProvider.java31 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
47 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
52 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
/packages/apps/Messaging/src/com/android/messaging/datamodel/
H A DBoundCursorLoader.java33 final String[] projection, final String selection, final String[] selectionArgs,
35 super(context, uri, projection, selection, selectionArgs, sortOrder);
32 BoundCursorLoader(final String bindingId, final Context context, final Uri uri, final String[] projection, final String selection, final String[] selectionArgs, final String sortOrder) argument
H A DFrequentContactsCursorQueryData.java40 String[] projection, String selection, String[] selectionArgs, String sortOrder) {
41 super(bindingId, context, uri, projection, selection, selectionArgs, sortOrder);
103 String selection, String[] selectionArgs, String sortOrder) {
105 super(context, Contacts.CONTENT_STREQUENT_URI, projection, selection, selectionArgs,
39 FrequentContactsCursorLoader(String bindingId, Context context, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
102 FrequentContactsCursorQueryData(Context context, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/tests/
H A DCrashingIconProvider.java48 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
49 if (DBG) Log.d(TAG, "delete(" + uri + ", " + selection + ", " + selectionArgs + ")");
66 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
73 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
/packages/apps/Dialer/src/com/android/dialer/database/
H A DFilteredNumberProvider.java81 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
96 final Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, null);
142 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
149 selection = getSelectionWithId(selection, ContentUris.parseId(uri));
155 selection,
164 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
171 selection = getSelectionWithId(selection, ContentUris.parseId(uri));
192 selection,
200 getSelectionWithId(String selection, long id) argument
[all...]
H A DVoicemailArchiveProvider.java87 @Nullable String selection,
93 .query(db, projection, selection, selectionArgs, null, null, sortOrder);
136 public int delete(Uri uri, @Nullable String selection, @Nullable String[] selectionArgs) { argument
139 Cursor cursor = queryBuilder.query(db, null, selection, selectionArgs, null, null, null);
148 getSelectionWithId(selection, uri),
159 @Nullable String selection,
162 selection = getSelectionWithId(selection, uri);
165 selection,
201 private String getSelectionWithId(String selection, Ur argument
85 query(Uri uri, @Nullable String[] projection, @Nullable String selection, @Nullable String[] selectionArgs, @Nullable String sortOrder) argument
157 update(Uri uri, ContentValues values, @Nullable String selection, @Nullable String[] selectionArgs) argument
[all...]
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
H A DMockContentProvider.java83 public Query withSelection(String selection, String... selectionArgs) { argument
84 mSelection = selection;
124 public boolean equals(Uri uri, String[] projection, String selection, argument
134 if (!mAnySelection && !Objects.equals(selection, mSelection)) {
290 * Sets the given information as expected selection arguments.
292 * @param selection The selection to expect.
293 * @param selectionArgs The selection args to expect.
296 public Delete withSelection(String selection, @Nullable String[] selectionArgs) { argument
297 mSelection = Preconditions.checkNotNull(selection);
335 equals(Uri uri, String selection, String[] selectionArgs) argument
358 Update(Uri uri, ContentValues contentValues, @Nullable String selection, @Nullable String[] selectionArgs) argument
390 equals(Uri uri, ContentValues contentValues, @Nullable String selection, @Nullable String[] selectionArgs) argument
460 expectUpdate(Uri contentUri, ContentValues contentValues, @Nullable String selection, @Nullable String[] selectionArgs) argument
476 query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
540 update(Uri uri, ContentValues values, @Nullable String selection, @Nullable String[] selectionArgs) argument
564 updateToString(Uri uri, ContentValues contentValues, @Nullable String selection, @Nullable String[] selectionArgs) argument
573 delete(Uri uri, String selection, String[] selectionArgs) argument
593 deleteToString(Uri uri, String selection, String[] selectionArgs) argument
598 queryToString(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
[all...]
/packages/apps/QuickSearchBox/tests/naughty/src/com/android/quicksearchbox/tests/naughty/
H A DNaughtySuggestionProvider.java48 public int update(Uri uri, ContentValues values, String selection, argument
54 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DProfileProvider.java61 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
63 return query(uri, projection, selection, selectionArgs, sortOrder, null);
67 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
70 return mDelegate.queryLocal(uri, projection, selection, selectionArgs, sortOrder, -1,
81 protected int updateInTransaction(Uri uri, ContentValues values, String selection, argument
84 return mDelegate.updateInTransaction(uri, values, selection, selectionArgs);
88 protected int deleteInTransaction(Uri uri, String selection, String[] selectionArgs) { argument
90 return mDelegate.deleteInTransaction(uri, selection, selectionArgs);
H A DVoicemailTable.java39 public int delete(UriData uriData, String selection, String[] selectionArgs); argument
40 public Cursor query(UriData uriData, String[] projection, String selection, argument
42 public int update(UriData uriData, ContentValues values, String selection, argument
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/mock/
H A DSimpleMockContentProvider.java35 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { argument
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/
H A DAccountTypeWithDataSet.java60 final String selection;
63 selection = BASE_SELECTION + " AND " + RawContacts.DATA_SET + " IS NULL";
66 selection = BASE_SELECTION + " AND " + RawContacts.DATA_SET + " = ?";
71 ID_PROJECTION, selection, args, null);
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
H A DMmsSmsProvider.java321 String selection, String[] selectionArgs, String sortOrder) {
336 cursor = getCompleteConversations(projection, selection, sortOrder, smsTable,
344 selection = concatSelections(
345 selection, Threads.TYPE + "=" + threadType);
348 projection, selection, selectionArgs, sortOrder);
351 projection, selection, sortOrder, smsTable, pduTable);
356 selection, sortOrder, smsTable, pduTable);
360 uri.getPathSegments().get(1), projection, selection,
365 uri.getPathSegments().get(1), projection, selection,
370 uri.getPathSegments().get(2), projection, selection, sortOrde
320 query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
760 getSimpleConversations(String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
782 getDraftThread(String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument
842 getConversations(String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument
895 getFirstLockedMessage(String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument
938 getCompleteConversations(String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument
968 getConversationMessages( String threadIdString, String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument
1004 getMessagesByPhoneNumber( String phoneNumber, String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument
1053 getConversationById( String threadIdString, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
1092 getUndeliveredMessages( String[] projection, String selection, String[] selectionArgs, String sortOrder, String smsTable, String pduTable) argument
1159 buildConversationQuery(String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument
1213 delete(Uri uri, String selection, String[] selectionArgs) argument
1259 deleteConversation(Uri uri, String selection, String[] selectionArgs) argument
1280 update(Uri uri, ContentValues values, String selection, String[] selectionArgs) argument
1328 updateConversation(String threadIdString, ContentValues values, String selection, String[] selectionArgs, int callerUid, String callerPkg) argument
[all...]
/packages/apps/QuickSearchBox/tests/slow/src/com/android/quicksearchbox/tests/slow/
H A DSlowSuggestionProvider.java46 public Cursor query(Uri uri, String[] projectionIn, String selection, argument
80 public int update(Uri uri, ContentValues values, String selection, argument
86 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
/packages/apps/QuickSearchBox/tests/spammy/src/com/android/quicksearchbox/tests/spammy/
H A DSpammySuggestionProvider.java46 public Cursor query(Uri uri, String[] projectionIn, String selection, argument
74 public int update(Uri uri, ContentValues values, String selection, argument
80 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
H A DUtils.java74 public static @Nullable String wrapSelectionWithParens(@Nullable String selection) { argument
75 return TextUtils.isEmpty(selection) ? null : "(" + selection + ")";
H A DBlockedNumberProvider.java180 public int update(@NonNull Uri uri, @Nullable ContentValues values, @Nullable String selection, argument
189 public int delete(@NonNull Uri uri, @Nullable String selection, argument
197 numRows = deleteBlockedNumber(selection, selectionArgs);
200 numRows = deleteBlockedNumberWithId(ContentUris.parseId(uri), selection);
213 private int deleteBlockedNumberWithId(long id, String selection) { argument
214 throwForNonEmptySelection(selection);
222 private int deleteBlockedNumber(String selection, String[] selectionArgs) { argument
225 // When selection is specified, compile it within (...) to detect SQL injection.
226 if (!TextUtils.isEmpty(selection)) {
228 Utils.wrapSelectionWithParens(selection),
238 query(@onNull Uri uri, @Nullable String[] projection, @Nullable String selection, @Nullable String[] selectionArgs, @Nullable String sortOrder) argument
246 query(@onNull Uri uri, @Nullable String[] projection, @Nullable String selection, @Nullable String[] selectionArgs, @Nullable String sortOrder, @Nullable CancellationSignal cancellationSignal) argument
273 queryBlockedListWithId(long id, String[] projection, String selection, CancellationSignal cancellationSignal) argument
284 queryBlockedList(String[] projection, String selection, String[] selectionArgs, String sortOrder, CancellationSignal cancellationSignal) argument
296 throwForNonEmptySelection(String selection) argument
[all...]
/packages/apps/Calendar/src/com/android/calendar/
H A DEventGeometry.java107 * Returns true if this event intersects the selection region.
109 boolean eventIntersectsSelection(Event event, Rect selection) { argument
110 if (event.left < selection.right && event.right >= selection.left
111 && event.top < selection.bottom && event.bottom >= selection.top) {
H A DAsyncQueryService.java158 * @param selection A filter declaring which rows to return, formatted as an
161 * @param selectionArgs You may include ?s in selection, which will be
163 * they appear in the selection. The values will be bound as
170 String selection, String[] selectionArgs, String orderBy) {
180 info.selection = selection;
226 * @param selection A filter declaring which rows to update, formatted as an
229 * @param selectionArgs You may include ?s in selection, which will be
231 * they appear in the selection. The values will be bound as
238 String selection, Strin
169 startQuery(int token, Object cookie, Uri uri, String[] projection, String selection, String[] selectionArgs, String orderBy) argument
237 startUpdate(int token, Object cookie, Uri uri, ContentValues values, String selection, String[] selectionArgs, long delayMillis) argument
274 startDelete(int token, Object cookie, Uri uri, String selection, String[] selectionArgs, long delayMillis) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
H A DMainPanel.java53 private void selection(int position, boolean value) { method in class:MainPanel
155 selection(mCurrentSelected, false);
160 selection(mCurrentSelected, true);
168 selection(mCurrentSelected, false);
173 selection(mCurrentSelected, true);
184 selection(mCurrentSelected, false);
189 selection(mCurrentSelected, true);
197 selection(mCurrentSelected, false);
202 selection(mCurrentSelected, true);
212 selection(mCurrentSelecte
[all...]
/packages/apps/Gallery2/src/com/android/photos/data/
H A DPhotoProvider.java48 * in the selection. The selection and selectionArgs are not used when updating
272 public int deleteInTransaction(Uri uri, String selection, String[] selectionArgs, argument
275 selection = addIdToSelection(match, selection);
277 return deleteCascade(uri, match, selection, selectionArgs);
308 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
310 return query(uri, projection, selection, selectionArgs, sortOrder, null);
314 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
318 selection
329 updateInTransaction(Uri uri, ContentValues values, String selection, String[] selectionArgs, boolean callerIsSyncAdapter) argument
350 addIdToSelection(int match, String selection) argument
477 deleteCascade(Uri uri, int match, String selection, String[] selectionArgs) argument
518 query(String table, String[] columns, String selection, String[] selectionArgs, String orderBy, CancellationSignal cancellationSignal) argument
[all...]

Completed in 647 milliseconds

12345678