Home
last modified time | relevance | path

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

12

/external/ltp/testcases/kernel/input/
Dinput06.c86 SAFE_IOCTL(NULL, fd, UI_SET_EVBIT, EV_KEY); in setup()
98 send_event(fd, EV_KEY, KEY_X, 1); in send_events()
109 send_event(fd, EV_KEY, KEY_X, 0); in send_events()
170 if (!check_event(iev, EV_KEY, KEY_X, 1) || !check_sync_event(next_event())) { in parse_key()
176 while (check_event(iev, EV_KEY, KEY_X, 2) && check_sync_event(next_event())) { in parse_key()
188 if (!check_event(iev, EV_KEY, KEY_X, 0) || !check_sync_event(next_event())) { in parse_key()
216 case EV_KEY: in check_events()
Dinput03.c85 SAFE_IOCTL(NULL, fd, UI_SET_EVBIT, EV_KEY); in setup()
98 send_event(fd, EV_KEY, BTN_RIGHT, 1); in send_events()
101 send_event(fd, EV_KEY, BTN_RIGHT, 0); in send_events()
Dinput05.c86 SAFE_IOCTL(NULL, fd, UI_SET_EVBIT, EV_KEY); in setup()
Dinput_helper.c216 SAFE_IOCTL(NULL, fd, UI_SET_EVBIT, EV_KEY); in setup_mouse_events()
/external/strace/xlat/
Devdev_ev.h13 #if defined(EV_KEY) || (defined(HAVE_DECL_EV_KEY) && HAVE_DECL_EV_KEY)
15 static_assert((EV_KEY) == (0x01), "EV_KEY != 0x01");
18 # define EV_KEY 0x01
97 XLAT(EV_KEY),
Devdev_ev.in2 EV_KEY 0x01
/external/autotest/client/bin/input/
Dinput_device.py465 if not self._get_value(EV_KEY, BTN_TOUCH) == 1:
467 elif self._get_value(EV_KEY, BTN_TOOL_TRIPLETAP) == 1:
469 elif self._get_value(EV_KEY, BTN_TOOL_DOUBLETAP) == 1:
471 elif self._get_value(EV_KEY, BTN_TOOL_FINGER) == 1:
504 return int(self._get_value(EV_KEY, BTN_LEFT) == 1)
507 return int(self._get_value(EV_KEY, BTN_RIGHT) == 1)
510 return int(self._get_value(EV_KEY, BTN_MIDDLE) == 1)
522 return ((EV_KEY in self.events) and
523 (BTN_TOOL_FINGER in self.events[EV_KEY]) and
527 if EV_KEY not in self.events:
[all …]
Dlinux_input.py161 EV_KEY = 0x01 variable
1127 EV_KEY : 'EV_KEY',
1141 EV_KEY : KEY_CNT,
1155 EV_KEY: {
/external/autotest/client/site_tests/hardware_Keyboard/src/
Devtest.c44 [EV_SYN] = "Sync", [EV_KEY] = "Key",
295 [EV_SYN] = events, [EV_KEY] = keys,
334 if (ev[i].type == EV_KEY) { in do_single_key_capture()
355 ioctl(fd, EVIOCGBIT(EV_KEY, KEY_MAX), bit[EV_KEY]); in is_key_supported()
356 if (test_bit(keycode, bit[EV_KEY])) { in is_key_supported()
377 if (test_bit(EV_KEY, bit[0])) { in do_check_num_keys()
378 ioctl(fd, EVIOCGBIT(EV_KEY, KEY_MAX), bit[EV_KEY]); in do_check_num_keys()
380 if (test_bit(j,bit[EV_KEY])) { in do_check_num_keys()
/external/autotest/server/cros/bluetooth/
Dbluetooth_test_utils.py6 from autotest_lib.client.bin.input.linux_input import EV_KEY
24 if ev.type == EV_KEY and ev.value == 1:
/external/crosvm/devices/src/virtio/input/
Ddefaults.rs99 supported_events.insert(EV_KEY, virtio_input_bitmap::from_bits(&[BTN_TOUCH])); in default_touchscreen_events()
123 supported_events.insert(EV_KEY, virtio_input_bitmap::from_bits(&[BTN_TOUCH])); in default_multitouchscreen_events()
146 EV_KEY, in default_trackpad_events()
156 EV_KEY, in default_mouse_events()
169 EV_KEY, in default_keyboard_events()
/external/strace/tests-mx32/
Dioctl.c54 && defined EV_KEY
84 (void) ioctl(-1, EVIOCGBIT(EV_KEY, 8), &data); in main()
Dioctl_evdev-success.c215 { { ARG_STR(EVIOCGBIT(EV_KEY, 0)), key, print_getbit }, &key_str}, in main()
Dioctl_evdev.c143 TEST_NULL_ARG(EVIOCGBIT(EV_KEY, 1)); in main()
/external/strace/tests-m32/
Dioctl.c54 && defined EV_KEY
84 (void) ioctl(-1, EVIOCGBIT(EV_KEY, 8), &data); in main()
Dioctl_evdev-success.c215 { { ARG_STR(EVIOCGBIT(EV_KEY, 0)), key, print_getbit }, &key_str}, in main()
Dioctl_evdev.c143 TEST_NULL_ARG(EVIOCGBIT(EV_KEY, 1)); in main()
/external/strace/tests/
Dioctl.c54 && defined EV_KEY
84 (void) ioctl(-1, EVIOCGBIT(EV_KEY, 8), &data); in main()
Dioctl_evdev-success.c215 { { ARG_STR(EVIOCGBIT(EV_KEY, 0)), key, print_getbit }, &key_str}, in main()
Dioctl_evdev.c143 TEST_NULL_ARG(EVIOCGBIT(EV_KEY, 1)); in main()
/external/libkmsxx/utils/
Dkmstouch.cpp84 case EV_KEY: in print_bits()
85 print_code_bits(dev, EV_KEY, KEY_MAX); in print_bits()
142 case EV_KEY: in handle_event()
239 !libevdev_has_event_code(dev, EV_KEY, BTN_TOUCH)) { in main()
/external/crosvm/linux_input_sys/src/
Dlib.rs9 const EV_KEY: u16 = 0x01; constant
156 type_: Le16::from(EV_KEY), in key()
/external/walt/pywalt/
DREADME.md50 Event: time 1487105212.048997, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
53 Event: time 1487105212.262449, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
56 Event: time 1487105212.702711, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
/external/libxkbcommon/tools/
Dinteractive-evdev.c83 if (!evdev_bit_is_set(evbits, EV_KEY)) in is_keyboard()
87 ioctl(fd, EVIOCGBIT(EV_KEY, sizeof(keybits)), keybits); in is_keyboard()
259 if (type != EV_KEY) in process_event()
/external/ltp/libs/libltpuinput/
Dtst_uinput.c117 SAFE_IOCTL(fd, UI_SET_EVBIT, EV_KEY); in setup_mouse_events()

12