Home
last modified time | relevance | path

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

1234

/aosp_15_r20/external/chromium-trace/catapult/devil/devil/android/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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],
H A 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(
/aosp_15_r20/external/cronet/build/android/
H A Dprovision_devices.py161 device.RunShellCommand(['mount', '-o', 'remount,rw', '/'],
192 device.RunShellCommand('rm -rf %s/*' % device.GetExternalStoragePath(),
194 device.RunShellCommand('rm -rf /data/local/tmp/*', check_return=True)
206 device.RunShellCommand('rm -rf %s/*' % device.GetExternalStoragePath(),
234 device.RunShellCommand(['wipe', 'data'],
255 device.RunShellCommand(['mkdir', '-p', dir_path],
257 device.RunShellCommand(['restorecon', dir_path],
260 device.RunShellCommand(['restorecon', constants.ADB_KEYS_FILE],
296 device.RunShellCommand(['svc', 'nfc', 'disable'],
301 device.RunShellCommand(['pm', 'disable', 'com.android.chrome'],
[all …]
/aosp_15_r20/external/angle/build/android/
H A Dprovision_devices.py161 device.RunShellCommand(['mount', '-o', 'remount,rw', '/'],
192 device.RunShellCommand('rm -rf %s/*' % device.GetExternalStoragePath(),
194 device.RunShellCommand('rm -rf /data/local/tmp/*', check_return=True)
206 device.RunShellCommand('rm -rf %s/*' % device.GetExternalStoragePath(),
234 device.RunShellCommand(['wipe', 'data'],
255 device.RunShellCommand(['mkdir', '-p', dir_path],
257 device.RunShellCommand(['restorecon', dir_path],
260 device.RunShellCommand(['restorecon', constants.ADB_KEYS_FILE],
296 device.RunShellCommand(['svc', 'nfc', 'disable'],
301 device.RunShellCommand(['pm', 'disable', 'com.android.chrome'],
[all …]
/aosp_15_r20/external/cronet/components/cronet/tools/
H A Dandroid_rndis_forwarder.py69 self._device.RunShellCommand(
95 self._device.RunShellCommand(
98 self._device.RunShellCommand(
103 routes = self._device.RunShellCommand(
125 self._device.RunShellCommand(
130 self._device.RunShellCommand(
179 config = self._device.RunShellCommand(
194 config = self._device.RunShellCommand(
322 self._device.RunShellCommand(['.', script_file], check_return=True)
396 output = device.RunShellCommand(
[all …]
/aosp_15_r20/external/chromium-trace/catapult/devil/devil/android/tools/
H A 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 …]
H A 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(
/aosp_15_r20/system/connectivity/wificond/tests/integration/
Dprocess_utils.cpp47 RunShellCommand(StringPrintf("pgrep -c ^%s$", process_name), &output); in IsProcessRunning()
70 RunShellCommand("stop wificond"); in EnterDevModeOrDie()
72 RunShellCommand("stop"); in EnterDevModeOrDie()
74 RunShellCommand("start wificond"); in EnterDevModeOrDie()
86 RunShellCommand("stop wificond"); in ExitDevMode()
88 RunShellCommand("start"); in ExitDevMode()
90 RunShellCommand("start wificond"); in ExitDevMode()
Dlife_cycle_test.cpp24 using android::wificond::tests::integration::RunShellCommand;
37 RunShellCommand("stop wificond"); in TEST()
45 RunShellCommand("start wificond"); in TEST()
/aosp_15_r20/external/angle/build/android/pylib/
H A 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(
/aosp_15_r20/external/cronet/build/android/pylib/
H A 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(
/aosp_15_r20/external/libchrome/build/android/pylib/
H A 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(
/aosp_15_r20/external/chromium-trace/catapult/systrace/systrace/tracing_agents/
H A 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(
H A 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],
/aosp_15_r20/external/cronet/build/android/pylib/local/emulator/
H A Davd.py588 instance.device.RunShellCommand(['svc', 'wifi', 'disable'],
591 instance.device.RunShellCommand(['svc', 'data', 'disable'],
1192 device.RunShellCommand(set_long_press_timeout_cmd, check_return=True)
1198 adb_output = device.RunShellCommand(get_long_press_timeout_cmd,
1211 timezone = device.RunShellCommand(['date', '+"%Z"'],
1215 device.RunShellCommand(['setprop', 'persist.sys.timezone', '"Etc/UTC"'],
1225 device.RunShellCommand(set_date_command, check_return=True, as_root=True)
1228 device.RunShellCommand(
1236 device.RunShellCommand(
1238 device.RunShellCommand(
[all …]
/aosp_15_r20/external/angle/build/android/pylib/local/emulator/
H A Davd.py632 instance.device.RunShellCommand(['svc', 'wifi', 'disable'],
635 instance.device.RunShellCommand(['svc', 'data', 'disable'],
1311 device.RunShellCommand(set_long_press_timeout_cmd, check_return=True)
1317 adb_output = device.RunShellCommand(get_long_press_timeout_cmd,
1330 timezone = device.RunShellCommand(['date', '+"%Z"'],
1334 device.RunShellCommand(['setprop', 'persist.sys.timezone', '"Etc/UTC"'],
1344 device.RunShellCommand(set_date_command, check_return=True, as_root=True)
1347 device.RunShellCommand(
1355 device.RunShellCommand(
1357 device.RunShellCommand(
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/include/lldb/Host/
DHost.h186 static Status RunShellCommand(llvm::StringRef command,
202 static Status RunShellCommand(llvm::StringRef shell, llvm::StringRef command,
216 static Status RunShellCommand(const Args &args, const FileSpec &working_dir,
232 static Status RunShellCommand(llvm::StringRef shell, const Args &args,
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/include/lldb/Host/
DHost.h186 static Status RunShellCommand(llvm::StringRef command,
202 static Status RunShellCommand(llvm::StringRef shell, llvm::StringRef command,
216 static Status RunShellCommand(const Args &args, const FileSpec &working_dir,
232 static Status RunShellCommand(llvm::StringRef shell, const Args &args,
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/include/lldb/Host/
DHost.h186 static Status RunShellCommand(llvm::StringRef command,
202 static Status RunShellCommand(llvm::StringRef shell, llvm::StringRef command,
216 static Status RunShellCommand(const Args &args, const FileSpec &working_dir,
232 static Status RunShellCommand(llvm::StringRef shell, const Args &args,
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/include/lldb/Host/
DHost.h186 static Status RunShellCommand(llvm::StringRef command,
202 static Status RunShellCommand(llvm::StringRef shell, llvm::StringRef command,
216 static Status RunShellCommand(const Args &args, const FileSpec &working_dir,
232 static Status RunShellCommand(llvm::StringRef shell, const Args &args,

1234