/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsSamplingTimerTest.java | 44 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 …]
|
D | BatteryStatsSensorTest.java | 64 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 …]
|
D | PowerCalculatorTest.java | 58 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()
|
D | BatteryStatsBackgroundStatsTest.java | 261 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()
|
D | BatteryStatsNoteTest.java | 109 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()
|
D | BatteryStatsTimerTest.java | 263 timer.getTotalTimeLocked(66, BatteryStats.STATS_SINCE_CHARGED)); in testGetTotalTimeLocked()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | MediaPowerCalculator.java | 45 final long totalTime = audioTimer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp() 56 final long totalTime = videoTimer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
|
D | CameraPowerCalculator.java | 40 final long totalTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
|
D | FlashlightPowerCalculator.java | 38 final long totalTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
|
D | MemoryPowerCalculator.java | 36 long timeMs = timers.valueAt(i).getTotalTimeLocked(rawRealtimeUs, statsType); in calculateRemaining()
|
D | WakelockPowerCalculator.java | 46 wakeLockTimeUs += timer.getTotalTimeLocked(rawRealtimeUs, statsType); in calculateApp()
|
D | SensorPowerCalculator.java | 47 final long sensorTime = timer.getTotalTimeLocked(rawRealtimeUs, statsType) / 1000; in calculateApp()
|
D | BatteryStatsImpl.java | 1760 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 …]
|
D | BatteryStatsHelper.java | 1006 return timer.getTotalTimeLocked(rawRealtimeUs, BatteryStats.STATS_SINCE_CHARGED); in getForegroundActivityTotalTimeUs()
|
/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 | 549 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/ |
D | batterystats.proto | 499 // on the Timer, getTotalTimeLocked may represent the total 'blamed' or
|
/frameworks/base/config/ |
D | boot-image-profile.txt | 20631 HSPLcom/android/internal/os/BatteryStatsImpl$Timer;->getTotalTimeLocked(JI)J
|