/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | DatabaseUtils.java | 246 public static void resolveQueryArgs(@NonNull Bundle queryArgs, in resolveQueryArgs() argument 253 resolveGroupBy(queryArgs, honored); in resolveQueryArgs() 254 resolveSortOrder(queryArgs, honored, collatorFactory); in resolveQueryArgs() 255 resolveLimit(queryArgs, honored); in resolveQueryArgs() 258 private static void resolveGroupBy(@NonNull Bundle queryArgs, in resolveGroupBy() argument 260 final String[] columns = queryArgs.getStringArray(QUERY_ARG_GROUP_COLUMNS); in resolveGroupBy() 265 queryArgs.putString(QUERY_ARG_SQL_GROUP_BY, groupBy); in resolveGroupBy() 271 private static void resolveSortOrder(@NonNull Bundle queryArgs, in resolveSortOrder() argument 274 final String[] columns = queryArgs.getStringArray(QUERY_ARG_SORT_COLUMNS); in resolveSortOrder() 279 if (queryArgs.containsKey(QUERY_ARG_SORT_LOCALE)) { in resolveSortOrder() [all …]
|
D | SQLiteQueryBuilder.java | 445 public Cursor query(DatabaseHelper helper, String[] projectionIn, Bundle queryArgs, in query() argument 447 final String selection = queryArgs.getString(QUERY_ARG_SQL_SELECTION); in query() 448 final String[] selectionArgs = queryArgs.getStringArray(QUERY_ARG_SQL_SELECTION_ARGS); in query() 449 final String groupBy = queryArgs.getString(QUERY_ARG_SQL_GROUP_BY); in query() 450 final String having = queryArgs.getString(QUERY_ARG_SQL_HAVING); in query() 451 final String sortOrder = queryArgs.getString(QUERY_ARG_SQL_SORT_ORDER); in query() 452 final String limit = queryArgs.getString(QUERY_ARG_SQL_LIMIT); in query()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/ |
D | SearchViewManagerTest.java | 347 final Bundle queryArgs = mSearchViewManager.buildQueryArgs(); in testBuildQueryArgs_hasSearchString() local 348 assertFalse(queryArgs.isEmpty()); in testBuildQueryArgs_hasSearchString() 350 final String queryString = queryArgs.getString(DocumentsContract.QUERY_ARG_DISPLAY_NAME); in testBuildQueryArgs_hasSearchString() 390 final Bundle queryArgs = mSearchViewManager.buildQueryArgs(); in testBuildQueryArgs_hasMimeType() local 391 assertFalse(queryArgs.isEmpty()); in testBuildQueryArgs_hasMimeType() 393 final String[] mimeTypes = queryArgs.getStringArray(QUERY_ARG_MIME_TYPES); in testBuildQueryArgs_hasMimeType() 403 final Bundle queryArgs = mSearchViewManager.buildQueryArgs(); in testBuildQueryArgs_hasLargeFilesSize() local 404 assertFalse(queryArgs.isEmpty()); in testBuildQueryArgs_hasLargeFilesSize() 406 final long largeFilesSize = queryArgs.getLong(QUERY_ARG_FILE_SIZE_OVER); in testBuildQueryArgs_hasLargeFilesSize() 418 final Bundle queryArgs = mSearchViewManager.buildQueryArgs(); in testBuildQueryArgs_hasWeekAgoTime() local [all …]
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | PagingProvider.java | 63 String parentDocumentId, String[] projection, Bundle queryArgs) in queryChildDocuments() argument 66 queryArgs = queryArgs != null ? queryArgs : Bundle.EMPTY; in queryChildDocuments() 71 int offset = queryArgs.getInt(ContentResolver.QUERY_ARG_OFFSET, 0); in queryChildDocuments() 72 int limit = queryArgs.getInt(ContentResolver.QUERY_ARG_LIMIT, Integer.MIN_VALUE); in queryChildDocuments() 73 int recordsetSize = queryArgs.getInt(TEST_RECORDSET_COUNT, DEFAULT_RECORDSET_COUNT); in queryChildDocuments()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadStorageProvider.java | 372 @Nullable Bundle queryArgs, @Nullable CancellationSignal signal) in queryRecentDocuments() argument 381 if (queryArgs != null) { in queryRecentDocuments() 382 limit = queryArgs.getInt(ContentResolver.QUERY_ARG_LIMIT, -1); in queryRecentDocuments() 441 public Cursor querySearchDocuments(String rootId, String[] projection, Bundle queryArgs) in querySearchDocuments() argument 453 .setFilterByString(DocumentsContract.getSearchDocumentsQuery(queryArgs))); in querySearchDocuments() 456 includeDownloadFromCursor(result, cursor, filePaths, queryArgs); in querySearchDocuments() 459 includeDownloadsFromMediaStore(result, queryArgs, filePaths, in querySearchDocuments() 462 includeSearchFilesFromSharedStorage(result, projection, filePaths, queryArgs); in querySearchDocuments() 468 final String[] handledQueryArgs = DocumentsContract.getHandledQueryArguments(queryArgs); in querySearchDocuments() 482 Bundle queryArgs) throws FileNotFoundException { in includeSearchFilesFromSharedStorage() argument [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | DirectoryLoader.java | 88 Bundle queryArgs) { in DirectoryLoader() argument 98 mSearchMode = queryArgs != null; in DirectoryLoader() 99 mQueryArgs = queryArgs; in DirectoryLoader() 126 final Bundle queryArgs = new Bundle(); in loadInBackground() local 127 mModel.addQuerySortArgs(queryArgs); in loadInBackground() 131 queryArgs.putAll(mQueryArgs); in loadInBackground() 171 DebugFlags.addForcedPagingArgs(queryArgs); in loadInBackground() 174 cursor = queryOnUsers(userIds, authority, queryArgs); in loadInBackground() 222 private Cursor queryOnUsers(List<UserId> userIds, String authority, Bundle queryArgs) in queryOnUsers() argument 229 Cursor c = userClient.query(mUri, /* projection= */null, queryArgs, mSignal); in queryOnUsers()
|
D | GlobalSearchLoader.java | 62 @NonNull Bundle queryArgs, UserId userId) { in GlobalSearchLoader() argument 64 mQueryArgs = queryArgs; in GlobalSearchLoader() 100 protected void addQueryArgs(@NonNull Bundle queryArgs) { in addQueryArgs() argument 101 queryArgs.putBoolean(DocumentsContract.QUERY_ARG_EXCLUDE_MEDIA, true); in addQueryArgs() 102 queryArgs.putAll(mQueryArgs); in addQueryArgs()
|
D | MultiRootDocumentsLoader.java | 399 protected void addQueryArgs(@NonNull Bundle queryArgs) { in addQueryArgs() argument 419 final Bundle queryArgs = new Bundle(); in runInternal() local 420 mState.sortModel.addQuerySortArgs(queryArgs); in runInternal() 421 addQueryArgs(queryArgs); in runInternal() 422 res[i] = client.query(uri, null, queryArgs, null); in runInternal()
|
D | AbstractActionHandler.java | 911 final Bundle queryArgs = mSearchMgr.isSearching() in onCreateLoader() local 932 queryArgs); in onCreateLoader()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | MessagingContentProvider.java | 274 String[] queryArgs = selectionArgs; in query() local 289 queryArgs = prependArgs(queryArgs, uri.getPathSegments().get(1)); in query() 308 queryArgs = prependArgs(queryArgs, uri.getPathSegments().get(2)); in query() 348 queryArgs = prependArgs(queryArgs, uri.getPathSegments().get(1)); in query() 362 queryArgs = prependArgs(queryArgs, uri.getPathSegments().get(1)); in query() 373 queryArgs, groupBy, null, sortOrder, limit); in query() 379 final String[] queryArgs = { conversationId }; in queryConversationMessages() local 381 ConversationMessageData.getConversationMessagesQuerySql(), queryArgs); in queryConversationMessages()
|
D | DatabaseWrapper.java | 200 final String[] queryArgs, in explainQueryPlan() argument 212 explainQueryPlan(db, queryString, queryArgs); in explainQueryPlan() 216 final String[] queryArgs) { in explainQueryPlan() argument 220 final Cursor planCursor = db.rawQuery("explain query plan " + sql, queryArgs); in explainQueryPlan() 279 final String[] projection, final String selection, final String[] queryArgs, in query() argument 282 explainQueryPlan(qb, mDatabase, projection, selection, queryArgs, in query() 290 final Cursor cursor = qb.query(mDatabase, projection, selection, queryArgs, groupBy, in query()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | AtPhonebook.java | 119 Bundle queryArgs = new Bundle(); in getLastDialledNumber() local 120 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, in getLastDialledNumber() 122 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SORT_ORDER, Calls.DEFAULT_SORT_ORDER); in getLastDialledNumber() 123 queryArgs.putInt(ContentResolver.QUERY_ARG_LIMIT, 1); in getLastDialledNumber() 125 Cursor cursor = mContentResolver.query(Calls.CONTENT_URI, projection, queryArgs, null); in getLastDialledNumber() 428 Bundle queryArgs = new Bundle(); in queryPhonebook() local 429 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, where); in queryPhonebook() 430 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SORT_ORDER, Calls.DEFAULT_SORT_ORDER); in queryPhonebook() 431 queryArgs.putInt(ContentResolver.QUERY_ARG_LIMIT, MAX_PHONEBOOK_SIZE); in queryPhonebook() 433 queryArgs, null); in queryPhonebook() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaDocumentsProvider.java | 583 final String[] queryArgs = new String[] { Long.toString(ident.id) } ; in queryDocument() local 595 queryArgs, ImagesBucketQuery.SORT_ORDER); in queryDocument() 603 ImageQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument() 616 queryArgs, VideosBucketQuery.SORT_ORDER); in queryDocument() 624 VideoQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument() 636 ArtistQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument() 645 AlbumQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument() 654 SongQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument() 666 FileColumns.BUCKET_ID + "=?", queryArgs); in queryDocument() 676 FileColumns._ID + "=?", queryArgs, null); in queryDocument() [all …]
|
D | MediaProvider.java | 1513 Bundle queryArgs = new Bundle(); in getFilesInDirectoryForFuse() local 1514 queryArgs.putString(QUERY_ARG_SQL_SELECTION, MediaColumns.RELATIVE_PATH + in getFilesInDirectoryForFuse() 1516 queryArgs.putStringArray(QUERY_ARG_SQL_SELECTION_ARGS, new String[] {relativePath}); in getFilesInDirectoryForFuse() 1520 queryArgs, null)) { in getFilesInDirectoryForFuse() argument 2178 public Cursor query(Uri uri, String[] projection, Bundle queryArgs, CancellationSignal signal) { in query() argument 2181 return queryInternal(uri, projection, queryArgs, signal); in query() 2189 private Cursor queryInternal(Uri uri, String[] projection, Bundle queryArgs, in queryInternal() argument 2191 queryArgs = (queryArgs != null) ? queryArgs : new Bundle(); in queryInternal() 2194 queryArgs.remove(INCLUDED_DEFAULT_DIRECTORIES); in queryInternal() 2197 DatabaseUtils.resolveQueryArgs(queryArgs, honoredArgs::add, this::ensureCustomCollator); in queryInternal() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | RootInfo.java | 101 public String queryArgs; field in RootInfo 128 queryArgs = null; in reset() 145 queryArgs = DurableUtils.readNullableString(in); in read() 167 DurableUtils.writeNullableString(out, queryArgs); in write() 218 newRoot.queryArgs = root.queryArgs; in copyRootInfo() 239 root.queryArgs = getCursorString(cursor, Root.COLUMN_QUERY_ARGS); in fromRootsCursor() 389 return queryArgs != null && queryArgs.contains(QUERY_ARG_MIME_TYPES); in supportsMimeTypesSearch()
|
D | DebugFlags.java | 58 public static boolean addForcedPagingArgs(Bundle queryArgs) { in addForcedPagingArgs() argument 61 queryArgs.putInt(ContentResolver.QUERY_ARG_OFFSET, sForcedPageOffset); in addForcedPagingArgs() 65 queryArgs.putInt(ContentResolver.QUERY_ARG_LIMIT, sForcedPageLimit); in addForcedPagingArgs()
|
/packages/providers/MediaProvider/src/com/android/providers/media/scan/ |
D | ModernMediaScanner.java | 397 final Bundle queryArgs = new Bundle(); in reconcileAndClean() local 398 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, in reconcileAndClean() 401 queryArgs.putStringArray(ContentResolver.QUERY_ARG_SQL_SELECTION_ARGS, in reconcileAndClean() 403 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SORT_ORDER, in reconcileAndClean() 405 queryArgs.putInt(MediaStore.QUERY_ARG_MATCH_PENDING, MediaStore.MATCH_EXCLUDE); in reconcileAndClean() 406 queryArgs.putInt(MediaStore.QUERY_ARG_MATCH_TRASHED, MediaStore.MATCH_INCLUDE); in reconcileAndClean() 407 queryArgs.putInt(MediaStore.QUERY_ARG_MATCH_FAVORITE, MediaStore.MATCH_INCLUDE); in reconcileAndClean() 410 queryArgs, mSignal)) { in reconcileAndClean() argument 447 final Bundle queryArgs = new Bundle(); in resolvePlaylists() local 448 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, in resolvePlaylists() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | DatabaseUtilsTest.java | 400 final Bundle queryArgs = new Bundle(); in recoverAbusiveGroupBy() local 401 queryArgs.putString(QUERY_ARG_SQL_SELECTION, selectionAndGroupBy.first); in recoverAbusiveGroupBy() 402 queryArgs.putString(QUERY_ARG_SQL_GROUP_BY, selectionAndGroupBy.second); in recoverAbusiveGroupBy() 403 DatabaseUtils.recoverAbusiveSelection(queryArgs); in recoverAbusiveGroupBy() 404 return Pair.create(queryArgs.getString(QUERY_ARG_SQL_SELECTION), in recoverAbusiveGroupBy() 405 queryArgs.getString(QUERY_ARG_SQL_GROUP_BY)); in recoverAbusiveGroupBy()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/ |
D | SortModel.java | 238 public void addQuerySortArgs(Bundle queryArgs) { in addQuerySortArgs() argument 246 queryArgs.putStringArray( in addQuerySortArgs() 251 queryArgs.putStringArray( in addQuerySortArgs() 256 queryArgs.putStringArray( in addQuerySortArgs() 273 queryArgs.putInt( in addQuerySortArgs() 278 queryArgs.putInt( in addQuerySortArgs()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/ |
D | SearchChipViewManager.java | 181 final Bundle queryArgs = new Bundle(); in getCheckedChipQueryArgs() local 185 queryArgs.putLong(DocumentsContract.QUERY_ARG_FILE_SIZE_OVER, in getCheckedChipQueryArgs() 188 queryArgs.putLong(DocumentsContract.QUERY_ARG_LAST_MODIFIED_AFTER, in getCheckedChipQueryArgs() 198 queryArgs.putStringArray(DocumentsContract.QUERY_ARG_MIME_TYPES, in getCheckedChipQueryArgs() 202 return queryArgs; in getCheckedChipQueryArgs()
|
D | SearchViewManager.java | 161 final Bundle queryArgs = mChipViewManager.getCheckedChipQueryArgs(); in buildQueryArgs() local 163 queryArgs.putString(DocumentsContract.QUERY_ARG_DISPLAY_NAME, mCurrentSearch); in buildQueryArgs() 168 queryArgs.putString(DocumentsContract.QUERY_ARG_DISPLAY_NAME, ""); in buildQueryArgs() 171 return queryArgs; in buildQueryArgs()
|
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/ |
D | ClientPlaylistTest.java | 272 final Bundle queryArgs = new Bundle(); in queryMembers() local 273 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SORT_ORDER, in queryMembers() 279 }, queryArgs, null)) { in queryMembers() argument
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | AlarmScheduler.java | 153 String[] queryArgs = new String[] { in queryUpcomingEvents() local 168 queryBuilder.toString(), queryArgs, null); in queryUpcomingEvents()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachineTest.java | 871 public Cursor query(Uri uri, String[] projection, Bundle queryArgs, in testKeyPressedEventWhenIdleAndAudioOff_dialCall() 880 if (queryArgs == null in testKeyPressedEventWhenIdleAndAudioOff_dialCall() 881 || !queryArgs.getString(ContentResolver.QUERY_ARG_SQL_SELECTION).equals( in testKeyPressedEventWhenIdleAndAudioOff_dialCall() 883 || !queryArgs.getString(ContentResolver.QUERY_ARG_SQL_SORT_ORDER).equals( in testKeyPressedEventWhenIdleAndAudioOff_dialCall() 885 || queryArgs.getInt(ContentResolver.QUERY_ARG_LIMIT) != 1) { in testKeyPressedEventWhenIdleAndAudioOff_dialCall()
|
/packages/apps/Car/Calendar/tests/ui/src/com/android/car/calendar/ |
D | CarCalendarUiTest.java | 255 Bundle queryArgs, in query() argument
|