/third_party/libevdev/test/ |
D | test-context.c | 68 ck_assert(!libevdev_has_event_code(d, type, code)); in START_TEST() 70 ck_assert(libevdev_has_event_code(d, type, code)); in START_TEST() 84 ck_assert(libevdev_has_event_code(d, EV_ABS, ABS_MT_SLOT)); in START_TEST() 88 ck_assert(!libevdev_has_event_code(d, EV_ABS, ABS_MT_SLOT)); in START_TEST() 93 ck_assert(libevdev_has_event_code(d, EV_ABS, ABS_MT_SLOT)); in START_TEST() 107 ck_assert(libevdev_has_event_code(d, EV_ABS, ABS_MT_SLOT)); in START_TEST() 112 ck_assert(libevdev_has_event_code(d, EV_ABS, ABS_MT_SLOT)); in START_TEST() 117 ck_assert(libevdev_has_event_code(d, EV_ABS, ABS_MT_SLOT)); in START_TEST() 122 ck_assert(libevdev_has_event_code(d, EV_ABS, ABS_MT_SLOT)); in START_TEST()
|
D | test-libevdev-has-event.c | 125 ck_assert_msg(libevdev_has_event_code(dev, *evbit, code), "for type %d code %d", *evbit, code); in START_TEST() 126 ck_assert_msg(libevdev_has_event_code(dev, EV_SYN, SYN_REPORT), "for EV_SYN"); in START_TEST() 128 ck_assert_msg(!libevdev_has_event_code(dev, EV_PWR, 0), "for EV_PWR"); in START_TEST() 166 ck_assert_msg(!libevdev_has_event_code(dev, *evbit, max), "for type %d code %d", *evbit, max); in START_TEST() 167 …ck_assert_msg(!libevdev_has_event_code(dev, *evbit, INT_MAX), "for type %d code %d", *evbit, INT_M… in START_TEST() 168 …ck_assert_msg(!libevdev_has_event_code(dev, *evbit, UINT_MAX), "for type %d code %d", *evbit, UINT… in START_TEST() 201 ck_assert_int_eq(libevdev_has_event_code(dev, EV_REP, REP_DELAY), 1); in START_TEST() 202 ck_assert_int_eq(libevdev_has_event_code(dev, EV_REP, REP_PERIOD), 1); in START_TEST() 439 ck_assert(libevdev_has_event_code(dev, EV_ABS, ABS_MT_SLOT - 1)); in START_TEST() 440 ck_assert(libevdev_has_event_code(dev, EV_ABS, ABS_MT_SLOT)); in START_TEST() [all …]
|
D | test-uinput.c | 56 ck_assert_int_eq(libevdev_has_event_code(dev, type, code), in START_TEST() 57 libevdev_has_event_code(dev2, type, code)); in START_TEST() 137 ck_assert_int_eq(libevdev_has_event_code(dev, type, code), in START_TEST() 138 libevdev_has_event_code(dev2, type, code)); in START_TEST()
|
/third_party/libinput/src/ |
D | evdev.c | 556 if (!libevdev_has_event_code(device->evdev, in evdev_tag_keyboard() 763 if (!libevdev_has_event_code(evdev->evdev, EV_REL, REL_WHEEL) && in evdev_scroll_get_default_method() 764 !libevdev_has_event_code(evdev->evdev, EV_REL, REL_HWHEEL) && in evdev_scroll_get_default_method() 765 libevdev_has_event_code(evdev->evdev, EV_KEY, BTN_MIDDLE)) in evdev_scroll_get_default_method() 799 if (libevdev_has_event_code(evdev->evdev, EV_KEY, BTN_MIDDLE)) in evdev_scroll_get_default_button() 803 if (libevdev_has_event_code(evdev->evdev, EV_KEY, code)) in evdev_scroll_get_default_button() 807 if (libevdev_has_event_code(evdev->evdev, EV_KEY, BTN_RIGHT)) in evdev_scroll_get_default_button() 969 return (libevdev_has_event_code(evdev, EV_ABS, ABS_MT_POSITION_X) && in evdev_need_mtdev() 970 libevdev_has_event_code(evdev, EV_ABS, ABS_MT_POSITION_Y) && in evdev_need_mtdev() 971 !libevdev_has_event_code(evdev, EV_ABS, ABS_MT_SLOT)); in evdev_need_mtdev() [all …]
|
D | evdev-tablet-pad.c | 603 if (libevdev_has_event_code(device->evdev, EV_KEY, code)) in pad_init_buttons_from_kernel() 608 if (libevdev_has_event_code(device->evdev, EV_KEY, code)) in pad_init_buttons_from_kernel() 613 if (libevdev_has_event_code(device->evdev, EV_KEY, code)) in pad_init_buttons_from_kernel() 618 if (libevdev_has_event_code(device->evdev, EV_KEY, code)) in pad_init_buttons_from_kernel() 640 if (libevdev_has_event_code(device->evdev, EV_KEY, *code)) in pad_init_keys() 759 return libevdev_has_event_code(device->evdev, EV_KEY, code); in evdev_device_tablet_pad_has_key() 781 if (libevdev_has_event_code(device->evdev, EV_ABS, ABS_WHEEL)) { in evdev_device_tablet_pad_get_num_rings() 783 if (libevdev_has_event_code(device->evdev, in evdev_device_tablet_pad_get_num_rings() 800 if (libevdev_has_event_code(device->evdev, EV_ABS, ABS_RX)) { in evdev_device_tablet_pad_get_num_strips() 802 if (libevdev_has_event_code(device->evdev, in evdev_device_tablet_pad_get_num_strips()
|
D | evdev-fallback.c | 943 if (libevdev_has_event_code(device->evdev, EV_KEY, button) && in fallback_any_button_down() 1651 !libevdev_has_event_code(evdev, EV_ABS, ABS_MT_POSITION_X) || in fallback_dispatch_init_slots() 1652 !libevdev_has_event_code(evdev, EV_ABS, ABS_MT_POSITION_Y)) in fallback_dispatch_init_slots() 1690 dispatch->mt.has_palm = libevdev_has_event_code(evdev, in fallback_dispatch_init_slots() 1715 if (!libevdev_has_event_code(device->evdev, EV_ABS, ABS_X)) in fallback_dispatch_init_abs() 1817 if (libevdev_has_event_code(device->evdev, EV_KEY, BTN_LEFT) && in fallback_dispatch_create() 1818 libevdev_has_event_code(device->evdev, EV_KEY, BTN_RIGHT)) { in fallback_dispatch_create() 1819 bool has_middle = libevdev_has_event_code(device->evdev, in fallback_dispatch_create() 1832 if ((libevdev_has_event_code(device->evdev, in fallback_dispatch_create() 1835 !libevdev_has_event_code(device->evdev, in fallback_dispatch_create() [all …]
|
D | evdev-tablet.c | 148 has_axis = (libevdev_has_event_code(evdev, in tablet_device_has_axis() 151 libevdev_has_event_code(evdev, in tablet_device_has_axis() 154 libevdev_has_event_code(evdev, in tablet_device_has_axis() 158 has_axis |= libevdev_has_event_code(evdev, in tablet_device_has_axis() 162 has_axis = libevdev_has_event_code(evdev, in tablet_device_has_axis() 167 has_axis = libevdev_has_event_code(evdev, in tablet_device_has_axis() 923 if (libevdev_has_event_code(evdev, EV_KEY, button)) in copy_button_cap() 1030 if (libevdev_has_event_code(tablet->device->evdev, EV_ABS, in tool_set_bits() 2271 if (!libevdev_has_event_code(device->evdev, EV_KEY, BTN_TOOL_MOUSE) && in tablet_init_proximity_threshold() 2272 !libevdev_has_event_code(device->evdev, EV_KEY, BTN_TOOL_LENS)) in tablet_init_proximity_threshold() [all …]
|
D | evdev-totem.c | 723 has_xy = libevdev_has_event_code(evdev, EV_ABS, ABS_MT_POSITION_X) && in totem_reject_device() 724 libevdev_has_event_code(evdev, EV_ABS, ABS_MT_POSITION_Y); in totem_reject_device() 725 has_slot = libevdev_has_event_code(evdev, EV_ABS, ABS_MT_SLOT); in totem_reject_device() 726 has_tool_dial = libevdev_has_event_code(evdev, EV_ABS, ABS_MT_TOOL_TYPE) && in totem_reject_device()
|
D | evdev-mt-touchpad-thumb.c | 423 if (libevdev_has_event_code(device->evdev, EV_ABS, ABS_MT_PRESSURE)) { in tp_init_thumb() 432 if (libevdev_has_event_code(device->evdev, EV_ABS, ABS_MT_TOUCH_MAJOR)) { in tp_init_thumb()
|
D | evdev-mt-touchpad-buttons.c | 906 if (!libevdev_has_event_code(device->evdev, EV_KEY, BTN_MIDDLE)) { in tp_init_middlebutton_emulation() 925 bool has_left = libevdev_has_event_code(device->evdev, EV_KEY, BTN_LEFT), in tp_guess_clickpad() 926 has_right = libevdev_has_event_code(device->evdev, EV_KEY, BTN_RIGHT); in tp_guess_clickpad()
|
D | evdev-mt-touchpad.c | 2930 if (libevdev_has_event_code(device->evdev, in tp_init_slots() 3308 if (!libevdev_has_event_code(device->evdev, EV_ABS, ABS_MT_PRESSURE)) { in tp_init_palmdetect_pressure() 3383 if (libevdev_has_event_code(device->evdev, in tp_init_palmdetect() 3425 if (!libevdev_has_event_code(evdev, EV_ABS, ABS_X)) in tp_pass_sanity_check() 3428 if (!libevdev_has_event_code(evdev, EV_KEY, BTN_TOUCH)) in tp_pass_sanity_check() 3431 if (!libevdev_has_event_code(evdev, EV_KEY, BTN_TOOL_FINGER)) in tp_pass_sanity_check() 3515 if (!libevdev_has_event_code(device->evdev, EV_ABS, code)) { in tp_init_pressure() 3573 if (!libevdev_has_event_code(device->evdev, in tp_init_touch_size()
|
/third_party/libevdev/libevdev/ |
D | libevdev.c | 82 if (libevdev_has_event_code(dev, type, code)) in init_event_queue() 92 if (libevdev_has_event_code(dev, EV_ABS, code)) in init_event_queue() 322 !libevdev_has_event_code(dev, EV_ABS, ABS_MT_TRACKING_ID)) in reset_tracking_ids() 349 if (libevdev_has_event_code(dev, EV_ABS, ABS_RESERVED) || in init_slots() 350 !libevdev_has_event_code(dev, EV_ABS, ABS_MT_SLOT)) { in init_slots() 680 !libevdev_has_event_code(dev, EV_ABS, axis)) in sync_mt_state() 818 !libevdev_has_event_code(dev, EV_ABS, axis)) in push_mt_sync_events() 929 libevdev_has_event_code(dev, EV_ABS, ABS_MT_SLOT)) { in sync_state() 981 if (libevdev_has_event_code(dev, EV_ABS, i)) in update_mt_state() 1078 if (!libevdev_has_event_code(dev, ev->type, ev->code)) in sanitize_event() [all …]
|
D | libevdev.sym | 48 libevdev_has_event_code;
|
D | libevdev.h | 1427 int libevdev_has_event_code(const struct libevdev *dev, unsigned int type, unsigned int code);
|
/third_party/libevdev/tools/ |
D | libevdev-tweak-device.c | 346 if (!libevdev_has_event_code(dev, EV_LED, led)) { in set_led() 368 if (libevdev_has_event_code(dev, EV_ABS, ABS_X)) in set_resolution() 370 if (libevdev_has_event_code(dev, EV_ABS, ABS_MT_POSITION_X)) in set_resolution() 374 if (libevdev_has_event_code(dev, EV_ABS, ABS_Y)) in set_resolution() 376 if (libevdev_has_event_code(dev, EV_ABS, ABS_MT_POSITION_Y)) in set_resolution()
|
D | touchpad-edge-detector.c | 209 if (libevdev_has_event_code(dev, EV_ABS, ABS_MT_POSITION_X)) in print_udev_override_rule() 262 if (!libevdev_has_event_code(dev, EV_ABS, ABS_X) || in main() 263 !libevdev_has_event_code(dev, EV_ABS, ABS_Y)) { in main()
|
D | libevdev-events.c | 24 if (!libevdev_has_event_code(dev, EV_ABS, axis)) in print_abs_bits() 45 if (!libevdev_has_event_code(dev, type, i)) in print_code_bits()
|
/third_party/libinput/test/ |
D | test-pad.c | 74 if (!libevdev_has_event_code(dev->evdev, EV_KEY, code)) in START_TEST() 168 if (libevdev_has_event_code(dev->evdev, EV_KEY, code)) in START_TEST() 190 if (!libevdev_has_event_code(dev->evdev, EV_KEY, BTN_0)) in START_TEST() 199 ck_assert(!libevdev_has_event_code(dev->evdev, in START_TEST() 204 if (!libevdev_has_event_code(dev->evdev, EV_KEY, code)) in START_TEST() 248 if (!libevdev_has_event_code(dev->evdev, EV_KEY, BTN_LEFT)) in START_TEST() 254 if (!libevdev_has_event_code(dev->evdev, EV_KEY, code)) in START_TEST() 344 if (!libevdev_has_event_code(dev->evdev, EV_KEY, code)) in START_TEST() 924 return (libevdev_has_event_code(evdev, EV_KEY, KEY_BUTTONCONFIG) || in pad_has_keys() 925 libevdev_has_event_code(evdev, EV_KEY, KEY_ONSCREEN_KEYBOARD) || in pad_has_keys() [all …]
|
D | test-keyboard.c | 277 evdev_has = libevdev_has_event_code(dev->evdev, EV_KEY, code); in START_TEST() 310 if (!libevdev_has_event_code(dev->evdev, EV_KEY, KEY_A)) in START_TEST() 343 if (!libevdev_has_event_code(dev->evdev, EV_KEY, code)) in START_TEST() 373 if (!libevdev_has_event_code(dev->evdev, EV_KEY, KEY_A) || in START_TEST() 374 !libevdev_has_event_code(dev->evdev, EV_KEY, KEY_LEFTSHIFT)) in START_TEST()
|
D | test-pointer.c | 683 ck_assert(libevdev_has_event_code(dev->evdev, EV_REL, REL_WHEEL) || in START_TEST() 684 libevdev_has_event_code(dev->evdev, EV_REL, REL_HWHEEL)); in START_TEST() 686 if (libevdev_has_event_code(dev->evdev, EV_REL, REL_WHEEL)) { in START_TEST() 694 if (libevdev_has_event_code(dev->evdev, EV_REL, REL_HWHEEL)) { in START_TEST() 782 if (!libevdev_has_event_code(dev->evdev, EV_REL, REL_WHEEL_HI_RES) && in START_TEST() 783 !libevdev_has_event_code(dev->evdev, EV_REL, REL_HWHEEL_HI_RES)) in START_TEST() 789 if (!libevdev_has_event_code(dev->evdev, EV_REL, axis)) in START_TEST() 811 if (!libevdev_has_event_code(dev->evdev, EV_REL, REL_WHEEL_HI_RES) && in START_TEST() 812 !libevdev_has_event_code(dev->evdev, EV_REL, REL_HWHEEL_HI_RES)) in START_TEST() 843 if (!libevdev_has_event_code(dev->evdev, EV_REL, REL_WHEEL_HI_RES) && in START_TEST() [all …]
|
D | test-tablet.c | 42 if (libevdev_has_event_code(dev->evdev, EV_KEY, BTN_STYLUS)) in pick_stylus_or_btn0() 45 if (libevdev_has_event_code(dev->evdev, EV_KEY, BTN_0)) in pick_stylus_or_btn0() 180 if (!libevdev_has_event_code(dev->evdev, EV_KEY, code)) in START_TEST() 194 if (!libevdev_has_event_code(evdev, EV_KEY, code)) in START_TEST() 1123 if (!libevdev_has_event_code(dev->evdev, EV_KEY, button)) in START_TEST() 2094 if (!libevdev_has_event_code(dev->evdev, in START_TEST() 2811 return libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_MOUSE) && in tablet_has_mouse() 2850 if (!libevdev_has_event_code(dev->evdev, in START_TEST() 2981 if (!libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_RUBBER)) in START_TEST() 3101 if (!libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_RUBBER)) in START_TEST() [all …]
|
D | test-touchpad-tap.c | 1841 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP)) in START_TEST() 2958 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP)) in START_TEST() 2965 if (!libevdev_has_event_code(dev->evdev, EV_ABS, ABS_MT_PRESSURE)) in START_TEST() 3019 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP)) in START_TEST() 3026 if (libevdev_has_event_code(dev->evdev, EV_ABS, ABS_MT_PRESSURE)) in START_TEST() 3030 libevdev_has_event_code(dev->evdev, EV_ABS, ABS_PRESSURE)) in START_TEST() 3073 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP)) in START_TEST() 3124 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP)) in START_TEST() 3175 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP)) in START_TEST() 4184 if (libevdev_has_event_code(evdev, EV_ABS, ABS_MT_PRESSURE)) in touchpad_has_palm_pressure()
|
D | test-gestures.c | 976 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP) || in START_TEST() 1066 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_TRIPLETAP) || in START_TEST() 1136 !libevdev_has_event_code(dev->evdev, EV_KEY, BTN_TOOL_QUADTAP) || in START_TEST()
|
/third_party/libevdev/ |
D | README_zh.md | 52 !libevdev_has_event_code(dev, EV_KEY, BTN_LEFT)) {
|
/third_party/libevdev/export_include/libevdev/ |
D | libevdev.h | 1427 int libevdev_has_event_code(const struct libevdev *dev, unsigned int type, unsigned int code);
|