Home
last modified time | relevance | path

Searched refs:RunShellCommand (Results 1 – 25 of 61) sorted by relevance

123

/external/libmojo/third_party/catapult/devil/devil/android/
Dbattery_utils_test.py111 (self.call.device.RunShellCommand(
120 (self.call.device.RunShellCommand(
129 (self.call.device.RunShellCommand(
144 (self.call.device.RunShellCommand(
146 (self.call.device.RunShellCommand(
150 (self.call.device.RunShellCommand(
153 (self.call.device.RunShellCommand(
156 (self.call.device.RunShellCommand(
167 (self.call.device.RunShellCommand(
169 (self.call.device.RunShellCommand(
[all …]
Ddevice_utils_devicetest.py90 result = self.device.RunShellCommand(['cat', device_file_path],
95 self.device.RunShellCommand(['rm', '-rf', _DEVICE_DIR])
105 result = self.device.RunShellCommand(['cat', device_file_path],
110 self.device.RunShellCommand(['rm', '-rf', _DEVICE_DIR])
123 result = self.device.RunShellCommand(['ls', _DEVICE_DIR], single_line=True)
127 self.device.RunShellCommand(['rm', '-rf', _DEVICE_DIR])
147 result = self.device.RunShellCommand(['cat', device_file_path1],
150 result = self.device.RunShellCommand(['ls', _DEVICE_DIR], single_line=True)
153 self.device.RunShellCommand(['rm', '-rf', _DEVICE_DIR])
190 result = self.device.RunShellCommand(['cat', device_file_path1],
[all …]
Dmd5sum_test.py94 device.RunShellCommand = mock.Mock(side_effect=Exception())
107 device.RunShellCommand = mock.Mock(return_value=device_md5sum_output)
115 self.assertEquals(1, len(device.RunShellCommand.call_args_list))
127 device.RunShellCommand = mock.Mock(return_value=device_md5sum_output)
138 self.assertEquals(1, len(device.RunShellCommand.call_args_list))
151 device.RunShellCommand = mock.Mock(return_value=device_md5sum_output)
162 self.assertEquals(1, len(device.RunShellCommand.call_args_list))
176 device.RunShellCommand = mock.Mock(return_value=device_md5sum_output)
184 self.assertEquals(1, len(device.RunShellCommand.call_args_list))
196 device.RunShellCommand = mock.Mock(return_value=device_md5sum_output)
[all …]
Ddevice_utils_test.py196 return (self.call.device.RunShellCommand(
349 (self.call.device.RunShellCommand(
358 (self.call.device.RunShellCommand(
367 (self.call.device.RunShellCommand(
806 self.device.RunShellCommand(['pm', 'list', 'packages'])
810 self.device.RunShellCommand(['echo', 'hello world', '$10'])
814 self.device.RunShellCommand('echo "$VAR"')
819 self.device.RunShellCommand('echo "$VAR"', env={'VAR': 'some_string'})
824 self.device.RunShellCommand('run_this', env={'PATH': '$PATH:/other/path'})
828 self.device.RunShellCommand('some_cmd', env={'INVALID NAME': 'value'})
[all …]
Dbattery_utils.py259 dumpsys_output = self._device.RunShellCommand(
310 for line in self._device.RunShellCommand(
359 self._device.RunShellCommand(['dumpsys', 'battery', 'set', 'ac', '0'],
361 self._device.RunShellCommand(['dumpsys', 'battery', 'set', 'usb', '0'],
379 or not bool('UPDATES STOPPED' in self._device.RunShellCommand(
382 self._device.RunShellCommand(['dumpsys', 'battery', 'reset'],
572 self._device.RunShellCommand(
620 self._device.RunShellCommand(
622 self._device.RunShellCommand(
626 self._device.RunShellCommand(
[all …]
Ddevice_utils.py347 self.RunShellCommand(['ls', '/root'], check_return=True)
371 self.RunShellCommand(
475 output = self.RunShellCommand(
497 output = self.RunShellCommand(
550 self.RunShellCommand(['test', '-d', self.GetExternalStoragePath()],
569 return 'Wi-Fi is enabled' in self.RunShellCommand(['dumpsys', 'wifi'],
771 def RunShellCommand(self, cmd, check_return=False, cwd=None, env=None, member in DeviceUtils
908 output = self.RunShellCommand(script, **kwargs)
974 self.RunShellCommand(cmd, as_root=as_root, check_return=True)
1015 for line in self.RunShellCommand(cmd, check_return=True):
[all …]
Dmd5sum.py92 out = device.RunShellCommand(md5sum_script, check_return=True)
100 device.RunShellCommand(['rm', '-rf', MD5SUM_DEVICE_LIB_PATH],
106 device.RunShellCommand(mkdir_cmd, check_return=True)
109 out = device.RunShellCommand(md5sum_script, check_return=True)
Dinstall_commands.py45 device.RunShellCommand(['mkdir', BIN_DIR, _FRAMEWORK_DIR])
51 device.RunShellCommand(
/external/chromium-trace/catapult/devil/devil/android/
Dbattery_utils_test.py111 (self.call.device.RunShellCommand(
120 (self.call.device.RunShellCommand(
129 (self.call.device.RunShellCommand(
144 (self.call.device.RunShellCommand(
146 (self.call.device.RunShellCommand(
150 (self.call.device.RunShellCommand(
153 (self.call.device.RunShellCommand(
156 (self.call.device.RunShellCommand(
167 (self.call.device.RunShellCommand(
169 (self.call.device.RunShellCommand(
[all …]
Dmd5sum_test.py94 device.RunShellCommand = mock.Mock(side_effect=Exception())
107 device.RunShellCommand = mock.Mock(return_value=device_md5sum_output)
115 self.assertEquals(1, len(device.RunShellCommand.call_args_list))
127 device.RunShellCommand = mock.Mock(return_value=device_md5sum_output)
138 self.assertEquals(1, len(device.RunShellCommand.call_args_list))
151 device.RunShellCommand = mock.Mock(return_value=device_md5sum_output)
162 self.assertEquals(1, len(device.RunShellCommand.call_args_list))
176 device.RunShellCommand = mock.Mock(return_value=device_md5sum_output)
184 self.assertEquals(1, len(device.RunShellCommand.call_args_list))
196 device.RunShellCommand = mock.Mock(return_value=device_md5sum_output)
[all …]
Ddevice_utils_test.py197 return (self.call.device.RunShellCommand(
370 (self.call.device.RunShellCommand(
379 (self.call.device.RunShellCommand(
388 (self.call.device.RunShellCommand(
397 (self.call.device.RunShellCommand(
873 self.device.RunShellCommand(
878 self.device.RunShellCommand(
883 self.device.RunShellCommand(
889 self.device.RunShellCommand(
896 self.device.RunShellCommand(
[all …]
Dbattery_utils.py291 dumpsys_output = self._device.RunShellCommand(
342 for line in self._device.RunShellCommand(
391 self._device.RunShellCommand(['dumpsys', 'battery', 'set', 'ac', '0'],
393 self._device.RunShellCommand(['dumpsys', 'battery', 'set', 'usb', '0'],
411 or not bool('UPDATES STOPPED' in self._device.RunShellCommand(
414 self._device.RunShellCommand(['dumpsys', 'battery', 'reset'],
604 self._device.RunShellCommand(
652 self._device.RunShellCommand(
654 self._device.RunShellCommand(
658 self._device.RunShellCommand(
[all …]
Dsettings.py143 for row in self._device.RunShellCommand(
162 return self._device.RunShellCommand(
169 self._device.RunShellCommand(
175 self._device.RunShellCommand(
182 self._device.RunShellCommand(
270 output_msg = device.RunShellCommand(
Ddevice_utils.py400 self.RunShellCommand(['ls', '/root'], check_return=True)
430 self.RunShellCommand(cmd, shell=True, check_return=True,
534 output = self.RunShellCommand(
558 output = self.RunShellCommand(
611 self.RunShellCommand(['test', '-d', self.GetExternalStoragePath()],
630 return 'Wi-Fi is enabled' in self.RunShellCommand(['dumpsys', 'wifi'],
838 def RunShellCommand(self, cmd, shell=False, check_return=False, cwd=None, member in DeviceUtils
991 output = self.RunShellCommand(script, **kwargs)
1057 self.RunShellCommand(cmd, as_root=as_root, check_return=True)
1098 for line in self.RunShellCommand(cmd, check_return=True):
[all …]
Dmd5sum.py92 out = device.RunShellCommand(md5sum_script, shell=True, check_return=True)
100 device.RunShellCommand(['rm', '-rf', MD5SUM_DEVICE_LIB_PATH],
106 device.RunShellCommand(mkdir_cmd, shell=True, check_return=True)
109 out = device.RunShellCommand(md5sum_script, shell=True, check_return=True)
Ddevice_utils_devicetest.py91 result = self.device.RunShellCommand(
106 result = self.device.RunShellCommand(
148 result = self.device.RunShellCommand(
192 result = self.device.RunShellCommand(
202 result = self.device.RunShellCommand(
216 ps_output = self.device.RunShellCommand(['ps'], check_return=True)
Dinstall_commands.py45 device.RunShellCommand(
52 device.RunShellCommand(
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/profiler/
Dandroid_traceview_profiler.py29 self._browser_backend.device.RunShellCommand(
33 self._browser_backend.device.RunShellCommand(
35 self._browser_backend.device.RunShellCommand(
42 self._browser_backend.device.RunShellCommand(
59 self._browser_backend.device.RunShellCommand(
67 self._browser_backend.device.RunShellCommand(
Djava_heap_profiler.py54 self._browser_backend.device.RunShellCommand(
76 self._browser_backend.device.RunShellCommand(
78 self._browser_backend.device.RunShellCommand(
85 self._browser_backend.device.RunShellCommand(
/external/chromium-trace/catapult/devil/devil/android/tools/
Dprovision_devices.py213 device.RunShellCommand('rm -rf %s/*' % device.GetExternalStoragePath(),
215 device.RunShellCommand('rm -rf /data/local/tmp/*',
228 device.RunShellCommand('rm -rf %s/*' % device.GetExternalStoragePath(),
236 installed_packages = device.RunShellCommand(
239 pkg.split(':')[1] for pkg in device.RunShellCommand(
256 device.RunShellCommand(['rm', '-rf', path], check_return=True)
277 device.RunShellCommand(['wipe', 'data'],
298 device.RunShellCommand(['mkdir', '-p', dir_path],
300 device.RunShellCommand(['restorecon', dir_path],
303 device.RunShellCommand(['restorecon', adb_wrapper.ADB_KEYS_FILE],
[all …]
/external/chromium-trace/catapult/telemetry/telemetry/core/
Dandroid_action_runner.py73 self._platform_backend.device.RunShellCommand(
93 self._platform_backend.device.RunShellCommand(
110 self._platform_backend.device.RunShellCommand(cmd, check_return=True)
114 self._platform_backend.device.RunShellCommand(
124 self._platform_backend.device.RunShellCommand(
/external/chromium-trace/catapult/systrace/systrace/tracing_agents/
Datrace_agent.py52 categories = devutils.RunShellCommand(
72 categories_output = devutils.RunShellCommand(
185 self._device_utils.RunShellCommand(
239 self._device_utils.RunShellCommand(
246 self._device_utils.RunShellCommand(
252 result = self._device_utils.RunShellCommand(
283 ps_dump = self._device_utils.RunShellCommand(
291 procfs_dump = self._device_utils.RunShellCommand(
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/
Dandroid_platform_backend.py250 self._device.RunShellCommand([
274 output = self._device.RunShellCommand([
340 self._device.RunShellCommand(
378 result_lines = self._device.RunShellCommand(cmd, check_return=True)
389 self._installed_applications = self._device.RunShellCommand(
476 return '\n'.join(self._device.RunShellCommand(command, check_return=True))
597 dumpsys = self._device.RunShellCommand(
607 self._device.RunShellCommand(
617 self._device.RunShellCommand(
693 self._device.RunShellCommand(
[all …]
/external/chromium-trace/catapult/systrace/profile_chrome/
Dddms_tracing_agent.py30 for line in self._device.RunShellCommand(
44 self._device.RunShellCommand(cmd, check_return=True)
49 self._device.RunShellCommand(
/external/libmojo/third_party/catapult/devil/devil/android/perf/
Dsurface_stats_collector.py107 results = self._device.RunShellCommand(
112 results = self._device.RunShellCommand('ps | grep surfaceflinger')
158 results = self._device.RunShellCommand(

123