(self, input_str)
| 140 | return ret |
| 141 | |
| 142 | def text(self, input_str): |
| 143 | input_str = input_str.replace(" ", "%s") |
| 144 | input_str = input_str.replace("'", "") |
| 145 | adb_command = f"adb -s {self.device} shell input text {input_str}" |
| 146 | ret = execute_adb(adb_command) |
| 147 | return ret |
| 148 | |
| 149 | def long_press(self, x, y, duration=1000): |
| 150 | adb_command = f"adb -s {self.device} shell input swipe {x} {y} {x} {y} {duration}" |
no test coverage detected