Lines Matching refs:abs
33 struct input_absinfo abs = { ABS_X, 0, 2, 0, 0, 0}; in START_TEST() local
35 1, &abs, in START_TEST()
69 struct input_absinfo abs = { ABS_X, 0, 2, 0, 0, 0}; in START_TEST() local
71 1, &abs, in START_TEST()
115 struct input_absinfo abs = { code, 0, 2, 0, 0, 0}; in START_TEST() local
117 1, &abs, in START_TEST()
157 struct input_absinfo abs = { ABS_X, 0, 2, 0, 0, 0}; in START_TEST() local
159 1, &abs, in START_TEST()
243 struct input_absinfo abs = { .value = 0, .minimum = 0, .maximum = 2}; in START_TEST() local
246 rc = uinput_device_set_abs_bit(uidev, ABS_X, &abs); in START_TEST()
276 struct input_absinfo abs = { .value = 0, .minimum = 0, .maximum = 2}; in START_TEST() local
286 rc = uinput_device_set_abs_bit(uidev, ABS_X, &abs); in START_TEST()
319 struct input_absinfo abs[] = { in START_TEST() local
331 rc = uinput_device_set_abs_bit(uidev, abs[i].value, &abs[i]); in START_TEST()
374 struct input_absinfo abs[] = { in START_TEST() local
381 test_create_abs_device(&uidev, &dev, 4, abs, in START_TEST()
397 struct input_absinfo abs[] = { in START_TEST() local
405 test_create_abs_device(&uidev, &dev, 5, abs, in START_TEST()
422 struct input_absinfo abs[] = { in START_TEST() local
431 test_create_abs_device(&uidev, &dev, 6, abs, in START_TEST()
578 struct input_absinfo abs; in START_TEST() local
585 abs.minimum = 0; in START_TEST()
586 abs.maximum = 1000; in START_TEST()
587 abs.fuzz = 1; in START_TEST()
588 abs.flat = 2; in START_TEST()
589 abs.resolution = 3; in START_TEST()
590 abs.value = 0; in START_TEST()
592 uinput_device_set_abs_bit(uidev, ABS_X, &abs); in START_TEST()
593 uinput_device_set_abs_bit(uidev, ABS_MT_POSITION_X, &abs); in START_TEST()
595 abs.minimum = -500; in START_TEST()
596 abs.maximum = 500; in START_TEST()
597 abs.fuzz = 10; in START_TEST()
598 abs.flat = 20; in START_TEST()
599 abs.resolution = 30; in START_TEST()
600 abs.value = 0; in START_TEST()
602 uinput_device_set_abs_bit(uidev, ABS_Y, &abs); in START_TEST()
603 uinput_device_set_abs_bit(uidev, ABS_MT_POSITION_Y, &abs); in START_TEST()
679 struct input_absinfo abs[2]; in START_TEST() local
682 memset(abs, 0, sizeof(abs)); in START_TEST()
683 abs[0].value = ABS_X; in START_TEST()
684 abs[0].maximum = 1000; in START_TEST()
686 abs[1].value = ABS_Y; in START_TEST()
687 abs[1].maximum = 1000; in START_TEST()
690 2, abs, in START_TEST()
741 struct input_absinfo abs = { .value = ABS_X, .minimum = 0, .maximum = 2 }; in START_TEST() local
744 test_create_abs_device(&uidev, &dev, 1, &abs, in START_TEST()
751 abs.minimum = 0; in START_TEST()
752 abs.maximum = 100; in START_TEST()
753 abs.fuzz = 1; in START_TEST()
754 abs.flat = 2; in START_TEST()
755 abs.resolution = 3; in START_TEST()
757 ck_assert_int_eq(libevdev_enable_event_code(dev, EV_ABS, ABS_Y, &abs), 0); in START_TEST()
785 struct input_absinfo abs = { .value = ABS_X, .minimum = 0, .maximum = 1 }; in START_TEST() local
787 test_create_abs_device(&uidev, &dev, 1, &abs, in START_TEST()
790 ck_assert_int_eq(libevdev_enable_event_code(dev, EV_ABS, ABS_MAX + 1, &abs), -1); in START_TEST()
791 ck_assert_int_eq(libevdev_enable_event_code(dev, EV_MAX + 1, ABS_MAX + 1, &abs), -1); in START_TEST()
799 ck_assert_int_eq(libevdev_enable_event_code(dev, EV_REL, REL_X, &abs), -1); in START_TEST()
811 struct input_absinfo abs[2] = { in START_TEST() local
817 2, abs, in START_TEST()
860 struct input_absinfo abs = { .value = ABS_X, .minimum = 0, .maximum = 1 }; in START_TEST() local
862 test_create_abs_device(&uidev, &dev, 1, &abs, -1); in START_TEST()
882 struct input_absinfo abs; in START_TEST() local
888 abs.minimum = 0; in START_TEST()
889 abs.maximum = 1000; in START_TEST()
890 abs.fuzz = 1; in START_TEST()
891 abs.flat = 2; in START_TEST()
892 abs.resolution = 3; in START_TEST()
893 abs.value = 0; in START_TEST()
895 uinput_device_set_abs_bit(uidev, ABS_X, &abs); in START_TEST()
909 abs.minimum = 500; in START_TEST()
910 abs.maximum = 5000; in START_TEST()
911 abs.fuzz = 10; in START_TEST()
912 abs.flat = 20; in START_TEST()
913 abs.resolution = 30; in START_TEST()
914 rc = libevdev_kernel_set_abs_info(dev, ABS_X, &abs); in START_TEST()
942 struct input_absinfo abs; in START_TEST() local
948 abs.minimum = 0; in START_TEST()
949 abs.maximum = 1000; in START_TEST()
950 abs.fuzz = 1; in START_TEST()
951 abs.flat = 2; in START_TEST()
952 abs.resolution = 3; /* FIXME: value is unused, we can't test resolution */ in START_TEST()
953 abs.value = 0; in START_TEST()
955 uinput_device_set_abs_bit(uidev, ABS_X, &abs); in START_TEST()
963 rc = libevdev_kernel_set_abs_info(dev, ABS_MAX + 1, &abs); in START_TEST()
975 struct input_absinfo abs[2]; in START_TEST() local
981 memset(abs, 0, sizeof(abs)); in START_TEST()
982 abs[0].value = ABS_X; in START_TEST()
983 abs[0].maximum = 1000; in START_TEST()
985 abs[1].value = ABS_Y; in START_TEST()
986 abs[1].maximum = 1000; in START_TEST()
994 2, abs, in START_TEST()