MCPcopy Index your code
hub / github.com/TencentQQGYLab/AppAgent / __init__

Method __init__

scripts/and_controller.py:90–95  ·  view source on GitHub ↗
(self, device)

Source from the content-addressed store, hash-verified

88
89class AndroidController:
90 def __init__(self, device):
91 self.device = device
92 self.screenshot_dir = configs["ANDROID_SCREENSHOT_DIR"]
93 self.xml_dir = configs["ANDROID_XML_DIR"]
94 self.width, self.height = self.get_device_size()
95 self.backslash = "\\"
96
97 def get_device_size(self):
98 adb_command = f"adb -s {self.device} shell wm size"

Callers

nothing calls this directly

Calls 1

get_device_sizeMethod · 0.95

Tested by

no test coverage detected