Home
last modified time | relevance | path

Searched refs:getTotalTimeLocked (Results 1 – 9 of 9) 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 …]
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/
DFlashlightPowerCalculator.java38 final long totalTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
DCameraPowerCalculator.java40 final long totalTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
DSensorPowerCalculator.java44 final long sensorTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
DWakelockPowerCalculator.java46 wakeLockTimeUs += timer.getTotalTimeLocked(rawRealtimeUs, statsType); in calculateApp()
DBatteryStatsImpl.java1176 public long getTotalTimeLocked(long elapsedRealtimeUs, int which) { in getTotalTimeLocked() method in BatteryStatsImpl.Timer
4602 return mScreenOnTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getScreenOnTime()
4611 return mScreenBrightnessTimer[brightnessBin].getTotalTimeLocked( in getScreenBrightnessTime()
4616 return mInteractiveTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getInteractiveTime()
4620 return mPowerSaveModeEnabledTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getPowerSaveModeEnabledTime()
4631 return mDeviceIdleModeLightTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getDeviceIdleModeTime()
4633 return mDeviceIdleModeFullTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getDeviceIdleModeTime()
4661 return mDeviceLightIdlingTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getDeviceIdlingTime()
4663 return mDeviceIdlingTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getDeviceIdlingTime()
4689 return mPhoneOnTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getPhoneOnTime()
[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()
/frameworks/base/core/java/android/os/
DBatteryStats.java343 public abstract long getTotalTimeLocked(long elapsedRealtimeUs, int which); in getTotalTimeLocked() method in BatteryStats.Timer
2504 long totalTimeMicros = timer.getTotalTimeLocked(elapsedRealtimeUs, which); in computeWakeLock()
2558 final long totalTime = (timer.getTotalTimeLocked( in printTimer()
2594 totalTimeMicros = timer.getTotalTimeLocked(elapsedRealtimeUs, which); in printWakeLockCheckin()
2649 final long totalTime = (timer.getTotalTimeLocked(rawRealtime, which) + 500) in dumpTimer()
2864 fullWakeLockTimeTotal += fullWakeTimer.getTotalTimeLocked(rawRealtime, in dumpCheckinLocked()
2870 partialWakeLockTimeTotal += partialWakeTimer.getTotalTimeLocked( in dumpCheckinLocked()
3023 long totalTimeMicros = ent.getValue().getTotalTimeLocked(rawRealtime, which); in dumpCheckinLocked()
3188 final long totalTime = (timer.getTotalTimeLocked(rawRealtime, which) + 500) / 1000; in dumpCheckinLocked()
3199 final long totalTime = (timer.getTotalTimeLocked(rawRealtime, which) + 500) / 1000; in dumpCheckinLocked()
[all …]