Home
last modified time | relevance | path

Searched refs:timer2 (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsTimerTest.java131 TestTimer timer2 = new TestTimer(clocks, 0, timeBase, parcel); in testParceling() local
132 Assert.assertEquals(2, timer2.getCount()); // from computeTotalCountLocked() in testParceling()
133 Assert.assertEquals(201, timer2.getTotalTime()); // from computeRunTimeLocked() in testParceling()
134 Assert.assertEquals(9223372036854775803L, timer2.getTimeBeforeMark()); in testParceling()
224 TestTimer timer2 = new TestTimer(clocks, 0, timeBase); in testSummaryParceling() local
227 timer2.setCount(666); in testSummaryParceling()
228 timer2.setTotalTime(666); in testSummaryParceling()
229 timer2.setTimeBeforeMark(666); in testSummaryParceling()
234 timer2.readSummaryFromParcelLocked(parcel); in testSummaryParceling()
236 Assert.assertEquals(1, timer2.getCount()); in testSummaryParceling()
[all …]
DBatteryStatsSensorTest.java339 BatteryStats.Timer timer2 = bi.getUidStats().get(UID_2).getSensorStats() in testPooledBackgroundUsage() local
374 timer2.getTotalTimeLocked(curr, BatteryStats.STATS_SINCE_CHARGED)); in testPooledBackgroundUsage()
377 timer2.getTotalDurationMsLocked(clocks.realtime) * 1000); in testPooledBackgroundUsage()
385 assertEquals(2, timer2.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testPooledBackgroundUsage()
/frameworks/native/services/inputflinger/tests/
DTimerProvider_test.cpp201 GesturesTimer* timer2 = mProvider.createTimer(); in TEST_F() local
212 mProvider.setDeadline(timer2, 750'000'000, &pushTimeOntoVector, &callTimes2); in TEST_F()
213 mProvider.setDeadline(timer2, 1'250'000'000, &pushTimeOntoVector, &callTimes2); in TEST_F()
248 GesturesTimer* timer2 = mProvider.createTimer(); in TEST_F() local
256 mProvider.setDeadline(timer2, 500'000'000, &incrementInt, &numCalls2); in TEST_F()
257 mProvider.setDeadline(timer2, 1'000'000'000, &incrementInt, &numCalls2); in TEST_F()
271 GesturesTimer* timer2 = mProvider.createTimer(); in TEST_F() local
277 mProvider.setDeadline(timer2, 1'000'000'000, callback, nullptr); in TEST_F()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/domain/interactor/
DCommunalInteractorTest.kt452 val timer2 = smartspaceTimer("timer2", timestamp = 3L) in <lambda>() constant
453 smartspaceRepository.setCommunalSmartspaceTargets(listOf(timer1, timer2)) in <lambda>()
457 smartspaceRepository.setCommunalSmartspaceTargets(listOf(timer1, timer2, timer3)) in <lambda>()