Lines Matching defs:device

183 	struct libinput_device *device;
199 /* Now create our own device, it should be in the "default"
205 device = libinput_event_get_device(event);
206 seat = libinput_device_get_seat(device);
225 struct libinput_device *device;
243 /* Now create our own device, it should be in the "default"
249 device = libinput_event_get_device(event);
250 libinput_device_ref(device);
252 seat1 = libinput_device_get_seat(device);
260 /* Changing the logical seat name will remove and re-add the device */
261 rc = libinput_device_set_seat_logical_name(device,
271 ck_assert(libinput_event_get_device(event) == device);
277 ck_assert(libinput_event_get_device(event) != device);
278 libinput_device_unref(device);
280 device = libinput_event_get_device(event);
281 seat2 = libinput_device_get_seat(device);
399 /* Check that at least one device was discovered after creation. */
410 /* Check that after a resume, at least one device is discovered. */
466 struct libinput_device *device;
486 device = libinput_event_get_device(ev);
487 sysname = libinput_device_get_sysname(device);
505 struct libinput_device *device;
526 device = libinput_event_get_device(ev);
527 ck_assert_notnull(device);
528 saved_seat = libinput_device_get_seat(device);
551 device = libinput_event_get_device(ev);
552 ck_assert_notnull(device);
554 seat = libinput_device_get_seat(device);
579 struct libinput_device *device;
589 device = libinput_path_add_device(li, "/dev/input/event0");
590 ck_assert(device == NULL);
602 struct libinput_device *device;
615 device = libinput_event_get_device(event);
616 ck_assert_notnull(device);
620 libinput_path_remove_device(device);
633 struct libinput_device *device;
658 device = libinput_event_get_device(event);
659 name = libinput_device_get_name(device);