summaryrefslogtreecommitdiffstats
path: root/res/values
diff options
context:
space:
mode:
authorLiejun Tao <baibai@motorola.com>2015-12-18 14:59:01 -0600
committerAndre Eisenbach <eisenbach@google.com>2016-02-05 19:56:46 +0000
commit11798b011c962b602217b479130d413f3b30f19a (patch)
tree5608f64d1dfb90957d80cd3dc22bb60235a31760 /res/values
parentc450f89460855d6dfeb4d28364091f3b99bab447 (diff)
downloadandroid_packages_apps_Bluetooth-11798b011c962b602217b479130d413f3b30f19a.tar.gz
android_packages_apps_Bluetooth-11798b011c962b602217b479130d413f3b30f19a.tar.bz2
android_packages_apps_Bluetooth-11798b011c962b602217b479130d413f3b30f19a.zip
Enhance AVRCP Absolute Volume control implementation
1. Remember the current local volume level, current remote volume level. When user adjusts the volume, compare the returned remote volume level with desired volume level, if they don't match, do retry. 2.Learn and remember the volume mapping between phone volume level and remote volume level as the user adjusts volume. When user adjusts to one remembered volume level, use the mapping directly. Otherwise calculate the remote volume level and try with method described in step one. 3. Blacklist device if remote device does not tell its initial volume. 4. Define optional threshold for initial volume level to avoid headset being too loud upon re-connection. Signed-off-by: Liejun Tao <baibai@motorola.com> Change-Id: I78112f5f401666f5a680561473a5c7f914071fbe
Diffstat (limited to 'res/values')
-rw-r--r--res/values/config.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/res/values/config.xml b/res/values/config.xml
index 42ab4b98a..9ab1e96e7 100644
--- a/res/values/config.xml
+++ b/res/values/config.xml
@@ -43,4 +43,10 @@
<integer name="gatt_low_power_max_interval">100</integer>
<bool name="headset_client_initial_audio_route_allowed">true</bool>
+
+ <!-- For AVRCP absolute volume feature. If the threshold is non-zero,
+ restrict the initial volume to the threshold.
+ Valid value is 1-14, and recommended value is 8 -->
+ <integer name="a2dp_absolute_volume_initial_threshold">8</integer>
+
</resources>