Lines Matching refs:li
88 struct libinput *li; in START_TEST() local
94 li = libinput_path_create_context(NULL, NULL); in START_TEST()
95 ck_assert(li == NULL); in START_TEST()
96 li = libinput_path_create_context(&counting_interface, &counter); in START_TEST()
97 ck_assert_notnull(li); in START_TEST()
98 libinput_unref(li); in START_TEST()
107 struct libinput *li; in START_TEST() local
115 li = libinput_path_create_context(&counting_interface, &counter); in START_TEST()
116 ck_assert_notnull(li); in START_TEST()
118 litest_disable_log_handler(li); in START_TEST()
120 device = libinput_path_add_device(li, path); in START_TEST()
126 litest_restore_log_handler(li); in START_TEST()
127 libinput_unref(li); in START_TEST()
134 struct libinput *li; in START_TEST() local
142 li = libinput_path_create_context(&counting_interface, &counter); in START_TEST()
143 ck_assert_notnull(li); in START_TEST()
145 litest_disable_log_handler(li); in START_TEST()
147 device = libinput_path_add_device(li, path); in START_TEST()
153 litest_restore_log_handler(li); in START_TEST()
154 libinput_unref(li); in START_TEST()
161 struct libinput *li; in START_TEST() local
175 li = libinput_path_create_context(&counting_interface, &counter); in START_TEST()
178 litest_disable_log_handler(li); in START_TEST()
180 ck_assert_notnull(li); in START_TEST()
181 device = libinput_path_add_device(li, path); in START_TEST()
187 litest_restore_log_handler(li); in START_TEST()
188 libinput_unref(li); in START_TEST()
195 struct libinput *li; in START_TEST() local
206 li = libinput_path_create_context(&counting_interface, &counter); in START_TEST()
208 litest_set_log_handler_bug(li); in START_TEST()
209 ck_assert_notnull(li); in START_TEST()
210 device = libinput_path_add_device(li, path); in START_TEST()
216 litest_restore_log_handler(li); in START_TEST()
217 libinput_unref(li); in START_TEST()
227 struct libinput *li; in START_TEST() local
242 li = libinput_path_create_context(&counting_interface, &counter); in START_TEST()
243 ck_assert_notnull(li); in START_TEST()
245 litest_disable_log_handler(li); in START_TEST()
247 ck_assert(libinput_get_user_data(li) == &counter); in START_TEST()
249 device = libinput_path_add_device(li, in START_TEST()
256 libinput_unref(li); in START_TEST()
264 struct libinput *li; in START_TEST() local
267 li = libinput_path_create_context(&simple_interface, NULL); in START_TEST()
268 ck_assert_notnull(li); in START_TEST()
269 libinput_ref(li); in START_TEST()
270 device = libinput_path_add_device(li, in START_TEST()
274 while (libinput_unref(li) != NULL) in START_TEST()
281 struct libinput *li; in START_TEST() local
284 li = libinput_path_create_context(&simple_interface, &data1); in START_TEST()
285 ck_assert_notnull(li); in START_TEST()
286 ck_assert(libinput_get_user_data(li) == &data1); in START_TEST()
287 libinput_set_user_data(li, &data2); in START_TEST()
288 ck_assert(libinput_get_user_data(li) == &data2); in START_TEST()
290 libinput_unref(li); in START_TEST()
297 struct libinput *li = dev->libinput; in START_TEST() local
304 libinput_dispatch(li); in START_TEST()
306 event = libinput_get_event(li); in START_TEST()
326 struct libinput *li = dev->libinput; in START_TEST() local
334 libinput_dispatch(li); in START_TEST()
336 event = libinput_get_event(li); in START_TEST()
349 litest_drain_events(li); in START_TEST()
355 libinput_dispatch(li); in START_TEST()
357 event = libinput_get_event(li); in START_TEST()
366 event = libinput_get_event(li); in START_TEST()
394 struct libinput *li = dev->libinput; in START_TEST() local
399 libinput_dispatch(li); in START_TEST()
401 event = libinput_get_event(li); in START_TEST()
415 struct libinput *li = dev->libinput; in START_TEST() local
421 libinput_dispatch(li); in START_TEST()
423 event = libinput_get_event(li); in START_TEST()
432 litest_assert_empty_queue(li); in START_TEST()
434 device = libinput_path_add_device(li, in START_TEST()
438 libinput_dispatch(li); in START_TEST()
440 event = libinput_get_event(li); in START_TEST()
458 struct libinput *li; in START_TEST() local
461 li = litest_create_context(); in START_TEST()
463 litest_disable_log_handler(li); in START_TEST()
464 device = libinput_path_add_device(li, "/tmp/"); in START_TEST()
465 litest_restore_log_handler(li); in START_TEST()
468 libinput_dispatch(li); in START_TEST()
470 litest_assert_empty_queue(li); in START_TEST()
472 litest_destroy_context(li); in START_TEST()
506 struct libinput *li = dev->libinput; in START_TEST() local
511 device = libinput_path_add_device(li, in START_TEST()
514 litest_drain_events(li); in START_TEST()
517 libinput_dispatch(li); in START_TEST()
519 while ((event = libinput_get_event(li))) { in START_TEST()
536 struct libinput *li = dev->libinput; in START_TEST() local
541 device = libinput_path_add_device(li, in START_TEST()
544 litest_drain_events(li); in START_TEST()
548 libinput_dispatch(li); in START_TEST()
550 while ((event = libinput_get_event(li))) { in START_TEST()
566 struct libinput *li; in START_TEST() local
579 li = libinput_path_create_context(&simple_interface, userdata); in START_TEST()
580 ck_assert_notnull(li); in START_TEST()
582 device = libinput_path_add_device(li, in START_TEST()
586 libinput_suspend(li); in START_TEST()
587 libinput_resume(li); in START_TEST()
590 libinput_unref(li); in START_TEST()
596 struct libinput *li; in START_TEST() local
609 li = libinput_path_create_context(&simple_interface, userdata); in START_TEST()
610 ck_assert_notnull(li); in START_TEST()
612 device = libinput_path_add_device(li, in START_TEST()
616 libinput_suspend(li); in START_TEST()
617 libinput_suspend(li); in START_TEST()
618 libinput_resume(li); in START_TEST()
621 libinput_unref(li); in START_TEST()
627 struct libinput *li; in START_TEST() local
640 li = libinput_path_create_context(&simple_interface, userdata); in START_TEST()
641 ck_assert_notnull(li); in START_TEST()
643 device = libinput_path_add_device(li, in START_TEST()
647 libinput_suspend(li); in START_TEST()
648 libinput_resume(li); in START_TEST()
649 libinput_resume(li); in START_TEST()
652 libinput_unref(li); in START_TEST()
658 struct libinput *li; in START_TEST() local
679 li = libinput_path_create_context(&simple_interface, userdata); in START_TEST()
680 ck_assert_notnull(li); in START_TEST()
682 device = libinput_path_add_device(li, in START_TEST()
685 libinput_path_add_device(li, libevdev_uinput_get_devnode(uinput2)); in START_TEST()
687 libinput_dispatch(li); in START_TEST()
690 while ((event = libinput_get_event(li))) { in START_TEST()
700 libinput_suspend(li); in START_TEST()
701 libinput_dispatch(li); in START_TEST()
704 while ((event = libinput_get_event(li))) { in START_TEST()
714 libinput_resume(li); in START_TEST()
715 libinput_dispatch(li); in START_TEST()
718 while ((event = libinput_get_event(li))) { in START_TEST()
730 libinput_unref(li); in START_TEST()
736 struct libinput *li; in START_TEST() local
757 li = libinput_path_create_context(&simple_interface, userdata); in START_TEST()
758 ck_assert_notnull(li); in START_TEST()
760 device = libinput_path_add_device(li, in START_TEST()
763 device = libinput_path_add_device(li, in START_TEST()
767 libinput_dispatch(li); in START_TEST()
770 while ((event = libinput_get_event(li))) { in START_TEST()
780 libinput_suspend(li); in START_TEST()
781 libinput_dispatch(li); in START_TEST()
784 while ((event = libinput_get_event(li))) { in START_TEST()
796 rc = libinput_resume(li); in START_TEST()
799 libinput_dispatch(li); in START_TEST()
802 while ((event = libinput_get_event(li))) { in START_TEST()
817 libinput_unref(li); in START_TEST()
823 struct libinput *li; in START_TEST() local
844 li = libinput_path_create_context(&simple_interface, userdata); in START_TEST()
845 ck_assert_notnull(li); in START_TEST()
847 device = libinput_path_add_device(li, in START_TEST()
850 device = libinput_path_add_device(li, in START_TEST()
854 libinput_dispatch(li); in START_TEST()
857 while ((event = libinput_get_event(li))) { in START_TEST()
867 libinput_suspend(li); in START_TEST()
868 libinput_dispatch(li); in START_TEST()
871 while ((event = libinput_get_event(li))) { in START_TEST()
886 rc = libinput_resume(li); in START_TEST()
889 libinput_dispatch(li); in START_TEST()
892 while ((event = libinput_get_event(li))) { in START_TEST()
903 libinput_unref(li); in START_TEST()
909 struct libinput *li; in START_TEST() local
929 li = libinput_path_create_context(&simple_interface, userdata); in START_TEST()
930 ck_assert_notnull(li); in START_TEST()
932 device = libinput_path_add_device(li, in START_TEST()
936 libinput_dispatch(li); in START_TEST()
938 ev = libinput_get_event(li); in START_TEST()
950 litest_assert_empty_queue(li); in START_TEST()
952 libinput_suspend(li); in START_TEST()
954 litest_drain_events(li); in START_TEST()
956 libinput_resume(li); in START_TEST()
958 libinput_dispatch(li); in START_TEST()
959 ev = libinput_get_event(li); in START_TEST()
976 libinput_unref(li); in START_TEST()
985 struct libinput *li = dev->libinput; in START_TEST() local
988 litest_set_log_handler_bug(li); in START_TEST()
989 rc = libinput_udev_assign_seat(li, "foo"); in START_TEST()
991 litest_restore_log_handler(li); in START_TEST()
998 struct libinput *li; in START_TEST() local
1006 li = litest_create_context(); in START_TEST()
1007 device = libinput_path_add_device(li, path); in START_TEST()
1010 litest_destroy_context(li); in START_TEST()