Lines Matching refs:slots

153     def event(self, slots, global_data=None, contact_count=None, incr_scantime=True):  argument
158 slots = slots[: self.max_contacts]
163 global_data.contactcount = len(slots)
168 while len(slots):
170 application=self.cur_application, data=slots, global_data=global_data
261 slots=None, argument
282 if slots is None:
283 slots = [Data()]
285 return super().event(slots, global_data, contact_count, incr_scantime)
550 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
551 assert evdev.slots[1][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
553 assert evdev.slots[2][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
598 assert evdev.slots[slot][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0
599 assert evdev.slots[slot][libevdev.EV_ABS.ABS_MT_POSITION_X] == 50
600 assert evdev.slots[slot][libevdev.EV_ABS.ABS_MT_POSITION_Y] == 100
609 assert evdev.slots[slot][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
638 assert evdev.slots[slot0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0
639 assert evdev.slots[slot0][libevdev.EV_ABS.ABS_MT_POSITION_X] == 50
640 assert evdev.slots[slot0][libevdev.EV_ABS.ABS_MT_POSITION_Y] == 100
641 assert evdev.slots[slot1][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
654 assert evdev.slots[slot0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0
655 assert evdev.slots[slot0][libevdev.EV_ABS.ABS_MT_POSITION_X] == 50
656 assert evdev.slots[slot0][libevdev.EV_ABS.ABS_MT_POSITION_Y] == 100
657 assert evdev.slots[slot1][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 1
658 assert evdev.slots[slot1][libevdev.EV_ABS.ABS_MT_POSITION_X] == 150
659 assert evdev.slots[slot1][libevdev.EV_ABS.ABS_MT_POSITION_Y] == 200
667 assert evdev.slots[slot0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
668 assert evdev.slots[slot1][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 1
683 assert evdev.slots[slot0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
684 assert evdev.slots[slot1][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
709 assert evdev.slots[slot0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0
710 assert evdev.slots[slot0][libevdev.EV_ABS.ABS_MT_POSITION_X] == 50
711 assert evdev.slots[slot0][libevdev.EV_ABS.ABS_MT_POSITION_Y] == 100
712 assert evdev.slots[slot1][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 1
713 assert evdev.slots[slot1][libevdev.EV_ABS.ABS_MT_POSITION_X] == 150
714 assert evdev.slots[slot1][libevdev.EV_ABS.ABS_MT_POSITION_Y] == 200
715 assert evdev.slots[slot2][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 2
716 assert evdev.slots[slot2][libevdev.EV_ABS.ABS_MT_POSITION_X] == 250
717 assert evdev.slots[slot2][libevdev.EV_ABS.ABS_MT_POSITION_Y] == 300
730 assert evdev.slots[slot0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
731 assert evdev.slots[slot1][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
732 assert evdev.slots[slot2][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
760 assert evdev.slots[slot][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == i
761 assert evdev.slots[slot][libevdev.EV_ABS.ABS_MT_POSITION_X] == t.x
762 assert evdev.slots[slot][libevdev.EV_ABS.ABS_MT_POSITION_Y] == t.y
775 assert evdev.slots[slot][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
805 assert evdev.slots[slot0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0
806 assert evdev.slots[slot0][libevdev.EV_ABS.ABS_MT_POSITION_X] == 50
807 assert evdev.slots[slot0][libevdev.EV_ABS.ABS_MT_POSITION_Y] == 100
808 assert evdev.slots[slot1][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
843 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0
844 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_X] == 5
845 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TOOL_X] == 50
846 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_Y] == 10
847 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TOOL_Y] == 100
875 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_DISTANCE] > 0
876 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0
877 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_X] == 150
878 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_Y] == 200
879 assert evdev.slots[1][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
886 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_DISTANCE] == 0
893 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_DISTANCE] > 0
900 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
922 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0
923 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_X] == 5
924 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_POSITION_Y] == 10
925 assert evdev.slots[1][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 1
926 assert evdev.slots[1][libevdev.EV_ABS.ABS_MT_POSITION_X] == 50
927 assert evdev.slots[1][libevdev.EV_ABS.ABS_MT_POSITION_Y] == 100
943 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 0
949 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
954 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == 1
1052 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] != -1
1060 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
1164 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
1752 assert evdev.slots[0][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1