/test/vts-testcase/kernel/checkpoint/ |
D | checkpoint_utils.py | 27 def __init__(self, cmd, stdout, stderr, ret_code): argument 28 self.cmd = cmd 35 ) % (self.cmd, self.ret_code, self.stdout, self.stderr) 57 cmd = ["adb", "-s", self._serial_number] 58 cmd.extend(cmd_list) 59 return RunCommand(cmd, timeout) 62 def RunCommand(cmd, timeout=None): argument 64 proc = subprocess.Popen(args=cmd, 78 raise AdbError(cmd, out, err, proc.returncode)
|
/test/vts/testcases/host/kernel_proc_file_api_test/ |
D | proc_utils.py | 46 cmd = ["adb", "-s", self._serial_number, "shell"] 47 cmd.extend(args) 48 return RunCommand(cmd) 67 cmd = ["adb", "-s", self._serial_number] 68 cmd.extend(cmd_list) 69 return RunCommand(cmd, timeout) 91 cmd = ['wait-for-device'] 92 self.adb.Execute(cmd, timeout) 154 cmd = "cat %s" % filepath 155 out, err, r_code = self.shell.Execute(cmd) [all …]
|
/test/vts/utils/python/file/ |
D | target_file_utils.py | 36 cmd = "test %s" % " ".join(args) 37 results = shell.Execute(cmd) 84 cmd = "find %s -name \"%s\"" % (path, name_pattern) 86 cmd += " " + options 87 results = shell.Execute(cmd) 88 logging.debug("%s: Shell command '%s' results: %s", path, cmd, results) 111 cmd = "cat %s" % filepath 112 results = shell.Execute(cmd) 113 logging.debug("%s: Shell command '%s' results: %s", filepath, cmd, results) 135 cmd = "stat -c %%a %s" % path [all …]
|
/test/vts/utils/python/common/ |
D | cmd_utils.py | 33 def _ExecuteOneShellCommandWithTimeout(cmd, argument 56 proc = utils.start_standing_subprocess(cmd) 103 def ExecuteOneShellCommand(cmd, timeout=None, callback_on_timeout=None, *args): argument 120 str(cmd), 128 str(cmd), timeout, callback_on_timeout, *args) 131 def ExecuteShellCommand(cmd): argument 140 if not isinstance(cmd, list): 141 cmd = [cmd] 143 results = [ExecuteOneShellCommand(command) for command in cmd]
|
D | cmd_result.py | 47 def __init__(self, stdout, stderr, returncode, cmd=None, exception=None): argument 53 self.AddResult(stdout, stderr, returncode, cmd=cmd, exception=exception) 80 def cmd(self): member in CmdResult 95 def AddResult(self, stdout, stderr, returncode, cmd=None, exception=None): argument 110 self.cmds.append(cmd)
|
D | cmd_result_test.py | 40 'stdout1', '', 0, cmd='cmd1') 42 None, None, None, cmd='cmd2', exception='TCP connection lost') 103 self.assertEqual(self.res_multiple_with_cmd_and_exception.cmd, 'cmd2')
|
/test/vts/utils/python/controllers/ |
D | adb.py | 38 def __init__(self, cmd, stdout, stderr, ret_code): argument 39 self.cmd = cmd 46 ) % (self.cmd, self.ret_code, self.stdout, self.stderr) 128 def _exec_cmd(self, cmd, no_except=False, timeout=DEFAULT_ADB_TIMEOUT): argument 149 out, err, ret = cmd_utils.ExecuteOneShellCommand(cmd, timeout) 150 logging.debug("cmd: %s, stdout: %s, stderr: %s, ret: %s", cmd, out, 162 raise AdbError(cmd=cmd, stdout=out, stderr=err, ret_code=ret) 197 def _quote_wrap_shell_command(self, cmd): argument 208 return '"%s"' % cmd.replace('"', '\\"')
|
D | android_device.py | 576 cmd = 'uname -r' 577 out = self.adb.shell(cmd) 807 cmd = "adb -s %s logcat -v threadtime %s >> %s" % (self.serial, 810 self.adb_logcat_process = utils.start_standing_subprocess(cmd) 931 cmd = 'ps -g system | grep system_server' 932 res = self.adb.shell(cmd, no_except=True) 1304 cmd = ('adb -s {s} shell "{chmod} LD_LIBRARY_PATH={path}/{bitness} ' 1320 cmd, check_health_delay=1) 1368 for cmd in ("ps -A", "ps"): 1370 out = self.adb.shell('%s | grep "S %s"' % (cmd, package_name)) [all …]
|
/test/vts/testcases/template/binary_test/ |
D | binary_test_case.py | 67 cmd='', argument 79 self.cmd = cmd 143 cmd=self.cmd, 177 def cmd(self): member in BinaryTestCase 184 @cmd.setter 185 def cmd(self, cmd): argument 187 self._cmd = _SafeStrip(cmd)
|
D | binary_test.py | 207 cmd = list( 210 cmd_results = self.shell.Execute(cmd) 213 '%s\n%s', cmd, cmd_results) 340 cmd = ['rm -rf %s' % dst for dst in paths] 341 cmd_results = self.shell.Execute(cmd, no_except=True) 350 cmd = ['rmdir %s' % d for d in dirs] 351 cmd_results = self.shell.Execute(cmd, no_except=True) 484 cmd = test_case.GetRunCommand() 485 logging.debug("Executing binary test command: %s", cmd) 486 command_results = self.shell.Execute(cmd)
|
/test/vts-testcase/kernel/ltp/testcase/ |
D | Android.bp | 36 …cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 64 False… 54 …cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 64 True … 72 …cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 64 False… 90 …cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 64 True … 108 …cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 32 False… 126 …cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 32 True … 144 …cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) x86 64 False… 162 …cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) x86 32 False…
|
/test/vts-testcase/kernel/sdcardfs/src/com/android/sdcardfs/vts/ |
D | SdcardfsTest.java | 53 String cmd = "mount | grep \"type sdcardfs\""; in testSdcardfsNotPresent() 54 CLog.i("Invoke shell command [" + cmd + "]"); in testSdcardfsNotPresent() 56 String output = getDevice().executeShellCommand(cmd); in testSdcardfsNotPresent() 59 fail("Could not run command [" + cmd + "] (" + e.getMessage() + ")"); in testSdcardfsNotPresent()
|
/test/vts-testcase/vndk/golden/ |
D | dump_abi.py | 26 def _ExecuteCommand(cmd, **kwargs): argument 37 cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs) 41 cmd, stdout, stderr)) 43 print("Warning: cmd=%s\nstdout=%s\nstderr=%s" % (cmd, stdout, stderr)) 58 cmd = ["build/soong/soong_ui.bash", "--dumpvars-mode", 60 stdout = _ExecuteCommand(cmd, cwd=build_top_dir)
|
/test/vts-testcase/kernel/linux_kselftest/ |
D | LinuxKselftestTest.py | 102 cmd = 'find %s -type f | xargs %s | xargs %s' % ( 104 result = self._shell.Execute(cmd) 125 cmd = [ 129 logging.info("Executing: %s", cmd) 131 result = self._shell.Execute(cmd)
|
/test/vti/dashboard/src/main/java/com/android/vts/api/ |
D | CoverageRestServlet.java | 83 String cmd = request.getParameter("cmd"); in doPost() local 87 json = postCoverageData(cmd, coverageId, testName, testRunId); in doPost() 151 String cmd, String coverageId, String testName, String testRunId) { in postCoverageData() argument 154 if (cmd.equals("disable")) { in postCoverageData() 164 cmd.equals("disable") in postCoverageData() 170 cmd.equals("disable") in postCoverageData()
|
/test/vts/runners/target/vts_hal_hidl_target/ |
D | VtsCoreUtil.cpp | 28 bool checkSubstringInCommandOutput(const char* cmd, const char* feature) { in checkSubstringInCommandOutput() argument 32 FILE* p = popen(cmd, "re"); in checkSubstringInCommandOutput() 38 cmd); in checkSubstringInCommandOutput()
|
/test/vts-testcase/vndk/ |
D | utils.py | 34 cmd = ["adb", "-s", self._serial_number, "pull", src, dst] 38 subprocess.check_call(cmd, shell=False, env=env, stdin=subprocess.PIPE, 51 cmd = ["adb", "-s", self._serial_number, "shell"] 52 cmd.extend(args) 53 proc = subprocess.Popen(cmd, shell=False, stdin=subprocess.PIPE,
|
/test/vts/utils/python/coverage/ |
D | coverage_utils.py | 294 cmd = "kill -9 " + pid 295 self._ExecuteOneAdbShellCommand(dut, serial, cmd) 329 cmd = ("find %s -name \"*.gcda\"" % TARGET_COVERAGE_PATH) 330 result = self._ExecuteOneAdbShellCommand(dut, serial, cmd) 344 (cmd, str(results[cmd_utils.STDERR][0]))) 681 def _ExecuteOneAdbShellCommand(self, dut, serial, cmd): argument 692 (serial, cmd)) 695 (cmd, str(results[cmd_utils.STDERR][0]))) 701 return dut.adb.shell(cmd) 704 (cmd, str(e)))
|
/test/vts/runners/host/ |
D | utils.py | 335 cmd = ' '.join(cmds) 337 cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) 426 def start_standing_subprocess(cmd, check_health_delay=0): argument 448 cmd, 455 cmd, 460 logging.debug("Start standing subprocess with cmd: %s", cmd)
|
/test/vti/test_serving/configs/infra/prod/androidtestcenter/scripts/ |
D | home_bot_config.py | 128 def _exec_ssh_cmd(self, cmd): argument 152 if self._device_client.Cmd(cmd, timeout_secs=30): 157 raise SSHError('failed to execute cmd over ssh: %s' % cmd) 160 raise SSHError('timeout when waiting for ssh connect: %s' % cmd)
|
/test/vti/test_serving/configs/infra/test/androidtestcenter-test/scripts/ |
D | home_bot_config.py | 128 def _exec_ssh_cmd(self, cmd): argument 152 if self._device_client.Cmd(cmd, timeout_secs=30): 157 raise SSHError('failed to execute cmd over ssh: %s' % cmd) 160 raise SSHError('timeout when waiting for ssh connect: %s' % cmd)
|
/test/vts/testcases/template/llvmfuzzer_test/ |
D | llvmfuzzer_test.py | 153 cmd = "echo -ne '%s' > %s" % (str(corpus_entry), corpus_entry_file) 156 self._dut.adb.shell("\"%s\"" % cmd) 209 cmd = "xxd -p %s" % config.FUZZER_TEST_CRASH_REPORT 213 output = self._dut.adb.shell(cmd)
|
/test/vts-testcase/kernel/ltp/testcase/tools/ |
D | ltp_test_cases.py | 140 for cmd in all_commands: 141 cmd = cmd.strip() 142 binary_name = cmd.split(' ')[0]
|
/test/vts-testcase/kernel/ltp/ |
D | KernelLtpTest.py | 420 cmd = "export {envp} && cd {cwd} && {commands}".format( 426 "for '{}'.\n Command:{}".format(id, test_case, cmd)) 427 cmd_results = shell.Execute(cmd) 477 cmd = "export {envp} && cd {cwd} && {commands}".format( 481 logging.info("Executing %s", cmd) 482 self.CheckResult(test_case, self.shell.Execute(cmd))
|
/test/vts/runners/adapters/acts/ |
D | acts_adapter.py | 127 cmd = '{bin} -c {config} -tb {module_name} -tc {module_name}'.format( 129 logging.debug('cmd is: %s', cmd) 144 cmd,
|