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

Commit d5444fb2 authored by Ömer Faruk Yılmaz's avatar Ömer Faruk Yılmaz
Browse files

Add logs to differentiate if new scanManagerRefactor flow is being used

Bug: 313335632
Bug: 267361243
Bug: 327503826
Test: m com.android.btservices
Change-Id: Ie8e70c7b0985f36dc9cdb946941e1941cd941dfe
parent 5623e6cc
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1108,6 +1108,7 @@ public class AdapterService extends Service {
    }

    private void startGattProfileService() {
        Log.d(TAG, "startGattProfileService() called");
        mGattService = new GattService(this);

        mStartedProfiles.put(BluetoothProfile.GATT, mGattService);
@@ -1118,11 +1119,13 @@ public class AdapterService extends Service {
    }

    private void startScanController() {
        Log.d(TAG, "startScanController() called");
        mScanController = new ScanController(this);
        mNativeInterface.enable();
    }

    private void stopGattProfileService() {
        Log.d(TAG, "stopGattProfileService() called");
        setScanMode(SCAN_MODE_NONE, "stopGattProfileService");

        if (mRunningProfiles.size() == 0) {
@@ -1143,6 +1146,7 @@ public class AdapterService extends Service {
    }

    private void stopScanController() {
        Log.d(TAG, "stopScanController() called");
        setScanMode(SCAN_MODE_NONE, "stopScanController");

        if (mScanController == null) {