diff options
author | 2023-02-23 18:24:41 -0800 | |
---|---|---|
committer | 2023-02-27 09:22:21 +0000 | |
commit | f8a79afd92512519d9ed6628cdce7a17c0a43b76 (patch) | |
tree | fcea3c59a964f434a9c0e7eb8d930c62b1f93887 /sysprop | |
parent | 452c0114e428572ce9047e69879124c14556db5c (diff) |
Add avrcp sysprop for absolute volume
The `define` cannot be override on runtime and some target need to
configure the support for absolute volume to false (Eg: Wear OS)
Test: manual | set the property and check avrcp absolute volume
Bug: 263323082
Change-Id: I14757867def3ef3110387f92f158ec6b5708da76
Diffstat (limited to 'sysprop')
-rw-r--r-- | sysprop/Android.bp | 17 | ||||
-rw-r--r-- | sysprop/OWNERS | 2 | ||||
-rw-r--r-- | sysprop/avrcp.sysprop | 11 |
3 files changed, 30 insertions, 0 deletions
diff --git a/sysprop/Android.bp b/sysprop/Android.bp new file mode 100644 index 0000000000..d66d1e9cff --- /dev/null +++ b/sysprop/Android.bp @@ -0,0 +1,17 @@ +package { + default_applicable_licenses: ["Android-Apache-2.0"], +} + +sysprop_library { + name: "com.android.sysprop.bluetooth", + host_supported: true, + srcs: [ + "avrcp.sysprop", + ], + property_owner: "Platform", + api_packages: ["android.sysprop"], + cpp: { + min_sdk_version: "Tiramisu", + }, + apex_available: ["com.android.btservices"], +} diff --git a/sysprop/OWNERS b/sysprop/OWNERS new file mode 100644 index 0000000000..263e0532b6 --- /dev/null +++ b/sysprop/OWNERS @@ -0,0 +1,2 @@ +licorne@google.com +wescande@google.com diff --git a/sysprop/avrcp.sysprop b/sysprop/avrcp.sysprop new file mode 100644 index 0000000000..6c12087ef5 --- /dev/null +++ b/sysprop/avrcp.sysprop @@ -0,0 +1,11 @@ +module: "android.sysprop.bluetooth.Avrcp" +owner: Platform + +prop { + api_name: "absolute_volume" + type: Boolean + scope: Internal + access: Readonly + prop_name: "bluetooth.avrcp.absolute_volume.enabled" +} + |