/packages/providers/TvProvider/src/com/android/providers/tv/util/ |
H A D | SqlParams.java | 26 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/DocumentsUI/tests/unit/com/android/documentsui/selection/ |
H A D | SelectionTest.java | 17 package com.android.documentsui.selection; 26 import com.android.documentsui.selection.Selection; 41 private Selection selection; field in class:SelectionTest 51 selection = new Selection(); 52 selection.add(ids[0]); 53 selection.add(ids[1]); 54 selection.add(ids[2]); 60 assertEquals(3, selection.size()); 68 selection.remove(ids[0]); 69 selection [all...] |
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
H A D | DismissAlarmsService.java | 74 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/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/ |
H A D | DragStartListenerTest.java | 36 import com.android.documentsui.selection.SelectionManager; 37 import com.android.documentsui.selection.Selection; 88 (Selection selection) -> { 141 Selection selection = mListener.getSelectionToBeCopied("1234", 143 assertTrue(selection.size() == 1); 144 assertTrue(selection.contains("1234")); 149 Selection selection = new Selection(); 150 selection.add("1234"); 151 selection.add("5678"); 152 mMultiSelectManager.replaceSelection(selection); [all...] |
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/selection/ |
H A D | TestSelectionListener.java | 17 package com.android.documentsui.selection; 22 import com.android.documentsui.selection.SelectionManager;
|
H A D | SelectionProbe.java | 17 package com.android.documentsui.selection; 23 import com.android.documentsui.selection.SelectionManager; 24 import com.android.documentsui.selection.Selection; 66 Selection selection = mMgr.getSelection(); 67 assertEquals(selection.toString(), expected, selection.size()); 89 assertTrue(sid + " is not in selection " + sel, sel.contains(sid)); 99 assertFalse(sid + " is in selection " + sel, sel.contains(sid));
|
/packages/experimental/RpcPerformance/src/com/android/rpc_performance/ |
H A D | Provider.java | 32 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 D | BookmarkProvider.java | 49 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 D | NullContentProvider.java | 31 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 D | BoundCursorLoader.java | 33 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
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/tests/ |
H A D | CrashingIconProvider.java | 48 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/providers/TelephonyProvider/src/com/android/providers/telephony/ |
H A D | CarrierProvider.java | 61 public Cursor query(Uri uri, String[] projectionIn, String selection, argument 67 + " selection=" + selection 74 Cursor c = qb.query(db, projectionIn, selection, selectionArgs, null, null, sortOrder); 92 public int delete(Uri uri, String selection, String[] selectionArgs) { argument 96 + " selection={" + selection + "}" 97 + " selection=" + selection 101 selection, selectionArg 107 update(Uri uri, ContentValues values, String selection, String[] selectionArgs) argument [all...] |
H A D | MmsSmsProvider.java | 325 String selection, String[] selectionArgs, String sortOrder) { 340 cursor = getCompleteConversations(projection, selection, sortOrder, smsTable, 348 selection = concatSelections( 349 selection, Threads.TYPE + "=" + threadType); 352 projection, selection, selectionArgs, sortOrder); 355 projection, selection, sortOrder, smsTable, pduTable); 360 selection, sortOrder, smsTable, pduTable); 364 uri.getPathSegments().get(1), projection, selection, 369 uri.getPathSegments().get(1), projection, selection, 374 uri.getPathSegments().get(2), projection, selection, sortOrde 324 query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 764 getSimpleConversations(String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 786 getDraftThread(String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument 846 getConversations(String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument 899 getFirstLockedMessage(String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument 942 getCompleteConversations(String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument 972 getConversationMessages( String threadIdString, String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument 1008 getMessagesByPhoneNumber( String phoneNumber, String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument 1057 getConversationById( String threadIdString, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 1096 getUndeliveredMessages( String[] projection, String selection, String[] selectionArgs, String sortOrder, String smsTable, String pduTable) argument 1163 buildConversationQuery(String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument 1217 delete(Uri uri, String selection, String[] selectionArgs) argument 1263 deleteConversation(Uri uri, String selection, String[] selectionArgs) argument 1284 update(Uri uri, ContentValues values, String selection, String[] selectionArgs) argument 1332 updateConversation(String threadIdString, ContentValues values, String selection, String[] selectionArgs, int callerUid, String callerPkg) argument [all...] |
/packages/apps/Settings/src/com/android/settings/search/ |
H A D | DatabaseResultLoader.java | 150 final String[] selection = buildSingleWordSelection(query, matchColumns.length); 152 return query(whereClause, selection, baseRank); 166 final String[] selection = buildSingleWordSelection(query, matchColumns.length); 168 return query(whereClause, selection, baseRank); 180 final String[] selection = buildAnyWordSelection(matchColumns.length * 2); 182 return query(whereClause, selection, baseRank); 189 * @param selection List of the transformed query to match each bind in the whereClause 193 private Set<SearchResult> query(String whereClause, String[] selection, int baseRank) { argument 197 selection, null, null, null)) { 245 * Fills out the selection arra [all...] |
/packages/providers/TvProvider/src/com/android/providers/tv/ |
H A D | PackageRemovedReceiver.java | 48 String selection = TvContract.BaseTvColumns.COLUMN_PACKAGE_NAME + "=?"; 52 .withSelection(selection, selectionArgs).build()); 54 .withSelection(selection, selectionArgs).build()); 57 .withSelection(selection, selectionArgs).build()); 60 .withSelection(selection, selectionArgs).build()); 63 .withSelection(selection, selectionArgs).build());
|
/packages/apps/Dialer/java/com/android/dialer/blocking/ |
H A D | FilteredNumberProvider.java | 63 Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { 77 final Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, null); 122 public int delete(Uri uri, String selection, String[] selectionArgs) { argument 129 selection = getSelectionWithId(selection, ContentUris.parseId(uri)); 135 db.delete(DialerDatabaseHelper.Tables.FILTERED_NUMBER_TABLE, selection, selectionArgs); 143 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument 150 selection = getSelectionWithId(selection, ContentUris.parseId(uri)); 157 DialerDatabaseHelper.Tables.FILTERED_NUMBER_TABLE, values, selection, selectionArg 62 query( Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 164 getSelectionWithId(String selection, long id) argument [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/ |
H A D | MockContentProvider.java | 95 public Query withSelection(String selection, String... selectionArgs) { argument 96 mSelection = selection; 136 public boolean equals(Uri uri, String[] projection, String selection, argument 150 if (!mAnySelection && !Objects.equals(selection, mSelection)) { 323 * Sets the given information as expected selection arguments. 325 * @param selection The selection to expect. 326 * @param selectionArgs The selection args to expect. 329 public Delete withSelection(String selection, @Nullable String[] selectionArgs) { argument 330 mSelection = Preconditions.checkNotNull(selection); 368 equals(Uri uri, String selection, String[] selectionArgs) argument 391 Update(Uri uri, ContentValues contentValues, @Nullable String selection, @Nullable String[] selectionArgs) argument 423 equals(Uri uri, ContentValues contentValues, @Nullable String selection, @Nullable String[] selectionArgs) argument 500 expectUpdate(Uri contentUri, ContentValues contentValues, @Nullable String selection, @Nullable String[] selectionArgs) argument 516 query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 580 update(Uri uri, ContentValues values, @Nullable String selection, @Nullable String[] selectionArgs) argument 604 updateToString(Uri uri, ContentValues contentValues, @Nullable String selection, @Nullable String[] selectionArgs) argument 613 delete(Uri uri, String selection, String[] selectionArgs) argument 633 deleteToString(Uri uri, String selection, String[] selectionArgs) argument 638 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 D | NaughtySuggestionProvider.java | 48 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 D | ProfileProvider.java | 65 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument 67 return query(uri, projection, selection, selectionArgs, sortOrder, null); 71 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument 75 return mDelegate.queryLocal(uri, projection, selection, selectionArgs, sortOrder, -1, 89 protected int updateInTransaction(Uri uri, ContentValues values, String selection, argument 92 return mDelegate.updateInTransaction(uri, values, selection, selectionArgs); 96 protected int deleteInTransaction(Uri uri, String selection, String[] selectionArgs) { argument 98 return mDelegate.deleteInTransaction(uri, selection, selectionArgs);
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
H A D | FavoritesAndContactsLoader.java | 85 final StringBuilder selection = new StringBuilder(); 86 selection.append(Contacts.STARRED + "=?"); 90 selection.append(" AND ").append(Contacts.IN_VISIBLE_GROUP + "=1"); 93 Contacts.CONTENT_URI, mProjection, selection.toString(), new String[]{"1"},
|
/packages/apps/Contacts/src/com/android/contacts/model/account/ |
H A D | AccountTypeWithDataSet.java | 60 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/Dialer/java/com/android/contacts/common/model/account/ |
H A D | AccountTypeWithDataSet.java | 59 final String selection; 62 selection = BASE_SELECTION + " AND " + RawContacts.DATA_SET + " IS NULL"; 65 selection = BASE_SELECTION + " AND " + RawContacts.DATA_SET + " = ?"; 72 .query(RAW_CONTACTS_URI_LIMIT_1, ID_PROJECTION, selection, args, null);
|
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/ |
H A D | DocumentClipper.java | 28 import com.android.documentsui.selection.Selection; 47 * Returns {@link ClipData} representing the selection, or null if selection is empty, 50 ClipData getClipDataForDocuments(Function<String, Uri> uriBuilder, Selection selection, argument 66 void clipDocumentsForCopy(Function<String, Uri> uriBuilder, Selection selection); argument 72 Function<String, Uri> uriBuilder, Selection selection, DocumentInfo parent); 71 clipDocumentsForCut( Function<String, Uri> uriBuilder, Selection selection, DocumentInfo parent) argument
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
H A D | SelectionManagers.java | 21 import com.android.documentsui.selection.SelectionManager; 22 import com.android.documentsui.selection.SelectionManager.SelectionMode; 23 import com.android.documentsui.selection.SelectionManager.SelectionPredicate;
|
/packages/apps/QuickSearchBox/tests/slow/src/com/android/quicksearchbox/tests/slow/ |
H A D | SlowSuggestionProvider.java | 46 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
|