/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | BatteryStatsSamplingTimerTest.java | 45 assertEquals(10, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData() 50 assertEquals(10, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData() 55 assertEquals(10, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData() 71 assertEquals(0, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases() 81 assertEquals(0, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases() 88 assertEquals(100, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases() 99 assertEquals(150, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases() 104 assertEquals(150, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases() 119 assertEquals(0, timer.getTotalTimeLocked(10, BatteryStats.STATS_SINCE_CHARGED)); in testFirstUpdateIsAbsorbed() 128 assertEquals(0, timer.getTotalTimeLocked(100, BatteryStats.STATS_SINCE_CHARGED)); in testFirstUpdateIsAbsorbed() [all …]
|
D | BatteryStatsSensorTest.java | 77 assertEquals(300_000, sensorTimer.getTotalTimeLocked( in testSensorStartStop() 81 assertEquals(200_000, sensorBgTimer.getTotalTimeLocked( in testSensorStartStop() 105 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOffBattery() 117 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOffBattery() 140 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOnBattery() 152 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOnBattery() 189 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOnToOff() 199 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOnToOff() 222 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOffToOn() 235 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOffToOn() [all …]
|
D | BatteryStatsBackgroundStatsTest.java | 277 long time = timer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in doTestAppBluetoothScanInternal() 338 long time = timer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testJob() 341 long bgTime = bgTimer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testJob() 400 long time = timer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testSyncs() 403 long bgTime = bgTimer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testSyncs()
|
D | UserPowerCalculatorTest.java | 145 long durationMs = u.getAudioTurnedOnTimer().getTotalTimeLocked(rawRealtimeUs, 0); in calculateApp() 161 long durationMs = u.getVideoTurnedOnTimer().getTotalTimeLocked(rawRealtimeUs, 0); in calculateApp()
|
D | BatteryStatsTimerTest.java | 264 timer.getTotalTimeLocked(66, BatteryStats.STATS_SINCE_CHARGED)); in testGetTotalTimeLocked()
|
D | BatteryStatsNoteTest.java | 160 long actualTime = aggregTimer.getTotalTimeLocked(300_000, STATS_SINCE_CHARGED); in testNoteStartWakeLocked() 161 long bgTime = aggregTimer.getSubTimer().getTotalTimeLocked(300_000, STATS_SINCE_CHARGED); in testNoteStartWakeLocked() 201 long actualTime = aggregTimer.getTotalTimeLocked(300_000, STATS_SINCE_CHARGED); in testNoteStartWakeLocked_isolatedUid() 202 long bgTime = aggregTimer.getSubTimer().getTotalTimeLocked(300_000, STATS_SINCE_CHARGED); in testNoteStartWakeLocked_isolatedUid() 246 long actualTime = aggregTimer.getTotalTimeLocked(300_000, STATS_SINCE_CHARGED); in testNoteStartWakeLocked_isolatedUidRace() 247 long bgTime = aggregTimer.getSubTimer().getTotalTimeLocked(300_000, STATS_SINCE_CHARGED); in testNoteStartWakeLocked_isolatedUidRace() 446 actualRunTimeUs = uid.getForegroundServiceTimer().getTotalTimeLocked(elapsedTimeUs, in testNoteUidProcessStateLocked()
|
D | BatteryStatsImplTest.java | 752 .getTotalTimeLocked(mMockClock.realtime * 1000, 0)); in assertThatKernelWakelockTotalTime()
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | UsageBasedPowerEstimator.java | 43 return timer == null ? 0 : timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateDuration()
|
D | SensorPowerCalculator.java | 89 durationMs += timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateDuration() 107 final long sensorTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculatePowerMah()
|
D | GnssPowerCalculator.java | 113 return timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in computeDuration()
|
D | WakelockPowerCalculator.java | 122 wakeLockTimeUs += timer.getTotalTimeLocked(rawRealtimeUs, statsType); in calculateApp()
|
D | ScreenPowerCalculator.java | 244 return timer.getTotalTimeLocked(rawRealtimeUs, BatteryStats.STATS_SINCE_CHARGED); in getForegroundActivityTotalTimeUs()
|
D | BatteryStatsImpl.java | 1751 timer.getTotalTimeLocked(realtimeMs * 1000, STATS_SINCE_CHARGED) / 1000; in createWakeLockData() 1770 scanTimer != null ? scanTimer.getTotalTimeLocked( in getBluetoothBatteryStats() 1775 unoptimizedScanTimer != null ? unoptimizedScanTimer.getTotalTimeLocked( in getBluetoothBatteryStats() 2067 return () -> mPhoneOnTimer.getTotalTimeLocked(mClock.elapsedRealtime() * 1000, in getCallDurationSupplier() 2073 return () -> mPhoneSignalScanningTimer.getTotalTimeLocked( in getPhoneSignalScanDurationSupplier() 2930 public long getTotalTimeLocked(long elapsedRealtimeUs, int which) { in getTotalTimeLocked() method in BatteryStatsImpl.Timer 6843 long scanTimeUs = mBluetoothScanTimer.getTotalTimeLocked(elapsedTimeUs, in retrieveBluetoothScanTimesLocked() 7458 return mScreenOnTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getScreenOnTime() 7466 return mScreenDozeTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getScreenDozeTime() 7475 return mScreenBrightnessTimer[brightnessBin].getTotalTimeLocked( in getScreenBrightnessTime() [all …]
|
D | BatteryUsageStatsProvider.java | 306 foregroundActivityDurationUs = foregroundActivityTimer.getTotalTimeLocked(realtimeUs, in getProcessForegroundTimeMs()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | HealthStatsBatteryStatsWriter.java | 461 timer.getTotalTimeLocked(mNowRealtimeMs*1000, STATS_SINCE_CHARGED) / 1000); in addTimer() 472 timer.getTotalTimeLocked(mNowRealtimeMs*1000, STATS_SINCE_CHARGED) / 1000)); in addTimers()
|
/frameworks/base/core/java/android/os/ |
D | BatteryStats.java | 589 public abstract long getTotalTimeLocked(long elapsedRealtimeUs, int which); in getTotalTimeLocked() method in BatteryStats.Timer 3794 long totalTimeMicros = timer.getTotalTimeLocked(elapsedRealtimeUs, which); in computeWakeLock() 3872 final long totalTimeMs = (timer.getTotalTimeLocked( in printTimer() 3926 totalTimeMicros = timer.getTotalTimeLocked(elapsedRealtimeUs, which); in printWakeLockCheckin() 3996 final long totalTime = roundUsToMs(timer.getTotalTimeLocked(rawRealtime, which)); in dumpTimer() 4019 final long timeMs = roundUsToMs(timer.getTotalTimeLocked(rawRealtimeUs, which)); in dumpTimer() 4513 fullWakeLockTimeTotal += fullWakeTimer.getTotalTimeLocked(rawRealtime, in dumpCheckinLocked() 4519 partialWakeLockTimeTotal += partialWakeTimer.getTotalTimeLocked( in dumpCheckinLocked() 4669 long totalTimeMicros = ent.getValue().getTotalTimeLocked(rawRealtime, which); in dumpCheckinLocked() 4683 long timeMs = (totalTimer.getTotalTimeLocked(rawRealtime, which) + 500) / 1000; in dumpCheckinLocked() [all …]
|
/frameworks/base/core/proto/android/os/ |
D | batterystats.proto | 499 // on the Timer, getTotalTimeLocked may represent the total 'blamed' or
|
/frameworks/base/services/ |
D | art-profile | 3089 HPLcom/android/server/power/stats/BatteryStatsImpl$Timer;->getTotalTimeLocked(JI)J+]Lcom/android/se…
|