diff --git a/core/java/android/bluetooth/BluetoothHeadset.java b/core/java/android/bluetooth/BluetoothHeadset.java index 28421ebc4ccae..8519dbaadadc4 100644 --- a/core/java/android/bluetooth/BluetoothHeadset.java +++ b/core/java/android/bluetooth/BluetoothHeadset.java @@ -1010,6 +1010,18 @@ public final class BluetoothHeadset implements BluetoothProfile { return false; } + /** + * 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 diff --git a/packages/SettingsLib/res/values/strings.xml b/packages/SettingsLib/res/values/strings.xml index ff310cc233a7c..36e5fb54525aa 100644 --- a/packages/SettingsLib/res/values/strings.xml +++ b/packages/SettingsLib/res/values/strings.xml @@ -431,6 +431,8 @@ Mobile data always active Disable absolute volume + + Enable in-band ringing Bluetooth AVRCP Version @@ -512,6 +514,9 @@ Check apps installed via ADB/ADT for harmful behavior. Disables the Bluetooth absolute volume feature in case of volume issues with remote devices such as unacceptably loud volume or lack of control. + + Allow ringtones on the phone to be played on Bluetooth headsets + Local terminal