/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | DatabaseUtils.java | 277 public static void resolveQueryArgs(@NonNull Bundle queryArgs, in resolveQueryArgs() argument 284 resolveGroupBy(queryArgs, honored); in resolveQueryArgs() 285 resolveSortOrder(queryArgs, honored, collatorFactory); in resolveQueryArgs() 286 resolveLimit(queryArgs, honored); in resolveQueryArgs() 289 private static void resolveGroupBy(@NonNull Bundle queryArgs, in resolveGroupBy() argument 291 final String[] columns = queryArgs.getStringArray(QUERY_ARG_GROUP_COLUMNS); in resolveGroupBy() 296 queryArgs.putString(QUERY_ARG_SQL_GROUP_BY, groupBy); in resolveGroupBy() 302 private static void resolveSortOrder(@NonNull Bundle queryArgs, in resolveSortOrder() argument 305 final String[] columns = queryArgs.getStringArray(QUERY_ARG_SORT_COLUMNS); in resolveSortOrder() 310 if (queryArgs.containsKey(QUERY_ARG_SORT_LOCALE)) { in resolveSortOrder() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/v2/model/ |
D | MediaQuery.java | 57 public MediaQuery(Bundle queryArgs) { in MediaQuery() argument 58 mPickerId = queryArgs.getLong("picker_id", Long.MAX_VALUE); in MediaQuery() 59 mDateTakenMs = queryArgs.getLong("date_taken_millis", Long.MAX_VALUE); in MediaQuery() 60 mPageSize = queryArgs.getInt("page_size", Integer.MAX_VALUE); in MediaQuery() 61 mIntentAction = Objects.requireNonNull(queryArgs.getString("intent_action")); in MediaQuery() 65 Objects.requireNonNull(queryArgs.getStringArrayList("providers"))); in MediaQuery() 66 mMimeTypes = queryArgs.getStringArrayList("mime_types") != null in MediaQuery() 67 ? new ArrayList<>(queryArgs.getStringArrayList("mime_types")) in MediaQuery() 99 final Bundle queryArgs = new Bundle(); in prepareCMPQueryArgs() local 101 queryArgs.putStringArray(Intent.EXTRA_MIME_TYPES, mMimeTypes.toArray(new String[0])); in prepareCMPQueryArgs() [all …]
|
D | VideoMediaQuery.java | 32 public VideoMediaQuery(@NonNull Bundle queryArgs, int pageSize) { in VideoMediaQuery() argument 33 this(queryArgs); in VideoMediaQuery() 38 public VideoMediaQuery(@NonNull Bundle queryArgs) { in VideoMediaQuery() argument 39 super(queryArgs); in VideoMediaQuery()
|
D | FavoritesMediaQuery.java | 37 @NonNull Bundle queryArgs, in FavoritesMediaQuery() 39 super(queryArgs); in FavoritesMediaQuery() 44 public FavoritesMediaQuery(@NonNull Bundle queryArgs) { in FavoritesMediaQuery() argument 45 super(queryArgs); in FavoritesMediaQuery()
|
D | AlbumMediaQuery.java | 42 @NonNull Bundle queryArgs, in AlbumMediaQuery() 44 super(queryArgs); in AlbumMediaQuery() 46 mAlbumAuthority = requireNonNull(queryArgs.getString("album_authority")); in AlbumMediaQuery()
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ |
D | PickerDataLayer.java | 134 public Cursor fetchLocalMedia(Bundle queryArgs) { in fetchLocalMedia() argument 135 queryArgs.putBoolean(QUERY_ARG_LOCAL_ONLY, true); in fetchLocalMedia() 136 return fetchMediaInternal(queryArgs); in fetchLocalMedia() 143 public Cursor fetchAllMedia(Bundle queryArgs) { in fetchAllMedia() argument 144 queryArgs.putBoolean(QUERY_ARG_LOCAL_ONLY, false); in fetchAllMedia() 145 return fetchMediaInternal(queryArgs); in fetchAllMedia() 148 private Cursor fetchMediaInternal(Bundle queryArgs) { in fetchMediaInternal() argument 151 + (queryArgs.getBoolean(QUERY_ARG_LOCAL_ONLY) ? "LOCAL_ONLY" : "ALL") in fetchMediaInternal() 152 + " args=" + queryArgs); in fetchMediaInternal() 157 CloudProviderQueryExtras.fromMediaStoreBundle(queryArgs); in fetchMediaInternal() [all …]
|
D | PickerSyncController.java | 691 final Bundle queryArgs = new Bundle(); in syncAlbumMediaFromProvider() local 692 queryArgs.putString(EXTRA_ALBUM_ID, albumId); in syncAlbumMediaFromProvider() 694 queryArgs.putInt(EXTRA_PAGE_SIZE, PAGE_SIZE); in syncAlbumMediaFromProvider() 701 authority, isLocal, albumId, queryArgs, instanceId, cancellationSignal); in syncAlbumMediaFromProvider() 783 final Bundle queryArgs = new Bundle(); in syncAllMediaFromProvider() local 784 queryArgs.putLong(EXTRA_SYNC_GENERATION, params.syncGeneration); in syncAllMediaFromProvider() 786 queryArgs.putInt(EXTRA_PAGE_SIZE, params.mPageSize); in syncAllMediaFromProvider() 794 queryArgs, in syncAllMediaFromProvider() 797 executeSyncRemove(authority, isLocal, params.getMediaCollectionId(), queryArgs, in syncAllMediaFromProvider() 924 Bundle queryArgs, in executeSyncAdd() argument [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/MediaProvider/tests/src/com/android/providers/media/ |
D | PickerUriResolverTest.java | 289 Bundle queryArgs = new Bundle(); in testProcessUrisForSelection_withoutPermissionOrAuthorityChecks() local 292 queryArgs.putStringArrayList(PickerDataLayer.QUERY_ID_SELECTION, inputUris); in testProcessUrisForSelection_withoutPermissionOrAuthorityChecks() 294 sTestPickerUriResolver.processUrisForSelection(queryArgs, in testProcessUrisForSelection_withoutPermissionOrAuthorityChecks() 298 List<String> filteredList = queryArgs.getStringArrayList( in testProcessUrisForSelection_withoutPermissionOrAuthorityChecks() 305 queryArgs.remove(PickerDataLayer.QUERY_LOCAL_ID_SELECTION); in testProcessUrisForSelection_withoutPermissionOrAuthorityChecks() 306 queryArgs.remove(PickerDataLayer.QUERY_CLOUD_ID_SELECTION); in testProcessUrisForSelection_withoutPermissionOrAuthorityChecks() 310 sTestPickerUriResolver.processUrisForSelection(queryArgs, in testProcessUrisForSelection_withoutPermissionOrAuthorityChecks() 314 List<String> filteredList2 = queryArgs.getStringArrayList( in testProcessUrisForSelection_withoutPermissionOrAuthorityChecks() 328 Bundle queryArgs = new Bundle(); in testProcessUrisForSelection_permissionChecks() local 331 queryArgs.putStringArrayList(PickerDataLayer.QUERY_ID_SELECTION, inputUris); in testProcessUrisForSelection_permissionChecks() [all …]
|
D | MediaProviderForFuseTest.java | 198 final Bundle queryArgs = queryArgsForDirContents(renamedDir); in testRenameDirectory() local 200 .query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, queryArgs, null)) { in testRenameDirectory() argument 225 final Bundle queryArgs = queryArgsForDirContents(renamedDir); in testRenameDirectory_WhenParentDirectoryIsHidden() local 227 .query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, queryArgs, null)) { in testRenameDirectory_WhenParentDirectoryIsHidden() argument 259 final Bundle queryArgs = new Bundle(); in queryArgsForDirContents() local 260 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, "_data like ?"); in queryArgsForDirContents() 261 queryArgs.putStringArray(ContentResolver.QUERY_ARG_SQL_SELECTION_ARGS, in queryArgsForDirContents() 263 return queryArgs; in queryArgsForDirContents()
|
/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/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() 170 DebugFlags.addForcedPagingArgs(queryArgs); in loadInBackground() 173 cursor = queryOnUsers(userIds, authority, queryArgs); in loadInBackground() 220 private Cursor queryOnUsers(List<UserId> userIds, String authority, Bundle queryArgs) in queryOnUsers() argument 227 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()
|
/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()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadStorageProvider.java | 358 @Nullable Bundle queryArgs, @Nullable CancellationSignal signal) in queryRecentDocuments() argument 367 if (queryArgs != null) { in queryRecentDocuments() 368 limit = queryArgs.getInt(ContentResolver.QUERY_ARG_LIMIT, -1); in queryRecentDocuments() 427 public Cursor querySearchDocuments(String rootId, String[] projection, Bundle queryArgs) in querySearchDocuments() argument 439 .setFilterByString(DocumentsContract.getSearchDocumentsQuery(queryArgs))); in querySearchDocuments() 442 includeDownloadFromCursor(result, cursor, filePaths, queryArgs); in querySearchDocuments() 445 includeDownloadsFromMediaStore(result, queryArgs, filePaths, in querySearchDocuments() 448 includeSearchFilesFromSharedStorage(result, projection, filePaths, queryArgs); in querySearchDocuments() 454 final String[] handledQueryArgs = DocumentsContract.getHandledQueryArguments(queryArgs); in querySearchDocuments() 467 Set<String> filePaths, Bundle queryArgs) throws FileNotFoundException { in includeSearchFilesFromSharedStorage() argument [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | PickerUriResolver.java | 192 public Cursor query(Integer table, Bundle queryArgs, String localProvider, in query() argument 196 screenedQueryArgs = processUrisForSelection(queryArgs, in query() 207 return pickerDataLayer.fetchAllAlbums(queryArgs); in query() 209 return pickerDataLayer.fetchLocalAlbums(queryArgs); in query() 367 public Bundle processUrisForSelection(Bundle queryArgs, String localProvider, in processUrisForSelection() argument 370 List<String> inputUrisAsStrings = queryArgs.getStringArrayList(QUERY_ID_SELECTION); in processUrisForSelection() 373 return queryArgs; in processUrisForSelection() 376 boolean shouldScreenSelectionUris = queryArgs.getBoolean( in processUrisForSelection() 380 Set<Uri> inputUris = screenArgsForPermissionCheckIfAny(queryArgs, inputUrisAsStrings); in processUrisForSelection() 385 queryArgs.putStringArrayList(QUERY_LOCAL_ID_SELECTION, result.getLocalIds()); in processUrisForSelection() [all …]
|
D | MediaDocumentsProvider.java | 610 final String[] queryArgs = new String[] { Long.toString(ident.id) } ; in queryDocument() local 622 queryArgs, ImagesBucketQuery.SORT_ORDER); in queryDocument() 630 ImageQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument() 643 queryArgs, VideosBucketQuery.SORT_ORDER); in queryDocument() 651 VideoQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument() 663 ArtistQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument() 672 AlbumQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument() 681 SongQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument() 693 FileColumns.BUCKET_ID + "=?", queryArgs); in queryDocument() 703 FileColumns._ID + "=?", queryArgs, null); in queryDocument() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/v2/ |
D | PickerDataLayerV2.java | 77 static Cursor queryMedia(@NonNull Context appContext, @NonNull Bundle queryArgs) { in queryMedia() argument 78 final MediaQuery query = new MediaQuery(queryArgs); in queryMedia() 108 static Cursor queryAlbums(@NonNull Context appContext, @NonNull Bundle queryArgs) { in queryAlbums() argument 109 final MediaQuery query = new MediaQuery(queryArgs); in queryAlbums() 122 AlbumColumns.ALBUM_ID_FAVORITES, queryArgs, database, in queryAlbums() 127 AlbumColumns.ALBUM_ID_VIDEOS, queryArgs, database, in queryAlbums() 161 @NonNull Bundle queryArgs, in queryAlbumMedia() argument 163 final AlbumMediaQuery query = new AlbumMediaQuery(queryArgs, albumId); in queryAlbumMedia() 181 queryArgs, in queryAlbumMedia() 524 @NonNull Bundle queryArgs, in getMergedAlbumsCursor() argument [all …]
|
D | PickerUriResolverV2.java | 86 @Nullable Bundle queryArgs) { in query() argument 92 return PickerDataLayerV2.queryMedia(appContext, requireNonNull(queryArgs)); in query() 94 return PickerDataLayerV2.queryAlbums(appContext, requireNonNull(queryArgs)); in query() 99 requireNonNull(queryArgs), in query()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/ |
D | AtPhonebook.java | 124 Bundle queryArgs = new Bundle(); in getLastDialledNumber() local 125 queryArgs.putString( in getLastDialledNumber() 127 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SORT_ORDER, Calls.DEFAULT_SORT_ORDER); in getLastDialledNumber() 128 queryArgs.putInt(ContentResolver.QUERY_ARG_LIMIT, 1); in getLastDialledNumber() 130 Cursor cursor = mContentResolver.query(Calls.CONTENT_URI, projection, queryArgs, null); in getLastDialledNumber() 435 Bundle queryArgs = new Bundle(); in queryPhonebook() local 436 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SELECTION, where); in queryPhonebook() 437 queryArgs.putString(ContentResolver.QUERY_ARG_SQL_SORT_ORDER, Calls.DEFAULT_SORT_ORDER); in queryPhonebook() 438 queryArgs.putInt(ContentResolver.QUERY_ARG_LIMIT, MAX_PHONEBOOK_SIZE); in queryPhonebook() 445 queryArgs, in queryPhonebook() [all …]
|
/packages/services/Telephony/src/com/android/phone/ |
D | SimPhonebookProvider.java | 245 public Cursor query(@NonNull Uri uri, @Nullable String[] projection, @Nullable Bundle queryArgs, in query() argument 247 if (queryArgs != null && (queryArgs.containsKey(ContentResolver.QUERY_ARG_SQL_SELECTION) in query() 248 || queryArgs.containsKey(ContentResolver.QUERY_ARG_SQL_SELECTION_ARGS) in query() 249 || queryArgs.containsKey(ContentResolver.QUERY_ARG_SQL_LIMIT))) { in query() 260 return querySimRecords(PhonebookArgs.forSimRecords(uri, queryArgs), projection); in query() 262 return querySimRecordsItem(PhonebookArgs.forSimRecordsItem(uri, queryArgs), in query() 823 @Nullable Bundle queryArgs) { in PhonebookArgs() argument 830 pin2 = efType == ElementaryFiles.EF_FDN && queryArgs != null in PhonebookArgs() 831 ? queryArgs.getString(SimRecords.QUERY_ARG_PIN2) in PhonebookArgs() 836 String efName, int recordNumber, @Nullable Bundle queryArgs) { in createFromEfName() argument [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/ |
D | PickerDataLayerTest.java | 315 final Bundle queryArgs = buildQueryArgs(IMAGE_MIME_TYPE, SIZE_BYTES_DEFAULT); in testFetchMediaMimeTypeFilter() local 319 try (Cursor cr = mDataLayer.fetchAllMedia(queryArgs)) { in testFetchMediaMimeTypeFilter() 336 final Bundle queryArgs = buildQueryArgs(IMAGE_MIME_TYPE, SIZE_BYTES - 1); in testFetchMediaSizeFilter() local 340 try (Cursor cr = mDataLayer.fetchAllMedia(queryArgs)) { in testFetchMediaSizeFilter() 360 final Bundle queryArgs = buildQueryArgs(VIDEO_MIME_TYPE, SIZE_BYTES - 1); in testFetchMediaMimeTypeAndSizeFilter() local 364 try (Cursor cr = mDataLayer.fetchAllMedia(queryArgs)) { in testFetchMediaMimeTypeAndSizeFilter() 378 Bundle queryArgs = buildDefaultQueryArgs(); in testFetchMediaLocalOnly() local 383 try (Cursor cr = mDataLayer.fetchLocalMedia(queryArgs)) { in testFetchMediaLocalOnly() 390 try (Cursor cr = mDataLayer.fetchAllMedia(queryArgs)) { in testFetchMediaLocalOnly() 765 final Bundle queryArgs = new Bundle(); in buildQueryArgs() local [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
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()
|
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()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/ |
D | ModernMediaScannerTest.java | 939 final Bundle queryArgs = new Bundle(); in testScan_deleteStaleRowWithExpiredPendingFile() local 940 queryArgs.putInt(MediaStore.QUERY_ARG_MATCH_PENDING, MediaStore.MATCH_INCLUDE); in testScan_deleteStaleRowWithExpiredPendingFile() 943 null, queryArgs, null)) { in testScan_deleteStaleRowWithExpiredPendingFile() argument 953 null, queryArgs, null)) { in testScan_deleteStaleRowWithExpiredPendingFile() argument 962 null, queryArgs, null)) { in testScan_deleteStaleRowWithExpiredPendingFile() argument 981 final Bundle queryArgs = new Bundle(); in testScan_keepStaleRowWithNonExpiredPendingFile() local 982 queryArgs.putInt(MediaStore.QUERY_ARG_MATCH_PENDING, MediaStore.MATCH_INCLUDE); in testScan_keepStaleRowWithNonExpiredPendingFile() 985 null, queryArgs, null)) { in testScan_keepStaleRowWithNonExpiredPendingFile() argument 995 null, queryArgs, null)) { in testScan_keepStaleRowWithNonExpiredPendingFile() argument 1004 null, queryArgs, null)) { in testScan_keepStaleRowWithNonExpiredPendingFile() argument [all …]
|