diff options
| author | Jack He <siyuanh@google.com> | 2017-04-10 23:20:08 +0000 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2017-04-10 23:20:08 +0000 |
| commit | b111c6f753bc0fd579ebc25bbb7df2f692c32bb8 (patch) | |
| tree | c1db060f6221d69da04514b6bed1c6683e9ce5d7 /core/java/android/bluetooth/BluetoothHeadset.java | |
| parent | 1c80ac52fe53b74a79cc096de3b1d45886047e40 (diff) | |
| parent | 25c086b7e2112ac3eeb606ed23c48d5c57e918fd (diff) | |
Merge "Add developer setting and system API for inband ringing support" am: 1da38b2bcd am: d86c1fca76
am: 25c086b7e2
Change-Id: I7bf3b83c55a2b1dfaf23af65780529cc5a5fa8d4
Diffstat (limited to 'core/java/android/bluetooth/BluetoothHeadset.java')
| -rw-r--r-- | core/java/android/bluetooth/BluetoothHeadset.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/java/android/bluetooth/BluetoothHeadset.java b/core/java/android/bluetooth/BluetoothHeadset.java index 28421ebc4cca..8519dbaadadc 100644 --- a/core/java/android/bluetooth/BluetoothHeadset.java +++ b/core/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 * |
