Merge "BluetoothManagerService: Add dumpsys logs for BLE_ON -> OFF"

am: 361ab2c581

Change-Id: I38d9e8258a0ebab18c1e8565f5b4a0a12baa3deb
This commit is contained in:
Hansong Zhang
2018-04-23 14:25:27 -07:00
committed by android-build-merger

View File

@@ -285,6 +285,9 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
try { try {
mBluetoothLock.readLock().lock(); mBluetoothLock.readLock().lock();
if (mBluetooth != null) { if (mBluetooth != null) {
addActiveLog(
BluetoothProtoEnums.ENABLE_DISABLE_REASON_AIRPLANE_MODE,
mContext.getPackageName(), false);
mBluetooth.onBrEdrDown(); mBluetooth.onBrEdrDown();
mEnable = false; mEnable = false;
mEnableExternal = false; mEnableExternal = false;
@@ -677,6 +680,8 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
try { try {
mBluetoothLock.readLock().lock(); mBluetoothLock.readLock().lock();
if (mBluetooth != null) { if (mBluetooth != null) {
addActiveLog(BluetoothProtoEnums.ENABLE_DISABLE_REASON_APPLICATION_REQUEST,
mContext.getPackageName(), false);
mBluetooth.onBrEdrDown(); mBluetooth.onBrEdrDown();
} }
} catch (RemoteException e) { } catch (RemoteException e) {