Lines Matching +full:test +full:- +full:docs

2 # SPDX-License-Identifier: GPL-2.0
3 # -*- coding: utf-8 -*-
19 logger = logging.getLogger("hidtools.test.tablet")
44 https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states
67 def from_evdev(cls, evdev, test_button) -> "PenState":
100 ) -> "PenState":
147 def valid_transitions(self) -> Tuple["PenState", ...]:
207 def historically_tolerated_transitions(self) -> Tuple["PenState", ...]:
209 for skipping the in-range state, due to historical reasons.
272 def legal_transitions() -> Dict[str, Tuple["PenState", ...]]:
274 we don't have Invert nor Erase bits, so just move in/out-of-range or proximity.
275 … https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states
278 "in-range": (PenState.PEN_IS_IN_RANGE,),
279 "in-range -> out-of-range": (
283 "in-range -> touch": (PenState.PEN_IS_IN_RANGE, PenState.PEN_IS_IN_CONTACT),
284 "in-range -> touch -> release": (
289 "in-range -> touch -> release -> out-of-range": (
298 def legal_transitions_with_invert() -> Dict[str, Tuple["PenState", ...]]:
302 … https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states
305 "hover-erasing": (PenState.PEN_IS_IN_RANGE_WITH_ERASING_INTENT,),
306 "hover-erasing -> out-of-range": (
310 "hover-erasing -> erase": (
314 "hover-erasing -> erase -> release": (
319 "hover-erasing -> erase -> release -> out-of-range": (
325 "hover-erasing -> in-range": (
329 "in-range -> hover-erasing": (
336 def legal_transitions_with_button() -> Dict[str, Tuple["PenState", ...]]:
341 "hover-button": (PenState.PEN_IS_IN_RANGE_WITH_BUTTON,),
342 "hover-button -> out-of-range": (
346 "in-range -> button-press": (
350 "in-range -> button-press -> button-release": (
355 "in-range -> touch -> button-press -> button-release": (
361 "in-range -> touch -> button-press -> release -> button-release": (
368 "in-range -> button-press -> touch -> release -> button-release": (
375 "in-range -> button-press -> touch -> button-release -> release": (
385 def tolerated_transitions() -> Dict[str, Tuple["PenState", ...]]:
390 "direct-in-contact": (PenState.PEN_IS_IN_CONTACT,),
391 "direct-in-contact -> out-of-range": (
398 def tolerated_transitions_with_invert() -> Dict[str, Tuple["PenState", ...]]:
402 … https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states
405 "direct-erase": (PenState.PEN_IS_ERASING,),
406 "direct-erase -> out-of-range": (
413 def broken_transitions() -> Dict[str, Tuple["PenState", ...]]:
420 "in-range -> touch -> erase -> hover-erase": (
426 "in-range -> erase -> hover-erase": (
431 "hover-erase -> erase -> touch -> in-range": (
437 "hover-erase -> touch -> in-range": (
442 "touch -> erase -> touch -> erase": (
686 """Internal method to test against a list of
709 p.y -= 1
718 p.y -= 1
732 we don't have Invert nor Erase bits, so just move in/out-of-range or proximity.
733 … https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states
830 … https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states
850 … https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states
880 # surface, in-range stays to 1, but when
881 # the pen moves in-range gets reverted to 0
1083 # the pen reliably sends in-range events in a normal case (non emulation of eraser mode)
1251 # going out-of-prox: the eraser mode is activated by presenting
1302 # return PenDigitizer('uhid test egalax-capacitive_0eef_7224',
1310 # return PenDigitizer('uhid test egalax-capacitive_0eef_72fa',
1318 # return PenDigitizer('uhid test egalax-capacitive_0eef_7336',
1326 # return PenDigitizer('uhid test egalax-capacitive_0eef_7337',
1334 # return PenDigitizer('uhid test egalax-capacitive_0eef_7349',
1342 # return PenDigitizer('uhid test egalax-capacitive_0eef_73f4',
1350 # return PenDigitizer('uhid test irtouch_6615_0070',
1358 "uhid test nexio_1870_0100",
1367 "uhid test nexio_1870_010d",
1376 "uhid test nexio_1870_0119",
1391 # return PenDigitizer('uhid test atmel_03eb_8409', rdesc='05 0d 09 04 a1 01 85 01 09 22 a1 …
1397 "uhid test atmel_03eb_840b",
1405 "uhid test n_trig_1b96_0c01",
1413 "uhid test n_trig_1b96_0c03",
1421 "uhid test n_trig_1b96_0f00",
1429 "uhid test n_trig_1b96_0f04",
1437 "uhid test n_trig_1b96_1000",
1445 "uhid test GXTP_27c6_0113",
1460 "uhid test Elan_04f3_2A49",
1469 "uhid test Elan_04f3_2A49",
1480 "uhid test XPPen Artist Pro 16 Gen2 28bd 095b",
1492 "uhid test XPPen Artist 24 28bd 093a",
1499 hid_bpfs = [HidBpf("Huion__Kamvas-Pro-19.bpf.o", True)]
1503 "uhid test HUION Huion Tablet_GT1902",