Home
last modified time | relevance | path

Searched refs:TestStatus (Results 1 – 25 of 39) sorted by relevance

12

/cts/common/util/src/com/android/compatibility/common/util/
DTestStatus.java21 public enum TestStatus { enum
27 private TestStatus(String storedValue) { in TestStatus() method in TestStatus
47 static TestStatus getStatus(String value) { in getStatus()
48 for (TestStatus status : TestStatus.values()) { in getStatus()
DTestResult.java25 private TestStatus mResult;
64 public TestStatus getResultStatus() { in getResultStatus()
72 public void setResultStatus(TestStatus status) { in setResultStatus()
178 setResultStatus(TestStatus.FAIL); in failed()
195 if (getResultStatus() != TestStatus.FAIL) { in passed()
196 setResultStatus(TestStatus.PASS); in passed()
210 setResultStatus(TestStatus.PASS); in skipped()
259 setResultStatus(TestStatus.FAIL); in removeResult()
DLightInvocationResult.java44 private Map<TestStatus, Integer> mResultCounts;
66 mResultCounts = new HashMap<TestStatus, Integer>(); in LightInvocationResult()
67 for (TestStatus status : TestStatus.values()) { in LightInvocationResult()
88 public int countResults(TestStatus result) { in countResults()
DICaseResult.java51 List<ITestResult> getResults(TestStatus status); in getResults()
56 int countResults(TestStatus status); in countResults()
DITestResult.java37 TestStatus getResultStatus(); in getResultStatus()
44 void setResultStatus(TestStatus status); in setResultStatus()
DCaseResult.java73 public List<ITestResult> getResults(TestStatus status) { in getResults()
97 public int countResults(TestStatus status) { in countResults()
DIModuleResult.java145 int countResults(TestStatus status); in countResults()
DIInvocationResult.java41 int countResults(TestStatus result); in countResults()
/cts/common/util/tests/src/com/android/compatibility/common/util/
DCaseResultTest.java63 assertEquals("Expected status to be set", TestStatus.FAIL, testResult.getResultStatus()); in testResultReporting()
68 assertEquals("Expected status to be set", TestStatus.PASS, testResult.getResultStatus()); in testResultReporting()
76 assertEquals("Expected two failures", 2, mResult.countResults(TestStatus.FAIL)); in testCountResults()
77 assertEquals("Expected one pass", 1, mResult.countResults(TestStatus.PASS)); in testCountResults()
92 assertEquals("Expected one failures", 1, mResult.countResults(TestStatus.FAIL)); in testMergeCase()
93 assertEquals("Expected two pass", 2, mResult.countResults(TestStatus.PASS)); in testMergeCase()
108 assertEquals("Expected one failures", 1, mResult.countResults(TestStatus.FAIL)); in testMergeCase_passToFail()
109 assertEquals("Expected two pass", 2, mResult.countResults(TestStatus.PASS)); in testMergeCase_passToFail()
DResultHandlerTest.java165 moduleATest1.setResultStatus(TestStatus.PASS); in testSerialization()
174 moduleBTest3.setResultStatus(TestStatus.FAIL); in testSerialization()
181 moduleBTest4.setResultStatus(TestStatus.PASS); in testSerialization()
263 assertEquals("Expected 3 passes", 3, lightResult.countResults(TestStatus.PASS)); in checkLightResult()
264 assertEquals("Expected 1 failure", 1, lightResult.countResults(TestStatus.FAIL)); in checkLightResult()
284 assertEquals("Expected 3 passes", 3, result.countResults(TestStatus.PASS)); in checkResult()
285 assertEquals("Expected 1 failure", 1, result.countResults(TestStatus.FAIL)); in checkResult()
304 assertEquals("Expected 1 pass", 1, moduleA.countResults(TestStatus.PASS)); in checkResult()
305 assertEquals("Expected 0 failures", 0, moduleA.countResults(TestStatus.FAIL)); in checkResult()
318 assertEquals("Incorrect result", TestStatus.PASS, moduleATest1.getResultStatus()); in checkResult()
[all …]
/cts/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/result/
DResultReporterTest.java25 import com.android.compatibility.common.util.TestStatus;
159 assertEquals("Expected 1 pass", 1, result.countResults(TestStatus.PASS)); in testResultReporting()
160 assertEquals("Expected 2 failures", 2, result.countResults(TestStatus.FAIL)); in testResultReporting()
173 assertEquals(String.format("Expected pass for %s", TEST_1), TestStatus.PASS, in testResultReporting()
177 assertEquals(String.format("Expected fail for %s", TEST_2), TestStatus.FAIL, in testResultReporting()
181 assertEquals(String.format("Expected fail for %s", TEST_3), TestStatus.FAIL, in testResultReporting()
214 assertEquals("Expected 1 pass", 1, result.countResults(TestStatus.PASS)); in testRepeatedExecutions()
215 assertEquals("Expected 2 failures", 2, result.countResults(TestStatus.FAIL)); in testRepeatedExecutions()
229 assertEquals(String.format("Expected pass for %s", TEST_1), TestStatus.PASS, in testRepeatedExecutions()
235 assertEquals(String.format("Expected fail for %s", TEST_2), TestStatus.FAIL, in testRepeatedExecutions()
[all …]
DSubPlanHelperTest.java29 import com.android.compatibility.common.util.TestStatus;
176 moduleATest1.setResultStatus(TestStatus.PASS); in populateResults()
184 moduleBTest3.setResultStatus(TestStatus.FAIL); in populateResults()
186 moduleBTest4.setResultStatus(TestStatus.PASS); in populateResults()
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/
DSubPlanHelper.java29 import com.android.compatibility.common.util.TestStatus;
71 private static final Map<String, TestStatus> STATUS_MAP;
73 Map<String, TestStatus> statusMap = new HashMap<String, TestStatus>();
74 statusMap.put(PASSED, TestStatus.PASS); in statusMap.put()
75 statusMap.put(FAILED, TestStatus.FAIL); in statusMap.put()
220 Set<TestStatus> statusesToRun = getStatusesToRun(); in createSubPlan()
308 for (TestStatus status : getStatusesToRun()) { in shouldRunModule()
327 Set<TestStatus> statusesToRun = getStatusesToRun(); in shouldRunEntireModule()
328 for (TestStatus status : TestStatus.values()) { in shouldRunEntireModule()
345 private Set<TestStatus> getStatusesToRun() { in getStatusesToRun()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/
DProjectionOffscreenActivity.java71 private enum TestStatus { PASSED, FAILED, RUNNING }; enum in ProjectionOffscreenActivity
72 protected TestStatus mTestStatus = TestStatus.RUNNING;
113 mTestStatus = TestStatus.FAILED;
190 if (mTestStatus == TestStatus.FAILED) { in onPause()
200 && mTestStatus == TestStatus.RUNNING in onImageAvailable()
202 mTestStatus = TestStatus.FAILED; in onImageAvailable()
214 if (mTestStatus == TestStatus.RUNNING) { in onImageAvailable()
219 mTestStatus = TestStatus.FAILED; in onImageAvailable()
223 mTestStatus = TestStatus.PASSED; in onImageAvailable()
/cts/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/
DIntegrationTest.java27 import com.android.compatibility.common.util.TestStatus;
214 assertEquals(2, result.countResults(TestStatus.PASS)); in testSingleModuleRun()
215 assertEquals(1, result.countResults(TestStatus.FAIL)); in testSingleModuleRun()
317 assertEquals(1, result.countResults(TestStatus.PASS)); in testSingleModuleRun_incomplete()
318 assertEquals(1, result.countResults(TestStatus.FAIL)); in testSingleModuleRun_incomplete()
347 assertEquals(2, result.countResults(TestStatus.PASS)); in testSingleModuleRun_completeAfterInternalRetry()
348 assertEquals(1, result.countResults(TestStatus.FAIL)); in testSingleModuleRun_completeAfterInternalRetry()
386 assertEquals(1, result.countResults(TestStatus.PASS)); in testSingleModuleRun_incomplete_rerun_incomplete()
387 assertEquals(1, result.countResults(TestStatus.FAIL)); in testSingleModuleRun_incomplete_rerun_incomplete()
416 assertEquals(1, result.countResults(TestStatus.PASS)); in testSingleModuleRun_incomplete_rerun_incomplete()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResultsReport.java32 import com.android.compatibility.common.util.TestStatus;
126 TestStatus resultStatus = getTestResultStatus(mAdapter.getTestResult(i)); in generateResult()
151 private TestStatus getTestResultStatus(int testResult) { in getTestResultStatus()
154 return TestStatus.PASS; in getTestResultStatus()
157 return TestStatus.FAIL; in getTestResultStatus()
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/
DCompatibilityHostTestBase.java28 import com.android.ddmlib.testrunner.TestResult.TestStatus;
180 TestStatus testStatus = testResult.getStatus(); in printTestResult()
183 if (testStatus != TestStatus.PASSED && testStatus != TestStatus.ASSUMPTION_FAILURE) { in printTestResult()
223 TestStatus.ASSUMPTION_FAILURE)); in runDeviceTests()
/cts/hostsidetests/webkit/src/com/android/cts/webkit/
DWebViewHostSideStartupTest.java19 import com.android.ddmlib.testrunner.TestResult.TestStatus;
69 return !runResult.hasFailedTests() && runResult.getNumTestsInState(TestStatus.PASSED) > 0; in runDeviceTest()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/
DTestReport.java37 public enum TestStatus { enum in TestReport
115 setTestState(TestStatus.FAIL); in getContents()
149 public void setTestState(TestStatus state) { in setTestState()
/cts/common/host-side/util/tests/src/com/android/compatibility/common/util/
DModuleResultTest.java74 assertEquals("Expected two failures", 2, mResult.countResults(TestStatus.FAIL)); in testCountResults()
75 assertEquals("Expected one pass", 1, mResult.countResults(TestStatus.PASS)); in testCountResults()
/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DBaseShortcutManagerHostTest.java22 import com.android.ddmlib.testrunner.TestResult.TestStatus;
160 if (runResult.hasFailedTests() || runResult.getNumTestsInState(TestStatus.PASSED) == 0) { in runDeviceTestsAsUser()
171 if (testResult.getStatus() == TestStatus.PASSED) { in printTestResult()
/cts/hostsidetests/incident/src/com/android/server/cts/
DProtoDumpTestCase.java23 import com.android.ddmlib.testrunner.TestResult.TestStatus;
138 if (!resultEntry.getValue().getStatus().equals(TestStatus.PASSED)) { in runDeviceTests()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DUtils.java22 import com.android.ddmlib.testrunner.TestResult.TestStatus;
107 if (!resultEntry.getValue().getStatus().equals(TestStatus.PASSED)) { in runDeviceTests()
/cts/hostsidetests/net/src/com/android/cts/net/
DHostsideNetworkTestCase.java24 import com.android.ddmlib.testrunner.TestResult.TestStatus;
155 if (!resultEntry.getValue().getStatus().equals(TestStatus.PASSED)) { in runDeviceTests()
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/
DBaseDumpsysTest.java23 import com.android.ddmlib.testrunner.TestResult.TestStatus;
193 if (!resultEntry.getValue().getStatus().equals(TestStatus.PASSED)) { in runDeviceTests()

12