Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8d204d4 authored by Jack He's avatar Jack He Committed by Andre Eisenbach
Browse files

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
parent f5e074bd
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -1009,6 +1009,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