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

Commit e489d46b authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge changes Idadf8487,I84d87024

* changes:
  Resolve bluetooth hidden API usages
  Use allowed system value
parents e294a5a1 6de80163
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -435,7 +435,7 @@ public class BluetoothPairingController implements OnCheckedChangeListener,
     */
    public void onCancel() {
        Log.d(TAG, "Pairing dialog canceled");
        mDevice.cancelPairing();
        mDevice.cancelBondProcess();
    }

    /**
+2 −2
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@ public final class BluetoothPairingService extends Service {
            } else if (action.equals(ACTION_DISMISS_PAIRING)) {
                Log.d(TAG, "Notification cancel " + " (" +
                        mDevice.getName() + ")");
                mDevice.cancelPairing();
                mDevice.cancelBondProcess();
            } else {
                int bondState = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE,
                        BluetoothDevice.ERROR);
@@ -144,7 +144,7 @@ public final class BluetoothPairingService extends Service {
            createPairingNotification(intent);
        } else if (TextUtils.equals(action, ACTION_DISMISS_PAIRING)) {
            Log.d(TAG, "Notification cancel " + " (" + mDevice.getName() + ")");
            mDevice.cancelPairing();
            mDevice.cancelBondProcess();
            mNm.cancel(NOTIFICATION_ID);
            stopSelf();
        } else if (TextUtils.equals(action, ACTION_PAIRING_DIALOG)) {
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@

package com.android.settings.sound;

import static android.bluetooth.IBluetoothHearingAid.HI_SYNC_ID_INVALID;
import static android.bluetooth.BluetoothHearingAid.HI_SYNC_ID_INVALID;

import android.bluetooth.BluetoothDevice;
import android.content.Context;
+1 −1
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ public class BluetoothPairingServiceTest {

        mBluetoothPairingService.onStartCommand(intent, /* flags */ 0, /* startId */ 0);

        verify(mDevice).cancelPairing();
        verify(mDevice).cancelBondProcess();
        verify(mNm).cancel(mBluetoothPairingService.NOTIFICATION_ID);
    }