Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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))
Ejemplo n.º 3
0
 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"
     )
Ejemplo n.º 4
0
 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"
     )