Home
last modified time | relevance | path

Searched refs:queryArgs (Results 1 – 20 of 20) sorted by relevance

/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadStorageProvider.java368 @Nullable Bundle queryArgs, @Nullable CancellationSignal signal) in queryRecentDocuments() argument
377 if (queryArgs != null) { in queryRecentDocuments()
378 limit = queryArgs.getInt(ContentResolver.QUERY_ARG_LIMIT, -1); in queryRecentDocuments()
436 public Cursor querySearchDocuments(String rootId, String[] projection, Bundle queryArgs) in querySearchDocuments() argument
448 .setFilterByString(DocumentsContract.getSearchDocumentsQuery(queryArgs))); in querySearchDocuments()
451 includeDownloadFromCursor(result, cursor, filePaths, queryArgs); in querySearchDocuments()
454 includeDownloadsFromMediaStore(result, queryArgs, filePaths, in querySearchDocuments()
457 includeSearchFilesFromSharedStorage(result, projection, filePaths, queryArgs); in querySearchDocuments()
463 final String[] handledQueryArgs = DocumentsContract.getHandledQueryArguments(queryArgs); in querySearchDocuments()
477 Bundle queryArgs) throws FileNotFoundException { in includeSearchFilesFromSharedStorage() argument
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DPagingProvider.java63 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/apps/Messaging/src/com/android/messaging/datamodel/
DMessagingContentProvider.java274 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()
DDatabaseWrapper.java200 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()
DMessageNotificationState.java680 final String[] queryArgs = { conversationId }; in buildConversationPageForWearable() local
685 queryArgs); in buildConversationPageForWearable()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDirectoryLoader.java84 Bundle queryArgs) { in DirectoryLoader() argument
93 mSearchMode = queryArgs != null; in DirectoryLoader()
94 mQueryArgs = queryArgs; in DirectoryLoader()
128 final Bundle queryArgs = new Bundle(); in loadInBackground() local
129 mModel.addQuerySortArgs(queryArgs); in loadInBackground()
132 queryArgs.putAll(mQueryArgs); in loadInBackground()
138 DebugFlags.addForcedPagingArgs(queryArgs); in loadInBackground()
141 cursor = client.query(mUri, null, queryArgs, mSignal); in loadInBackground()
DGlobalSearchLoader.java60 @NonNull Bundle queryArgs) { in GlobalSearchLoader() argument
62 mQueryArgs = queryArgs; in GlobalSearchLoader()
93 protected void addQueryArgs(@NonNull Bundle queryArgs) { in addQueryArgs() argument
94 queryArgs.putBoolean(DocumentsContract.QUERY_ARG_EXCLUDE_MEDIA, true); in addQueryArgs()
95 queryArgs.putAll(mQueryArgs); in addQueryArgs()
DMultiRootDocumentsLoader.java385 protected void addQueryArgs(@NonNull Bundle queryArgs) { in addQueryArgs() argument
405 final Bundle queryArgs = new Bundle(); in runInternal() local
406 mState.sortModel.addQuerySortArgs(queryArgs); in runInternal()
407 addQueryArgs(queryArgs); in runInternal()
408 res[i] = client.query(uri, null, queryArgs, null); in runInternal()
DAbstractActionHandler.java611 final Bundle queryArgs = mSearchMgr.isSearching() in onCreateLoader() local
632 queryArgs); in onCreateLoader()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/
DSearchViewManagerTest.java331 final Bundle queryArgs = mSearchViewManager.buildQueryArgs(); in testBuildQueryArgs_hasSearchString() local
332 assertFalse(queryArgs.isEmpty()); in testBuildQueryArgs_hasSearchString()
334 final String queryString = queryArgs.getString(DocumentsContract.QUERY_ARG_DISPLAY_NAME); in testBuildQueryArgs_hasSearchString()
343 final Bundle queryArgs = mSearchViewManager.buildQueryArgs(); in testBuildQueryArgs_hasMimeType() local
344 assertFalse(queryArgs.isEmpty()); in testBuildQueryArgs_hasMimeType()
346 final String[] mimeTypes = queryArgs.getStringArray(QUERY_ARG_MIME_TYPES); in testBuildQueryArgs_hasMimeType()
356 root.queryArgs = QUERY_ARG_MIME_TYPES; in testSupportsMimeTypesSearch_showChips()
369 root.queryArgs = TextUtils.join("\n", in testNotSupportsMimeTypesSearch_notShowChips()
395 root.queryArgs = QUERY_ARG_MIME_TYPES; in testNotSupportsSearch_notShowMenuAndChips()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java558 final String[] queryArgs = new String[] { Long.toString(ident.id) } ; in queryDocument() local
570 queryArgs, ImagesBucketQuery.SORT_ORDER); in queryDocument()
578 ImageQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument()
591 queryArgs, VideosBucketQuery.SORT_ORDER); in queryDocument()
599 VideoQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument()
611 ArtistQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument()
620 AlbumQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument()
629 SongQuery.PROJECTION, BaseColumns._ID + "=?", queryArgs, in queryDocument()
651 final String[] queryArgs = new String[] { Long.toString(ident.id) } ; in queryChildDocuments() local
674 queryArgs, null); in queryChildDocuments()
[all …]
DMediaProvider.java1673 public Cursor query(Uri uri, String[] projection, Bundle queryArgs, CancellationSignal signal) { in query() argument
1676 return queryInternal(uri, projection, queryArgs, signal); in query()
1682 private Cursor queryInternal(Uri uri, String[] projection, Bundle queryArgs, in queryInternal() argument
1688 if (queryArgs != null) { in queryInternal()
1689 selection = queryArgs.getString(ContentResolver.QUERY_ARG_SQL_SELECTION); in queryInternal()
1690 selectionArgs = queryArgs.getStringArray(ContentResolver.QUERY_ARG_SQL_SELECTION_ARGS); in queryInternal()
1691 sortOrder = queryArgs.getString(ContentResolver.QUERY_ARG_SQL_SORT_ORDER); in queryInternal()
1693 && queryArgs.containsKey(ContentResolver.QUERY_ARG_SORT_COLUMNS)) { in queryInternal()
1694 sortOrder = ContentResolver.createSqlSortClause(queryArgs); in queryInternal()
1743 SQLiteQueryBuilder qb = getQueryBuilder(TYPE_QUERY, uri, table, queryArgs); in queryInternal()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DRootInfo.java97 public String queryArgs; field in RootInfo
123 queryArgs = null; in reset()
135 queryArgs = DurableUtils.readNullableString(in); in read()
156 DurableUtils.writeNullableString(out, queryArgs); in write()
203 root.queryArgs = getCursorString(cursor, Root.COLUMN_QUERY_ARGS); in fromRootsCursor()
333 return queryArgs != null && queryArgs.contains(QUERY_ARG_MIME_TYPES); in supportsMimeTypesSearch()
DDebugFlags.java58 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/TelephonyProvider/src/com/android/providers/telephony/
DRcsProvider.java333 public synchronized Cursor query(Uri uri, String[] projection, Bundle queryArgs, in query() argument
341 if (queryArgs != null) { in query()
342 selection = queryArgs.getString(ContentResolver.QUERY_ARG_SQL_SELECTION); in query()
343 selectionArgs = queryArgs.getStringArray( in query()
345 sortOrder = queryArgs.getString(ContentResolver.QUERY_ARG_SQL_SORT_ORDER); in query()
350 return mThreadHelper.queryUnifiedThread(queryArgs); in query()
354 return mParticipantHelper.queryParticipant(queryArgs); in query()
395 return mMessageHelper.queryMessages(queryArgs); in query()
455 return mEventHelper.queryEvents(queryArgs); in query()
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
DSortModel.java238 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/
DSearchViewManager.java159 final Bundle queryArgs = new Bundle(); in buildQueryArgs() local
161 queryArgs.putString(DocumentsContract.QUERY_ARG_DISPLAY_NAME, mCurrentSearch); in buildQueryArgs()
166 queryArgs.putStringArray(DocumentsContract.QUERY_ARG_MIME_TYPES, checkedMimeTypes); in buildQueryArgs()
168 return queryArgs; in buildQueryArgs()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DGlobalSearchLoaderTest.java66 final Bundle queryArgs = new Bundle(); in setUp() local
67 queryArgs.putString(DocumentsContract.QUERY_ARG_DISPLAY_NAME, SEARCH_STRING); in setUp()
69 TestImmediateExecutor.createLookup(), new TestFileTypeLookup(), queryArgs); in setUp()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlarmScheduler.java153 String[] queryArgs = new String[] { in queryUpcomingEvents() local
168 queryBuilder.toString(), queryArgs, null); in queryUpcomingEvents()
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
DProvidersCache.java116 queryArgs = QUERY_ARG_MIME_TYPES; in ProvidersCache()