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

Commit 996875a5 authored by Joe Onorato's avatar Joe Onorato Committed by android-build-merger
Browse files

Merge "Send ble scan type to Batterystats" into oc-dev

am: b4650c79

Change-Id: Ie6935d39d89ca7a61e3031f74a4998add71928ec
parents 47b42d03 b4650c79
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -146,7 +146,8 @@ import com.android.bluetooth.btservice.BluetoothProto;
        gattService.addScanEvent(scanEvent);

        try {
            batteryStats.noteBleScanStarted(workSource);
            boolean isUnoptimized = !(scan.filtered || scan.background || scan.opportunistic);
            batteryStats.noteBleScanStarted(workSource, isUnoptimized);
        } catch (RemoteException e) {
            /* ignore */
        }