Home
last modified time | relevance | path

Searched refs:mClocks (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java190 protected Clocks mClocks; field in BatteryStatsImpl
454 long cutOffTime = mClocks.elapsedRealtime() - mConstants.UID_REMOVE_DELAY_MS; in clearPendingRemovedUids()
1061 mClocks = clocks; in init()
1674 protected final Clocks mClocks; field in BatteryStatsImpl.Timer
1725 mClocks = clocks; in Timer()
1743 mClocks = clocks; in Timer()
2118 recomputeLastDuration(mClocks.elapsedRealtime() * 1000, false); in onTimeStopped()
2167 final long now = mClocks.elapsedRealtime() * 1000; in addDuration()
2178 final long now = mClocks.elapsedRealtime() * 1000; in abortLastDuration()
2189 final long overage = computeOverage(mClocks.elapsedRealtime() * 1000); in computeRunTimeLocked()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsCpuTimesTest.java89 private MockClocks mClocks; field in BatteryStatsCpuTimesTest
97 mClocks = new MockClocks(); in setUp()
98 mBatteryStatsImpl = new MockBatteryStatsImpl(mClocks) in setUp()
1248 mClocks.realtime = mClocks.uptime = 0; in testRemoveUidCpuTimes()
1250 mBatteryStatsImpl.new UidToRemove(1, mClocks.elapsedRealtime())); in testRemoveUidCpuTimes()
1252 mBatteryStatsImpl.new UidToRemove(5, 10, mClocks.elapsedRealtime())); in testRemoveUidCpuTimes()
1256 mClocks.realtime = mClocks.uptime = 100_000; in testRemoveUidCpuTimes()
1260 mClocks.realtime = mClocks.uptime = 200_000; in testRemoveUidCpuTimes()
1262 mBatteryStatsImpl.new UidToRemove(100, mClocks.elapsedRealtime())); in testRemoveUidCpuTimes()
1266 mClocks.realtime = mClocks.uptime = 400_000; in testRemoveUidCpuTimes()
[all …]
DMockBatteryStatsImpl.java37 this.clocks = mClocks; in MockBatteryStatsImpl()
42 mBluetoothScanTimer = new StopwatchTimer(mClocks, null, -14, null, mOnBatteryTimeBase); in MockBatteryStatsImpl()