Files
Josh Simmons bbe68bfd33 Allow client (DocumentsUI) to specify search result limit
Searches of the FileSystemProvider subclasses (DownloadStorageProvider
and ExternalStorageProvider) are hard limited to return a maximum of
23 documents. This limit is not appropriate for all device types. This
change allows the DocumentsProvider client (the DocumentsUI app, which
is the system file picker and possibly system file manager) to specify
the result limit that it wants.

Bug: 414495650
Test: atest ExternalStorageProviderTest
Flag: com.android.internal.content.storage.flags.use_file_system_provider_search_limits
Change-Id: I5a9e45b49e076cce95d60eb35475c4788c9855af
2025-06-03 04:21:02 +00:00

41 lines
924 B
Plaintext

package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "frameworks_base_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_base_license"],
}
android_test {
name: "ExternalStorageProviderTests",
manifest: "AndroidManifest.xml",
test_suites: [
"general-tests",
],
srcs: [
"src/**/*.java",
],
libs: [
"android.test.base.stubs.system",
"android.test.mock.stubs.system",
"android.test.runner.stubs.system",
],
static_libs: [
"androidx.test.rules",
"flag-junit",
"mockito-target",
"platform-test-annotations",
"truth",
],
certificate: "platform",
instrumentation_for: "ExternalStorageProvider",
}