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

Commit 07254c04 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "HFP: Fix typo in various permission check messages" into pi-dev

parents 3735466c c5768ce5
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -669,7 +669,7 @@ public class HeadsetService extends ProfileService {
    }

    boolean disconnect(BluetoothDevice device) {
        enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH ADMIN permission");
        enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH_ADMIN permission");
        synchronized (mStateMachines) {
            Log.i(TAG, "disconnect: device=" + device);
            HeadsetStateMachine stateMachine = mStateMachines.get(device);
@@ -947,7 +947,7 @@ public class HeadsetService extends ProfileService {
     * @return the active device or null if no device is active
     */
    public BluetoothDevice getActiveDevice() {
        enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH_PERM permission");
        enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission");
        synchronized (mStateMachines) {
            return mActiveDevice;
        }
@@ -1050,7 +1050,7 @@ public class HeadsetService extends ProfileService {
    }

    boolean startScoUsingVirtualVoiceCall(BluetoothDevice device) {
        enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH permission");
        enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH_ADMIN permission");
        synchronized (mStateMachines) {
            final HeadsetStateMachine stateMachine = mStateMachines.get(device);
            if (stateMachine == null) {
@@ -1064,7 +1064,7 @@ public class HeadsetService extends ProfileService {
    }

    boolean stopScoUsingVirtualVoiceCall(BluetoothDevice device) {
        enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH permission");
        enforceCallingOrSelfPermission(BLUETOOTH_ADMIN_PERM, "Need BLUETOOTH_ADMIN permission");
        synchronized (mStateMachines) {
            final HeadsetStateMachine stateMachine = mStateMachines.get(device);
            if (stateMachine == null) {