summaryrefslogtreecommitdiff
path: root/mediaprovider_flags.aconfig
diff options
context:
space:
mode:
author Tyler Saunders <tylersaunders@google.com> 2024-09-20 11:52:44 +0100
committer Tyler Saunders <tylersaunders@google.com> 2024-10-24 13:43:06 +0100
commit8885490578b0a91dba973c9f5b36ffef761a7e32 (patch)
tree94c17f6b3f2f1ade8cc2d7a2605f2b145f9e2b72 /mediaprovider_flags.aconfig
parentea4bf3dc76e434c78a9641db779e5d5535e0f189 (diff)
Add CloudMediaProviderContract.Capabilities APIs and MEDIA_CATEGORY_TYPE_USER_ALBUMS.
Introduce the getCapabilities API in CloudMediaProvider to allow the system to determine which optional APIs are available for a provider. By default, the CloudMediaProvider will return the base implementation set of features and newly added features will be optional off-by-default forcing new implementations to declare their support for a capability by overriding getCapabilities and explicitly enabling support. Introduce MEDIA_CATEGORY_TYPE_USER_ALBUMS for allowing CloudMediaProvider to provide albums as a MediaCategory rather than via onQueryAlbums. This API will be unhidden at a future date. Bug: b/316356081 Test: atest MediaProviderTests:CloudMediaProviderTest Flag: com.android.providers.media.flags.enable_cloud_media_provider_capabilities Change-Id: I2af93a72e7e03b64018b381bdb41b2fc00f3ecd1
Diffstat (limited to 'mediaprovider_flags.aconfig')
-rw-r--r--mediaprovider_flags.aconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/mediaprovider_flags.aconfig b/mediaprovider_flags.aconfig
index ac630e76d..92819d4a6 100644
--- a/mediaprovider_flags.aconfig
+++ b/mediaprovider_flags.aconfig
@@ -201,3 +201,11 @@ flag {
bug: "367886883"
is_fixed_read_only: true
}
+
+flag {
+ name: "enable_cloud_media_provider_capabilities"
+ namespace: "mediaprovider"
+ description: "This flag controls the Capabilities APIs in CloudMediaProvider and the contract."
+ bug: "370445733"
+ is_fixed_read_only: true
+}