/third_party/libinput/test/ |
H A D | test-device.c | 854 struct libevdev_uinput *uinput; in START_TEST() local 857 uinput = litest_create_uinput_device("test device", NULL, in START_TEST() 866 libevdev_uinput_get_devnode(uinput)); in START_TEST() 873 libevdev_uinput_destroy(uinput); in START_TEST() 882 struct libevdev_uinput *uinput; in START_TEST() local 886 uinput = litest_create_uinput_device("test device", NULL, in START_TEST() 894 libevdev_uinput_get_devnode(uinput)); in START_TEST() 899 libevdev_uinput_destroy(uinput); in START_TEST() 905 struct libevdev_uinput *uinput; in START_TEST() local 909 uinput in START_TEST() 928 struct libevdev_uinput *uinput; START_TEST() local 954 struct libevdev_uinput *uinput; START_TEST() local 981 struct libevdev_uinput *uinput; assert_device_ignored() local 1100 struct libevdev_uinput *uinput; START_TEST() local 1143 struct libevdev_uinput *uinput; START_TEST() local 1186 struct libevdev_uinput *uinput; START_TEST() local 1219 struct libevdev_uinput *uinput; START_TEST() local 1259 struct libevdev_uinput *uinput; START_TEST() local 1300 struct libevdev_uinput *uinput; START_TEST() local 1596 struct libevdev_uinput *uinput; START_TEST() local [all...] |
H A D | test-path.c | 136 const char *path = "/dev/uinput"; in START_TEST() 229 struct libevdev_uinput *uinput; in START_TEST() local 235 uinput = litest_create_uinput_device("test device", NULL, in START_TEST() 250 libevdev_uinput_get_devnode(uinput)); in START_TEST() 255 libevdev_uinput_destroy(uinput); in START_TEST() 271 libevdev_uinput_get_devnode(dev->uinput)); in START_TEST() 435 libevdev_uinput_get_devnode(dev->uinput)); in START_TEST() 512 libevdev_uinput_get_devnode(dev->uinput)); in START_TEST() 542 libevdev_uinput_get_devnode(dev->uinput)); in START_TEST() 568 struct libevdev_uinput *uinput; in START_TEST() local 598 struct libevdev_uinput *uinput; START_TEST() local 629 struct libevdev_uinput *uinput; START_TEST() local 911 struct libevdev_uinput *uinput; START_TEST() local 946 struct libevdev_uinput *uinput; START_TEST() local [all...] |
H A D | test-misc.c | 56 struct libevdev_uinput *uinput; in create_simple_test_device() local 87 &uinput); in create_simple_test_device() 91 return uinput; in create_simple_test_device() 96 struct libevdev_uinput *uinput; in START_TEST() local 101 uinput = create_simple_test_device("litest test device", in START_TEST() 110 libinput_path_add_device(li, libevdev_uinput_get_devnode(uinput)); in START_TEST() 148 libevdev_uinput_destroy(uinput); in START_TEST() 604 struct libevdev_uinput *uinput; in START_TEST() local 611 uinput = create_simple_test_device("litest test device", in START_TEST() 618 path = libevdev_uinput_get_devnode(uinput); in START_TEST() [all...] |
H A D | litest.c | 1615 * Creates a uinput device but does not add it to a libinput context 1662 d->uinput = litest_create_uinput_device_from_description(name, in litest_create() 1683 path = libevdev_uinput_get_devnode(d->uinput); in litest_create() 1784 path = libevdev_uinput_get_devnode(d->uinput); in litest_add_device_with_overrides() 1924 libevdev_uinput_get_syspath(d->uinput)); in litest_delete_device() 1940 libevdev_uinput_destroy(d->uinput); in litest_delete_device() 1964 ret = libevdev_uinput_write_event(d->uinput, type, code, value); in litest_event() 3398 struct libevdev_uinput *uinput; in litest_create_uinput() local 3452 &uinput); in litest_create_uinput() 3457 litest_assert_msg(rc == 0, "Failed to create uinput devic in litest_create_uinput() 3502 struct libevdev_uinput *uinput; litest_create_uinput_device_from_description() local 3556 struct libevdev_uinput *uinput; litest_create_uinput_abs_device() local 3569 struct libevdev_uinput *uinput; litest_create_uinput_device() local [all...] |
H A D | litest-device-keyboard-all-codes.c | 69 d->uinput = litest_create_uinput_device_from_description(NAME, in all_codes_create()
|
H A D | test-switch.c | 209 libevdev_uinput_get_devnode(dev->uinput)); in START_TEST() 254 libevdev_uinput_get_devnode(dev->uinput)); in START_TEST() 743 fd = open(libevdev_uinput_get_devnode(sw->uinput), O_RDONLY|O_NONBLOCK); in START_TEST() 792 fd = open(libevdev_uinput_get_devnode(sw->uinput), O_RDONLY|O_NONBLOCK); in START_TEST() 802 libevdev_uinput_get_devnode(sw->uinput)); in START_TEST() 804 libevdev_uinput_get_devnode(keyboard->uinput)); in START_TEST() 871 fd = open(libevdev_uinput_get_devnode(sw->uinput), O_RDONLY|O_NONBLOCK); in START_TEST()
|
H A D | test-totem.c | 154 devnode = libevdev_uinput_get_devnode(dev->uinput); in START_TEST() 210 devnode = libevdev_uinput_get_devnode(dev->uinput); in START_TEST() 415 devnode = libevdev_uinput_get_devnode(dev->uinput); in START_TEST()
|
H A D | litest.h | 34 #include <libevdev/libevdev-uinput.h> 404 struct libevdev_uinput *uinput; member
|
H A D | test-touchpad-buttons.c | 2086 struct libevdev_uinput *uinput; in START_TEST() local 2104 uinput = litest_create_uinput_abs_device("litest NonClickpad", in START_TEST() 2114 libevdev_uinput_get_devnode(uinput)); in START_TEST() 2122 libevdev_uinput_destroy(uinput); in START_TEST()
|
H A D | test-keyboard.c | 119 /* We can't send pressed -> released -> pressed events using uinput in START_TEST() 134 libevdev_uinput_get_devnode(dev->uinput)); in START_TEST()
|
H A D | test-touch.c | 839 dev->uinput)); in START_TEST()
|
/third_party/libinput/tools/ |
H A D | libinput-replay.py | 67 def check_udev_properties(yaml_data, uinput): 69 Compare the properties our new uinput device has with the ones from the 86 udev_device = pyudev.Devices.from_device_file(context, uinput.devnode) 148 uinput = d.create_uinput_device() 150 check_udev_properties(device, uinput) 152 return uinput 196 uinput = device["__uinput"] 225 uinput.send_events(evs) 227 print_events(uinput.devnode, device["__index"], evs) 261 uinput [all...] |
/third_party/libevdev/test/ |
H A D | test-compile-pedantic.c | 2 #include <libevdev/libevdev-uinput.h>
|
H A D | test-common-uinput.c | 13 #include <linux/uinput.h> 19 #include <libevdev/libevdev-uinput.h> 21 #include "test-common-uinput.h" 128 fd = open("/dev/uinput", O_RDWR); in uinput_device_create()
|
H A D | test-kernel.c | 18 #include <libevdev/libevdev-uinput.h>
|
H A D | test-uinput.c | 12 #include <libevdev/libevdev-uinput.h> 15 #define UINPUT_NODE "/dev/uinput" 66 /* uinput fd is managed, so make sure it did get closed */ in START_TEST() 445 Suite *s = suite_create("libevdev uinput device tests"); in TEST_SUITE_ROOT_PRIVILEGES()
|
H A D | test-libevdev-init.c | 15 #include <libevdev/libevdev-uinput.h> 74 ck_assert_msg(rc == 0, "Failed to create uinput device: %s", strerror(-rc)); in START_TEST() 346 ck_assert_msg(rc == 0, "Failed to create uinput device: %s", strerror(-rc)); in START_TEST() 374 ck_assert_msg(rc == 0, "Failed to create uinput device: %s", strerror(-rc)); in START_TEST()
|
/third_party/ltp/testcases/kernel/input/ |
H A D | input05.c | 20 * Create a virtual device (mouse), send events to /dev/uinput 26 #include <linux/uinput.h>
|
H A D | input03.c | 20 * Create a virtual device (mouse), send events to /dev/uinput 25 #include <linux/uinput.h>
|
H A D | input06.c | 25 #include <linux/uinput.h>
|
H A D | input_helper.c | 20 #include <linux/uinput.h> 90 const char *argv[] = {"modprobe", "uinput", NULL}; in try_load_uinput() 93 tst_resm(TINFO, "Trying to load uinput kernel module"); in try_load_uinput() 97 tst_resm(TINFO, "Failed to load the uinput module"); in try_load_uinput() 106 const char *argv[] = {"modprobe", "-r", "uinput", NULL}; in unload_uinput() 109 tst_resm(TINFO, "Unloading uinput kernel module"); in unload_uinput() 113 tst_resm(TWARN, "Failed to unload uinput module"); in unload_uinput() 117 "/dev/input/uinput", 118 "/dev/uinput", 130 tst_resm(TINFO, "Found uinput de in try_open_uinput() [all...] |
/third_party/ltp/libs/libltpuinput/ |
H A D | tst_uinput.c | 8 #include <linux/uinput.h> 20 "/dev/input/uinput", 21 "/dev/uinput", 33 tst_res(TINFO, "Found uinput dev at %s", uinput_paths[i]); in open_uinput()
|
/third_party/ltp/testcases/kernel/uevents/ |
H A D | uevent03.c | 18 #include <linux/uinput.h> 239 "uinput",
|
/third_party/libevdev/libevdev/ |
H A D | libevdev-uinput.c | 10 #include <linux/uinput.h> 19 #include "libevdev-uinput-int.h" 20 #include "libevdev-uinput.h" 78 /* uinput can't set EV_REP */ in set_evbits() 122 /* uinput has no resolution in the in set_evbits() 382 fd = open("/dev/uinput", O_RDWR|O_CLOEXEC); in libevdev_uinput_create_from_device()
|
/third_party/rust/crates/linux-raw-sys/gen/ioctl/ |
H A D | list.c | 155 #include <linux/uinput.h>
|