Home
last modified time | relevance | path

Searched refs:SUCCESS (Results 1 – 25 of 156) sorted by relevance

1234567

/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DFastbootDeviceFlasherTest.java131 fastbootResult.setStatus(CommandStatus.SUCCESS); in testGetImageVersion()
149 fastbootResult.setStatus(CommandStatus.SUCCESS); in testGetCurrentSlot_fastboot()
195 fastbootInValidResult.setStatus(CommandStatus.SUCCESS); in testRetryGetVersionCommand()
202 fastbootValidResult.setStatus(CommandStatus.SUCCESS); in testRetryGetVersionCommand()
298 fastbootOutput.setStatus(CommandStatus.SUCCESS); in testWipeCache_exists()
310 fastbootOutput.setStatus(CommandStatus.SUCCESS); in testWipeCache_exists()
347 fastbootOutput.setStatus(CommandStatus.SUCCESS); in testWipeCache_not_exists()
373 fastbootOutput.setStatus(CommandStatus.SUCCESS); in testWipeCache_not_exists_error()
392 result.setStatus(CommandStatus.SUCCESS); in doTestFlashWithWipe()
533 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testCheckAndFlashBootloader()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/suite/checker/
DUserCheckerTest.java53 assertEquals(CheckStatus.SUCCESS, checker.preExecutionCheck(preDevice).getStatus()); in testNoWarningsIsSuccess()
57 assertEquals(CheckStatus.SUCCESS, checker.postExecutionCheck(postDevice).getStatus()); in testNoWarningsIsSuccess()
73 assertEquals(CheckStatus.SUCCESS, checker.preExecutionCheck(preDevice).getStatus()); in testSwitchIsSuccess()
83 assertEquals(CheckStatus.SUCCESS, checker.postExecutionCheck(postDevice).getStatus()); in testSwitchIsSuccess()
102 assertEquals(CheckStatus.SUCCESS, checker.preExecutionCheck(preDevice).getStatus()); in testCreateIsSuccess()
112 assertEquals(CheckStatus.SUCCESS, checker.postExecutionCheck(postDevice).getStatus()); in testCreateIsSuccess()
132 assertEquals(CheckStatus.SUCCESS, checker.preExecutionCheck(preDevice).getStatus()); in testCreateCleanup()
144 assertEquals(CheckStatus.SUCCESS, checker.postExecutionCheck(postDevice).getStatus()); in testCreateCleanup()
164 assertEquals(CheckStatus.SUCCESS, checker.preExecutionCheck(preDevice).getStatus()); in testCreateCleanup_cleanupFail()
197 assertEquals(CheckStatus.SUCCESS, checker.preExecutionCheck(preDevice).getStatus()); in testAllErrorsIsFailed()
[all …]
DSystemServerFileDescriptorCheckerTest.java50 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testFailToGetPid()
51 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testFailToGetPid()
66 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testFailToGetFdCount()
67 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testFailToGetFdCount()
82 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testAcceptableFdCount()
83 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testAcceptableFdCount()
98 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testUnacceptableFdCount()
110 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testUserBuild()
111 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testUserBuild()
DDeviceSettingCheckerTest.java68 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSettingsUnchanged()
69 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testSettingsUnchanged()
95 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSettingsChanged()
123 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testIgnoredSettings()
124 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testIgnoredSettings()
148 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSettingsMissedPostExecution()
176 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSettingsNewPostExecution()
201 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testSettingsNonePreExecution()
DSystemServerStatusCheckerTest.java61 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSystemServerProcessNotRestarted()
62 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testSystemServerProcessNotRestarted()
73 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSystemServerProcessRestartedWithoutDeviceReboot()
88 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSystemServerProcessRestartedWithAbnormalDeviceReboot()
105 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testFailToGetSystemServerProcess()
DShellStatusCheckerTest.java72 CheckStatus preState = CheckStatus.SUCCESS; in expectPreAndPost()
73 CheckStatus postState = CheckStatus.SUCCESS; in expectPreAndPost()
101 if (preState != CheckStatus.SUCCESS || !preRevertOk) { in expectPreAndPost()
111 if (postState != CheckStatus.SUCCESS || !postRevertOk) { in expectPreAndPost()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceTest.java229 adbResult.setStatus(CommandStatus.SUCCESS); in testDisableAdbRoot_unroot()
248 adbResult.setStatus(CommandStatus.SUCCESS); in setEnableAdbRootExpectations()
277 CommandResult adbBadResult = new CommandResult(CommandStatus.SUCCESS); in testEnableAdbRoot_rootRetry()
280 CommandResult adbResult = new CommandResult(CommandStatus.SUCCESS); in testEnableAdbRoot_rootRetry()
316 fastbootResult.setStatus(CommandStatus.SUCCESS); in testGetProductType_fastboot()
337 fastbootResult.setStatus(CommandStatus.SUCCESS); in testGetProductType_fastbootNonalpha()
358 fastbootResult.setStatus(CommandStatus.SUCCESS); in testGetProductType_fastbootFail()
974 return new CommandResult(CommandStatus.SUCCESS); in testExecuteFastbootCommand_state()
1032 CommandResult successResult = new CommandResult(CommandStatus.SUCCESS); in testExecuteFastbootCommand_recovery()
1218 setExecuteAdbCommandExpectations(new CommandResult(CommandStatus.SUCCESS), "usb"); in testSwitchToAdbUsb()
[all …]
DWaitDeviceRecoveryTest.java189 result.setStatus(CommandStatus.SUCCESS); in testRecoverDevice_unavailable_fastboot()
248 result.setStatus(CommandStatus.SUCCESS); in testRecoverDevice_fastboot()
275 andReturn(new CommandResult(CommandStatus.SUCCESS)); in testRecoverDeviceBootloader_fastboot()
283 andReturn(new CommandResult(CommandStatus.SUCCESS)); in testRecoverDeviceBootloader_fastboot()
302 andReturn(new CommandResult(CommandStatus.SUCCESS)); in testRecoverDeviceBootloader_unavailable()
310 andReturn(new CommandResult(CommandStatus.SUCCESS)); in testRecoverDeviceBootloader_unavailable()
DRemoteAndroidDeviceTest.java84 adbResult.setStatus(CommandStatus.SUCCESS); in testAdbConnect()
87 adbResultConfirmation.setStatus(CommandStatus.SUCCESS); in testAdbConnect()
103 adbResult.setStatus(CommandStatus.SUCCESS); in testAdbConnect_fails()
122 adbResult.setStatus(CommandStatus.SUCCESS); in testAdbConnect_fails_confirmation()
137 adbResult.setStatus(CommandStatus.SUCCESS); in testAdbDisconnect()
DDeviceManagerTest.java481 EasyMock.eq("help"))).andReturn(new CommandResult(CommandStatus.SUCCESS)); in testAllocateDevice_fastboot()
484 CommandResult fastbootResult = new CommandResult(CommandStatus.SUCCESS); in testAllocateDevice_fastboot()
773 CommandResult connectResult = new CommandResult(CommandStatus.SUCCESS); in testConnectToTcpDevice_connectFailed()
891 CommandResult connectResult = new CommandResult(CommandStatus.SUCCESS); in setConnectToTcpDeviceExpectations()
993 CommandResult stubAdbDevices = new CommandResult(CommandStatus.SUCCESS); in testFreeDevice_unavailable()
1054 CommandResult stubAdbDevices = new CommandResult(CommandStatus.SUCCESS); in testFreeDevice_recovery()
1118 CommandResult stubAdbDevices = new CommandResult(CommandStatus.SUCCESS); in testFreeDevice_unknown()
1183 CommandResult stubAdbDevices = new CommandResult(CommandStatus.SUCCESS); in testFreeDevice_unknown_subName()
DAndroidDebugBridgeWrapperTest.java53 res.setStatus(CommandStatus.SUCCESS); in testAdbVersionParsing()
69 res.setStatus(CommandStatus.SUCCESS); in testAdbVersionParsing_altFormat()
104 res.setStatus(CommandStatus.SUCCESS); in testAdbVersionParsing_partial()
120 res.setStatus(CommandStatus.SUCCESS); in testAdbVersionParsing_parseFail()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/
DPythonBinaryHostTestTest.java124 res.setStatus(CommandStatus.SUCCESS); in testRun()
166 res.setStatus(CommandStatus.SUCCESS); in testRun_failWithIncludeFilters()
205 res.setStatus(CommandStatus.SUCCESS); in testRun_withIncludeFilters()
267 res.setStatus(CommandStatus.SUCCESS); in testRun_withExcludeFilters()
329 res.setStatus(CommandStatus.SUCCESS); in testRun_withAdbPath()
374 res.setStatus(CommandStatus.SUCCESS); in testRun_withSharedLibInHostTestsDir()
419 res.setStatus(CommandStatus.SUCCESS); in testRun_withSharedLib()
532 newCommandResult(CommandStatus.SUCCESS, "NOT TEST OUTPUT"), in testRun_useTestOutputFileOptionSet_parsesSubprocessOutputFile()
546 newCommandResult(CommandStatus.SUCCESS, "NOT TEST OUTPUT"), in testRun_useTestOutputFileOptionSet_parsesUnitTestOutputFile()
566 newCommandResult(CommandStatus.SUCCESS, errorOutput), in testRun_useTestOutputFileOptionSet_logsErrorOutput()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DITestSuiteTest.java442 .andReturn(new StatusCheckerResult(CheckStatus.SUCCESS)); in testRun()
444 .andReturn(new StatusCheckerResult(CheckStatus.SUCCESS)); in testRun()
469 .andReturn(new StatusCheckerResult(CheckStatus.SUCCESS)); in testRun_whiteListPreparer()
471 .andReturn(new StatusCheckerResult(CheckStatus.SUCCESS)); in testRun_whiteListPreparer()
547 .andReturn(new StatusCheckerResult(CheckStatus.SUCCESS)); in testRun_failedSystemChecker_reportFailure()
586 .andReturn(new StatusCheckerResult(CheckStatus.SUCCESS)); in testRun_failedSystemChecker_reportFailure_bugreport()
1260 .andReturn(new StatusCheckerResult(CheckStatus.SUCCESS)); in testRun_withCollectors()
1262 .andReturn(new StatusCheckerResult(CheckStatus.SUCCESS)); in testRun_withCollectors()
1312 .andReturn(new StatusCheckerResult(CheckStatus.SUCCESS)); in testRun_SkipOneModuleChecker()
1314 .andReturn(new StatusCheckerResult(CheckStatus.SUCCESS)); in testRun_SkipOneModuleChecker()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DGCSBucketUtil.java140 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in checkGSUtil()
186 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in copy()
286 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in makeBucket()
324 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in ls()
431 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in stat()
467 if (CommandStatus.SUCCESS.equals(res.getStatus())) { in md5Hash()
591 if (!force && !CommandStatus.SUCCESS.equals(res.getStatus())) { in remove()
650 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in removeBucket()
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DSystemServerStatusChecker.java49 return new StatusCheckerResult(CheckStatus.SUCCESS); in preExecutionCheck()
55 return new StatusCheckerResult(CheckStatus.SUCCESS); in preExecutionCheck()
58 StatusCheckerResult result = new StatusCheckerResult(CheckStatus.SUCCESS); in preExecutionCheck()
78 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
84 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
88 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
DSystemServerFileDescriptorChecker.java40 return new StatusCheckerResult(CheckStatus.SUCCESS); in preExecutionCheck()
49 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
54 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
60 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
70 return new StatusCheckerResult(CheckStatus.SUCCESS); in postExecutionCheck()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DRunUtilFuncTest.java105 CommandStatus.SUCCESS.equals(result.getStatus())); in testRunTimedCmd_repeatedOutput()
118 assertTrue(CommandStatus.SUCCESS.equals(result.getStatus())); in testRunTimedCmd_noTimeout()
148 CommandStatus.SUCCESS, in testRunTimedCmd_largeOutput()
171 CommandStatus.SUCCESS, in testUnsetEnvVariable()
224 assertTrue(CommandStatus.SUCCESS.equals(result.getStatus())); in testRunTimedCmd_WithInputRedirect()
246 assertTrue(CommandStatus.SUCCESS.equals(result.getStatus())); in testRunTimedCmd_WithOutputRedirect()
DRunUtilTest.java119 assertEquals(CommandStatus.SUCCESS, in testRunTimed()
260 return runnable.run() ? CommandStatus.SUCCESS : CommandStatus.FAILED; in testRunEscalatingTimedRetry_timeout()
349 assertEquals(CommandStatus.SUCCESS, result.getStatus()); in testRuntimedCmd_withFileOutputStream()
377 assertEquals(CommandStatus.SUCCESS, result.getStatus()); in testRuntimedCmd_regularOutput_fileNull()
407 assertEquals(CommandStatus.SUCCESS, result.getStatus()); in testRuntimedCmd_notWritable()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DGceManagerTest.java454 cmd.setStatus(CommandStatus.SUCCESS); in testStartGce()
465 assertEquals(GceStatus.SUCCESS, res.getStatus()); in testStartGce()
582 cmd.setStatus(CommandStatus.SUCCESS); in testShutdownGce()
620 cmd.setStatus(CommandStatus.SUCCESS); in testShutdownGce_noWait()
655 cmd.setStatus(CommandStatus.SUCCESS); in testShutdownGce_withJsonKeyFile()
681 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testGetSshBugreport()
735 CommandResult res = new CommandResult(CommandStatus.SUCCESS); in testGetNestedSshBugreport()
891 shutdownResult.setStatus(CommandStatus.SUCCESS); in testStartGce_timeoutAndClean()
/tools/tradefederation/contrib/src/com/android/build/tests/
DKernelImageCheck.java133 assertEquals(CommandStatus.SUCCESS, result.getStatus()); in test_stable_abi()
141 assertEquals(CommandStatus.SUCCESS, result.getStatus()); in test_stable_abi()
182 assertEquals(CommandStatus.SUCCESS, result.getStatus()); in test_stable_abi()
193 assertEquals(CommandStatus.SUCCESS, result.getStatus()); in test_stable_abi()
197 assertEquals(CommandStatus.SUCCESS, result.getStatus()); in test_stable_abi()
219 CommandStatus.SUCCESS, in test_stable_abi()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DAtraceCollectorTest.java387 CommandResult commandResult = new CommandResult(CommandStatus.SUCCESS); in testExecutesPostProcessPar()
429 CommandResult commandResult = new CommandResult(CommandStatus.SUCCESS); in testExecutesPostProcessParDifferentFormat()
468 CommandResult commandResult = new CommandResult(CommandStatus.SUCCESS); in testExecutesPostProcessParNoStderr()
589 CommandResult commandResult = new CommandResult(CommandStatus.SUCCESS); in testProcessesMetricOutput()
625 CommandResult commandResult = new CommandResult(CommandStatus.SUCCESS); in testProcessesMetricOutputWithMalformedRegex()
657 CommandResult commandResult = new CommandResult(CommandStatus.SUCCESS); in testProcessesMetricOutputWithFileNotFound()
688 CommandResult commandResult = new CommandResult(CommandStatus.SUCCESS); in testProcessesMetricOutputTwoKeys()
DPerfettoPullerMetricCollectorTest.java104 cr.setStatus(CommandStatus.SUCCESS); in testProcessingFlow()
139 cr.setStatus(CommandStatus.SUCCESS); in testCompressedProcessingFlow()
212 cr.setStatus(CommandStatus.SUCCESS); in testBinaryArgs()
246 cr.setStatus(CommandStatus.SUCCESS); in testTraceProcessorArgsDefaults()
296 cr.setStatus(CommandStatus.SUCCESS); in testTraceProcessorAdditionalArgs()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DRunUtil.java186 if (CommandStatus.SUCCESS.equals(result.getStatus())) { in runTimedCmdRetry()
302 if (CommandStatus.SUCCESS.equals(result.getStatus())) { in runTimedCmdSilentlyRetry()
428 if (runTimed(opTimeout, runnable, true) == CommandStatus.SUCCESS) { in runTimedRetry()
445 if (runTimed(opTimeout, runnable, true) == CommandStatus.SUCCESS) { in runFixedTimedRetry()
465 if (runTimed(opTimeout, runnable, true) == CommandStatus.SUCCESS) { in runEscalatingTimedRetry()
565 status = mRunnable.run() ? CommandStatus.SUCCESS : CommandStatus.FAILED; in run()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/adb/
DAdbStopServerPreparerTest.java100 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testSetup_tearDown()
124 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testSetup_fail_tearDown()
156 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testNoAdb()
195 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testAdbFromEnv()
221 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in mockTearDown()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/binary/
DExecutableHostTestTest.java119 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testRunHostExecutable()
148 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testRunHostExecutable_relativePath()
181 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testRunHostExecutable_dnae()
232 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testRunHostExecutable_search()
265 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testRunHostExecutable_notFound()

1234567