Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsSamplingTimerTest.java44 assertEquals(10, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData()
49 assertEquals(10, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData()
54 assertEquals(10, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData()
70 assertEquals(0, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases()
77 assertEquals(0, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases()
84 assertEquals(100, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases()
91 assertEquals(150, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases()
96 assertEquals(150, timer.getTotalTimeLocked(200, BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases()
111 assertEquals(0, timer.getTotalTimeLocked(10, BatteryStats.STATS_SINCE_CHARGED)); in testFirstUpdateIsAbsorbed()
120 assertEquals(0, timer.getTotalTimeLocked(100, BatteryStats.STATS_SINCE_CHARGED)); in testFirstUpdateIsAbsorbed()
[all …]
DBatteryStatsSensorTest.java64 assertEquals(300_000, sensorTimer.getTotalTimeLocked( in testSensorStartStop()
68 assertEquals(200_000, sensorBgTimer.getTotalTimeLocked( in testSensorStartStop()
92 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOffBattery()
104 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOffBattery()
127 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOnBattery()
139 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOnBattery()
176 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOnToOff()
186 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOnToOff()
209 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOffToOn()
222 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOffToOn()
[all …]
DPowerCalculatorTest.java58 when(audioTimer.getTotalTimeLocked(2L * US_IN_HR, 0)).thenReturn(2L * US_IN_HR); in testMediaPowerCalculator()
61 when(videoTimer.getTotalTimeLocked(2L * US_IN_HR, 0)).thenReturn(1L * US_IN_HR); in testMediaPowerCalculator()
DBatteryStatsBackgroundStatsTest.java261 long time = timer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in doTestAppBluetoothScanInternal()
321 long time = timer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testJob()
324 long bgTime = bgTimer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testJob()
382 long time = timer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testSyncs()
385 long bgTime = bgTimer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testSyncs()
DBatteryStatsNoteTest.java109 long actualTime = aggregTimer.getTotalTimeLocked(300_000, STATS_SINCE_CHARGED); in testNoteStartWakeLocked()
110 long bgTime = aggregTimer.getSubTimer().getTotalTimeLocked(300_000, STATS_SINCE_CHARGED); in testNoteStartWakeLocked()
195 actualRunTimeUs = uid.getForegroundServiceTimer().getTotalTimeLocked(elapsedTimeUs, in testNoteUidProcessStateLocked()
DBatteryStatsTimerTest.java263 timer.getTotalTimeLocked(66, BatteryStats.STATS_SINCE_CHARGED)); in testGetTotalTimeLocked()
/frameworks/base/core/java/com/android/internal/os/
DMediaPowerCalculator.java45 final long totalTime = audioTimer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
56 final long totalTime = videoTimer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
DCameraPowerCalculator.java40 final long totalTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
DFlashlightPowerCalculator.java38 final long totalTime = 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()
DSensorPowerCalculator.java47 final long sensorTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
DBatteryStatsImpl.java1760 public long getTotalTimeLocked(long elapsedRealtimeUs, int which) { in getTotalTimeLocked() method in BatteryStatsImpl.Timer
6127 return mScreenOnTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getScreenOnTime()
6135 return mScreenDozeTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getScreenDozeTime()
6145 return mScreenBrightnessTimer[brightnessBin].getTotalTimeLocked( in getScreenBrightnessTime()
6154 return mInteractiveTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getInteractiveTime()
6158 return mPowerSaveModeEnabledTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getPowerSaveModeEnabledTime()
6169 return mDeviceIdleModeLightTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getDeviceIdleModeTime()
6171 return mDeviceIdleModeFullTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getDeviceIdleModeTime()
6199 return mDeviceLightIdlingTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getDeviceIdlingTime()
6201 return mDeviceIdlingTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getDeviceIdlingTime()
[all …]
DBatteryStatsHelper.java1006 return timer.getTotalTimeLocked(rawRealtimeUs, BatteryStats.STATS_SINCE_CHARGED); in getForegroundActivityTotalTimeUs()
/frameworks/base/services/core/java/com/android/server/am/
DHealthStatsBatteryStatsWriter.java461 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/
DBatteryStats.java549 public abstract long getTotalTimeLocked(long elapsedRealtimeUs, int which); in getTotalTimeLocked() method in BatteryStats.Timer
3207 long totalTimeMicros = timer.getTotalTimeLocked(elapsedRealtimeUs, which); in computeWakeLock()
3285 final long totalTimeMs = (timer.getTotalTimeLocked( in printTimer()
3339 totalTimeMicros = timer.getTotalTimeLocked(elapsedRealtimeUs, which); in printWakeLockCheckin()
3409 final long totalTime = roundUsToMs(timer.getTotalTimeLocked(rawRealtime, which)); in dumpTimer()
3432 final long timeMs = roundUsToMs(timer.getTotalTimeLocked(rawRealtimeUs, which)); in dumpTimer()
3790 fullWakeLockTimeTotal += fullWakeTimer.getTotalTimeLocked(rawRealtime, in dumpCheckinLocked()
3796 partialWakeLockTimeTotal += partialWakeTimer.getTotalTimeLocked( in dumpCheckinLocked()
3946 long totalTimeMicros = ent.getValue().getTotalTimeLocked(rawRealtime, which); in dumpCheckinLocked()
3960 long timeMs = (totalTimer.getTotalTimeLocked(rawRealtime, which) + 500) / 1000; in dumpCheckinLocked()
[all …]
/frameworks/base/core/proto/android/os/
Dbatterystats.proto499 // on the Timer, getTotalTimeLocked may represent the total 'blamed' or
/frameworks/base/config/
Dboot-image-profile.txt20631 HSPLcom/android/internal/os/BatteryStatsImpl$Timer;->getTotalTimeLocked(JI)J