/Linux-v6.6/tools/testing/selftests/hid/tests/ |
D | test_sony.py | 40 uhdev = self.uhdev 41 evdev = uhdev.get_evdev("Accelerometer") 44 r = uhdev.event(accel=(x, None, None)) 45 events = uhdev.next_sync_events("Accelerometer") 46 self.debug_reports(r, uhdev, events) 55 r = uhdev.event(accel=(None, y, None)) 56 events = uhdev.next_sync_events("Accelerometer") 57 self.debug_reports(r, uhdev, events) 64 r = uhdev.event(accel=(None, None, z)) 65 events = uhdev.next_sync_events("Accelerometer") [all …]
|
D | test_mouse.py | 543 uhdev = self.uhdev 544 evdev = uhdev.get_evdev() 547 r = uhdev.event(0, 0, (None, True, None)) 549 events = uhdev.next_sync_events() 550 self.debug_reports(r, uhdev, events) 554 r = uhdev.event(0, 0, (None, False, None)) 556 events = uhdev.next_sync_events() 557 self.debug_reports(r, uhdev, events) 561 r = uhdev.event(0, 0, (None, None, True)) 563 events = uhdev.next_sync_events() [all …]
|
D | test_apple_keyboard.py | 166 uhdev = self.uhdev 167 evdev = uhdev.get_evdev() 170 r = uhdev.event(["F4"]) 173 events = uhdev.next_sync_events() 174 self.debug_reports(r, uhdev, events) 179 r = uhdev.event([]) 182 events = uhdev.next_sync_events() 183 self.debug_reports(r, uhdev, events) 189 uhdev = self.uhdev 190 evdev = uhdev.get_evdev() [all …]
|
D | test_gamepad.py | 25 uhdev = self.uhdev 27 r = uhdev.event() 28 events = uhdev.next_sync_events() 29 self.debug_reports(r, uhdev, events) 32 uhdev = self.uhdev 33 evdev = uhdev.get_evdev() 37 key = libevdev.evbit(uhdev.buttons_map[button]) 40 r = uhdev.event(buttons=buttons) 42 events = uhdev.next_sync_events() 43 self.debug_reports(r, uhdev, events) [all …]
|
D | test_multitouch.py | 519 def get_slot(self, uhdev, t, default): argument 520 if uhdev.quirks is None: 523 if "SLOT_IS_CONTACTID" in uhdev.quirks: 526 if "SLOT_IS_CONTACTID_MINUS_ONE" in uhdev.quirks: 539 uhdev = self.uhdev 540 evdev = uhdev.get_evdev() 543 if uhdev.quirks is not None: 544 for q in uhdev.quirks: 547 assert evdev.num_slots == uhdev.max_contacts 549 if uhdev.max_contacts > 1: [all …]
|
D | test_keyboard.py | 265 uhdev = self.uhdev 266 evdev = uhdev.get_evdev() 269 r = uhdev.event(["a and A"]) 272 events = uhdev.next_sync_events() 273 self.debug_reports(r, uhdev, events) 277 r = uhdev.event([]) 280 events = uhdev.next_sync_events() 281 self.debug_reports(r, uhdev, events) 286 uhdev = self.uhdev 287 evdev = uhdev.get_evdev() [all …]
|
D | test_wacom_generic.py | 490 uhdev = self.uhdev 494 actual_events = uhdev.next_sync_events() 495 self.debug_reports(report, uhdev, actual_events) 501 def get_usages(self, uhdev): argument 511 desc = uhdev.parsed_rdesc 521 def assertName(self, uhdev, type): argument 529 evdev = uhdev.get_evdev() 530 expected_name = uhdev.name + type 583 for field, usage, application in self.get_usages(self.uhdev): 614 def assertName(self, uhdev): argument [all …]
|
D | base.py | 172 def debug_reports(cls, reports, uhdev=None, events=None): argument 175 if uhdev is not None: 177 uhdev.parsed_rdesc.format_report(r, split_lines=True) 232 def assertName(self, uhdev): argument 233 evdev = uhdev.get_evdev() 234 assert uhdev.name in evdev.name 240 with new_uhdev as self.uhdev: 245 if test(self.uhdev): 248 self.uhdev.create_kernel_device() 250 while not self.uhdev.is_ready() and time.time() - now < 5: [all …]
|
D | test_tablet.py | 432 def post(self, uhdev, pen): argument 433 r = uhdev.event(pen) 434 events = uhdev.next_sync_events() 435 self.debug_reports(r, uhdev, events) 463 uhdev = self.uhdev 464 evdev = uhdev.get_evdev() 470 events = self.post(uhdev, p) 479 events = self.post(uhdev, p) 486 events = self.post(uhdev, p) 514 lambda uhdev: "Invert" not in uhdev.fields, [all …]
|
D | test_ite_keyboard.py | 147 uhdev = self.uhdev 154 uhdev.call_input_event(r) 157 events = uhdev.next_sync_events() 158 self.debug_reports([r], uhdev, events) 165 self.debug_reports([], uhdev, events)
|