airtest.core.android.minitouch module

class Minitouch(adb, backend=False, ori_function=None, input_event=None)[source]

Bases: airtest.core.android.base_touch.BaseTouch

install()[source]

Install minitouch

Returns:None
uninstall()[source]

Uninstall minitouch

Returns:None
setup_server()[source]

Setup minitouch server and adb forward

Returns:server process
setup_client()[source]

Setup client in following steps:

1. connect to server
2. receive the header
    v <version>
    ^ <max-contacts> <max-x> <max-y> <max-pressure>
    $ <pid>
3. prepare to send
Returns:None
transform_xy(x, y)[source]

Transform coordinates (x, y) according to the device display

Parameters:
  • x – coordinate x
  • y – coordinate y
Returns:

transformed coordinates (x, y)