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

Commit a80fe2b5 authored by Jack He's avatar Jack He
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
(cherry picked from commit e86bdcaed1372aa05bdfba175007b05613aecd9b)
parent 28b32660
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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