Home
last modified time | relevance | path

Searched refs:uidev (Results 1 – 12 of 12) sorted by relevance

/third_party/libevdev/test/
Dtest-libevdev-has-event.c28 struct uinput_device* uidev; in START_TEST() local
34 test_create_abs_device(&uidev, &dev, in START_TEST()
38 test_create_device(&uidev, &dev, in START_TEST()
53 uinput_device_free(uidev); in START_TEST()
65 struct uinput_device* uidev; in START_TEST() local
70 test_create_abs_device(&uidev, &dev, in START_TEST()
74 test_create_device(&uidev, &dev, in START_TEST()
83 uinput_device_free(uidev); in START_TEST()
95 struct uinput_device* uidev; in START_TEST() local
116 test_create_abs_device(&uidev, &dev, in START_TEST()
[all …]
Dtest-libevdev-events.c18 struct uinput_device* uidev; in START_TEST() local
23 test_create_device(&uidev, &dev, in START_TEST()
32 uinput_device_event(uidev, EV_KEY, BTN_LEFT, 1); in START_TEST()
33 uinput_device_event(uidev, EV_SYN, SYN_REPORT, 0); in START_TEST()
39 uinput_device_free(uidev); in START_TEST()
46 struct uinput_device* uidev; in START_TEST() local
58 test_create_device(&uidev, &dev, in START_TEST()
77 uinput_device_free(uidev); in START_TEST()
83 struct uinput_device* uidev; in START_TEST() local
89 test_create_device(&uidev, &dev, in START_TEST()
[all …]
Dtest-uinput.c20 struct libevdev_uinput *uidev; in START_TEST() local
35 rc = libevdev_uinput_create_from_device(dev, LIBEVDEV_UINPUT_OPEN_MANAGED, &uidev); in START_TEST()
37 ck_assert(uidev != NULL); in START_TEST()
39 uinput_fd = libevdev_uinput_get_fd(uidev); in START_TEST()
42 devnode = libevdev_uinput_get_devnode(uidev); in START_TEST()
63 libevdev_uinput_destroy(uidev); in START_TEST()
76 struct libevdev_uinput *uidev = NULL; in START_TEST() local
88 rc = libevdev_uinput_create_from_device(dev, -1, &uidev); in START_TEST()
90 ck_assert(uidev == NULL); in START_TEST()
100 struct libevdev_uinput *uidev; in START_TEST() local
[all …]
Dtest-libevdev-init.c52 struct uinput_device* uidev; in START_TEST() local
64 rc = uinput_device_new_with_events(&uidev, in START_TEST()
75 ck_assert_int_eq(libevdev_set_fd(dev, uinput_device_get_fd(uidev)), 0); in START_TEST()
81 ck_assert_int_eq(libevdev_get_fd(dev), uinput_device_get_fd(uidev)); in START_TEST()
86 uinput_device_free(uidev); in START_TEST()
332 struct uinput_device* uidev; in START_TEST() local
336 rc = uinput_device_new_with_events(&uidev, in START_TEST()
350 rc = libevdev_set_fd(dev, uinput_device_get_fd(uidev)); in START_TEST()
353 uinput_device_free(uidev); in START_TEST()
360 struct uinput_device* uidev; in START_TEST() local
[all …]
Dtest-kernel.c23 struct uinput_device* uidev; in START_TEST() local
29 test_create_device(&uidev, &dev, in START_TEST()
39 fd = open(uinput_device_get_devnode(uidev), O_RDONLY|O_NONBLOCK); in START_TEST()
44 uinput_device_event(uidev, EV_REL, REL_X, 1); in START_TEST()
45 uinput_device_event(uidev, EV_SYN, SYN_REPORT, 0); in START_TEST()
69 uinput_device_event(uidev, EV_REL, REL_X, 1); in START_TEST()
70 uinput_device_event(uidev, EV_SYN, SYN_REPORT, 0); in START_TEST()
79 uinput_device_free(uidev); in START_TEST()
88 struct uinput_device* uidev; in START_TEST() local
93 test_create_device(&uidev, &dev, in START_TEST()
[all …]
Dtest-common.c37 struct uinput_device *uidev; in test_create_device() local
43 rc = uinput_device_new_with_events_v(&uidev, TEST_DEVICE_NAME, DEFAULT_IDS, args); in test_create_device()
48 fd = uinput_device_get_fd(uidev); in test_create_device()
55 *uidev_return = uidev; in test_create_device()
66 struct uinput_device *uidev; in test_create_abs_device() local
70 uidev = uinput_device_new(TEST_DEVICE_NAME); in test_create_abs_device()
71 ck_assert(uidev != NULL); in test_create_abs_device()
74 rc = uinput_device_set_event_bits_v(uidev, args); in test_create_abs_device()
86 rc = uinput_device_set_abs_bit(uidev, code, &a); in test_create_abs_device()
90 rc = uinput_device_create(uidev); in test_create_abs_device()
[all …]
Dtest-common-uinput.c29 struct libevdev_uinput *uidev; member
105 libevdev_uinput_destroy(dev->uidev); in uinput_device_free()
118 return libevdev_uinput_get_devnode(dev->uidev); in uinput_device_get_devnode()
134 rc = libevdev_uinput_create_from_device(d->d, fd, &d->uidev); in uinput_device_create()
138 devnode = libevdev_uinput_get_devnode(d->uidev); in uinput_device_create()
252 return libevdev_uinput_write_event(dev->uidev, type, code, value); in uinput_device_event()
Dtest-common.h55 void test_create_device(struct uinput_device **uidev,
58 void test_create_abs_device(struct uinput_device **uidev,
/third_party/libevdev/libevdev/
Dlibevdev-uinput.c60 set_evbits(const struct libevdev *dev, int fd, struct uinput_user_dev *uidev) in set_evbits() argument
110 if (uidev == NULL) { in set_evbits()
118 uidev->absmin[code] = abs->minimum; in set_evbits()
119 uidev->absmax[code] = abs->maximum; in set_evbits()
120 uidev->absfuzz[code] = abs->fuzz; in set_evbits()
121 uidev->absflat[code] = abs->flat; in set_evbits()
313 struct uinput_user_dev uidev; in uinput_create_write() local
315 memset(&uidev, 0, sizeof(uidev)); in uinput_create_write()
317 strncpy(uidev.name, libevdev_get_name(dev), UINPUT_MAX_NAME_SIZE - 1); in uinput_create_write()
318 uidev.id.vendor = libevdev_get_id_vendor(dev); in uinput_create_write()
[all …]
/third_party/ltp/libs/libltpuinput/
Dtst_uinput.c133 struct uinput_user_dev uidev = { in create_input_device() local
143 SAFE_WRITE(SAFE_WRITE_ALL, fd, &uidev, sizeof(uidev)); in create_input_device()
/third_party/ltp/testcases/kernel/input/
Dinput_helper.c191 struct uinput_user_dev uidev = { in create_device() local
201 SAFE_WRITE(NULL, SAFE_WRITE_ALL, fd, &uidev, sizeof(uidev)); in create_device()
/third_party/libevdev/
Dthird_party_libevdev.diff18492 <div class="line"><span class="keyword">struct </span>libevdev_uinput *uidev;</div>
18503 ….html#ga4c3c2f5fcd315a28a067f53b9f855fe7">libevdev_uinput_write_event</a>(uidev, EV_REL, REL_X, -1…
18506 ….html#ga4c3c2f5fcd315a28a067f53b9f855fe7">libevdev_uinput_write_event</a>(uidev, EV_SYN, SYN_REPOR…
18507 ….html#ga4c3c2f5fcd315a28a067f53b9f855fe7">libevdev_uinput_write_event</a>(uidev, EV_SYN, SYN_REPOR…
18526 …f="group__uinput.html#ga9dfa58a84eb4c6b97107dcf3fa621329">libevdev_uinput_destroy</a>(uidev);</div>
18905 …comment"> libevdev_uinput_create_from_device(dev, fd, &amp;uidev); // may hide the …
18937 …comment"> libevdev_uinput_create_from_device(dev, fd, &amp;uidev); // may hide the …
23215 * struct libevdev_uinput *uidev;
23226 * err = libevdev_uinput_write_event(uidev, EV_REL, REL_X, -1);
23229 - * libevdev_uinput_write_event(uidev, EV_SYN, SYN_REPORT, 0);
[all …]