BatteryStatsService: Fix wrong arguments passed to noteBluetoothScanStoppedFromSourceLocked.

Arguments in the wrong order were passed to
noteBluetoothScanStoppedFromSourceLocked in noteBleScanStopped,
which may cause time errors in BatteryStats.

Bug: N/A
Test: N/A
Change-Id: Ic022abb88f7482be509fb675ac1517334989bc10
Signed-off-by: Shumao Hou <shumao1129@gmail.com>
This commit is contained in:
Shumao
2022-04-13 12:17:46 +08:00
committed by Shumao Hou
parent 2c630f8884
commit f744dbac28

View File

@@ -1978,7 +1978,7 @@ public final class BatteryStatsService extends IBatteryStats.Stub
mHandler.post(() -> {
synchronized (mStats) {
mStats.noteBluetoothScanStoppedFromSourceLocked(localWs, isUnoptimized,
uptime, elapsedRealtime);
elapsedRealtime, uptime);
}
});
}