Home
last modified time | relevance | path

Searched refs:getTotalTimeLocked (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsSamplingTimerTest.java42 assertEquals(10, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData()
47 assertEquals(10, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData()
52 assertEquals(10, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData()
68 assertEquals(0, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases()
75 assertEquals(0, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases()
82 assertEquals(100, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases()
89 assertEquals(150, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases()
94 assertEquals(150, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases()
109 assertEquals(0, timer.getTotalTimeLocked(10, BatteryStats.STATS_SINCE_CHARGED)); in testFirstUpdateIsAbsorbed()
118 assertEquals(0, timer.getTotalTimeLocked(100, BatteryStats.STATS_SINCE_CHARGED)); in testFirstUpdateIsAbsorbed()
[all …]
DBatteryStatsSensorTest.java61 assertEquals(300_000, sensorTimer.getTotalTimeLocked( in testSensorStartStop()
65 assertEquals(200_000, sensorBgTimer.getTotalTimeLocked( in testSensorStartStop()
89 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOffBattery()
101 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOffBattery()
124 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOnBattery()
136 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOnBattery()
173 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOnToOff()
183 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOnToOff()
206 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOffToOn()
219 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOffToOn()
[all …]
DBatteryStatsNoteTest.java84 long actualTime = aggregTimer.getTotalTimeLocked(300_000, STATS_SINCE_CHARGED); in testNoteStartWakeLocked()
85 long bgTime = aggregTimer.getSubTimer().getTotalTimeLocked(300_000, STATS_SINCE_CHARGED); in testNoteStartWakeLocked()
DBatteryStatsBackgroundStatsTest.java248 long time = timer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testAppBluetoothScan()
308 long time = timer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testJob()
311 long bgTime = bgTimer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testJob()
369 long time = timer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testSyncs()
372 long bgTime = bgTimer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testSyncs()
DBatteryStatsTimerTest.java375 timer.getTotalTimeLocked(66, BatteryStats.STATS_SINCE_CHARGED)); in testGetTotalTimeLocked()
380 Assert.assertEquals(9800, timer.getTotalTimeLocked(66, BatteryStats.STATS_CURRENT)); in testGetTotalTimeLocked()
385 Assert.assertEquals(9600, timer.getTotalTimeLocked(66, BatteryStats.STATS_SINCE_UNPLUGGED)); in testGetTotalTimeLocked()
/frameworks/base/core/java/com/android/internal/os/
DCameraPowerCalculator.java40 final long totalTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
DFlashlightPowerCalculator.java38 final long totalTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
DSensorPowerCalculator.java44 final long sensorTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
DMemoryPowerCalculator.java36 long timeMs = timers.valueAt(i).getTotalTimeLocked(rawRealtimeUs, statsType); in calculateRemaining()
DWakelockPowerCalculator.java46 wakeLockTimeUs += timer.getTotalTimeLocked(rawRealtimeUs, statsType); in calculateApp()
DBatteryStatsImpl.java1376 public long getTotalTimeLocked(long elapsedRealtimeUs, int which) { in getTotalTimeLocked() method in BatteryStatsImpl.Timer
5264 return mScreenOnTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getScreenOnTime()
5273 return mScreenBrightnessTimer[brightnessBin].getTotalTimeLocked( in getScreenBrightnessTime()
5278 return mInteractiveTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getInteractiveTime()
5282 return mPowerSaveModeEnabledTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getPowerSaveModeEnabledTime()
5293 return mDeviceIdleModeLightTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getDeviceIdleModeTime()
5295 return mDeviceIdleModeFullTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getDeviceIdleModeTime()
5323 return mDeviceLightIdlingTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getDeviceIdlingTime()
5325 return mDeviceIdlingTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getDeviceIdlingTime()
5351 return mPhoneOnTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getPhoneOnTime()
[all …]
DBatteryStatsHelper.java943 return timer.getTotalTimeLocked(rawRealtimeMs, BatteryStats.STATS_SINCE_CHARGED); in getForegroundActivityTotalTimeMs()
/frameworks/base/core/java/android/os/
DBatteryStats.java406 public abstract long getTotalTimeLocked(long elapsedRealtimeUs, int which); in getTotalTimeLocked() method in BatteryStats.Timer
2694 long totalTimeMicros = timer.getTotalTimeLocked(elapsedRealtimeUs, which); in computeWakeLock()
2772 final long totalTimeMs = (timer.getTotalTimeLocked( in printTimer()
2826 totalTimeMicros = timer.getTotalTimeLocked(elapsedRealtimeUs, which); in printWakeLockCheckin()
2895 final long totalTime = (timer.getTotalTimeLocked(rawRealtime, which) + 500) in dumpTimer()
3112 fullWakeLockTimeTotal += fullWakeTimer.getTotalTimeLocked(rawRealtime, in dumpCheckinLocked()
3118 partialWakeLockTimeTotal += partialWakeTimer.getTotalTimeLocked( in dumpCheckinLocked()
3271 long totalTimeMicros = ent.getValue().getTotalTimeLocked(rawRealtime, which); in dumpCheckinLocked()
3438 final long totalTime = (bleTimer.getTotalTimeLocked(rawRealtime, which) + 500) in dumpCheckinLocked()
3529 final long totalTime = (timer.getTotalTimeLocked(rawRealtime, which) + 500) / 1000; in dumpCheckinLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DHealthStatsBatteryStatsWriter.java461 timer.getTotalTimeLocked(mNowRealtimeMs*1000, STATS_SINCE_UNPLUGGED) / 1000); in addTimer()
472 timer.getTotalTimeLocked(mNowRealtimeMs*1000, STATS_SINCE_UNPLUGGED) / 1000)); in addTimers()