/test/vts/tools/vts-core-tradefed/tests/src/com/android/compatibility/tradefed/util/ |
D | TargetFileUtilsTest.java | 78 CommandResult commandResult = new CommandResult(CommandStatus.SUCCESS); in testFindFile() local 79 commandResult.setStdout("path1\npath2\npath3\n"); in testFindFile() 80 commandResult.setExitCode(0); in testFindFile() 83 .andReturn(commandResult); in testFindFile() 99 CommandResult commandResult = new CommandResult(CommandStatus.FAILED); in testFindFile_w_cmd_result_fail() local 100 commandResult.setStdout("path1\npath2\npath3\n"); in testFindFile_w_cmd_result_fail() 101 commandResult.setExitCode(0); in testFindFile_w_cmd_result_fail() 103 .andReturn(commandResult); in testFindFile_w_cmd_result_fail() 114 CommandResult commandResult = new CommandResult(CommandStatus.SUCCESS); in testFindFile_w_empty_line_stdout() local 115 commandResult.setStdout(""); in testFindFile_w_empty_line_stdout() [all …]
|
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/util/ |
D | VtsPythonRunnerHelperTest.java | 103 CommandResult commandResult = new CommandResult(); in testProcessRunSuccess() local 105 mVtsPythonRunnerHelper.runPythonRunner(mPythonCmd, commandResult, mTestTimeout); in testProcessRunSuccess() 107 assertEquals(commandResult.getStatus(), CommandStatus.SUCCESS); in testProcessRunSuccess() 117 CommandResult commandResult = new CommandResult(); in testProcessRunFailed() local 119 mVtsPythonRunnerHelper.runPythonRunner(mPythonCmd, commandResult, mTestTimeout); in testProcessRunFailed() 121 assertEquals(commandResult.getStatus(), CommandStatus.FAILED); in testProcessRunFailed() 131 CommandResult commandResult = new CommandResult(); in testProcessRunTimeout() local 133 mVtsPythonRunnerHelper.runPythonRunner(mPythonCmd, commandResult, mTestTimeout); in testProcessRunTimeout() 135 assertEquals(commandResult.getStatus(), CommandStatus.TIMED_OUT); in testProcessRunTimeout() 149 CommandResult commandResult = new CommandResult(); in testProcessRunInterrupted() local [all …]
|
/test/vts/harnesses/tradefed/src/com/android/tradefed/util/ |
D | VtsPythonRunnerHelper.java | 71 public String runPythonRunner(String[] cmd, CommandResult commandResult, long timeout) { in runPythonRunner() argument 75 return runPythonRunner(cmd, commandResult, timeout, stdOut, stdErr); in runPythonRunner() 80 commandResult.setStdout(((ByteArrayOutputStream) stdOut).toString("UTF-8")); in runPythonRunner() 81 commandResult.setStderr(((ByteArrayOutputStream) stdErr).toString("UTF-8")); in runPythonRunner() 97 public String runPythonRunner(String[] cmd, CommandResult commandResult, long timeout, in runPythonRunner() argument 111 commandResult.setStatus(commandStatus); in runPythonRunner()
|
/test/vts/harnesses/tradefed/src/com/android/tradefed/targetprep/ |
D | VtsCoveragePreparer.java | 158 CommandResult commandResult = mRunUtil.runTimedCmd(BASE_TIMEOUT, cmd); in setUp() local 159 if (commandResult == null || commandResult.getStatus() != CommandStatus.SUCCESS in setUp() 175 CommandResult commandResult = mRunUtil.runTimedCmd(BASE_TIMEOUT, cmd); in setUp() local 176 if (commandResult == null || commandResult.getStatus() != CommandStatus.SUCCESS in setUp() 187 CommandResult commandResult = mRunUtil.runTimedCmd(BASE_TIMEOUT, cmd); in setUp() local 189 if (commandResult == null || commandResult.getStatus() != CommandStatus.SUCCESS in setUp()
|
/test/vts/tools/vts-core-tradefed/src/com/android/tradefed/util/ |
D | TargetFileUtils.java | 73 CommandResult commandResult = device.executeShellV2Command("stat -c %a " + filepath); in getPermission() local 74 if (!CommandStatus.SUCCESS.equals(commandResult.getStatus())) { in getPermission() 76 commandResult.getStdout(), commandResult.getStderr()); in getPermission() 79 return commandResult.getStdout().trim(); in getPermission()
|
/test/vts/harnesses/tradefed/src/com/android/tradefed/device/metric/ |
D | VtsCoverageCollector.java | 97 CommandResult commandResult = new CommandResult(); in onTestRunEnd() local 99 mPythonRunnerHelper.runPythonRunner(cmd, commandResult, BASE_TIMEOUT); in onTestRunEnd() 100 if (commandResult == null || commandResult.getStatus() != CommandStatus.SUCCESS) { in onTestRunEnd()
|
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/targetprep/ |
D | VtsCoveragePreparerTest.java | 109 CommandResult commandResult = new CommandResult(); in setUp() local 110 commandResult.setStatus(CommandStatus.SUCCESS); in setUp() 111 doReturn(commandResult).when(mRunUtil).runTimedCmd(anyLong(), any()); in setUp()
|
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/testtype/ |
D | VtsMultiDeviceTestTest.java | 188 String[] cmd, CommandResult commandResult, long testTimeout) { in createMockVtsPythonRunnerHelper() 195 commandResult.setStatus(status); in createMockVtsPythonRunnerHelper()
|
/test/vts/harnesses/tradefed/src/com/android/tradefed/testtype/ |
D | VtsMultiDeviceTest.java | 1345 CommandResult commandResult = new CommandResult(); in doRunTest() local 1357 cmd.toArray(new String[0]), commandResult, timeout, stdOut, stdErr); in doRunTest() 1359 if (commandResult != null) { in doRunTest() 1360 CommandStatus commandStatus = commandResult.getStatus(); in doRunTest()
|