Loading core/java/android/provider/DocumentsContract.java +17 −0 Original line number Diff line number Diff line Loading @@ -151,6 +151,17 @@ public final class DocumentsContract { public static final String QUERY_ARG_LAST_MODIFIED_AFTER = "android:query-arg-last-modified-after"; /** * Key for {@link DocumentsProvider} to decide whether the files that * have been added to MediaStore should be excluded. If the value is * true, exclude them. Otherwise, include them. * * @see DocumentsProvider#querySearchDocuments(String, String[], * Bundle) * {@hide} */ public static final String QUERY_ARG_EXCLUDE_MEDIA = "android:query-arg-exclude-media"; /** * Sets the desired initial location visible to user when file chooser is shown. * Loading Loading @@ -1017,6 +1028,7 @@ public final class DocumentsContract { /** * Get the handled query arguments from the query bundle. The handled arguments are * {@link DocumentsContract#QUERY_ARG_EXCLUDE_MEDIA}, * {@link DocumentsContract#QUERY_ARG_DISPLAY_NAME}, * {@link DocumentsContract#QUERY_ARG_MIME_TYPES}, * {@link DocumentsContract#QUERY_ARG_FILE_SIZE_OVER} and Loading @@ -1032,6 +1044,11 @@ public final class DocumentsContract { } final ArrayList<String> args = new ArrayList<>(); if (queryArgs.keySet().contains(QUERY_ARG_EXCLUDE_MEDIA)) { args.add(QUERY_ARG_EXCLUDE_MEDIA); } if (queryArgs.keySet().contains(QUERY_ARG_DISPLAY_NAME)) { args.add(QUERY_ARG_DISPLAY_NAME); } Loading core/java/android/provider/DocumentsProvider.java +1 −0 Original line number Diff line number Diff line Loading @@ -677,6 +677,7 @@ public abstract class DocumentsProvider extends ContentProvider { * cursor. If {@code null} all supported columns should be * included. * @param queryArgs the query arguments. * {@link DocumentsContract#QUERY_ARG_EXCLUDE_MEDIA}, * {@link DocumentsContract#QUERY_ARG_DISPLAY_NAME}, * {@link DocumentsContract#QUERY_ARG_MIME_TYPES}, * {@link DocumentsContract#QUERY_ARG_FILE_SIZE_OVER}, Loading Loading
core/java/android/provider/DocumentsContract.java +17 −0 Original line number Diff line number Diff line Loading @@ -151,6 +151,17 @@ public final class DocumentsContract { public static final String QUERY_ARG_LAST_MODIFIED_AFTER = "android:query-arg-last-modified-after"; /** * Key for {@link DocumentsProvider} to decide whether the files that * have been added to MediaStore should be excluded. If the value is * true, exclude them. Otherwise, include them. * * @see DocumentsProvider#querySearchDocuments(String, String[], * Bundle) * {@hide} */ public static final String QUERY_ARG_EXCLUDE_MEDIA = "android:query-arg-exclude-media"; /** * Sets the desired initial location visible to user when file chooser is shown. * Loading Loading @@ -1017,6 +1028,7 @@ public final class DocumentsContract { /** * Get the handled query arguments from the query bundle. The handled arguments are * {@link DocumentsContract#QUERY_ARG_EXCLUDE_MEDIA}, * {@link DocumentsContract#QUERY_ARG_DISPLAY_NAME}, * {@link DocumentsContract#QUERY_ARG_MIME_TYPES}, * {@link DocumentsContract#QUERY_ARG_FILE_SIZE_OVER} and Loading @@ -1032,6 +1044,11 @@ public final class DocumentsContract { } final ArrayList<String> args = new ArrayList<>(); if (queryArgs.keySet().contains(QUERY_ARG_EXCLUDE_MEDIA)) { args.add(QUERY_ARG_EXCLUDE_MEDIA); } if (queryArgs.keySet().contains(QUERY_ARG_DISPLAY_NAME)) { args.add(QUERY_ARG_DISPLAY_NAME); } Loading
core/java/android/provider/DocumentsProvider.java +1 −0 Original line number Diff line number Diff line Loading @@ -677,6 +677,7 @@ public abstract class DocumentsProvider extends ContentProvider { * cursor. If {@code null} all supported columns should be * included. * @param queryArgs the query arguments. * {@link DocumentsContract#QUERY_ARG_EXCLUDE_MEDIA}, * {@link DocumentsContract#QUERY_ARG_DISPLAY_NAME}, * {@link DocumentsContract#QUERY_ARG_MIME_TYPES}, * {@link DocumentsContract#QUERY_ARG_FILE_SIZE_OVER}, Loading