Searched refs:queryArgs (Results 1 – 5 of 5) sorted by relevance
/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 | 349 Bundle queryArgs = new Bundle(); in testQuery_WithSqlSelectionArgs() local 350 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, COLUMN_ID_NAME + "=?"); in testQuery_WithSqlSelectionArgs() 351 queryArgs.putStringArray(ContentResolver.QUERY_ARG_SQL_SELECTION_ARGS, new String[] {"1"}); in testQuery_WithSqlSelectionArgs() 353 mCursor = mContentResolver.query(TABLE1_URI, null, queryArgs, null); in testQuery_WithSqlSelectionArgs() 364 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, COLUMN_KEY_NAME + "=?"); in testQuery_WithSqlSelectionArgs() 365 queryArgs.putStringArray(ContentResolver.QUERY_ARG_SQL_SELECTION_ARGS, new String[] {KEY3}); in testQuery_WithSqlSelectionArgs() 366 mCursor = mContentResolver.query(TABLE1_URI, null, queryArgs, null); in testQuery_WithSqlSelectionArgs() 404 Bundle queryArgs = new Bundle(); in testQuery_SqlSortingFromBundleArgs() local 405 queryArgs.putStringArray( in testQuery_SqlSortingFromBundleArgs() 410 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/tests/tests/provider/src/android/provider/cts/media/ |
D | MediaStore_Audio_MediaTest.java | 227 final Bundle queryArgs = new Bundle(); in testSortLocale() local 228 queryArgs.putStringArray(ContentResolver.QUERY_ARG_SORT_COLUMNS, in testSortLocale() 237 queryArgs.putString(ContentResolver.QUERY_ARG_SORT_LOCALE, locale); in testSortLocale() 238 try (Cursor c = mContentResolver.query(mExternalAudio, null, queryArgs, null)) { in testSortLocale() argument
|
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
D | TestUtils.java | 1542 Bundle queryArgs = new Bundle(); in queryFile() local 1543 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, in queryFile() 1545 queryArgs.putStringArray(ContentResolver.QUERY_ARG_SQL_SELECTION_ARGS, in queryFile() 1547 queryArgs.putInt(MediaStore.QUERY_ARG_MATCH_TRASHED, MediaStore.MATCH_INCLUDE); in queryFile() 1550 queryArgs.putInt(MediaStore.QUERY_ARG_MATCH_PENDING, MediaStore.MATCH_INCLUDE); in queryFile() 1552 queryArgs.putInt(MediaStore.QUERY_ARG_MATCH_PENDING, MediaStore.MATCH_EXCLUDE); in queryFile() 1555 final Cursor c = cr.query(uri, projection, queryArgs, null); in queryFile()
|