Home
last modified time | relevance | path

Searched refs:getStatus (Results 1 – 25 of 122) sorted by relevance

12345

/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()
179 assertEquals(CheckStatus.FAILED, result.getStatus()); in testCreateCleanup_cleanupFail()
[all …]
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()
96 assertEquals(CheckStatus.FAILED, mChecker.postExecutionCheck(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()
149 assertEquals(CheckStatus.FAILED, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testSettingsMissedPostExecution()
176 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSettingsNewPostExecution()
177 assertEquals(CheckStatus.FAILED, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testSettingsNewPostExecution()
[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()
100 assertEquals(CheckStatus.FAILED, postResult.getStatus()); in testUnacceptableFdCount()
110 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testUserBuild()
111 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testUserBuild()
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()
75 assertEquals(CheckStatus.FAILED, result.getStatus()); in testSystemServerProcessRestartedWithoutDeviceReboot()
88 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testSystemServerProcessRestartedWithAbnormalDeviceReboot()
90 assertEquals(CheckStatus.FAILED, result.getStatus()); in testSystemServerProcessRestartedWithAbnormalDeviceReboot()
104 assertEquals(CheckStatus.FAILED, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testFailToGetSystemServerProcess()
105 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testFailToGetSystemServerProcess()
DTimeStatusCheckerTest.java51 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testCheckTimeDiff_small()
66 assertEquals(CheckStatus.FAILED, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testCheckTimeDiff_large()
86 assertEquals(CheckStatus.FAILED, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testCheckTimeDiff_multiFailure()
87 assertEquals(CheckStatus.SUCCESS, mChecker.postExecutionCheck(mMockDevice).getStatus()); in testCheckTimeDiff_multiFailure()
DDeviceStorageStatusCheckerTest.java55 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testEnoughDeviceStorage()
67 assertEquals(CheckStatus.FAILED, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testInEnoughDeviceStorageOn1Partition()
80 assertEquals(CheckStatus.FAILED, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testNotEnoughDeviceStorageWithGivenStorageParameter()
93 assertEquals(CheckStatus.SUCCESS, mChecker.preExecutionCheck(mMockDevice).getStatus()); in testEnoughDeviceStorageWithGivenStorageParameter()
DEnforcedSeLinuxCheckerTest.java53 assertEquals(CheckStatus.SUCCESS, result.getStatus()); in testEnforced()
64 assertEquals(CheckStatus.SUCCESS, result.getStatus()); in testPermissive()
75 assertEquals(CheckStatus.FAILED, result.getStatus()); in testEnforced_failed()
/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()
192 res.getStatus(), in copy()
286 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in makeBucket()
291 res.getStatus(), in makeBucket()
324 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in ls()
330 res.getStatus(), in ls()
431 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in stat()
437 res.getStatus(), in stat()
467 if (CommandStatus.SUCCESS.equals(res.getStatus())) { in md5Hash()
[all …]
/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()
147 result.getStatus(), result.getStdout(), result.getStderr()), in testRunTimedCmd_largeOutput()
149 result.getStatus()); in testRunTimedCmd_largeOutput()
170 result.getStatus(), result.getStdout(), result.getStderr()), in testUnsetEnvVariable()
172 result.getStatus()); in testUnsetEnvVariable()
179 assertEquals(CommandStatus.FAILED, result.getStatus()); in testUnsetEnvVariable()
194 result.getStatus(), result.getStdout(), result.getStderr()), in testRunTimedCmd_timeout()
196 result.getStatus()); in testRunTimedCmd_timeout()
224 assertTrue(CommandStatus.SUCCESS.equals(result.getStatus())); in testRunTimedCmd_WithInputRedirect()
[all …]
DRunUtilTest.java176 assertEquals(CommandStatus.EXCEPTION, result.getStatus()); in testRunTimedCmd_failed()
189 assertEquals(CommandStatus.TIMED_OUT, result.getStatus()); in testRunTimedCmd_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/testtype/suite/
DGranularRetriableTestWrapperTest.java373 assertEquals(TestStatus.FAILURE, testResults.get(fakeTestCase).getStatus()); in testRun_withMultipleRun()
374 assertEquals(TestStatus.FAILURE, testResults.get(fakeTestCase2).getStatus()); in testRun_withMultipleRun()
375 assertEquals(TestStatus.PASSED, testResults.get(fakeTestCase3).getStatus()); in testRun_withMultipleRun()
432 assertEquals(TestStatus.PASSED, testResults.get(fakeTestCase).getStatus()); // became pass in testRun_withMultipleRun_becomePass()
433 assertEquals(TestStatus.FAILURE, testResults.get(fakeTestCase2).getStatus()); in testRun_withMultipleRun_becomePass()
434 assertEquals(TestStatus.PASSED, testResults.get(fakeTestCase3).getStatus()); in testRun_withMultipleRun_becomePass()
491 assertEquals(TestStatus.PASSED, testResults.get(fakeTestCase).getStatus()); // became pass in testRun_withMultipleRun_AllBecomePass()
492 assertEquals(TestStatus.PASSED, testResults.get(fakeTestCase2).getStatus()); in testRun_withMultipleRun_AllBecomePass()
493 assertEquals(TestStatus.PASSED, testResults.get(fakeTestCase3).getStatus()); in testRun_withMultipleRun_AllBecomePass()
577 TestStatus.FAILURE, runResult.getTestResults().get(fakeTestCase1).getStatus()); in testRun_retryAllTestCasesIfNotSupportTestFilterReceiver()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/
DFastbootHelper.java66 if (CommandStatus.SUCCESS.equals(fastbootResult.getStatus())) { in isFastbootAvailable()
88 if (fastbootResult.getStatus().equals(CommandStatus.SUCCESS)) { in getDevices()
93 CLog.w("'fastboot devices' failed. Result: %s, stderr: %s", fastbootResult.getStatus(), in getDevices()
107 if (fastbootResult.getStatus().equals(CommandStatus.SUCCESS)) { in getBootloaderAndFastbootdDevices()
122 fastbootResult.getStatus(), fastbootResult.getStderr()); in getBootloaderAndFastbootdDevices()
159 if (fastbootResult.getStatus() != CommandStatus.SUCCESS) { in executeCommand()
161 fastbootResult.getStatus(), fastbootResult.getStderr()); in executeCommand()
DRemoteAndroidDevice.java189 if (CommandStatus.SUCCESS.equals(result.getStatus()) && in adbTcpConnect()
193 result.getStatus(), result.getStdout()); in adbTcpConnect()
200 } else if (CommandStatus.SUCCESS.equals(result.getStatus()) && in adbTcpConnect()
206 result.getStatus(), result.getStdout(), result.getStderr()); in adbTcpConnect()
214 if (CommandStatus.SUCCESS.equals(resultConfirmation.getStatus()) in confirmAdbTcpConnect()
220 resultConfirmation.getStatus(), resultConfirmation.getStdout(), in confirmAdbTcpConnect()
238 return CommandStatus.SUCCESS.equals(result.getStatus()); in adbTcpDisconnect()
DLocalAndroidVirtualDevice.java99 if (!CommandStatus.SUCCESS.equals(result.getStatus())) { in preInvocationSetup()
137 if (!CommandStatus.SUCCESS.equals(result.getStatus())) { in postInvocationTearDown()
315 if (CommandStatus.SUCCESS.equals(result.getStatus())) { in acloudCreate()
320 attempt, result.getStatus()); in acloudCreate()
392 if (!GceAvdInfo.GceStatus.SUCCESS.equals(mGceAvdInfo.getStatus())) { in loadAvdInfo()
DNativeDevice.java263 CLog.w("Command exited with status: %s", result.getStatus().toString()); in logExceptionAndOutput()
272 if (result.getStatus() == CommandStatus.EXCEPTION) { in run()
275 } else if (result.getStatus() == CommandStatus.TIMED_OUT) { in run()
278 } else if (result.getStatus() == CommandStatus.FAILED) { in run()
318 if (mResult.getStatus() == CommandStatus.EXCEPTION) { in run()
320 } else if (mResult.getStatus() == CommandStatus.TIMED_OUT) { in run()
480 if (!CommandStatus.SUCCESS.equals(result.getStatus())) { in getProperty()
535 if (CommandStatus.SUCCESS.equals(result.getStatus())) { in setProperty()
655 if (result.getStatus() == CommandStatus.SUCCESS) { in getFastbootVariable()
1988 if (fastbootResult.getStatus().equals(CommandStatus.TIMED_OUT)) { in isRecoveryNeeded()
/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()
220 result.getStatus()); in test_stable_abi()
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DPerfettoPullerMetricCollector.java237 if (CommandStatus.SUCCESS.equals(cr.getStatus())) { in processMetricFile()
256 processSrcFile.getName(), cr.getStderr(), cr.getStatus()); in processMetricFile()
339 if (!CommandStatus.SUCCESS.equals(conversionResult.getStatus())) { in convertToMetricProto()
342 errStream.toString(), conversionResult.getStatus()); in convertToMetricProto()
464 if (!CommandStatus.SUCCESS.equals(decompressResult.getStatus())) { in decompressFile()
467 decompressResult.getStatus()); in decompressFile()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DTestResultTest.java40 assertEquals(TestStatus.PASSED, finalRes.getStatus()); in testMerge_singleRes()
54 assertEquals(TestStatus.PASSED, finalRes.getStatus()); in testMerge_multiRes_aggPass()
69 assertEquals(TestStatus.FAILURE, finalRes.getStatus()); in testMerge_allFailed_aggPass()
82 assertEquals(TestStatus.FAILURE, finalRes.getStatus()); in testMerge_multiRes()
95 assertEquals(TestStatus.PASSED, finalRes.getStatus()); in testMerge_multiRes_allPass()
DTestRunResultTest.java290 assertEquals(TestStatus.PASSED, test1Result.getStatus()); in testMergeRetriedRunResults_fullMergeLogicCheck()
291 assertEquals(TestStatus.PASSED, test2Result.getStatus()); in testMergeRetriedRunResults_fullMergeLogicCheck()
292 assertEquals(TestStatus.FAILURE, test3Result.getStatus()); in testMergeRetriedRunResults_fullMergeLogicCheck()
346 assertEquals(TestStatus.PASSED, testResult.getStatus()); in testMergeRetriedRunResults_checkMergingStackTraces()
612 assertEquals(TestStatus.PASSED, testResult.getStatus()); in testMergeRetriedRunResults_testCaseStatus()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DRemoteAndroidVirtualDevice.java130 if (mGceAvd != null && GceStatus.SUCCESS.equals(mGceAvd.getStatus())) { in preInvocationSetup()
186 if (!GceStatus.SUCCESS.equals(mGceAvd.getStatus())) { in postInvocationTearDown()
267 if (GceAvdInfo.GceStatus.BOOT_FAIL.equals(mGceAvd.getStatus())) { in launchGce()
400 if (!GceStatus.SUCCESS.equals(mGceAvd.getStatus())) { in getAvdInfo()
DGceManager.java194 if (CommandStatus.TIMED_OUT.equals(cmd.getStatus())) { in startGce()
206 } else if (!CommandStatus.SUCCESS.equals(cmd.getStatus())) { in startGce()
421 if (!CommandStatus.SUCCESS.equals(cmd.getStatus())) { in AcloudShutdown()
612 if (!CommandStatus.SUCCESS.equals(res.getStatus())) { in remoteSshCommandExec()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/mobly/
DMoblyBinaryHostTest.java191 if (!CommandStatus.SUCCESS.equals(result.getStatus())) { in runSingleParFile()
195 result.getStdout(), result.getStderr(), result.getStatus()); in runSingleParFile()
217 if (!CommandStatus.SUCCESS.equals(pathResult.getStatus())) { in updateAdb()
221 pathResult.getStatus(), in updateAdb()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterCommandLauncher.java193 if (!result.getStatus().equals(CommandStatus.SUCCESS)) { in run()
195 if (result.getStatus().equals(CommandStatus.TIMED_OUT)) { in run()
232 if (!result.getStatus().equals(CommandStatus.SUCCESS)) { in runSetupScripts()
234 if (result.getStatus().equals(CommandStatus.TIMED_OUT)) { in runSetupScripts()
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/
DTestRunResult.java120 TestStatus status = testEntry.getValue().getStatus(); in getTestsInState()
160 mStatusCounts[r.getStatus().ordinal()]++; in getNumTestsInState()
171 if (r.getStatus().equals(status)) { in getTestsResultsInState()
323 if (result.getStatus().equals(TestStatus.INCOMPLETE)) { in testEnded()
/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()
411 status = runThread.getStatus(); in runTimed()
587 synchronized CommandStatus getStatus() { in getStatus() method in RunUtil.RunnableNotifier

12345