Home
last modified time | relevance | path

Searched refs:MockClock (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsTimerTest.java94 MockClock clocks = new MockClock(); in testRunning()
115 MockClock clocks = new MockClock(); in testParceling()
160 MockClock clocks = new MockClock(); in testResetNoDetach()
183 MockClock clocks = new MockClock(); in testResetDetach()
211 MockClock clocks = new MockClock(); in testSummaryParceling()
253 MockClock clocks = new MockClock(); in testGetTotalTimeLocked()
278 MockClock clocks = new MockClock(); in testGetCountLocked()
299 MockClock clocks = new MockClock(); in testGetTimeSinceMarked()
316 MockClock clocks = new MockClock(); in testLogState()
DBatteryStatsSamplingTimerTest.java33 final MockClock clocks = new MockClock(); in testSettingStalePreservesData()
60 final MockClock clocks = new MockClock(); in testEndSampleAndContinueWhenTimeOrCountDecreases()
110 final MockClock clocks = new MockClock(); in testFirstUpdateIsAbsorbed()
149 final MockClock clocks = new MockClock(); in testSampleTimerSummaryParceling()
DBatteryStatsDurationTimerTest.java36 final MockClock clocks = new MockClock(); in testStartStop()
108 final MockClock clocks = new MockClock(); in testReset()
144 final MockClock clocks = new MockClock(); in testResetAndDetach()
171 final MockClock clocks = new MockClock(); in testParceling()
DBatteryStatsSensorTest.java50 final MockClock clocks = new MockClock(); in testSensorStartStop()
87 final MockClock clocks = new MockClock(); in testCountingWhileOffBattery()
123 final MockClock clocks = new MockClock(); in testCountingWhileOnBattery()
158 final MockClock clocks = new MockClock(); in testBatteryStatusOnToOff()
204 final MockClock clocks = new MockClock(); in testBatteryStatusOffToOn()
255 final MockClock clocks = new MockClock(); in testPooledBackgroundUsage()
392 final MockClock clocks = new MockClock(); in testSensorReset()
436 final MockClock clocks = new MockClock(); in testSensorResetTimes()
DBatteryStatsCounterTest.java33 final MockClock clocks = new MockClock(); // holds realtime and uptime in ms in testCounter()
73 final MockClock clocks = new MockClock(); // holds realtime and uptime in ms in testParceling()
DBatteryStatsBackgroundStatsTest.java53 final MockClock clocks = new MockClock(); // holds realtime and uptime in ms in testBgTimeBase()
122 final MockClock clocks = new MockClock(); // holds realtime and uptime in ms in testScreenOffBgTimeBase()
171 final MockClock clocks = new MockClock(); in testWifiScan()
226 final MockClock clocks = new MockClock(); in doTestAppBluetoothScanInternal()
296 final MockClock clocks = new MockClock(); in testJob()
358 final MockClock clocks = new MockClock(); in testSyncs()
DBatteryStatsNoteTest.java112 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(new MockClock()); in testNoteBluetoothScanResultLocked()
141 final MockClock clocks = new MockClock(); // holds realtime and uptime in ms in testNoteStartWakeLocked()
171 final MockClock clocks = new MockClock(); // holds realtime and uptime in ms in testNoteStartWakeLocked_isolatedUid()
213 final MockClock clocks = new MockClock(); // holds realtime and uptime in ms in testNoteStartWakeLocked_isolatedUidRace()
257 final MockClock clocks = new MockClock(); // holds realtime and uptime in ms in testNoteLongPartialWakelockStart_isolatedUid()
312 final MockClock clocks = new MockClock(); // holds realtime and uptime in ms in testNoteLongPartialWakelockStart_isolatedUidRace()
370 final MockClock clocks = new MockClock(); in testNoteUidProcessStateLocked()
457 final MockClock clocks = new MockClock(); // holds realtime and uptime in ms in testUpdateTimeBasesLocked()
481 final MockClock clocks = new MockClock(); // holds realtime and uptime in ms in testNoteScreenStateLocked()
528 final MockClock clocks = new MockClock(); // holds realtime and uptime in ms in testNoteScreenStateLocked_multiDisplay()
[all …]
DBatteryStatsBinderCallStatsTest.java57 final MockClock clocks = new MockClock(); // holds realtime and uptime in ms in testNoteBinderCallStats()
99 final MockClock clocks = new MockClock(); // holds realtime and uptime in ms in testProportionalSystemServiceUsage_noStatsForSomeMethods()
DBatteryStatsDualTimerTest.java32 final MockClock clocks = new MockClock(); in testResetDetach()
DBatteryStatsStopwatchTimerTest.java34 final MockClock clocks = new MockClock(); // holds realtime and uptime in ms in testCount()
145 private static long updateTime(MockClock clocks, long time) { in updateTime()
DMockClock.java21 public class MockClock extends Clock { class
DPowerStatsCollectorTest.java59 private final MockClock mMockClock = new MockClock();
DBatteryUsageStatsRule.java67 private final MockClock mMockClock = new MockClock();
143 public MockClock getMockClock() { in getMockClock()
DBatteryStatsResetTest.java52 private MockClock mMockClock;
96 mMockClock = new MockClock(); in setUp()
DPowerStatsSchedulerTest.java61 private MockClock mClock = new MockClock();
DPowerStatsAggregatorTest.java53 private final MockClock mClock = new MockClock();
DBatteryUsageStatsTest.java266 final MockClock clocks = new MockClock(); in buildBatteryUsageStats1()
310 final MockClock clocks = new MockClock(); in buildBatteryUsageStats2()
DBinaryStatePowerStatsProcessorTest.java59 private final MockClock mClock = new MockClock();
DPowerStatsExporterTest.java75 private MockClock mClock = new MockClock();
/frameworks/base/services/tests/selinux/src/com/android/server/selinux/
DRateLimiterTest.java33 private final MockClock mMockClock = new MockClock();
104 private static final class MockClock extends Clock { class in RateLimiterTest
DSelinuxAuditLogsCollectorTest.java57 private final MockClock mClock = new MockClock();
637 private static final class MockClock extends Clock { class in SelinuxAuditLogsCollectorTest
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DMonotonicClockTest.java43 private final MockClock mClock = new MockClock();
DMockClock.java19 public class MockClock extends Clock { class
DKernelCpuUidUserSysTimeReaderTest.java76 private final MockClock mMockClock = new MockClock();
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncReactorTest.cpp47 class MockClock : public Clock { class
104 mMockClock(std::make_shared<NiceMock<MockClock>>()), in VSyncReactorTest()
113 std::shared_ptr<MockClock> mMockClock;

12