diff options
-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 * |