Home
last modified time | relevance | path

Searched refs:toNs (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncDispatchRealtimeTest.cpp33 constexpr nsecs_t toNs(std::chrono::duration<Rep, Per> const& tp) { in toNs() function
66 FixedRateIdealStubTracker() : StubTracker{toNs(3ms)} {} in FixedRateIdealStubTracker()
102 static nsecs_t constexpr mDispatchGroupThreshold = toNs(100us);
103 static nsecs_t constexpr mVsyncMoveThreshold = toNs(500us);
174 cb_receiver{RepeatingCallbackReceiver(dispatch, toNs(1500us), toNs(2500us)), in TEST_F()
175 RepeatingCallbackReceiver(dispatch, toNs(0h), toNs(0h)), in TEST_F()
176 RepeatingCallbackReceiver(dispatch, toNs(1ms), toNs(3ms))}; in TEST_F()
196 auto next_vsync_interval = toNs(3ms); in TEST_F()
202 RepeatingCallbackReceiver cb_receiver(dispatch, toNs(1ms), toNs(5ms)); in TEST_F()
205 tracker->set_interval(next_vsync_interval += toNs(1ms), last_known); in TEST_F()
[all …]
/frameworks/native/services/inputflinger/tests/
DUnwantedInteractionBlocker_test.cpp58 static nsecs_t toNs(std::chrono::nanoseconds duration) { in toNs() function
734 const nsecs_t downTime = toNs(0ms); in TEST_F()
739 generateMotionArgs(downTime, toNs(8ms), MOVE, {{1406.0, 650.0, 52.0}})); in TEST_F()
741 generateMotionArgs(downTime, toNs(16ms), MOVE, {{1429.0, 672.0, 46.0}})); in TEST_F()
743 generateMotionArgs(downTime, toNs(24ms), MOVE, {{1417.0, 685.0, 41.0}})); in TEST_F()
745 generateMotionArgs(downTime, toNs(32ms), POINTER_1_DOWN, in TEST_F()
748 generateMotionArgs(downTime, toNs(40ms), MOVE, in TEST_F()
751 generateMotionArgs(downTime, toNs(48ms), MOVE, in TEST_F()
754 generateMotionArgs(downTime, toNs(56ms), MOVE, in TEST_F()
757 generateMotionArgs(downTime, toNs(64ms), MOVE, in TEST_F()
[all …]