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

Commit 498bbd83 authored by Jack He's avatar Jack He Committed by android-build-merger
Browse files

Merge "Add developer setting and system API for inband ringing support" am:...

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

Change-Id: I7bf3b83c55a2b1dfaf23af65780529cc5a5fa8d4
parents 48d49631 d8d204d4
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