Home
last modified time | relevance | path

Searched refs:CommandResult (Results 1 – 25 of 71) sorted by relevance

123

/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DAndroidDebugBridgeWrapperTest.java20 import com.android.tradefed.util.CommandResult;
52 CommandResult res = new CommandResult(); in testAdbVersionParsing()
68 CommandResult res = new CommandResult(); in testAdbVersionParsing_altFormat()
87 CommandResult res = new CommandResult(); in testAdbVersionParse_runFail()
103 CommandResult res = new CommandResult(); in testAdbVersionParsing_partial()
119 CommandResult res = new CommandResult(); in testAdbVersionParsing_parseFail()
DRemoteAndroidDeviceTest.java19 import com.android.tradefed.util.CommandResult;
76 CommandResult adbResult = new CommandResult(); in testAdbConnect()
79 CommandResult adbResultConfirmation = new CommandResult(); in testAdbConnect()
96 CommandResult adbResult = new CommandResult(); in testAdbConnect_fails()
114 CommandResult adbResult = new CommandResult(); in testAdbConnect_fails_confirmation()
130 CommandResult adbResult = new CommandResult(); in testAdbDisconnect()
143 CommandResult adbResult = new CommandResult(); in testAdbDisconnect_fails()
DFastbootHelperTest.java19 import com.android.tradefed.util.CommandResult;
112 CommandResult fakeRes = new CommandResult(CommandStatus.FAILED); in testIsFastbootAvailable_oldVersion()
125 CommandResult fakeRes = new CommandResult(CommandStatus.FAILED); in testIsFastbootAvailable_noBinary()
138 CommandResult fakeRes = new CommandResult(CommandStatus.FAILED); in testGetDevice_fail()
157 CommandResult fakeRes = new CommandResult(CommandStatus.SUCCESS); in testExecuteCommand()
170 CommandResult fakeRes = new CommandResult(CommandStatus.FAILED); in testExecuteCommand_fail()
/tools/tradefederation/core/src/com/android/tradefed/util/
DIRunUtil.java87 public CommandResult runTimedCmd(final long timeout, final String... command); in runTimedCmd()
100 public CommandResult runTimedCmd( in runTimedCmd()
113 public CommandResult runTimedCmdRetry(final long timeout, long retryInterval, in runTimedCmdRetry()
125 public CommandResult runTimedCmdSilently(final long timeout, final String... command); in runTimedCmdSilently()
138 public CommandResult runTimedCmdSilentlyRetry(final long timeout, long retryInterval, in runTimedCmdSilentlyRetry()
150 CommandResult runTimedCmdWithInput(long timeout, String input, String... command); in runTimedCmdWithInput()
161 CommandResult runTimedCmdWithInput(long timeout, String input, List<String> command); in runTimedCmdWithInput()
DCommandResult.java22 public class CommandResult { class
31 public CommandResult() { in CommandResult() method in CommandResult
39 public CommandResult(CommandStatus status) { in CommandResult() method in CommandResult
DRunUtil.java130 public CommandResult runTimedCmd(final long timeout, final String... command) { in runTimedCmd()
138 public CommandResult runTimedCmd(final long timeout, OutputStream stdout, in runTimedCmd()
148 private CommandResult runTimedCmd(final long timeout, OutputStream stdout, in runTimedCmd()
150 final CommandResult result = new CommandResult(); in runTimedCmd()
164 CommandResult result, in createRunnableResult()
175 public CommandResult runTimedCmdRetry( in runTimedCmdRetry()
177 CommandResult result = null; in runTimedCmdRetry()
225 public CommandResult runTimedCmdWithInput(final long timeout, String input, in runTimedCmdWithInput()
234 public CommandResult runTimedCmdWithInput(final long timeout, String input, in runTimedCmdWithInput()
236 final CommandResult result = new CommandResult(); in runTimedCmdWithInput()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DPythonUnitTestRunnerTest.java26 import com.android.tradefed.util.CommandResult;
119 public CommandResult getCommandResult() { in getCommandResult()
120 CommandResult cr = new CommandResult(); in getCommandResult()
138 CommandResult c = new CommandResult(); in testCheckPythonVersion_276given270min()
145 CommandResult c = new CommandResult(); in testCheckPythonVersion_276given331min()
158 CommandResult c = new CommandResult(); in testCheckPythonVersion_300given276min()
165 CommandResult expectedResult = testResult.getCommandResult(); in getMockRunUtil()
/tools/tradefederation/core/src/com/android/tradefed/command/remote/
DExecCommandTracker.java34 private CommandResult.Status mStatus = CommandResult.Status.EXECUTING;
54 mStatus = CommandResult.Status.INVOCATION_ERROR; in invocationComplete()
56 mStatus = CommandResult.Status.INVOCATION_SUCCESS; in invocationComplete()
68 CommandResult getCommandResult() { in getCommandResult()
69 return new CommandResult( in getCommandResult()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DFastbootDeviceFlasherTest.java27 import com.android.tradefed.util.CommandResult;
130 CommandResult fastbootResult = new CommandResult(); in testGetImageVersion()
147 CommandResult fastbootResult = new CommandResult(); in testGetCurrentSlot_fastboot()
190 CommandResult fastbootInValidResult = new CommandResult(); in testRetryGetVersionCommand()
197 CommandResult fastbootValidResult = new CommandResult(); in testRetryGetVersionCommand()
288 CommandResult fastbootOutput = new CommandResult(); in testWipeCache_exists()
300 fastbootOutput = new CommandResult(); in testWipeCache_exists()
335 CommandResult fastbootOutput = new CommandResult(); in testWipeCache_not_exists()
359 CommandResult fastbootOutput = new CommandResult(); in testWipeCache_not_exists_error()
378 CommandResult result = new CommandResult(); in doTestFlashWithWipe()
[all …]
DPreloadedClassesPreparerTest.java24 import com.android.tradefed.util.CommandResult;
75 CommandResult result = new CommandResult(); in testSetUp_RemoteSuccess()
103 CommandResult result = new CommandResult(); in testSetUp_LocalSuccess()
123 CommandResult result = new CommandResult(); in testSetUp_WriteFailure()
DPythonVirtualenvPreparerTest.java29 import com.android.tradefed.util.CommandResult;
55 .andReturn(new CommandResult(CommandStatus.SUCCESS)); in testInstallDeps_reqFile_success()
66 new CommandResult(CommandStatus.SUCCESS)); in testInstallDeps_depModule_success()
77 .andReturn(new CommandResult(CommandStatus.TIMED_OUT)); in testInstallDeps_reqFile_failure()
92 new CommandResult(CommandStatus.TIMED_OUT)); in testInstallDeps_depModule_failure()
DRunHostCommandTargetPreparerTest.java21 import com.android.tradefed.util.CommandResult;
78 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testSetUp()
99 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testTearDown()
DSdkAvdPreparerTest.java27 import com.android.tradefed.util.CommandResult;
205 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testSetUp_failedCreateAvd()
227 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in setGetTargetsResponse()
239 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in setCreateAvdResponse()
249 private void setCreateAvdResponse(CommandResult result) { in setCreateAvdResponse()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DSandboxConfigurationFactoryTest.java28 import com.android.tradefed.util.CommandResult;
73 private void expectDumpCmd(CommandResult res) { in expectDumpCmd()
85 new IAnswer<CommandResult>() { in expectDumpCmd()
87 public CommandResult answer() throws Throwable { in expectDumpCmd()
109 CommandResult results = new CommandResult(); in testCreateConfigurationFromArgs()
130 CommandResult results = new CommandResult(); in testCreateConfigurationFromArgs_fail()
/tools/tradefederation/core/tests/src/com/android/tradefed/sandbox/
DSandboxConfigUtilTest.java25 import com.android.tradefed.util.CommandResult;
64 CommandResult result = new CommandResult(); in testDumpVersion()
88 CommandResult result = new CommandResult(); in testDumpVersion_failed()
DSandboxInvocationRunnerTest.java26 import com.android.tradefed.util.CommandResult;
58 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testPrepareAndRun()
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DGetLastCommandResultOp.java20 import com.android.tradefed.command.remote.CommandResult.Status;
32 class GetLastCommandResultOp extends RemoteOperation<CommandResult> {
80 protected CommandResult unpackResponseFromJson(JSONObject json) throws JSONException { in unpackResponseFromJson()
85 status = CommandResult.Status.valueOf(statusString); in unpackResponseFromJson()
113 return new CommandResult(status, errorDetails, state, runMetricsMap); in unpackResponseFromJson()
119 protected void packResponseIntoJson(CommandResult commandResult, JSONObject json) in packResponseIntoJson()
DCommandResult.java25 class CommandResult { class
40 CommandResult(Status status, String errorDetails, FreeDeviceState state, in CommandResult() method in CommandResult
48 public CommandResult(Status status) { in CommandResult() method in CommandResult
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/
DPythonBinaryHostTestTest.java26 import com.android.tradefed.util.CommandResult;
72 CommandResult res = new CommandResult(); in testRun()
105 CommandResult res = new CommandResult(); in testRunFail_exception()
138 CommandResult res = new CommandResult(); in testRunFail_failureOnly()
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DSdkBuildInfoTest.java18 import com.android.tradefed.util.CommandResult;
54 CommandResult result = new CommandResult(); in testGetSdkTargets()
/tools/tradefederation/core/src/com/android/tradefed/device/
DFastbootHelper.java20 import com.android.tradefed.util.CommandResult;
62 CommandResult fastbootResult = mRunUtil.runTimedCmdSilently(5000, mFastbootPath, "help"); in isFastbootAvailable()
84 CommandResult fastbootResult = in getDevices()
122 final CommandResult fastbootResult = mRunUtil.runTimedCmd(FASTBOOT_CMD_TIMEOUT, in executeCommand()
DINativeDevice.java31 import com.android.tradefed.util.CommandResult;
276 public CommandResult executeShellV2Command(String command) throws DeviceNotAvailableException; in executeShellV2Command()
290 public CommandResult executeShellV2Command( in executeShellV2Command()
309 public CommandResult executeShellV2Command( in executeShellV2Command()
340 public CommandResult executeFastbootCommand(String... commandArgs) in executeFastbootCommand()
354 public CommandResult executeFastbootCommand(long timeout, String... commandArgs) in executeFastbootCommand()
367 public CommandResult executeLongFastbootCommand(String... commandArgs) in executeLongFastbootCommand()
402 public CommandResult fastbootWipePartition(String partition) throws DeviceNotAvailableException; in fastbootWipePartition()
DRemoteAndroidDevice.java20 import com.android.tradefed.util.CommandResult;
124 CommandResult result = getRunUtil().runTimedCmd(DEFAULT_SHORT_CMD_TIMEOUT, "adb", in adbTcpConnect()
149 CommandResult resultConfirmation = in confirmAdbTcpConnect()
174 CommandResult result = getRunUtil().runTimedCmd(DEFAULT_SHORT_CMD_TIMEOUT, "adb", in adbTcpDisconnect()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DDeviceWiper.java25 import com.android.tradefed.util.CommandResult;
55 CommandResult r = device.executeLongFastbootCommand("-w"); in doFormat()
70 CommandResult r = device.executeLongFastbootCommand(op, partition); in performFastbootOp()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DRunUtilFuncTest.java101 CommandResult result = in testRunTimedCmd_repeatedOutput()
116 CommandResult result = RunUtil.getDefault().runTimedCmd(0l, "sleep", "35"); in testRunTimedCmd_noTimeout()
140 CommandResult result = in testRunTimedCmd_largeOutput()
164 CommandResult result = in testUnsetEnvVariable()
189 CommandResult result = runUtil.runTimedCmd(VERY_SHORT_TIMEOUT_MS, command); in testRunTimedCmd_timeout()

123