/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | PackageNameVisibilityTest.java | 136 final Bundle queryArgs = new Bundle(); in testOwnerPackageNameInSelection_filtered() local 137 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, in testOwnerPackageNameInSelection_filtered() 139 queryArgs.putStringArray(ContentResolver.QUERY_ARG_SQL_SELECTION_ARGS, in testOwnerPackageNameInSelection_filtered() 142 int resultSize = TestUtils.queryWithArgsAs(TEST_APP_A, sMediaUriCreatedByAppB, queryArgs); in testOwnerPackageNameInSelection_filtered() 150 final Bundle queryArgs = new Bundle(); in testOwnerPackageNameInSelection_selfOwned() local 151 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, in testOwnerPackageNameInSelection_selfOwned() 153 queryArgs.putStringArray(ContentResolver.QUERY_ARG_SQL_SELECTION_ARGS, in testOwnerPackageNameInSelection_selfOwned() 156 int resultSize = TestUtils.queryWithArgsAs(TEST_APP_B, sMediaUriCreatedByAppB, queryArgs); in testOwnerPackageNameInSelection_selfOwned() 164 final Bundle queryArgs = new Bundle(); in testOwnerPackageNameInGroupBy() local 165 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_GROUP_BY, in testOwnerPackageNameInGroupBy() [all …]
|
D | StorageOtherAndOwnedFilesTest.java | 99 Bundle queryArgs = new Bundle(); in test_latestSelectionOnly_noGrantsPresent() local 100 queryArgs.putBoolean(MediaStore.QUERY_ARG_LATEST_SELECTION_ONLY, true); in test_latestSelectionOnly_noGrantsPresent() 102 try (Cursor c = getResultForFilesQuery(sContentResolver, queryArgs)) { in test_latestSelectionOnly_noGrantsPresent() argument 149 Bundle queryArgs = new Bundle(); in test_latestSelectionOnly_withOwnedAndGrantedItems() local 150 queryArgs.putBoolean(MediaStore.QUERY_ARG_LATEST_SELECTION_ONLY, true); in test_latestSelectionOnly_withOwnedAndGrantedItems() 152 try (Cursor c = getResultForFilesQuery(sContentResolver, queryArgs)) { in test_latestSelectionOnly_withOwnedAndGrantedItems() argument
|
D | OwnedAndOtherFilesRule.java | 55 Bundle queryArgs) { in getResultForFilesQuery() argument 59 queryArgs, in getResultForFilesQuery()
|
D | StorageOwnedFilesTest.java | 188 Bundle queryArgs = new Bundle(); in owned_grantOwnedItemBySelection() local 189 queryArgs.putBoolean(MediaStore.QUERY_ARG_LATEST_SELECTION_ONLY, true); in owned_grantOwnedItemBySelection() 190 try (Cursor c = getResultForFilesQuery(sContentResolver, queryArgs)) { in owned_grantOwnedItemBySelection() argument
|
/cts/tests/tests/content/src/android/content/cts/ |
D | TestPagingContentProvider.java | 66 public Cursor query(Uri uri, String[] ignored, Bundle queryArgs, in query() argument 69 queryArgs = queryArgs != null ? queryArgs : Bundle.EMPTY; in query() 71 int recordCount = queryArgs.getInt(RECORD_COUNT, Integer.MIN_VALUE); in query() 82 cursor = buildPagedResults(queryArgs, recordCount); in query() 97 private Cursor buildPagedResults(Bundle queryArgs, int recordsetSize) { in buildPagedResults() argument 99 int offset = queryArgs.getInt(ContentResolver.QUERY_ARG_OFFSET, 0); in buildPagedResults() 100 int limit = queryArgs.getInt(ContentResolver.QUERY_ARG_LIMIT, Integer.MIN_VALUE); in buildPagedResults()
|
D | ContentResolverTest.java | 371 Bundle queryArgs = new Bundle(); in testQuery_WithSqlSelectionArgs() local 372 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, COLUMN_ID_NAME + "=?"); in testQuery_WithSqlSelectionArgs() 373 queryArgs.putStringArray(ContentResolver.QUERY_ARG_SQL_SELECTION_ARGS, new String[] {"1"}); in testQuery_WithSqlSelectionArgs() 375 mCursor = mContentResolver.query(TABLE1_URI, null, queryArgs, null); in testQuery_WithSqlSelectionArgs() 386 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, COLUMN_KEY_NAME + "=?"); in testQuery_WithSqlSelectionArgs() 387 queryArgs.putStringArray(ContentResolver.QUERY_ARG_SQL_SELECTION_ARGS, new String[] {KEY3}); in testQuery_WithSqlSelectionArgs() 388 mCursor = mContentResolver.query(TABLE1_URI, null, queryArgs, null); in testQuery_WithSqlSelectionArgs() 426 Bundle queryArgs = new Bundle(); in testQuery_SqlSortingFromBundleArgs() local 427 queryArgs.putStringArray( in testQuery_SqlSortingFromBundleArgs() 432 queryArgs.putInt( in testQuery_SqlSortingFromBundleArgs() [all …]
|
D | MockContentProvider.java | 260 @Nullable Bundle queryArgs, @Nullable CancellationSignal cancellationSignal) { in query() argument 261 if (queryArgs != null && queryArgs.containsKey(ContentResolver.QUERY_ARG_SORT_LOCALE)) { in query() 263 final String locale = queryArgs.getString(ContentResolver.QUERY_ARG_SORT_LOCALE); in query() 276 queryArgs.getStringArray(ContentResolver.QUERY_ARG_SORT_COLUMNS)); in query() 281 return super.query(uri, projection, queryArgs, cancellationSignal); in query()
|
/cts/hostsidetests/scopedstorage/ScopedStorageTestHelper/src/android/scopedstorage/cts/ |
D | ScopedStorageTestHelper.java | 333 final Bundle queryArgs = new Bundle(); in createQueryArgToRetrieveMinimumRowId() local 334 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SORT_ORDER, in createQueryArgToRetrieveMinimumRowId() 336 queryArgs.putInt(ContentResolver.QUERY_ARG_LIMIT, 1); in createQueryArgToRetrieveMinimumRowId() 337 return queryArgs; in createQueryArgToRetrieveMinimumRowId() 341 final Bundle queryArgs = new Bundle(); in createQueryArgToRetrieveMaximumRowId() local 342 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SORT_ORDER, in createQueryArgToRetrieveMaximumRowId() 344 queryArgs.putInt(ContentResolver.QUERY_ARG_LIMIT, 1); in createQueryArgToRetrieveMaximumRowId() 345 return queryArgs; in createQueryArgToRetrieveMaximumRowId()
|
/cts/tests/mediaprovider/src/android/provider/cts/media/ |
D | MediaStore_Images_MediaTest.java | 597 final Bundle queryArgs = new Bundle(); 598 queryArgs.putStringArray(ContentResolver.QUERY_ARG_GROUP_COLUMNS, 604 new String[]{ImageColumns.BUCKET_ID, "COUNT(_id)"}, queryArgs, null)) { 634 final Bundle queryArgs = new Bundle(); in testLimit() local 635 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, in testLimit() 637 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SORT_ORDER, in testLimit() 639 queryArgs.putInt(ContentResolver.QUERY_ARG_LIMIT, 1); in testLimit() 642 new String[]{BaseColumns._ID}, queryArgs, null)) { in testLimit() argument 653 queryArgs.putInt(ContentResolver.QUERY_ARG_OFFSET, 1); in testLimit() 656 new String[]{BaseColumns._ID}, queryArgs, null)) { in testLimit() argument
|
D | MediaStore_Audio_MediaTest.java | 264 final Bundle queryArgs = new Bundle(); in testSortLocale() local 265 queryArgs.putStringArray(ContentResolver.QUERY_ARG_SORT_COLUMNS, in testSortLocale() 274 queryArgs.putString(ContentResolver.QUERY_ARG_SORT_LOCALE, locale); in testSortLocale() 275 try (Cursor c = mContentResolver.query(mExternalAudio, null, queryArgs, null)) { in testSortLocale() argument
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sharesheet/ |
D | SharesheetAdditionalContentProvider.java | 57 public Cursor query(@NonNull Uri uri, @Nullable String[] projection, @Nullable Bundle queryArgs, in query() argument 64 Intent chooserIntent = queryArgs == null in query() 66 : queryArgs.getParcelable(Intent.EXTRA_INTENT, Intent.class); in query()
|
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
D | TestUtils.java | 365 public static int queryWithArgsAs(TestApp testApp, Uri uri, Bundle queryArgs) throws Exception { in queryWithArgsAs() argument 367 return getFromTestApp(testApp, uri, actionName, queryArgs).getInt(actionName); in queryWithArgsAs() 2091 Bundle queryArgs = new Bundle(); in queryFile() local 2092 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, in queryFile() 2094 queryArgs.putStringArray(ContentResolver.QUERY_ARG_SQL_SELECTION_ARGS, in queryFile() 2096 queryArgs.putInt(MediaStore.QUERY_ARG_MATCH_TRASHED, MediaStore.MATCH_INCLUDE); in queryFile() 2099 queryArgs.putInt(MediaStore.QUERY_ARG_MATCH_PENDING, MediaStore.MATCH_INCLUDE); in queryFile() 2101 queryArgs.putInt(MediaStore.QUERY_ARG_MATCH_PENDING, MediaStore.MATCH_EXCLUDE); in queryFile() 2104 final Cursor c = cr.query(uri, projection, queryArgs, null); in queryFile()
|