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

12345

/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/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/Calendar/src/com/android/calendar/alerts/
H A DDismissAllAlarmsService.java49 String selection = CalendarAlerts.STATE + "=" + CalendarAlerts.STATE_FIRED;
54 resolver.update(uri, values, selection, null);
/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/apps/Contacts/src/com/android/contacts/model/
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/apps/Email/src/com/android/email/data/
H A DThrottlingCursorLoader.java37 public ThrottlingCursorLoader(Context context, Uri uri, String[] projection, String selection, argument
39 this(context, uri, projection, selection, selectionArgs, sortOrder,
44 public ThrottlingCursorLoader(Context context, Uri uri, String[] projection, String selection, argument
46 super(context, uri, projection, selection, selectionArgs, sortOrder);
/packages/apps/HTMLViewer/src/com/android/htmlviewer/
H A DFileContentProvider.java66 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
81 public Cursor query(Uri uri, String[] projection, String selection, argument
87 public int update(Uri uri, ContentValues values, String selection, argument
/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/ContactsProvider/src/com/android/providers/contacts/
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
H A DAbstractContactsProvider.java120 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
123 int deleted = deleteInTransaction(uri, selection, selectionArgs);
135 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
138 int updated = updateInTransaction(uri, values, selection, selectionArgs);
265 protected abstract int deleteInTransaction(Uri uri, String selection, String[] selectionArgs); argument
267 protected abstract int updateInTransaction(Uri uri, ContentValues values, String selection, argument
H A DProfileProvider.java74 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
78 return mDelegate.queryLocal(uri, projection, selection, selectionArgs, sortOrder, -1);
89 protected int updateInTransaction(Uri uri, ContentValues values, String selection, argument
93 return mDelegate.updateInTransaction(uri, values, selection, selectionArgs);
97 protected int deleteInTransaction(Uri uri, String selection, String[] selectionArgs) { argument
100 return mDelegate.deleteInTransaction(uri, selection, selectionArgs);
H A DVoicemailStatusTable.java76 public int delete(UriData uriData, String selection, String[] selectionArgs) { argument
78 String combinedClause = concatenateClauses(selection, uriData.getWhereClause());
84 public Cursor query(UriData uriData, String[] projection, String selection, argument
91 String combinedClause = concatenateClauses(selection, uriData.getWhereClause());
101 public int update(UriData uriData, ContentValues values, String selection, argument
104 String combinedClause = concatenateClauses(selection, uriData.getWhereClause());
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
H A DMmsSmsProvider.java285 String selection, String[] selectionArgs, String sortOrder) {
290 cursor = getCompleteConversations(projection, selection, sortOrder);
297 selection = concatSelections(
298 selection, Threads.TYPE + "=" + threadType);
301 projection, selection, selectionArgs, sortOrder);
304 projection, selection, sortOrder);
309 selection, sortOrder);
313 uri.getPathSegments().get(1), projection, selection,
318 uri.getPathSegments().get(1), projection, selection,
323 uri.getPathSegments().get(2), projection, selection, sortOrde
284 query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
692 getSimpleConversations(String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
714 getDraftThread(String[] projection, String selection, String sortOrder) argument
774 getConversations(String[] projection, String selection, String sortOrder) argument
827 getFirstLockedMessage(String[] projection, String selection, String sortOrder) argument
870 getCompleteConversations(String[] projection, String selection, String sortOrder) argument
899 getConversationMessages( String threadIdString, String[] projection, String selection, String sortOrder) argument
934 getMessagesByPhoneNumber( String phoneNumber, String[] projection, String selection, String sortOrder) argument
983 getConversationById( String threadIdString, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
1022 getUndeliveredMessages( String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
1089 buildConversationQuery(String[] projection, String selection, String sortOrder) argument
1143 delete(Uri uri, String selection, String[] selectionArgs) argument
1188 deleteConversation(Uri uri, String selection, String[] selectionArgs) argument
1204 update(Uri uri, ContentValues values, String selection, String[] selectionArgs) argument
1240 updateConversation( String threadIdString, ContentValues values, String selection, String[] selectionArgs) 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/Contacts/src/com/android/contacts/list/
H A DDefaultContactListAdapter.java145 StringBuilder selection = new StringBuilder();
160 selection.append(Contacts.STARRED + "!=0");
164 selection.append(Contacts.HAS_PHONE_NUMBER + "=1");
168 selection.append(Contacts.IN_VISIBLE_GROUP + "=1");
170 selection.append(" AND " + Contacts.HAS_PHONE_NUMBER + "=1");
176 selection.append(
185 selection.append(" AND " + RawContacts.DATA_SET + "=?");
188 selection.append(" AND " + RawContacts.DATA_SET + " IS NULL");
190 selection.append(")");
194 loader.setSelection(selection
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/tests/mocks/
H A DMockContentProvider.java82 public Query withSelection(String selection, String... selectionArgs) { argument
83 mSelection = selection;
123 public boolean equals(Uri uri, String[] projection, String selection, argument
133 if (!mAnySelection && !equals(selection, mSelection)) {
249 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
254 if (query.equals(uri, projection, selection, selectionArgs, sortOrder)) {
265 + queryToString(uri, projection, selection, selectionArgs, sortOrder));
273 queryToString(uri, projection, selection, selectionArgs, sortOrder));
279 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
304 public int update(Uri uri, ContentValues values, String selection, Strin argument
308 queryToString(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
[all...]
/packages/apps/Browser/src/com/android/browser/homepages/
H A DHomeProvider.java41 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
61 public Cursor query(Uri uri, String[] projection, String selection, argument
67 public int update(Uri uri, ContentValues values, String selection, argument
/packages/apps/Browser/src/com/android/browser/provider/
H A DSnapshotProvider.java167 public Cursor query(Uri uri, String[] projection, String selection, argument
178 selection = DatabaseUtils.concatenateWhere(selection, "_id=?");
190 Cursor cursor = qb.query(db, projection, selection, selectionArgs,
233 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
242 selection = DatabaseUtils.concatenateWhere(selection, TABLE_SNAPSHOTS + "._id=?");
249 deleted = db.delete(TABLE_SNAPSHOTS, selection, selectionArgs);
263 public int update(Uri uri, ContentValues values, String selection, argument
H A DBrowserProvider2.java845 Object[] getSelectionWithAccounts(Uri uri, String selection, String[] selectionArgs) { argument
852 selection = DatabaseUtils.concatenateWhere(selection,
858 selection = DatabaseUtils.concatenateWhere(selection,
863 return new Object[] { selection, selectionArgs, hasAccounts };
867 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
880 selection = DatabaseUtils.concatenateWhere(selection,
894 selection
1122 doSuggestQuery(String selection, String[] selectionArgs, String limit) argument
1198 deleteBookmarks(String selection, String[] selectionArgs, boolean callerIsSyncAdapter) argument
1213 deleteInTransaction(Uri uri, String selection, String[] selectionArgs, boolean callerIsSyncAdapter) argument
1606 updateInTransaction(Uri uri, ContentValues values, String selection, String[] selectionArgs, boolean callerIsSyncAdapter) argument
1815 updateBookmarksInTransaction(ContentValues values, String selection, String[] selectionArgs, boolean callerIsSyncAdapter) argument
1953 updateHistoryInTransaction(ContentValues values, String selection, String[] selectionArgs) argument
1993 appendAccountToSelection(Uri uri, String selection) argument
[all...]
H A DSQLiteContentProvider.java75 public abstract int updateInTransaction(Uri uri, ContentValues values, String selection, argument
81 public abstract int deleteInTransaction(Uri uri, String selection, String[] selectionArgs, argument
149 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
157 count = updateInTransaction(uri, values, selection, selectionArgs,
166 count = updateInTransaction(uri, values, selection, selectionArgs, callerIsSyncAdapter);
173 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
181 count = deleteInTransaction(uri, selection, selectionArgs, callerIsSyncAdapter);
189 count = deleteInTransaction(uri, selection, selectionArgs, callerIsSyncAdapter);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DSqlInjectionDetectionTest.java98 final String selection, final String sortOrder) {
99 final Cursor c = mResolver.query(uri, projection, selection, null, sortOrder);
104 final String[] projection, final String selection, final String sortOrder) {
108 final Cursor c = mResolver.query(uri, projection, selection, null, sortOrder);
97 assertQueryValid(final Uri uri, final String[] projection, final String selection, final String sortOrder) argument
103 assertQueryThrows(Class<T> exception, final Uri uri, final String[] projection, final String selection, final String sortOrder) argument
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
H A DBluetoothPbapVcardManager.java149 String selection = BluetoothPbapObexServer.createSelectionPara(type);
153 callCursor = mResolver.query(myUri, null, selection, null,
168 String selection = BluetoothPbapObexServer.createSelectionPara(type);
178 callCursor = mResolver.query(myUri, projection, selection, null,
324 String selection;
326 selection = recordSelection;
328 selection = "(" + typeSelection + ") AND (" + recordSelection + ")";
331 if (V) Log.v(TAG, "Call log query selection is: " + selection);
333 return composeAndSendVCards(op, selection, vcardType2
430 composeAndSendVCards(Operation op, final String selection, final boolean vcardType21, String ownerVCard, boolean isContacts) argument
[all...]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DSQLiteContentProvider.java68 protected abstract int updateInTransaction(Uri uri, ContentValues values, String selection, argument
74 protected abstract int deleteInTransaction(Uri uri, String selection, String[] selectionArgs, argument
139 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
147 count = updateInTransaction(uri, values, selection, selectionArgs,
159 count = updateInTransaction(uri, values, selection, selectionArgs,
170 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
178 count = deleteInTransaction(uri, selection, selectionArgs, isCallerSyncAdapter);
189 count = deleteInTransaction(uri, selection, selectionArgs, isCallerSyncAdapter);

Completed in 313 milliseconds

12345