summaryrefslogtreecommitdiffstats
path: root/res/values
diff options
context:
space:
mode:
authorSharvil Nanavati <sharvil@google.com>2015-09-13 23:30:07 -0700
committerSharvil Nanavati <sharvil@google.com>2015-09-13 23:30:07 -0700
commit93793893b122e5eb3101899411fccaabc075dfaf (patch)
tree9c88f1ca265f438e607e9d069a22629eae33b4eb /res/values
parentfb540d85c3591020df3615101fbb9f788a27c139 (diff)
downloadandroid_packages_apps_Bluetooth-93793893b122e5eb3101899411fccaabc075dfaf.tar.gz
android_packages_apps_Bluetooth-93793893b122e5eb3101899411fccaabc075dfaf.tar.bz2
android_packages_apps_Bluetooth-93793893b122e5eb3101899411fccaabc075dfaf.zip
Read connection intervals from config.xml so it can be overriden by device.
Wear needs the minimum possible connection interval for BLE connections to support the Wear iOS companion app. This change simply moves the hard- coded connection intervals to config.xml so they can be overriden for Wear devices. Bug: 23903184 Change-Id: I1f60772ef6a100ad5e4f02f629b5ca6e80fc207a
Diffstat (limited to 'res/values')
-rw-r--r--res/values/config.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/res/values/config.xml b/res/values/config.xml
index 1684183b6..79fe9ce62 100644
--- a/res/values/config.xml
+++ b/res/values/config.xml
@@ -33,4 +33,12 @@
fire Bluetooth LE scan result callbacks in addition to having one
of the location permissions. -->
<bool name="strict_location_check">true</bool>
+
+ <!-- Specifies the min/max connection interval parameters for high priority
+ and low power GATT configurations. These values are in multiples of
+ 1.25ms. -->
+ <integer name="gatt_high_priority_min_interval">9</integer>
+ <integer name="gatt_high_priority_max_interval">12</integer>
+ <integer name="gatt_low_power_min_interval">80</integer>
+ <integer name="gatt_low_power_max_interval">100</integer>
</resources>