/cts/common/util/src/com/android/compatibility/common/util/ |
D | TestStatus.java | 21 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()
|
D | TestResult.java | 25 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()
|
D | LightInvocationResult.java | 44 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()
|
D | ICaseResult.java | 51 List<ITestResult> getResults(TestStatus status); in getResults() 56 int countResults(TestStatus status); in countResults()
|
D | ITestResult.java | 37 TestStatus getResultStatus(); in getResultStatus() 44 void setResultStatus(TestStatus status); in setResultStatus()
|
D | CaseResult.java | 73 public List<ITestResult> getResults(TestStatus status) { in getResults() 97 public int countResults(TestStatus status) { in countResults()
|
D | IModuleResult.java | 145 int countResults(TestStatus status); in countResults()
|
D | IInvocationResult.java | 41 int countResults(TestStatus result); in countResults()
|
/cts/common/util/tests/src/com/android/compatibility/common/util/ |
D | CaseResultTest.java | 63 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()
|
D | ResultHandlerTest.java | 165 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/ |
D | ResultReporterTest.java | 25 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 …]
|
D | SubPlanHelperTest.java | 29 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/ |
D | SubPlanHelper.java | 29 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/ |
D | ProjectionOffscreenActivity.java | 71 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/ |
D | IntegrationTest.java | 27 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/ |
D | TestResultsReport.java | 32 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/ |
D | CompatibilityHostTestBase.java | 28 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/ |
D | WebViewHostSideStartupTest.java | 19 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/ |
D | TestReport.java | 37 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/ |
D | ModuleResultTest.java | 74 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/ |
D | BaseShortcutManagerHostTest.java | 22 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/ |
D | ProtoDumpTestCase.java | 23 import com.android.ddmlib.testrunner.TestResult.TestStatus; 138 if (!resultEntry.getValue().getStatus().equals(TestStatus.PASSED)) { in runDeviceTests()
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | Utils.java | 22 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/ |
D | HostsideNetworkTestCase.java | 24 import com.android.ddmlib.testrunner.TestResult.TestStatus; 155 if (!resultEntry.getValue().getStatus().equals(TestStatus.PASSED)) { in runDeviceTests()
|
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/ |
D | BaseDumpsysTest.java | 23 import com.android.ddmlib.testrunner.TestResult.TestStatus; 193 if (!resultEntry.getValue().getStatus().equals(TestStatus.PASSED)) { in runDeviceTests()
|