/platform_testing/libraries/compatibility-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 | 27 private TestStatus mResult; 68 public TestStatus getResultStatus() { in getResultStatus() 76 public void setResultStatus(TestStatus status) { in setResultStatus() 182 setResultStatus(TestStatus.FAIL); in failed() 199 if (getResultStatus() != TestStatus.FAIL) { in passed() 200 setResultStatus(TestStatus.PASS); in passed() 214 setResultStatus(TestStatus.PASS); in skipped() 265 setResultStatus(TestStatus.FAIL); in removeResult()
|
D | ICaseResult.java | 51 List<ITestResult> getResults(TestStatus status); in getResults() 56 int countResults(TestStatus status); in countResults()
|
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 | ITestResult.java | 39 TestStatus getResultStatus(); in getResultStatus() 46 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()
|
D | ScreenshotsMetadataHandler.java | 68 TestStatus status = r.getResultStatus(); in writeResults()
|
D | ModuleResult.java | 246 public int countResults(TestStatus status) { in countResults()
|
D | InvocationResult.java | 71 public int countResults(TestStatus result) { in countResults()
|
D | ResultHandler.java | 278 test.setResultStatus(TestStatus.getStatus(result)); in getResultFromDir() 404 int passed = result.countResults(TestStatus.PASS); in writeResults() 405 int failed = result.countResults(TestStatus.FAIL); in writeResults() 511 Integer.toString(module.countResults(TestStatus.PASS))); in writeResults() 516 TestStatus status = r.getResultStatus(); in writeResults()
|
D | ChecksumReporter.java | 334 .append(module.countResults(TestStatus.FAIL)); in generateModuleResultSignature() 343 .append(module.countResults(TestStatus.FAIL)); in generateModuleSummarySignature()
|
/platform_testing/libraries/compatibility-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 | 221 moduleATest1.setResultStatus(TestStatus.PASS); in testSerialization() 230 moduleBTest3.setResultStatus(TestStatus.FAIL); in testSerialization() 237 moduleBTest4.setResultStatus(TestStatus.PASS); in testSerialization() 301 moduleATest1.setResultStatus(TestStatus.PASS); in testSerialization_whenTestResultWithTestResultHistoryWithoutParsing() 315 moduleBTest3.setResultStatus(TestStatus.FAIL); in testSerialization_whenTestResultWithTestResultHistoryWithoutParsing() 327 moduleBTest4.setResultStatus(TestStatus.PASS); in testSerialization_whenTestResultWithTestResultHistoryWithoutParsing() 342 moduleBTest6.setResultStatus(TestStatus.FAIL); in testSerialization_whenTestResultWithTestResultHistoryWithoutParsing() 497 assertEquals("Expected 3 passes", 3, lightResult.countResults(TestStatus.PASS)); in checkLightResult() 498 assertEquals("Expected 1 failure", 1, lightResult.countResults(TestStatus.FAIL)); in checkLightResult() 529 assertEquals("Expected 3 passes", 3, result.countResults(TestStatus.PASS)); in checkResult() [all …]
|
/platform_testing/host_runners/utils/tests/src/com/android/runner/utils/ |
D | InstrumentationResultProtoParserTest.java | 28 import com.android.commands.am.InstrumentationData.TestStatus; 766 List<TestStatus> testStatusList = new LinkedList<TestStatus>(); in buildSingleTestMetricSuccessProtoFile() 784 List<TestStatus> testStatusList = new LinkedList<TestStatus>(); in buildRunMetricSuccessProtoFile() 803 List<TestStatus> testStatusList = new LinkedList<TestStatus>(); in buildTestAndRunMetricSuccessProtoFile() 822 List<TestStatus> testStatusList = new LinkedList<TestStatus>(); in buildMultipleTestAndRunMetricSuccessProtoFile() 847 List<TestStatus> testStatusList = new LinkedList<TestStatus>(); in buildSingleTestFailureProtoFile() 866 List<TestStatus> testStatusList = new LinkedList<TestStatus>(); in buildOneTestPassOneTestFailProtoFile() 890 List<TestStatus> testStatusList = new LinkedList<TestStatus>(); in buildTestsIncompleteProtoFile() 903 List<TestStatus> testStatusList = new LinkedList<TestStatus>(); in buildPartialTestsIncompleteProtoFile() 922 List<TestStatus> testStatusList = new LinkedList<TestStatus>(); in buildOneTestNotStarted() [all …]
|
/platform_testing/host_runners/utils/src/com/android/runner/utils/ |
D | InstrumentationResultProtoParser.java | 23 import com.android.commands.am.InstrumentationData.TestStatus; 99 List<TestStatus> multipleTestStatus = instrumentSession.getTestStatusList(); in processProtoFile() 100 for (TestStatus teststatus : multipleTestStatus) { in processProtoFile() 123 public void processTestStatus(TestStatus testStatus) { in processTestStatus()
|