Lines Matching refs:adb
58 def __init__(self, ndk_path, device_arch, adb): argument
59 self.adb = adb
126 self.adb.check_run(['shell', 'mkdir', '-p', self.dir_on_device])
129 result, output = self.adb.run_and_return_output(['shell', 'ls', self.dir_on_device])
135 self.adb.run(['pull', self.dir_on_device + self.build_id_list_file])
152 self.adb.check_run(['push', entry.path, self.dir_on_device + entry.name])
157 self.adb.run(['shell', 'rm', self.dir_on_device + name])
163 self.adb.check_run(['push', self.build_id_list_file,
172 result, output = self.adb.run_and_return_output(
183 self.adb.check_run(['push', entry.path, target])
190 self.adb = AdbHelper(enable_switch_to_root=not args.disable_adb_root)
191 self.is_root_device = self.adb.switch_to_root()
192 self.android_version = self.adb.get_android_version()
196 self.device_arch = self.adb.get_device_arch()
217 self.adb.check_run(['push', simpleperf_binary, '/data/local/tmp'])
218 self.adb.check_run(['shell', 'chmod', 'a+x', '/data/local/tmp/simpleperf'])
221 downloader = NativeLibDownloader(self.args.ndk_path, self.device_arch, self.adb)
233 if self.adb.run(['shell', 'ls', NATIVE_LIBS_DIR_ON_DEVICE, '>/dev/null', '2>&1']):
237 adb_args = [self.adb.adb_path, 'shell'] + args
261 (result, _) = self.adb.run_and_return_output(['shell', 'pidof', 'simpleperf'])
266 self.adb.run_and_return_output(['shell', 'pkill', '-l', '2', 'simpleperf'])
270 self.adb.check_run_and_return_output(['pull', '/data/local/tmp/perf.data',
295 self.adb.set_property('debug.generate-debug-info', 'true')
296 self.adb.check_run(['shell', 'cmd', 'package', 'compile', '-f', '-m', 'speed',
301 self.adb.check_run(['shell', 'am', 'force-stop', self.args.app])
315 result, output = self.adb.run_and_return_output(['shell', 'pidof', self.args.app])
323 return self.adb.run_and_return_output(adb_args, log_output=False)
337 result = self.adb.run(['shell', 'am', 'start', '-n', activity])
344 result = self.adb.run(['shell', 'am', 'instrument', '-e', 'class',
354 pid = int(self.adb.check_run_and_return_output(['shell', 'pidof',