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

Commit b4650c79 authored by Joe Onorato's avatar Joe Onorato Committed by Android (Google) Code Review
Browse files

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

parents 4a33b1ae ffec5afa
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 */
        }