Home
last modified time | relevance | path

Searched refs:EV_KEY (Results 1 – 23 of 23) sorted by relevance

/frameworks/native/services/inputflinger/tests/
DCapturedTouchpadEventConverter_test.cpp230 processAxis(conv, EV_KEY, BTN_TOUCH, 1); in TEST_F()
231 processAxis(conv, EV_KEY, BTN_TOOL_FINGER, 1); in TEST_F()
245 processAxis(conv, EV_KEY, BTN_TOUCH, 0); in TEST_F()
246 processAxis(conv, EV_KEY, BTN_TOOL_FINGER, 0); in TEST_F()
273 processAxis(conv, EV_KEY, BTN_TOUCH, 1); in TEST_F()
274 processAxis(conv, EV_KEY, BTN_TOOL_FINGER, 1); in TEST_F()
290 processAxis(conv, EV_KEY, BTN_TOUCH, 1); in TEST_F()
291 processAxis(conv, EV_KEY, BTN_TOOL_FINGER, 1); in TEST_F()
323 processAxis(conv, EV_KEY, BTN_TOUCH, 1); in TEST_F()
324 processAxis(conv, EV_KEY, BTN_TOOL_FINGER, 1); in TEST_F()
[all …]
DHardwareStateConverter_test.cpp125 processAxis(time, EV_KEY, BTN_TOUCH, 1); in TEST_F()
126 processAxis(time, EV_KEY, BTN_TOOL_FINGER, 1); in TEST_F()
177 processAxis(ARBITRARY_TIME, EV_KEY, BTN_TOUCH, 1); in TEST_F()
178 processAxis(ARBITRARY_TIME, EV_KEY, BTN_TOOL_DOUBLETAP, 1); in TEST_F()
212 processAxis(ARBITRARY_TIME, EV_KEY, BTN_TOUCH, 1); in TEST_F_WITH_FLAGS()
213 processAxis(ARBITRARY_TIME, EV_KEY, BTN_TOOL_FINGER, 1); in TEST_F_WITH_FLAGS()
228 processAxis(ARBITRARY_TIME, EV_KEY, BTN_TOUCH, 1); in TEST_F_WITH_FLAGS()
229 processAxis(ARBITRARY_TIME, EV_KEY, BTN_TOOL_FINGER, 1); in TEST_F_WITH_FLAGS()
245 processAxis(ARBITRARY_TIME, EV_KEY, BTN_TOUCH, 1); in TEST_F_WITH_FLAGS()
246 processAxis(ARBITRARY_TIME, EV_KEY, BTN_TOOL_FINGER, 1); in TEST_F_WITH_FLAGS()
[all …]
DTouchpadInputMapper_test.cpp138 args += process(EV_KEY, BTN_TOUCH, 1); in TEST_F()
140 args += process(EV_KEY, BTN_TOOL_FINGER, 1); in TEST_F()
151 args += process(EV_KEY, BTN_LEFT, 1); in TEST_F()
155 args += process(EV_KEY, BTN_LEFT, 0); in TEST_F()
172 args += process(EV_KEY, BTN_TOUCH, 0); in TEST_F()
174 args += process(EV_KEY, BTN_TOOL_FINGER, 0); in TEST_F()
DKeyboardInputMapper_test.cpp80 process(EV_KEY, keyCode, 1); in testTouchpadTapStateForKeys()
82 process(EV_KEY, keyCode, 0); in testTouchpadTapStateForKeys()
121 process(when, EV_KEY, keyCode, 1); in TEST_F()
123 process(when, EV_KEY, keyCode, 0); in TEST_F()
DUinputDevice.cpp85 if (ioctl(fd, UI_SET_EVBIT, EV_KEY)) { in configureDevice()
106 injectEvent(EV_KEY, key, 1); in pressKey()
114 injectEvent(EV_KEY, key, 0); in releaseKey()
223 injectEvent(EV_KEY, BTN_TOUCH, 1); in sendDown()
244 injectEvent(EV_KEY, BTN_TOUCH, 0); in sendUp()
DCursorInputMapper_test.cpp231 args += process(EV_KEY, BTN_LEFT, 1); in TEST_F()
246 args += process(EV_KEY, BTN_LEFT, 0); in TEST_F()
283 args += process(EV_KEY, BTN_MOUSE, 1); in TEST_F()
297 args += process(EV_KEY, BTN_MOUSE, 0); in TEST_F()
364 args += process(ARBITRARY_TIME, EV_KEY, BTN_MOUSE, 1); in TEST_F()
396 args += process(ARBITRARY_TIME + 1, EV_KEY, BTN_MOUSE, 0); in TEST_F()
461 args += process(ARBITRARY_TIME, EV_KEY, BTN_MOUSE, 1); in TEST_F()
473 args += process(ARBITRARY_TIME, EV_KEY, BTN_MOUSE, 0); in TEST_F()
493 args += process(ARBITRARY_TIME, EV_KEY, BTN_MOUSE, 1); in TEST_F()
521 args += process(ARBITRARY_TIME, EV_KEY, BTN_MOUSE, 0); in TEST_F()
[all …]
DInputReader_test.cpp982 mFakeEventHub->enqueueEvent(when, readTime, eventHubId, EV_KEY, KEY_A, 1); in TEST_F()
991 ASSERT_EQ(EV_KEY, event.type); in TEST_F()
3037 event.type = EV_KEY; in TEST_F()
3053 event.type = EV_KEY; in TEST_F()
3344 process(mapper, ARBITRARY_TIME, READ_TIME, EV_KEY, originalScanCode, 1); in testDPadKeyRotation()
3351 process(mapper, ARBITRARY_TIME, READ_TIME, EV_KEY, originalScanCode, 0); in testDPadKeyRotation()
3381 process(mapper, ARBITRARY_TIME, READ_TIME, EV_KEY, KEY_HOME, 1); in TEST_F()
3396 process(mapper, ARBITRARY_TIME + 1, READ_TIME, EV_KEY, KEY_HOME, 0); in TEST_F()
3411 process(mapper, ARBITRARY_TIME, READ_TIME, EV_KEY, 0, 1); in TEST_F()
3426 process(mapper, ARBITRARY_TIME + 1, READ_TIME, EV_KEY, 0, 0); in TEST_F()
[all …]
DMultiTouchInputMapper_test.cpp164 return process(EV_KEY, code, value); in processKey()
/frameworks/native/libs/input/
DVirtualInputDevice.cpp78 if (!writeInputEvent(EV_KEY, evKeyCode, action, eventTime)) { in writeEvKeyEvent()
376 if (!writeInputEvent(EV_KEY, BTN_TOUCH, static_cast<int32_t>(UinputAction::RELEASE), in handleTouchUp()
390 if (!writeInputEvent(EV_KEY, BTN_TOUCH, static_cast<int32_t>(UinputAction::PRESS), in handleTouchDown()
486 if (!writeInputEvent(EV_KEY, tool, static_cast<int32_t>(UinputAction::PRESS), eventTime)) { in handleStylusDown()
490 if (!writeInputEvent(EV_KEY, BTN_TOUCH, static_cast<int32_t>(UinputAction::PRESS), eventTime)) { in handleStylusDown()
499 if (!writeInputEvent(EV_KEY, tool, static_cast<int32_t>(UinputAction::RELEASE), eventTime)) { in handleStylusUp()
503 if (!writeInputEvent(EV_KEY, BTN_TOUCH, static_cast<int32_t>(UinputAction::RELEASE), in handleStylusUp()
DInputEventLabels.cpp542 case EV_KEY: in getCodeLabelsForType()
568 if (type == EV_KEY) { in getValueLabelsForTypeAndCode()
/frameworks/native/services/vr/virtual_touchpad/tests/
DVirtualTouchpad_test.cpp166 expect.IoctlSetInt(UI_SET_EVBIT, EV_KEY); in TEST_F()
193 expect.WriteInputEvent(EV_KEY, BTN_TOUCH, EvdevInjector::KEY_PRESS); in TEST_F()
226 expect.WriteInputEvent(EV_KEY, BTN_TOUCH, EvdevInjector::KEY_RELEASE); in TEST_F()
238 expect.WriteInputEvent(EV_KEY, BTN_BACK, EvdevInjector::KEY_PRESS); in TEST_F()
258 expect.WriteInputEvent(EV_KEY, BTN_BACK, EvdevInjector::KEY_RELEASE); in TEST_F()
/frameworks/base/cmds/uinput/src/com/android/commands/uinput/
DEvent.java45 public static final int EV_KEY = 0x01; field in Event
82 case EV_KEY -> UI_SET_KEYBIT; in forEventType()
DJsonStyleParser.java250 case UI_SET_KEYBIT -> readArrayAsInts(() -> readEvdevEventCode(Event.EV_KEY));
/frameworks/base/services/core/jni/
Dcom_android_server_tv_TvUinputBridge.cpp212 ioctl(mFd, UI_SET_EVBIT, EV_KEY); in Open()
396 connection->sendEvent(EV_KEY, code, down ? 1 : 0); in nativeSendKey()
416 connection->sendEvent(EV_KEY, linuxKeyCode, down ? 1 : 0); in nativeSendGamepadKey()
498 connection->sendEvent(EV_KEY, KEYS[i].linuxKeyCode, 0); in nativeClear()
512 connection->sendEvent(EV_KEY, GAMEPAD_KEYS[i].linuxUinputKeyCode, 0); in nativeClear()
Dcom_android_server_companion_virtual_InputController.cpp66 ioctl(fd, UI_SET_EVBIT, EV_KEY); in openUinput()
/frameworks/native/services/inputflinger/reader/mapper/accumulator/
DCursorButtonAccumulator.cpp51 if (rawEvent.type == EV_KEY) { in process()
DTouchButtonAccumulator.cpp58 if (rawEvent.type == EV_KEY) { in process()
/frameworks/base/cmds/uinput/
DREADME.md118 {"type":"UI_SET_EVBIT", "data":["EV_KEY", "EV_FF"]},
249 "events": ["EV_KEY", "KEY_0", 1,
251 "EV_KEY", "KEY_0", 0,
253 "EV_KEY", "KEY_1", 1,
255 "EV_KEY", "KEY_1", 0,
/frameworks/native/services/vr/virtual_touchpad/
DEvdevInjector.cpp121 if (const int status = EnableEventType(EV_KEY)) { in ConfigureKey()
251 return Send(EV_KEY, code, value); in SendKey()
/frameworks/base/cmds/uinput/tests/src/com/android/commands/uinput/tests/
DEvemuParserTest.java100 .asList().containsExactly(Event.EV_KEY, Event.EV_REL); in testEventBitmapParsing()
464 .asList().containsExactly(Event.EV_KEY, Event.EV_ABS); in testFreeDesktopEvemuRecording()
/frameworks/native/services/inputflinger/reader/mapper/
DKeyboardInputMapper.cpp243 case EV_KEY: { in process()
/frameworks/native/services/inputflinger/tests/fuzzers/
DMapperHelpers.h30 EV_KEY,
/frameworks/native/services/inputflinger/reader/
DEventHub.cpp775 case EV_KEY: { in trackInputEvent()
781 InputEventLookup::getLinuxEvdevLabel(EV_KEY, event.code, 1) in trackInputEvent()
2359 device->readDeviceBitMask(EVIOCGBIT(EV_KEY, 0), device->keyBitmask); in openDeviceLocked()
2898 return InputEventLookup::getLinuxEvdevLabel(EV_KEY, i, 1).code; in dump()