Merge "Add developer setting and system API for inband ringing support" am: 1da38b2bcd am: d86c1fca76

am: 25c086b7e2

Change-Id: I7bf3b83c55a2b1dfaf23af65780529cc5a5fa8d4
This commit is contained in:
Jack He
2017-04-10 23:20:08 +00:00
committed by android-build-merger
2 changed files with 17 additions and 0 deletions

View File

@@ -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