airtest.core.android.touch_methods.minitouch module

class Minitouch(adb, backend=False, size_info=None, input_event=None)[源代码]

基类:BaseTouch

install()[源代码]

Install minitouch

返回:

None

uninstall()[源代码]

Uninstall minitouch

返回:

None

setup_server()[源代码]

Setup minitouch server and adb forward

返回:

server process

setup_client()[源代码]

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
返回:

None

transform_xy(x, y)[源代码]

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

参数:
  • x – coordinate x

  • y – coordinate y

返回:

transformed coordinates (x, y)

teardown()[源代码]

Stop the server and client

返回:

None