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

Commit 450cadc9 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

BluetoothManagerService: Add dumpsys logs for BLE_ON -> OFF

Add dumpsys logs for state transition from BLE_ON to OFF. This can be
either from location settings off or airplane mode enabled.

Test: manual
Bug: 74090881
Change-Id: I1f6cfe691b359591af60c3be2e015bec5d3859e8
(cherry picked from commit 917f4b332e2c21f074e5f50bf598ff36d77f2945)
parent 478fa61b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -285,6 +285,9 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
                        try {
                            mBluetoothLock.readLock().lock();
                            if (mBluetooth != null) {
                                addActiveLog(
                                        BluetoothProtoEnums.ENABLE_DISABLE_REASON_AIRPLANE_MODE,
                                        mContext.getPackageName(), false);
                                mBluetooth.onBrEdrDown();
                                mEnable = false;
                                mEnableExternal = false;
@@ -677,6 +680,8 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
                try {
                    mBluetoothLock.readLock().lock();
                    if (mBluetooth != null) {
                        addActiveLog(BluetoothProtoEnums.ENABLE_DISABLE_REASON_APPLICATION_REQUEST,
                                mContext.getPackageName(), false);
                        mBluetooth.onBrEdrDown();
                    }
                } catch (RemoteException e) {