Lines Matching refs:when
75 nsecs_t when = 2ULL; in TEST_F() local
76 InputEvent msc1 = { when, EV_MSC, MSC_ANDROID_TIME_SEC, 1 }; in TEST_F()
77 InputEvent msc2 = { when, EV_MSC, MSC_ANDROID_TIME_USEC, 900000 }; in TEST_F()
80 InputEvent keyDown = { when, EV_KEY, KEY_HOME, 1 }; in TEST_F()
81 InputEvent syn = { when, EV_SYN, SYN_REPORT, 0 }; in TEST_F()
84 InputEvent keyUp = { when, EV_KEY, KEY_HOME, 0 }; in TEST_F()
86 device->processInput(msc1, when); in TEST_F()
87 device->processInput(msc2, when); in TEST_F()
88 device->processInput(keyDown, when); in TEST_F()
89 device->processInput(syn, when); in TEST_F()
90 device->processInput(keyUp, when); in TEST_F()
93 EXPECT_EQ(expectedWhen, keyDown.when); in TEST_F()
94 EXPECT_EQ(expectedWhen, syn.when); in TEST_F()
95 EXPECT_EQ(when, keyUp.when); in TEST_F()
111 EXPECT_NEAR(now, event.when, ms2ns(TIMING_TOLERANCE_MS)); in TEST_F()
128 EXPECT_NEAR(now, event.when, ms2ns(TIMING_TOLERANCE_MS)); in TEST_F()