def loop_snap_dump(self): dn.dnld( self._target, 'screencap /sdcard/Pictures/%s/%s.dump' % (self._target, 'screen_snap')) while True: file_mod_time = self.get_FileModifyTime(self._second_dump_path) file_size_m = self.get_FileSize(self._second_dump_path) if file_mod_time and file_mod_time != self._dump_time_cache and file_size_m != 0: self._dump_time_cache = file_mod_time break
def move_to(self, x, y): dn.dnld( self._target, "sendevent dev/input/event2 3 53 %s\nsendevent dev/input/event2 3 54 %s\nsendevent dev/input/event2 0 0 0\n" % (x, y))
def touch_up(self): dn.dnld( self._target, "sendevent dev/input/event2 3 57 -1\nsendevent dev/input/event2 1 330 0\nsendevent dev/input/event2 1 325 0\nsendevent dev/input/event2 0 0 0\n" )
def touch_down(self): dn.dnld( self._target, "sendevent dev/input/event2 3 57 0\nsendevent dev/input/event2 1 330 1\nsendevent dev/input/event2 1 325 1\n" )