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

Commit 3ac53726 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 4535700 from 974e4c6d391becbdde612656af0ef191e0c591e4 to pi-release

Change-Id: I509eac37f760809ddea4e151e5bb751f06f51570
parents 89bfad5f a168f01f
Loading
Loading
Loading
Loading
+28 −2
Original line number Diff line number Diff line
@@ -1071,9 +1071,35 @@ public final class BluetoothHeadset implements BluetoothProfile {
    }

    /**
     * check if in-band ringing is supported for this platform.
     * Check if in-band ringing is currently enabled. In-band ringing could be disabled during an
     * active connection.
     *
     * @return true if in-band ringing is supported false if in-band ringing is not supported
     * @return true if in-band ringing is enabled, false if in-band ringing is disabled
     * @hide
     */
    @RequiresPermission(android.Manifest.permission.BLUETOOTH)
    public boolean isInbandRingingEnabled() {
        if (DBG) {
            log("isInbandRingingEnabled()");
        }
        final IBluetoothHeadset service = mService;
        if (service != null && isEnabled()) {
            try {
                return service.isInbandRingingEnabled();
            } catch (RemoteException e) {
                Log.e(TAG, Log.getStackTraceString(new Throwable()));
            }
        }
        if (service == null) {
            Log.w(TAG, "Proxy not attached to service");
        }
        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) {
+8 −1
Original line number Diff line number Diff line
@@ -156,13 +156,20 @@ public interface BluetoothProfile {
     */
    public static final int HID_DEVICE = 19;

    /**
     * Object Push Profile (OPP)
     *
     * @hide
     */
    public static final int OPP = 20;

    /**
     * Max profile ID. This value should be updated whenever a new profile is added to match
     * the largest value assigned to a profile.
     *
     * @hide
     */
    public static final int MAX_PROFILE_ID = 19;
    public static final int MAX_PROFILE_ID = 20;

    /**
     * Default priority for devices that we try to auto-connect to and