Home
last modified time | relevance | path

Searched refs:as_root (Results 1 – 25 of 34) sorted by relevance

12

/external/chromium-trace/catapult/devil/devil/android/
Ddevice_utils.py839 env=None, run_as=None, as_root=False, single_line=False, argument
965 if as_root and self.NeedsSU():
1011 as_root=False, blocking=False, quiet=False, argument
1057 self.RunShellCommand(cmd, as_root=as_root, check_return=True)
1500 shell=True, as_root=True,
1524 def PathExists(self, device_paths, as_root=False, timeout=None, retries=None): argument
1551 self.RunShellCommand(cmd, as_root=as_root, check_return=True,
1559 as_root=False, timeout=None, retries=None): argument
1581 self.RunShellCommand(args, as_root=as_root, check_return=True)
1618 def ReadFile(self, device_path, as_root=False, force_pull=False, argument
[all …]
Dsettings.py145 check_return=True, as_root=True):
165 check_return=True, as_root=True).strip()
173 check_return=True, as_root=True)
179 check_return=True, as_root=True)
185 check_return=True, as_root=True)
271 ['sqlite3', db, cmd], check_return=True, as_root=True)
Ddevice_utils_test.py941 ['echo', payload], check_return=True, as_root=True))
952 check_return=True, as_root=True)
977 as_root=True)
1196 1, self.device.KillAll('some.process', as_root=True))
1663 shell=True, as_root=True,
1685 as_root=False, check_return=True, timeout=10, retries=0),
1693 as_root=False, check_return=True, timeout=10, retries=0),
1701 as_root=False, check_return=True, timeout=10, retries=0),
1709 as_root=True, check_return=True, timeout=10, retries=0),
1712 self.device.PathExists('/root/path/exists', as_root=True))
[all …]
Dflag_changer_devicetest.py44 [self.cmdline_path, self.cmdline_path_legacy], force=True, as_root=True)
56 self.cmdline_path_legacy, 'some --stray --flags', as_root=True)
Dmd5sum.py101 as_root=True, check_return=True)
Dflag_changer.py86 self._device.RemovePath(cmdline_path_legacy, as_root=True)
/external/libmojo/third_party/catapult/devil/devil/android/
Ddevice_utils.py772 as_root=False, single_line=False, large_output=False, argument
882 if as_root and self.NeedsSU():
928 as_root=False, blocking=False, quiet=False, argument
974 self.RunShellCommand(cmd, as_root=as_root, check_return=True)
1413 as_root=True,
1437 def PathExists(self, device_paths, as_root=False, timeout=None, retries=None): argument
1461 self.RunShellCommand(cmd, as_root=as_root, check_return=True,
1501 def ReadFile(self, device_path, as_root=False, force_pull=False, argument
1527 return self.FileSize(path, as_root=as_root)
1532 ['cat', device_path], as_root=as_root, check_return=True))
[all …]
Ddevice_utils_test.py863 self.device.RunShellCommand(['echo', payload], as_root=True))
872 self.device.RunShellCommand('setprop service.adb.root 0', as_root=True)
1076 1, self.device.KillAll('some.process', as_root=True))
1543 as_root=True,
1565 as_root=False, check_return=True, timeout=10, retries=0),
1573 as_root=False, check_return=True, timeout=10, retries=0),
1581 as_root=False, check_return=True, timeout=10, retries=0),
1589 as_root=True, check_return=True, timeout=10, retries=0),
1592 self.device.PathExists('/root/path/exists', as_root=True))
1598 as_root=False, check_return=True, timeout=10, retries=0),
[all …]
Dflag_changer.py124 self._cmdline_file, cmd_line, as_root=use_root)
126 self._cmdline_file, as_root=use_root).rstrip()
131 as_root=use_root)
Dmd5sum.py101 as_root=True, check_return=True)
Dbattery_utils_test.py112 mock.ANY, check_return=True, as_root=True, large_output=True), []),
121 mock.ANY, check_return=True, as_root=True, large_output=True), []),
130 mock.ANY, check_return=True, as_root=True, large_output=True), []),
/external/chromium-trace/catapult/devil/devil/android/tools/
Dprovision_devices.py276 as_root=True).splitlines()
278 as_root=True, check_return=True)
299 as_root=True, check_return=True)
301 as_root=True, check_return=True)
302 device.WriteFile(adb_wrapper.ADB_KEYS_FILE, adb_keys_string, as_root=True)
304 as_root=True, check_return=True)
346 as_root=True, check_return=True)
410 '\n'.join(local_props), as_root=True)
414 as_root=True, check_return=True)
458 device.RunShellCommand(set_date_command, as_root=True, check_return=True)
[all …]
Dadb_run_shell_cmd.py44 args.cmd, large_output=True, as_root=args.as_root, check_return=True)
/external/chromium-trace/catapult/devil/devil/android/sdk/
Dshared_prefs.py252 self._device.ReadFile(self.path, as_root=True))
273 as_root=True, check_return=True)
274 self._device.WriteFile(self.path, str(self), as_root=True)
287 as_root=True, check_return=True)
288 self._device.KillAll(self.package, exact=True, as_root=True, quiet=True)
412 as_root=True, check_return=True):
/external/libmojo/third_party/catapult/devil/devil/android/perf/
Dperf_control.py22 for filename in self._device.ListDirectory(self._CPU_PATH, as_root=True)
104 script, cwd=self._CPU_PATH, check_return=True, as_root=True)
127 as_root=True)
153 self._device.RunShellCommand(cmd, check_return=True, as_root=True)
Dcache_control.py14 self._device.RunShellCommand('sync', as_root=True)
15 self._device.WriteFile(CacheControl._DROP_CACHES, '3', as_root=True)
/external/chromium-trace/catapult/devil/devil/android/perf/
Dcache_control.py14 self._device.RunShellCommand(['sync'], check_return=True, as_root=True)
15 self._device.WriteFile(CacheControl._DROP_CACHES, '3', as_root=True)
Dperf_control.py26 for filename in self._device.ListDirectory(self._CPU_PATH, as_root=True)
114 script, cwd=self._CPU_PATH, check_return=True, as_root=True, shell=True)
178 as_root=True)
204 self._device.RunShellCommand(cmd, check_return=True, as_root=True)
/external/libmojo/third_party/catapult/devil/devil/android/tools/
Dadb_run_shell_cmd.py38 args.cmd, large_output=True, as_root=args.as_root, check_return=True)
/external/libmojo/third_party/catapult/devil/devil/android/sdk/
Dshared_prefs.py248 self._device.ReadFile(self.path, as_root=True))
269 as_root=True, check_return=True)
270 self._device.WriteFile(self.path, str(self), as_root=True)
271 self._device.KillAll(self.package, exact=True, as_root=True, quiet=True)
/external/chromium-trace/catapult/telemetry/telemetry/internal/forwarders/
Dandroid_forwarder.py38 for line in self._device.ReadFile('/proc/net/tcp', as_root=True,
48 ['lsof'], as_root=True, check_return=True)
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/
Dandroid_platform_backend.py252 '-d'], as_root=True, check_return=True)
341 ['ndc', 'resolver', 'flushdefaultif'], as_root=True, check_return=True)
453 return self._device.ReadFile(fname, as_root=True)
601 files = self._device.ListDirectory(profile_dir, as_root=True)
636 for f in self._device.ListDirectory(profile_dir, as_root=True)
640 self._device.RemovePath(files, recursive=True, as_root=True)
658 for filename in self._device.ListDirectory(profile_dir, as_root=True):
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/tracing_agent/
Dchrome_tracing_agent.py36 ['rm', '-f', trace_config_file], check_return=True, as_root=True)
263 self._CreateTraceConfigFileString(config), as_root=True)
295 as_root=True)
/external/chromium-trace/catapult/devil/docs/
Ddevice_utils.md330 as_root: A boolean indicating whether the shell command should be run
367 as_root: A boolean indicating whether the kill should be executed with
531 as_root: Whether root permissions should be use to check for the existence
554 as_root: Whether root permissions should be use to remove the given
586 as_root: A boolean indicating whether the read should be executed with
615 as_root: A boolean indicating whether the write should be executed with
641 as_root: A boolean indicating whether the to use root privileges to list
673 as_root: A boolean indicating whether the to use root privileges to list
707 as_root: A boolean indicating whether the to use root privileges to
732 as_root: A boolean indicating whether the to use root privileges to
/external/chromium-trace/catapult/telemetry/telemetry/testing/
Dsystem_stub.py105 def ReadFile(self, device_path, as_root=False): argument
106 del device_path, as_root # unused

12