summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Shumao <shumao1129@gmail.com> 2022-04-13 12:17:46 +0800
committer Shumao Hou <shumao1129@gmail.com> 2022-04-15 02:19:10 +0000
commitf744dbac288903334dc53ce56fecef8be12fb679 (patch)
treed5e912d3485b92053c9e8e9ebd2c8492a3c446ac
parent2c630f8884d2d0746727184a79c7611bf543df48 (diff)
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>
-rw-r--r--services/core/java/com/android/server/am/BatteryStatsService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/am/BatteryStatsService.java b/services/core/java/com/android/server/am/BatteryStatsService.java
index 2030b19b6b9a..dedd89883687 100644
--- a/services/core/java/com/android/server/am/BatteryStatsService.java
+++ b/services/core/java/com/android/server/am/BatteryStatsService.java
@@ -1978,7 +1978,7 @@ public final class BatteryStatsService extends IBatteryStats.Stub
mHandler.post(() -> {
synchronized (mStats) {
mStats.noteBluetoothScanStoppedFromSourceLocked(localWs, isUnoptimized,
- uptime, elapsedRealtime);
+ elapsedRealtime, uptime);
}
});
}