generic_touchscreen

Predefined touchscreen tests. touchscreen is called “Touch screen controller (EMR Stylus)”, “Touch screen Controller (non stylus)”, or “Touch screen controller (USI Stylus)” in AVL.

Inherit

ProbeTouchscreen

pytest_name

probe.probe

args

component_list
[
  "touchscreen"
]
config_file
"/usr/local/factory/py/hwid/v3/default_probe_statement.json"
overridden_rules
[
  [
    "touchscreen",
    "==",
    1
  ]
]

Stylus

run_if

not constants.has_device_data or device.component.has_stylus

pytest_name

stylus

StylusGarage

run_if

not constants.has_device_data or device.component.has_stylus_garage

pytest_name

stylus_garage

Touchscreen

run_if

not constants.has_device_data or device.component.has_touchscreen

pytest_name

touchscreen

TouchscreenUniformity

Ask vendor how to calibrate touchscreen if they do not support this test

run_if

not constants.has_device_data or device.component.has_touchscreen

pytest_name

touch_uniformity

args

check_list
[
  [
    0,
    "i18n! References",
    23400,
    25100,
    0,
    0
  ],
  [
    1,
    "i18n! Deltas",
    -30,
    40,
    0,
    0
  ]
]

StylusAndGarage

Serial subtests

  • {
      "args": {
        "target_state": "ejected"
      },
      "inherit": "StylusGarage",
      "label": "Remove stylus"
    }
    
  • Stylus

  • {
      "args": {
        "target_state": "inserted"
      },
      "inherit": "StylusGarage",
      "label": "Insert stylus"
    }