Home
last modified time | relevance | path

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

/hardware/libhardware/tests/input/evdev/
DInputHub_test.cpp165 struct input_event iev; in TEST_F() local
166 iev.time = { 1, 0 }; in TEST_F()
167 iev.type = EV_KEY; in TEST_F()
168 iev.code = KEY_HOME; in TEST_F()
169 iev.value = 0x01; in TEST_F()
173 ssize_t nWrite = TEMP_FAILURE_RETRY(write(deviceFile->getFd(), &iev, sizeof(iev))); in TEST_F()
175 ASSERT_EQ(static_cast<ssize_t>(sizeof(iev)), nWrite) << "could not write to " in TEST_F()
235 struct input_event iev; in TEST_F() local
236 iev.time = { 1, 0 }; in TEST_F()
237 iev.type = EV_KEY; in TEST_F()
[all …]
/hardware/libhardware/modules/input/evdev/
DInputHub.cpp615 auto& iev = ievs[i]; in poll() local
616 auto when = s2ns(iev.time.tv_sec) + us2ns(iev.time.tv_usec); in poll()
617 InputEvent inputEvent = { when, iev.type, iev.code, iev.value }; in poll()