diff options
author | Jack He <siyuanh@google.com> | 2016-11-17 16:19:43 -0800 |
---|---|---|
committer | Jack He <siyuanh@google.com> | 2017-04-12 22:24:37 +0000 |
commit | a80fe2b51ea131b4dde36f12f18bb1beba83a66d (patch) | |
tree | b3a324e6e60f7dcc251a1168064494a4dfa8dc09 | |
parent | 28b326608ce7b4ed5fed935c085945ea3bb6a164 (diff) |
Add developer setting and system API for inband ringing support
* Add 1 system API to check inband ringing flag in config.xml
static isInbandRingingSupported(Context)
* Add developer menu options to enable this feature
Bug: 19171297
Test: mm -j 40, HFP regression testing, testplans/82144
Change-Id: Iaf56ea41911f546bbc7ae1f82e399d0f8d48f75f
(cherry picked from commit e86bdcaed1372aa05bdfba175007b05613aecd9b)
-rw-r--r-- | framework/java/android/bluetooth/BluetoothHeadset.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/framework/java/android/bluetooth/BluetoothHeadset.java b/framework/java/android/bluetooth/BluetoothHeadset.java index 28421ebc4c..8519dbaada 100644 --- a/framework/java/android/bluetooth/BluetoothHeadset.java +++ b/framework/java/android/bluetooth/BluetoothHeadset.java @@ -1011,6 +1011,18 @@ public final class BluetoothHeadset implements BluetoothProfile { } /** + * check if in-band ringing is supported for this platform. + * + * @return true if in-band ringing is supported + * false if in-band ringing is not supported + * @hide + */ + public static boolean isInbandRingingSupported(Context context) { + return context.getResources().getBoolean( + com.android.internal.R.bool.config_bluetooth_hfp_inband_ringing_support); + } + + /** * Send Headset the BIND response from AG to report change in the status of the * HF indicators to the headset * |