Home
last modified time | relevance | path

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

123

/external/chromium-trace/catapult/devil/devil/android/
Dbattery_utils_test.py125 with self.assertCalls((self.call.device.RunShellCommand(
136 with self.assertCalls((self.call.device.RunShellCommand(
147 with self.assertCalls((self.call.device.RunShellCommand(
163 (self.call.device.RunShellCommand(
165 (self.call.device.RunShellCommand(
168 (self.call.device.RunShellCommand(['dumpsys', 'battery', 'reset'],
171 (self.call.device.RunShellCommand(
174 (self.call.device.RunShellCommand(['dumpsys', 'battery'],
184 (self.call.device.RunShellCommand(
186 (self.call.device.RunShellCommand(
[all …]
Dmd5sum_test.py70 device.RunShellCommand = mock.Mock(side_effect=Exception())
80 device.RunShellCommand = mock.Mock(return_value=device_md5sum_output)
88 self.assertEquals(1, len(device.RunShellCommand.call_args_list))
100 device.RunShellCommand = mock.Mock(return_value=device_md5sum_output)
111 self.assertEquals(1, len(device.RunShellCommand.call_args_list))
122 device.RunShellCommand = mock.Mock(return_value=device_md5sum_output)
133 self.assertEquals(1, len(device.RunShellCommand.call_args_list))
146 device.RunShellCommand = mock.Mock(return_value=device_md5sum_output)
154 self.assertEquals(1, len(device.RunShellCommand.call_args_list))
167 device.RunShellCommand = mock.Mock(return_value=device_md5sum_output)
[all …]
Dbattery_utils.py265 dumpsys_output = self._device.RunShellCommand(
320 for line in self._device.RunShellCommand(['dumpsys', 'battery'],
376 self._device.RunShellCommand(['dumpsys', 'battery', 'set', 'ac', '0'],
378 self._device.RunShellCommand(['dumpsys', 'battery', 'set', 'usb', '0'],
397 or not bool('UPDATES STOPPED' in self._device.RunShellCommand(
400 self._device.RunShellCommand(['dumpsys', 'battery', 'reset'],
590 self._device.RunShellCommand(
638 self._device.RunShellCommand(['dumpsys', 'battery', 'set', 'usb', '1'],
640 self._device.RunShellCommand(['dumpsys', 'battery', 'set', 'ac', '1'],
644 self._device.RunShellCommand(['dumpsys', 'batterystats', '--reset'],
[all …]
Ddevice_utils_test.py261 return (self.call.device.RunShellCommand(
442 with self.assertCalls((self.call.device.RunShellCommand(
449 (self.call.device.RunShellCommand(
452 (self.call.device.RunShellCommand(
458 (self.call.device.RunShellCommand(
465 (self.call.device.RunShellCommand(
472 (self.call.device.RunShellCommand(
475 (self.call.device.RunShellCommand(
482 (self.call.device.RunShellCommand(
490 (self.call.device.RunShellCommand(
[all …]
Dsettings.py144 for row in self._device.RunShellCommand(
155 query_row = self._device.RunShellCommand([
172 self._device.RunShellCommand([
181 self._device.RunShellCommand([
191 self._device.RunShellCommand([
282 output_msg = device.RunShellCommand(['sqlite3', db, cmd],
Ddevice_utils.py562 output = self.RunShellCommand(['id'], single_line=True)
595 self.RunShellCommand(
734 out = self.RunShellCommand(['dumpsys', 'iphonesubinfo'],
743 out = self.RunShellCommand(['service', 'call', 'iphonesubinfo', '1'],
777 matching_packages = self.RunShellCommand(
787 dumpsys_output = self.RunShellCommand(
834 output = self.RunShellCommand(['pm', 'path', package],
867 output = self.RunShellCommand(['dumpsys', 'package', package],
965 for line in self.RunShellCommand(['ls', '-Z', directory],
992 self.RunShellCommand(
[all …]
Dmd5sum.py116 out = device.RunShellCommand(
125 device.RunShellCommand(['rm', '-rf', MD5SUM_DEVICE_LIB_PATH],
132 device.RunShellCommand(mkdir_cmd, shell=True, check_return=True)
135 out = device.RunShellCommand(
Dinstall_commands.py44 device.RunShellCommand(['mkdir', '-p', BIN_DIR, _FRAMEWORK_DIR],
51 device.RunShellCommand(['chmod', '755', shell_file], check_return=True)
Ddevice_utils_devicetest.py93 result = self.device.RunShellCommand(['cat', device_file_path],
109 result = self.device.RunShellCommand(['cat', device_file_path],
152 result = self.device.RunShellCommand(['cat', device_file_path1],
197 result = self.device.RunShellCommand(['cat', device_file_path1],
208 result = self.device.RunShellCommand(['cat', device_file_path3],
/external/chromium-trace/catapult/devil/devil/android/tools/
Dsystem_app_test.py84 mock_device.RunShellCommand.configure_mock(
90 mock_device.RunShellCommand.assert_called_once_with(
97 mock_device.RunShellCommand.configure_mock(
103 mock_device.RunShellCommand.assert_called_once_with(
110 mock_device.RunShellCommand.configure_mock(return_value=[])
115 mock_device.RunShellCommand.assert_called_once_with(
122 mock_device.RunShellCommand.configure_mock(
128 mock_device.RunShellCommand.assert_called_once_with(
Dprovision_devices.py218 device.RunShellCommand(
222 device.RunShellCommand(
234 device.RunShellCommand(
244 installed_packages = device.RunShellCommand(['pm', 'list', 'packages'],
248 for pkg in device.RunShellCommand(['pm', 'list', 'packages', '-s'],
265 device.RunShellCommand(['rm', '-rf', path], check_return=True)
286 device.RunShellCommand(['wipe', 'data'], as_root=True, check_return=True)
306 device.RunShellCommand(['mkdir', '-p', dir_path],
309 device.RunShellCommand(['restorecon', dir_path],
313 device.RunShellCommand(['restorecon', adb_wrapper.ADB_KEYS_FILE],
[all …]
Dsystem_app.py104 lines = device.RunShellCommand(
177 device.RunShellCommand(['stop'], check_return=True)
265 device.RunShellCommand(['mkdir', '-p'] + relocation_dirs, check_return=True)
300 device.RunShellCommand(cmd, as_root=True, check_return=True, shell=True)
/external/libchrome/build/android/pylib/
Dcontent_settings.py35 for row in self._device.RunShellCommand(
53 return self._device.RunShellCommand(
59 self._device.RunShellCommand(
66 self._device.RunShellCommand(
75 self._device.RunShellCommand(
/external/chromium-trace/catapult/systrace/systrace/tracing_agents/
Datrace_process_dump.py44 self._device.RunShellCommand(cmd, check_return=True, as_root=True)
49 self._device.RunShellCommand(
53 self._device.RunShellCommand(['test', '-f', HELPER_DUMP_JSON],
56 self._device.RunShellCommand(['rm', HELPER_DUMP_JSON],
Datrace_agent.py56 categories = devutils.RunShellCommand(
76 categories_output = devutils.RunShellCommand(
196 self._device_utils.RunShellCommand(
255 result = self._device_utils.RunShellCommand(
261 self._device_utils.RunShellCommand(
265 result = self._device_utils.RunShellCommand(
302 procfs_dump = self._device_utils.RunShellCommand(
Dandroid_process_data_agent.py80 dump = self._device.RunShellCommand( \
89 dump = self._device.RunShellCommand( \
/external/llvm-project/lldb/include/lldb/Host/
DHost.h206 static Status RunShellCommand(llvm::StringRef command,
222 static Status RunShellCommand(llvm::StringRef shell, llvm::StringRef command,
236 static Status RunShellCommand(const Args &args, const FileSpec &working_dir,
252 static Status RunShellCommand(llvm::StringRef shell, const Args &args,
/external/chromium-trace/catapult/systrace/profile_chrome/
Dddms_tracing_agent.py31 for line in self._device.RunShellCommand(
45 self._device.RunShellCommand(cmd, check_return=True)
50 self._device.RunShellCommand(
/external/chromium-trace/catapult/devil/devil/android/perf/
Dperf_control_test.py56 mock_device.RunShellCommand = mock.Mock(side_effect=_ShellCommandHandler)
79 mock_device.RunShellCommand = mock.Mock(side_effect=_ShellCommandHandler)
102 mock_device.RunShellCommand = mock.Mock(side_effect=_ShellCommandHandler)
Dsurface_stats_collector.py116 results = self._device.RunShellCommand(
129 results = self._device.RunShellCommand(
153 output = self._device.RunShellCommand(command, check_return=True)
Dthermal_throttle.py102 log = self._device.RunShellCommand(['dmesg', '-c'],
130 dumpsys_log = self._device.RunShellCommand(['dumpsys', 'battery'],
Dperf_control.py320 output = self._device.RunShellCommand(
407 self._device.RunShellCommand(cmd, check_return=True, as_root=True)
419 self._device.RunShellCommand(cmd, check_return=True, as_root=True)
/external/llvm-project/lldb/source/Host/common/
DHost.cpp470 Status Host::RunShellCommand(llvm::StringRef command, in RunShellCommand() function in Host
475 return RunShellCommand(llvm::StringRef(), Args(command), working_dir, in RunShellCommand()
480 Status Host::RunShellCommand(llvm::StringRef shell_path, in RunShellCommand() function in Host
486 return RunShellCommand(shell_path, Args(command), working_dir, status_ptr, in RunShellCommand()
491 Status Host::RunShellCommand(const Args &args, const FileSpec &working_dir, in RunShellCommand() function in Host
496 return RunShellCommand(llvm::StringRef(), args, working_dir, status_ptr, in RunShellCommand()
501 Status Host::RunShellCommand(llvm::StringRef shell_path, const Args &args, in RunShellCommand() function in Host
/external/llvm-project/lldb/source/Target/
DRemoteAwarePlatform.cpp173 Status RemoteAwarePlatform::RunShellCommand( in RunShellCommand() function in RemoteAwarePlatform
177 return RunShellCommand(llvm::StringRef(), command, working_dir, status_ptr, in RunShellCommand()
181 Status RemoteAwarePlatform::RunShellCommand( in RunShellCommand() function in RemoteAwarePlatform
186 return Host::RunShellCommand(shell, command, working_dir, status_ptr, in RunShellCommand()
189 return m_remote_platform_sp->RunShellCommand(shell, command, working_dir, in RunShellCommand()
/external/llvm-project/lldb/include/lldb/Target/
DRemoteAwarePlatform.h71 Status RunShellCommand(llvm::StringRef command, const FileSpec &working_dir,
76 Status RunShellCommand(llvm::StringRef interpreter, llvm::StringRef command,

123