/test/vts/testcases/vts_selftest/manual_tests/shell_performance/ |
D | VtsSelfTestShellPerformance.py | 38 def VtsShell(self, cmd, n): argument 46 self.shell.Execute(cmd) 48 def AdbShell(self, cmd, n): argument 56 self.dut.adb.shell(cmd) 58 def VtsShellList(self, cmd, n): argument 65 self.shell.Execute([cmd] * n) 81 cmd = "/data/local/tmp/zero_testcase" 84 self.AdbShell(cmd, 1) 85 self.VtsShell(cmd, 1) 89 adb_time = self.Measure(self.AdbShell, cmd, repeats) [all …]
|
/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) 130 cmd = ["root"] 132 self.adb.Execute(cmd, timeout=timeout) [all …]
|
/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/harnesses/tradefed/src/com/android/tradefed/util/ |
D | CmdUtil.java | 49 public boolean waitCmdResultWithDelay(ITestDevice device, String cmd, in waitCmdResultWithDelay() argument 52 if (validateCmdSuccess(device, cmd, predicate)) { in waitCmdResultWithDelay() 76 for (String cmd : cmds) { in retry() 77 CLog.d("Running a command: %s", cmd); in retry() 78 String out = device.executeShellCommand(cmd); in retry() 98 public boolean retry(ITestDevice device, String cmd, String validation_cmd, in retry() argument 100 return retry(device, cmd, validation_cmd, predicate, MAX_RETRY_COUNT); in retry() 114 public boolean retry(ITestDevice device, String cmd, String validation_cmd, in retry() argument 117 CLog.d("Running a command: %s", cmd); in retry() 118 device.executeShellCommand(cmd); in retry() [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)
|
/test/framework/harnesses/host_controller/acloud/ |
D | acloud_client.py | 75 cmd = ('create ' 94 return cmd 105 cmd = ('delete ' 117 return cmd 125 cmd = self.GetCreateCmd(build_id) 126 acloud_main.main(cmd.split()) 181 for cmd in cmds: 182 print cmd 183 results = cmd_utils.ExecuteShellCommand(cmd) 185 logging.error("Fail to execute command: %s\nResult:%s" % (cmd, [all …]
|
/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('"', '\\"')
|
/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)
|
/test/framework/harnesses/host_controller/command_processor/ |
D | command_test.py | 99 cmd = [bin_path, "run", "commandAndExit"] 100 cmd.extend(str(c) for c in command) 103 cmd.extend(["-s", str(serial)]) 106 cmd.extend(["--log-file-path", result_dir, "--use-log-saver"]) 108 return cmd 111 def _ExecuteCommand(cmd): argument 129 cmd, 175 cmd = self._GenerateTestSuiteCommand( 179 logging.info("Command: %s", cmd) 180 self._ExecuteCommand(cmd)
|
D | command_fastboot.py | 79 cmd = " ".join(cmd_list) 83 stdout, stderr, retcode = cmd_utils.ExecuteOneShellCommand(cmd) 86 cmd, args.timeout, 95 logging.warn("Retrying... (%s)", cmd)
|
/test/vts-testcase/kernel/memory/ |
D | MemorySystemStressTest.py | 39 cmd = ['chmod +x', str(self._STRESSAPPTEST)] 40 self.shell.Execute(' '.join(cmd)) 55 cmd = [str(self._STRESSAPPTEST), '-W ' '-M', str(self._mem), '-s', str(self._DURATION_SEC)] 56 logging.info(cmd) 57 results = self.shell.Execute(' '.join(cmd))
|
/test/vts-testcase/kernel/ltp/testcase/ |
D | Android.bp | 30 …cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 64 False… 46 …cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 64 True … 62 …cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 64 False… 78 …cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 64 True … 94 …cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 32 False… 110 …cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) arm 32 True … 126 …cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) x86 64 False… 142 …cmd: "export ANDROID_BUILD_TOP=$$(pwd) && python3 $(location tools/gen_ltp_config.py) x86 32 False…
|
/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/script/ |
D | diagnose.py | 24 def runCommand(cmd, description): argument 33 returnCode = subprocess.call(cmd.split(' ')) 35 print 'Error occured when executing following command:', cmd
|
/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/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/harnesses/tradefed/tests/src/com/android/tradefed/targetprep/ |
D | VtsHalAdapterPreparerTest.java | 66 public boolean waitCmdResultWithDelay(ITestDevice device, String cmd, in waitCmdResultWithDelay() argument 72 public boolean retry(ITestDevice device, String cmd, String validation_cmd, in retry() argument 74 device.executeShellCommand(cmd); in retry() 81 for (String cmd : cmds) { in retry() 82 device.executeShellCommand(cmd); in retry() 170 for (String cmd : adapterCmds) { in testOnSetUpAdapterMultipleInstance() 171 verify(mDevice, times(1)).executeShellCommand(eq(cmd)); in testOnSetUpAdapterMultipleInstance()
|
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/testtype/ |
D | VtsMultiDeviceTestTest.java | 99 private void assertCommand(String[] cmd) { in assertCommand() argument 100 assertEquals(cmd[0], PYTHON_BINARY); in assertCommand() 101 assertEquals(cmd[1], "-m"); in assertCommand() 102 assertEquals(cmd[2], TEST_CASE_PATH.replace("/", ".")); in assertCommand() 103 assertTrue(cmd[3].endsWith(".json")); in assertCommand() 104 assertEquals(cmd.length, 4); in assertCommand() 188 String[] cmd, CommandResult commandResult, long testTimeout) { in createMockVtsPythonRunnerHelper() 189 assertCommand(cmd); in createMockVtsPythonRunnerHelper() 191 createResult(cmd[3]); in createMockVtsPythonRunnerHelper()
|
/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/utils/python/hal/ |
D | hal_service_name_utils.py | 48 cmd = binary 50 cmd += " -c " 51 cmd += " -b " + bitness + " " + hal 52 cmd_results = shell.Execute(str(cmd))
|
/test/vts-testcase/vndk/ |
D | utils.py | 34 cmd = ["adb", "-s", self._serial_number, "pull", src, dst] 35 subprocess.check_call(cmd, shell=False, stdin=subprocess.PIPE, 48 cmd = ["adb", "-s", self._serial_number, "shell"] 49 cmd.extend(args) 50 proc = subprocess.Popen(cmd, shell=False, stdin=subprocess.PIPE,
|
/test/framework/harnesses/host_controller/tfc/ |
D | tfc_client_test.py | 83 cmd = command_attempt.CommandAttempt( 95 normal_event = cmd.CreateCommandEvent( 101 error_event = cmd.CreateCommandEvent( 108 complete_event = cmd.CreateInvocationCompletedEvent(
|
/test/vts/agents/hal/ |
D | AgentRequestHandler.cpp | 139 char* cmd = NULL; local 160 asprintf(&cmd, 168 asprintf(&cmd, 177 asprintf(&cmd, 186 asprintf(&cmd, 206 &cmd, 218 if (cmd) { 219 LOG(INFO) << "Launch a driver - " << cmd; 220 system(cmd); 222 free(cmd);
|