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

Method swipe_precise

scripts/and_controller.py:175–180  ·  view source on GitHub ↗
(self, start, end, duration=400)

Source from the content-addressed store, hash-verified

173 return ret
174
175 def swipe_precise(self, start, end, duration=400):
176 start_x, start_y = start
177 end_x, end_y = end
178 adb_command = f"adb -s {self.device} shell input swipe {start_x} {start_x} {end_x} {end_y} {duration}"
179 ret = execute_adb(adb_command)
180 return ret

Callers 1

task_executor.pyFile · 0.80

Calls 1

execute_adbFunction · 0.85

Tested by

no test coverage detected