/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsSamplingTimerTest.java | 42 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 …]
|
D | BatteryStatsSensorTest.java | 62 assertEquals(300_000, sensorTimer.getTotalTimeLocked( in testSensorStartStop() 66 assertEquals(200_000, sensorBgTimer.getTotalTimeLocked( in testSensorStartStop() 90 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOffBattery() 102 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOffBattery() 125 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOnBattery() 137 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOnBattery() 174 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOnToOff() 184 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOnToOff() 207 sensorTimer.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOffToOn() 220 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 | 259 long time = timer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in doTestAppBluetoothScanInternal() 319 long time = timer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testJob() 322 long bgTime = bgTimer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testJob() 380 long time = timer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testSyncs() 383 long bgTime = bgTimer.getTotalTimeLocked(curr, STATS_SINCE_CHARGED); in testSyncs()
|
D | BatteryStatsTimerTest.java | 375 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()
|
D | BatteryStatsNoteTest.java | 110 long actualTime = aggregTimer.getTotalTimeLocked(300_000, STATS_SINCE_CHARGED); in testNoteStartWakeLocked() 111 long bgTime = aggregTimer.getSubTimer().getTotalTimeLocked(300_000, STATS_SINCE_CHARGED); in testNoteStartWakeLocked() 196 actualRunTimeUs = uid.getForegroundServiceTimer().getTotalTimeLocked(elapsedTimeUs, in testNoteUidProcessStateLocked()
|
/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 | 1829 public long getTotalTimeLocked(long elapsedRealtimeUs, int which) { in getTotalTimeLocked() method in BatteryStatsImpl.Timer 6288 return mScreenOnTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getScreenOnTime() 6296 return mScreenDozeTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getScreenDozeTime() 6305 return mScreenBrightnessTimer[brightnessBin].getTotalTimeLocked( in getScreenBrightnessTime() 6314 return mInteractiveTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getInteractiveTime() 6318 return mPowerSaveModeEnabledTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getPowerSaveModeEnabledTime() 6329 return mDeviceIdleModeLightTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getDeviceIdleModeTime() 6331 return mDeviceIdleModeFullTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getDeviceIdleModeTime() 6359 return mDeviceLightIdlingTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getDeviceIdlingTime() 6361 return mDeviceIdlingTimer.getTotalTimeLocked(elapsedRealtimeUs, which); in getDeviceIdlingTime() [all …]
|
D | BatteryStatsHelper.java | 981 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_UNPLUGGED) / 1000); in addTimer() 472 timer.getTotalTimeLocked(mNowRealtimeMs*1000, STATS_SINCE_UNPLUGGED) / 1000)); in addTimers()
|
/frameworks/base/core/java/android/os/ |
D | BatteryStats.java | 504 public abstract long getTotalTimeLocked(long elapsedRealtimeUs, int which); in getTotalTimeLocked() method in BatteryStats.Timer 3049 long totalTimeMicros = timer.getTotalTimeLocked(elapsedRealtimeUs, which); in computeWakeLock() 3127 final long totalTimeMs = (timer.getTotalTimeLocked( in printTimer() 3181 totalTimeMicros = timer.getTotalTimeLocked(elapsedRealtimeUs, which); in printWakeLockCheckin() 3250 final long totalTime = roundUsToMs(timer.getTotalTimeLocked(rawRealtime, which)); in dumpTimer() 3273 final long timeMs = roundUsToMs(timer.getTotalTimeLocked(rawRealtimeUs, which)); in dumpTimer() 3602 fullWakeLockTimeTotal += fullWakeTimer.getTotalTimeLocked(rawRealtime, in dumpCheckinLocked() 3608 partialWakeLockTimeTotal += partialWakeTimer.getTotalTimeLocked( in dumpCheckinLocked() 3773 long totalTimeMicros = ent.getValue().getTotalTimeLocked(rawRealtime, which); in dumpCheckinLocked() 3787 long timeMs = (totalTimer.getTotalTimeLocked(rawRealtime, which) + 500) / 1000; in dumpCheckinLocked() [all …]
|
/frameworks/base/core/proto/android/os/ |
D | batterystats.proto | 495 // on the Timer, getTotalTimeLocked may represent the total 'blamed' or
|
/frameworks/base/config/ |
D | hiddenapi-light-greylist.txt | 3856 Landroid/os/BatteryStats$Timer;->getTotalTimeLocked(JI)J 7679 Lcom/android/internal/os/BatteryStatsImpl$Timer;->getTotalTimeLocked(JI)J
|
D | boot-image-profile.txt | 8732 HPLcom/android/internal/os/BatteryStatsImpl$Timer;->getTotalTimeLocked(JI)J 27021 HSPLandroid/os/BatteryStats$Timer;->getTotalTimeLocked(JI)J
|