MCPcopy
hub / github.com/TencentQQGYLab/AppAgent / get_device_size

Method get_device_size

scripts/and_controller.py:97–102  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

95 self.backslash = "\\"
96
97 def get_device_size(self):
98 adb_command = f"adb -s {self.device} shell wm size"
99 result = execute_adb(adb_command)
100 if result != "ERROR":
101 return map(int, result.split(": ")[1].split("x"))
102 return 0, 0
103
104 def get_screenshot(self, prefix, save_dir):
105 cap_command = f"adb -s {self.device} shell screencap -p " \

Callers 4

__init__Method · 0.95
task_executor.pyFile · 0.80
step_recorder.pyFile · 0.80
self_explorer.pyFile · 0.80

Calls 1

execute_adbFunction · 0.85

Tested by

no test coverage detected