Home
last modified time | relevance | path

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

123456789

/tools/tradefederation/core/common_util/com/android/tradefed/util/
DIRunUtil.java58 public default CommandResult getResult() { in getResult()
121 public CommandResult runTimedCmd(final long timeout, final String... command); in runTimedCmd()
134 public CommandResult runTimedCmdWithOutputMonitor( in runTimedCmdWithOutputMonitor()
149 public CommandResult runTimedCmdWithOutputMonitor( in runTimedCmdWithOutputMonitor()
172 public CommandResult runTimedCmdWithOutputMonitor( in runTimedCmdWithOutputMonitor()
191 public CommandResult runTimedCmd( in runTimedCmd()
204 public CommandResult runTimedCmdRetry(final long timeout, long retryInterval, in runTimedCmdRetry()
220 public CommandResult runTimedCmdRetryWithOutputMonitor( in runTimedCmdRetryWithOutputMonitor()
236 public CommandResult runTimedCmdSilently(final long timeout, final String... command); in runTimedCmdSilently()
249 public CommandResult runTimedCmdSilentlyRetry(final long timeout, long retryInterval, in runTimedCmdSilentlyRetry()
[all …]
DRunUtil.java171 public CommandResult runTimedCmd(final long timeout, final String... command) { in runTimedCmd()
177 public CommandResult runTimedCmdWithOutputMonitor( in runTimedCmdWithOutputMonitor()
185 public CommandResult runTimedCmd( in runTimedCmd()
195 public CommandResult runTimedCmdWithOutputMonitor( in runTimedCmdWithOutputMonitor()
207 public CommandResult runTimedCmdWithOutputMonitor( in runTimedCmdWithOutputMonitor()
274 CommandResult result = osRunnable.getResult(); in runTimedCmdWithOutputMonitor()
320 public CommandResult runTimedCmdRetry( in runTimedCmdRetry()
327 public CommandResult runTimedCmdRetryWithOutputMonitor( in runTimedCmdRetryWithOutputMonitor()
333 CommandResult result = null; in runTimedCmdRetryWithOutputMonitor()
395 public CommandResult runTimedCmdWithInput(final long timeout, String input, in runTimedCmdWithInput()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DAndroidDebugBridgeWrapperTest.java23 import com.android.tradefed.util.CommandResult;
57 CommandResult res = new CommandResult(); in testAdbVersionParsing()
69 CommandResult res = new CommandResult(); in testAdbVersionParsing_altFormat()
84 CommandResult res = new CommandResult(); in testAdbVersionParse_runFail()
96 CommandResult res = new CommandResult(); in testAdbVersionParsing_partial()
108 CommandResult res = new CommandResult(); in testAdbVersionParsing_parseFail()
DFastbootHelperTest.java39 import com.android.tradefed.util.CommandResult;
139 CommandResult fakeRes = new CommandResult(CommandStatus.FAILED); in testIsFastbootAvailable_oldVersion()
151 CommandResult fakeRes = new CommandResult(CommandStatus.FAILED); in testIsFastbootAvailable_noBinary()
163 CommandResult fakeRes = new CommandResult(CommandStatus.FAILED); in testGetDevice_fail()
177 CommandResult fakeRes = new CommandResult(CommandStatus.SUCCESS); in testExecuteCommand()
193 CommandResult fakeRes = new CommandResult(CommandStatus.FAILED); in testExecuteCommand_fail()
208 CommandResult fakeRes = new CommandResult(CommandStatus.SUCCESS); in testGetBootloaderAndFastbootdDevices()
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DNativeCodeCoverageFlusherTest.java73 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testClearCoverageMeasurements_rmCommandCalled()
112 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testFlushCoverageAllProcesses_flushAllCommandCalled()
135 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testFlushCoverageSpecificProcesses_flushSpecificCommandCalled()
155 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testFlushNotHandled_flushNotCalled()
175 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testFlushStatusReadFailed_flushNotCalled()
194 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testFlushStatusReadEmpty_flushNotCalled()
212 CommandResult resultNotHandled = new CommandResult(CommandStatus.SUCCESS); in testFlushOnlySigCgt_flushSpecificProcesses()
216 CommandResult resultHandled = new CommandResult(CommandStatus.SUCCESS); in testFlushOnlySigCgt_flushSpecificProcesses()
220 CommandResult resultEmpty = new CommandResult(CommandStatus.SUCCESS); in testFlushOnlySigCgt_flushSpecificProcesses()
DFuseUtilTest.java50 CommandResult haveFuseZipInstalledResult = new CommandResult(); in testCanMountZip()
54 .thenReturn(new CommandResult(CommandStatus.SUCCESS)) in testCanMountZip()
67 CommandResult noFuseZipInstalledResult = new CommandResult(); in testCanMountZip_unsupported()
71 .thenReturn(new CommandResult(CommandStatus.SUCCESS)) in testCanMountZip_unsupported()
84 .thenReturn(new CommandResult(CommandStatus.SUCCESS)); in testMountZip()
102 .thenReturn(new CommandResult(CommandStatus.SUCCESS)); in testUnmountZip()
DTargetFileUtilsTest.java82 CommandResult commandResult = new CommandResult(CommandStatus.SUCCESS); in testFindFile()
102 CommandResult commandResult = new CommandResult(CommandStatus.FAILED); in testFindFile_w_cmd_result_fail()
116 CommandResult commandResult = new CommandResult(CommandStatus.SUCCESS); in testFindFile_w_empty_line_stdout()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/mobly/
DMoblyBinaryHostTestTest.java46 import com.android.tradefed.util.CommandResult;
141 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testRun_withPythonBinariesOption()
151 return new CommandResult(CommandStatus.SUCCESS); in testRun_withPythonBinariesOption()
182 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testRun_withParFileNameOption()
192 return new CommandResult(CommandStatus.SUCCESS); in testRun_withParFileNameOption()
228 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testRun_withStdLogOption()
241 return new CommandResult(CommandStatus.SUCCESS); in testRun_withStdLogOption()
256 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testRun_testResultIsMissing()
262 return new CommandResult(CommandStatus.SUCCESS); in testRun_testResultIsMissing()
278 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testRun_shouldActivateVenvAndCleanUp_whenVenvIsSet()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/device/connection/
DAdbTcpConnectionTest.java30 import com.android.tradefed.util.CommandResult;
68 CommandResult adbResult = new CommandResult(); in testAdbConnect()
71 CommandResult adbResultConfirmation = new CommandResult(); in testAdbConnect()
93 CommandResult adbResult = new CommandResult(); in testAdbConnect_fails()
120 CommandResult adbResult = new CommandResult(); in testAdbConnect_fails_confirmation()
143 CommandResult adbResult = new CommandResult(); in testAdbDisconnect()
158 CommandResult adbResult = new CommandResult(); in testAdbDisconnect_fails()
/tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/
DFilesystemRootCheckerTest.java26 import com.android.tradefed.util.CommandResult;
47 CommandResult defaultResult = new CommandResult(CommandStatus.SUCCESS); in setup()
64 CommandResult findNoRootResult = new CommandResult(CommandStatus.SUCCESS); in testNoRootFiles()
86 CommandResult findRootFileResult = new CommandResult(CommandStatus.SUCCESS); in testRootFile()
107 CommandResult findRootDirectoryResult = new CommandResult(CommandStatus.SUCCESS); in testRootDirectory()
127 CommandResult findRootFileResult = new CommandResult(CommandStatus.SUCCESS); in testModuleStartWithRootFile()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DFastbootDeviceFlasherTest.java44 import com.android.tradefed.util.CommandResult;
164 CommandResult fastbootResult = new CommandResult(); in testGetImageVersion()
181 CommandResult fastbootResult = new CommandResult(); in testGetCurrentSlot_fastboot()
222 CommandResult fastbootInValidResult = new CommandResult(); in testRetryGetVersionCommand()
229 CommandResult fastbootValidResult = new CommandResult(); in testRetryGetVersionCommand()
323 CommandResult fastbootOutput = new CommandResult(); in testWipeCache_exists()
336 fastbootOutput = new CommandResult(); in testWipeCache_exists()
373 CommandResult fastbootOutput = new CommandResult(); in testWipeCache_not_exists()
399 CommandResult fastbootOutput = new CommandResult(); in testWipeCache_not_exists_error()
419 CommandResult result = new CommandResult(); in doTestFlashWithWipe()
[all …]
DDisableSELinuxTargetPreparerTest.java27 import com.android.tradefed.util.CommandResult;
64 CommandResult result = new CommandResult(); in testSetUpSuccess_permissive()
76 CommandResult result = new CommandResult(); in testSetUpSuccess_enforced_rootBefore()
94 CommandResult result = new CommandResult(); in testSetUpSuccess_enforced_notRootBefore()
117 CommandResult result = new CommandResult(); in testSetUp_rootFail()
135 CommandResult result = new CommandResult(); in testSetUp_disableSELinuxFail()
DPythonVirtualenvPreparerTest.java40 import com.android.tradefed.util.CommandResult;
71 .thenReturn(new CommandResult(CommandStatus.SUCCESS)); in testInstallDeps_reqFile_success()
82 .thenReturn(new CommandResult(CommandStatus.SUCCESS)); in testInstallDeps_depModule_success()
94 .thenReturn(new CommandResult(CommandStatus.TIMED_OUT)); in testInstallDeps_reqFile_failure()
109 .thenReturn(new CommandResult(CommandStatus.TIMED_OUT)); in testInstallDeps_depModule_failure()
129 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testStartVirtualenv_throwTSE_whenVirtualenvNotFound()
149 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testStartVirtualenv_throwTSE_whenVirtualenvIsTooOld()
DRunCommandTargetPreparerTest.java38 import com.android.tradefed.util.CommandResult;
86 CommandResult res = new CommandResult(); in testSetUp()
107 CommandResult res = new CommandResult(); in testSetUp_withTimeout()
144 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testTearDown()
160 CommandResult res = new CommandResult(); in testTeardown_withTimeout()
184 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testTeardown_withTestUserToken()
201 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testTeardown_withTestUserToken_propertyNotSet()
375 CommandResult res = new CommandResult(); in testCmd_withTestUserToken_propertyNotSet()
396 CommandResult res = new CommandResult(); in testCmd_withTestUserToken()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/adb/
DAdbStopServerPreparerTest.java30 import com.android.tradefed.util.CommandResult;
108 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testSetup_tearDown()
129 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testSetup_fail_tearDown()
135 CommandResult failedResult = new CommandResult(CommandStatus.FAILED); in testSetup_fail_tearDown()
158 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testNoAdb()
194 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testAdbFromEnv()
215 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in mockTearDown()
/tools/tradefederation/core/src/com/android/tradefed/util/
DGCSBucketUtil.java137 CommandResult res = getRunUtil() in checkGSUtil()
156 public CommandResult copy(String source, String dest) throws IOException { in copy()
184 CommandResult res = run in copy()
267 public CommandResult makeBucket(String projectId) throws IOException { in makeBucket()
282 CommandResult res = getRunUtil() in makeBucket()
316 CommandResult res = in ls()
423 CommandResult res = in stat()
459 CommandResult res = in md5Hash()
497 public CommandResult pull(Path bucketPath) throws IOException { in pull()
508 public CommandResult pull(Path bucketPath, File localFile) throws IOException { in pull()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DArtRunTestTest.java35 import com.android.tradefed.util.CommandResult;
123 private CommandResult createMockCommandResult(String stdout, String stderr, int exitCode) { in createMockCommandResult()
124 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in createMockCommandResult()
189 CommandResult mktempResult = in doTestRunSingleTest()
201 CommandResult dalvikvmResult = in doTestRunSingleTest()
212 CommandResult statStdoutResult = createMockCommandResult("7\n", "", /* exitCode */ 0); in doTestRunSingleTest()
217 CommandResult md5sumStdoutResult = in doTestRunSingleTest()
230 CommandResult statStderrResult = createMockCommandResult("9\n", "", /* exitCode */ 0); in doTestRunSingleTest()
235 CommandResult md5sumStderrResult = in doTestRunSingleTest()
312 CommandResult mktempResult = in testRunSingleTest_nonZeroExitCode()
[all …]
DPythonUnitTestRunnerTest.java30 import com.android.tradefed.util.CommandResult;
125 public CommandResult getCommandResult() { in getCommandResult()
126 CommandResult cr = new CommandResult(); in getCommandResult()
145 CommandResult c = new CommandResult(); in testCheckPythonVersion_276given270min()
152 CommandResult c = new CommandResult(); in testCheckPythonVersion_276given331min()
165 CommandResult c = new CommandResult(); in testCheckPythonVersion_300given276min()
172 CommandResult expectedResult = testResult.getCommandResult(); in getMockRunUtil()
DGoogleBenchmarkResultParserTest.java30 import com.android.tradefed.util.CommandResult;
98 CommandResult cmd_result = new CommandResult(); in testParseSimpleFile()
154 CommandResult cmd_result = new CommandResult(); in testParseSimpleFile_twoTests()
180 CommandResult cmd_result = new CommandResult(); in testParse_contextError()
195 CommandResult cmd_result = new CommandResult(); in testParse_noBenchmarkResults()
212 CommandResult cmd_result = new CommandResult(); in testParse_benchmarkError()
252 CommandResult cmd_result = new CommandResult(); in testParseSimpleFile_withWarning()
279 CommandResult cmd_result = new CommandResult(); in testParse_ignore()
311 CommandResult cmd_result = new CommandResult(); in testParse_aborted()
333 CommandResult cmd_result = new CommandResult(); in testParse_timedout()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DHostOrchestratorUtil.java22 import com.android.tradefed.util.CommandResult;
78 CommandResult commandRes = in pullCvdHostLogs()
105 public CommandResult powerwashGce() { in powerwashGce()
113 CommandResult curlRes = new CommandResult(CommandStatus.EXCEPTION); in powerwashGce()
154 public CommandResult stopGce() { in stopGce()
156 return new CommandResult(CommandStatus.EXCEPTION); in stopGce()
160 public CommandResult snapshotGce() { in snapshotGce()
162 return new CommandResult(CommandStatus.EXCEPTION); in snapshotGce()
166 public CommandResult restoreSnapshotGce() { in restoreSnapshotGce()
168 return new CommandResult(CommandStatus.EXCEPTION); in restoreSnapshotGce()
[all …]
DRemoteSshUtil.java20 import com.android.tradefed.util.CommandResult;
43 public static CommandResult remoteSshCommandExec( in remoteSshCommandExec()
52 CommandResult resSsh = null; in remoteSshCommandExec()
70 resSsh = new CommandResult(CommandStatus.EXCEPTION); in remoteSshCommandExec()
105 public static CommandResult remoteSshCommandExec( in remoteSshCommandExec()
/tools/tradefederation/core/javatests/com/android/tradefed/device/cloud/
DOxygenClientTest.java28 import com.android.tradefed.util.CommandResult;
182 CommandResult res = new CommandResult(); in testLease()
193 CommandResult res = mOxygenClient.leaseDevice(mBuildInfo, mTestDeviceOptions, attributes); in testLease()
238 CommandResult res = new CommandResult(); in testLeaseWithoutBuildId()
249 CommandResult res = mOxygenClient.leaseDevice(mBuildInfo, testDeviceOptions, attributes); in testLeaseWithoutBuildId()
282 CommandResult res = new CommandResult(); in testLeaseMultipleDevice()
293 CommandResult res = in testLeaseMultipleDevice()
324 CommandResult res = new CommandResult(); in testRelease()
411 CommandResult res = new CommandResult(); in testLeaseWithBootImageAndBootArtifact()
422 CommandResult res = mOxygenClient.leaseDevice(mBuildInfo, mTestDeviceOptions, attributes); in testLeaseWithBootImageAndBootArtifact()
[all …]
DRemoteFileUtilTest.java24 import com.android.tradefed.util.CommandResult;
63 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testFetchRemoteFile()
98 CommandResult res = new CommandResult(CommandStatus.FAILED); in testFetchRemoteFile_fail()
127 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testFetchRemoteDir()
162 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testPushFileToRemote()
203 CommandResult res = new CommandResult(CommandStatus.FAILED); in testPushFileToRemote_fail()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/binary/
DExecutableHostTestTest.java44 import com.android.tradefed.util.CommandResult;
126 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testRunHostExecutable()
155 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testRunHostExecutable_relativePath()
188 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testRunHostExecutable_dnae()
239 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testRunHostExecutable_search()
272 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testRunHostExecutable_notFound()
302 CommandResult result = new CommandResult(CommandStatus.FAILED); in testRunHostExecutable_failure()
307 new Answer<CommandResult>() { in testRunHostExecutable_failure()
310 public CommandResult answer(InvocationOnMock invocation) in testRunHostExecutable_failure()
348 CommandResult result = new CommandResult(CommandStatus.TIMED_OUT); in testRunHostExecutable_timeout()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/monitoring/collector/
DResourceMetricUtilTest.java28 import com.android.tradefed.util.CommandResult;
46 CommandResult mockResult = in testGetCommandResponse()
47 new CommandResult() { in testGetCommandResponse()
68 CommandResult mockResult = in testGetCommandResponse_failed()
69 new CommandResult() { in testGetCommandResponse_failed()

123456789