Searched refs:toNs (Results 1 – 2 of 2) sorted by relevance
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | VSyncDispatchRealtimeTest.cpp | 33 constexpr nsecs_t toNs(std::chrono::duration<Rep, Per> const& tp) { in toNs() function 39 FixedRateIdealStubTracker() : mPeriod{toNs(3ms)} {} in FixedRateIdealStubTracker() 103 static nsecs_t constexpr mDispatchGroupThreshold = toNs(100us); 104 static nsecs_t constexpr mVsyncMoveThreshold = toNs(500us); 173 cb_receiver{RepeatingCallbackReceiver(dispatch, toNs(1500us), toNs(2500us)), in TEST_F() 174 RepeatingCallbackReceiver(dispatch, toNs(0h), toNs(0h)), in TEST_F() 175 RepeatingCallbackReceiver(dispatch, toNs(1ms), toNs(3ms))}; in TEST_F() 195 auto next_vsync_interval = toNs(3ms); in TEST_F() 200 RepeatingCallbackReceiver cb_receiver(dispatch, toNs(1ms), toNs(5ms)); in TEST_F() 203 tracker.set_interval(next_vsync_interval += toNs(1ms), last_known); in TEST_F() [all …]
|
/frameworks/native/services/inputflinger/tests/ |
D | UnwantedInteractionBlocker_test.cpp | 73 static nsecs_t toNs(std::chrono::nanoseconds duration) { in toNs() function 768 const nsecs_t downTime = toNs(0ms); in TEST_F() 773 generateMotionArgs(downTime, toNs(8ms), MOVE, {{1406.0, 650.0, 52.0}})); in TEST_F() 775 generateMotionArgs(downTime, toNs(16ms), MOVE, {{1429.0, 672.0, 46.0}})); in TEST_F() 777 generateMotionArgs(downTime, toNs(24ms), MOVE, {{1417.0, 685.0, 41.0}})); in TEST_F() 779 generateMotionArgs(downTime, toNs(32ms), POINTER_1_DOWN, in TEST_F() 782 generateMotionArgs(downTime, toNs(40ms), MOVE, in TEST_F() 785 generateMotionArgs(downTime, toNs(48ms), MOVE, in TEST_F() 788 generateMotionArgs(downTime, toNs(56ms), MOVE, in TEST_F() 791 generateMotionArgs(downTime, toNs(64ms), MOVE, in TEST_F() [all …]
|