Home
last modified time | relevance | path

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

12

/external/chromium-trace/catapult/devil/devil/android/
Ddevice_utils_devicetest.py85 result = self.device.RunShellCommand(['cat', device_file_path],
90 self.device.RunShellCommand(['rm', '-rf', _DEVICE_DIR])
100 result = self.device.RunShellCommand(['cat', device_file_path],
105 self.device.RunShellCommand(['rm', '-rf', _DEVICE_DIR])
118 result = self.device.RunShellCommand(['ls', _DEVICE_DIR], single_line=True)
122 self.device.RunShellCommand(['rm', '-rf', _DEVICE_DIR])
142 result = self.device.RunShellCommand(['cat', device_file_path1],
145 result = self.device.RunShellCommand(['ls', _DEVICE_DIR], single_line=True)
148 self.device.RunShellCommand(['rm', '-rf', _DEVICE_DIR])
185 result = self.device.RunShellCommand(['cat', device_file_path1],
[all …]
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.py324 (self.call.device.RunShellCommand(
333 (self.call.device.RunShellCommand(
342 (self.call.device.RunShellCommand(
764 self.device.RunShellCommand(['pm', 'list', 'packages'])
768 self.device.RunShellCommand(['echo', 'hello world', '$10'])
772 self.device.RunShellCommand('echo "$VAR"')
777 self.device.RunShellCommand('echo "$VAR"', env={'VAR': 'some_string'})
782 self.device.RunShellCommand('run_this', env={'PATH': '$PATH:/other/path'})
786 self.device.RunShellCommand('some_cmd', env={'INVALID NAME': 'value'})
790 self.device.RunShellCommand('ls', cwd='/some/test/path')
[all …]
Dbattery_utils.py246 dumpsys_output = self._device.RunShellCommand(
297 for line in self._device.RunShellCommand(
346 self._device.RunShellCommand(['dumpsys', 'battery', 'set', 'ac', '0'],
348 self._device.RunShellCommand(['dumpsys', 'battery', 'set', 'usb', '0'],
366 or not bool('UPDATES STOPPED' in self._device.RunShellCommand(
369 self._device.RunShellCommand(['dumpsys', 'battery', 'reset'],
559 self._device.RunShellCommand(
607 self._device.RunShellCommand(
609 self._device.RunShellCommand(
611 self._device.RunShellCommand(
[all …]
Ddevice_utils.py290 self.RunShellCommand('ls /root', check_return=True)
314 self.RunShellCommand(
385 value = self.RunShellCommand('echo $EXTERNAL_STORAGE',
424 output = self.RunShellCommand(
446 output = self.RunShellCommand(
499 self.RunShellCommand(['test', '-d', self.GetExternalStoragePath()],
515 return 'Wi-Fi is enabled' in self.RunShellCommand(['dumpsys', 'wifi'],
717 def RunShellCommand(self, cmd, check_return=False, cwd=None, env=None, member in DeviceUtils
848 output = self.RunShellCommand(script, **kwargs)
914 self.RunShellCommand(cmd, as_root=as_root, 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(
Dapp_ui.py76 self._device.RunShellCommand(['input', 'tap', x, y], check_return=True)
178 self._device.RunShellCommand(['uiautomator', 'dump', dtemp.name],
Dforwarder.py109 ps_out = device.RunShellCommand(['ps'])
303 device.RunShellCommand(
342 device.RunShellCommand(
/external/chromium-trace/catapult/telemetry/telemetry/core/
Dandroid_action_runner.py71 self._platform_backend.device.RunShellCommand('input text %s' % string)
79 self._platform_backend.device.RunShellCommand('input keyevent %s' % key)
88 self._platform_backend.device.RunShellCommand('input tap %s %s' % (x_coord,
102 self._platform_backend.device.RunShellCommand(
109 self._platform_backend.device.RunShellCommand('input press')
118 self._platform_backend.device.RunShellCommand('input roll %s %s' % (dx, dy))
156 self._platform_backend.device.RunShellCommand('input keyevent 82')
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/profiler/
Dandroid_traceview_profiler.py28 self._browser_backend.device.RunShellCommand(
31 self._browser_backend.device.RunShellCommand(
33 self._browser_backend.device.RunShellCommand(
40 self._browser_backend.device.RunShellCommand('am profile %s start %s' %
57 self._browser_backend.device.RunShellCommand('am profile %s stop' % pid)
67 self._browser_backend.device.RunShellCommand(
Djava_heap_profiler.py57 self._browser_backend.device.RunShellCommand(
78 self._browser_backend.device.RunShellCommand(
80 self._browser_backend.device.RunShellCommand(
87 self._browser_backend.device.RunShellCommand('am dumpheap %s %s' %
Dtcmalloc_heap_profiler.py49 self._browser_backend.device.RunShellCommand(
51 self._browser_backend.device.RunShellCommand(
64 self._browser_backend.device.RunShellCommand(
Dtcpdump_profiler.py30 self._device.RunShellCommand('mkdir -p ' +
49 self._device.RunShellCommand('kill -term ' + tcpdump_pid)
Dandroid_prebuilt_profiler_helper.py31 device.RunShellCommand('chmod 777 ' + device_binary_path)
Dnetlog_profiler.py47 self._browser_backend.device.RunShellCommand('rm %s' % output_file)
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/
Dandroid_platform_backend.py237 self._device.RunShellCommand(cmd, as_root=True, check_return=True)
255 output = self._device.RunShellCommand(
316 self._device.RunShellCommand('ndc resolver flushdefaultif', as_root=True)
350 result_lines = self._device.RunShellCommand('am start %s %s' %
362 self._installed_applications = self._device.RunShellCommand(
434 ps = self._device.RunShellCommand(command, large_output=True)[1:]
447 return '\n'.join(self._device.RunShellCommand(command))
570 dumpsys = self._device.RunShellCommand('dumpsys package %s' % package)
573 files = self._device.RunShellCommand(
579 self._device.RunShellCommand(
[all …]
/external/chromium-trace/catapult/systrace/profile_chrome/
Dddms_controller.py27 for line in self._device.RunShellCommand('am --help'):
39 self._device.RunShellCommand(cmd)
42 self._device.RunShellCommand('am profile stop %s' % self._package)
/external/chromium-trace/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(
Dperf_control.py19 self._cpu_files = self._device.RunShellCommand(
100 output = self._device.RunShellCommand(
150 self._device.RunShellCommand(script, check_return=True, as_root=True)
Dthermal_throttle.py98 log = self._device.RunShellCommand('dmesg -c')
124 dumpsys_log = self._device.RunShellCommand('dumpsys battery')
Dcache_control.py14 self._device.RunShellCommand('sync', as_root=True)
/external/chromium-trace/catapult/telemetry/telemetry/internal/backends/
Dandroid_command_line_backend_unittest.py83 device.RunShellCommand(['rm', '-f', cmd_file], check_return=True)
98 device.RunShellCommand(['rm', '-f', cmd_file], check_return=True)
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/tracing_agent/
Dchrome_tracing_agent.py32 platform_backend.device.RunShellCommand(
186 self._platform_backend.device.RunShellCommand(

12