/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | GTestResultParser.java | 586 private String getTestClass(TestResult testResult) { in getTestClass() argument 592 sb.append(testResult.mTestClass); in getTestClass() 595 return testResult.mTestClass; in getTestClass() 605 TestResult testResult = getCurrentTestResult(); in processTestStartedTag() local 606 testResult.mTestClass = parsedResults.mTestClassName; in processTestStartedTag() 607 testResult.mTestName = parsedResults.mTestName; in processTestStartedTag() 608 testResult.mStartTimeMs = System.currentTimeMillis(); in processTestStartedTag() 610 if (getTestClass(testResult) != null && testResult.mTestName != null) { in processTestStartedTag() 611 testId = new TestDescription(getTestClass(testResult), testResult.mTestName); in processTestStartedTag() 614 getTestClass(testResult), testResult.mTestName); in processTestStartedTag() [all …]
|
D | ArtRunTest.java | 250 CommandResult testResult = in runArtTest() local 253 if (testResult.getStatus() != CommandStatus.SUCCESS) { in runArtTest() 257 testResult.getStatus(), testResult); in runArtTest() 262 Integer exitCode = testResult.getExitCode(); in runArtTest()
|
D | HostGTest.java | 277 CommandResult testResult = in runTest() local 280 switch (testResult.getStatus()) { in runTest() 290 final Integer exitCode = testResult.getExitCode(); in runTest()
|
/tools/tradefederation/core/javatests/com/android/tradefed/result/ |
D | CountingTestResultListenerTest.java | 42 mResultListener.testResult(mTest, createTestResult(TestStatus.PASSED)); in testPassed() 50 mResultListener.testResult(mTest, createTestResult(TestStatus.FAILURE)); in testFailed() 58 mResultListener.testResult(mTest, createTestResult(TestStatus.INCOMPLETE)); in duplicateResults() 60 mResultListener.testResult(mTest, createTestResult(TestStatus.PASSED)); in duplicateResults() 69 mResultListener.testResult(mTest, createTestResult(TestStatus.INCOMPLETE)); in hasFailedTests() 71 mResultListener.testResult(mTest, createTestResult(TestStatus.FAILURE)); in hasFailedTests() 73 mResultListener.testResult(mTest, createTestResult(TestStatus.ASSUMPTION_FAILURE)); in hasFailedTests() 75 mResultListener.testResult(mTest, createTestResult(TestStatus.PASSED)); in hasFailedTests()
|
D | ConsoleResultReporterTest.java | 55 mResultReporter.testResult(mTest, createTestResult(TestStatus.PASSED)); in testPassed() 62 mResultReporter.testResult(mTest, createTestResult(TestStatus.PASSED)); in testPassed_suppressedPassed() 70 mResultReporter.testResult(mTest, result); in testFailed() 81 mResultReporter.testResult(mTest, result); in testFailed_suppressPassed() 89 mResultReporter.testResult(mTest, createTestResult(TestStatus.PASSED)); in testSummary()
|
D | TestRunResultTest.java | 280 Map<TestDescription, TestResult> testResult = result.getTestResults(); in testMergeRetriedRunResults_fullMergeLogicCheck() local 281 assertTrue(testResult.containsKey(testcase1)); in testMergeRetriedRunResults_fullMergeLogicCheck() 282 assertTrue(testResult.containsKey(testcase2)); in testMergeRetriedRunResults_fullMergeLogicCheck() 283 assertTrue(testResult.containsKey(testcase3)); in testMergeRetriedRunResults_fullMergeLogicCheck() 285 TestResult test1Result = testResult.get(testcase1); in testMergeRetriedRunResults_fullMergeLogicCheck() 286 TestResult test2Result = testResult.get(testcase2); in testMergeRetriedRunResults_fullMergeLogicCheck() 287 TestResult test3Result = testResult.get(testcase3); in testMergeRetriedRunResults_fullMergeLogicCheck() 344 TestResult testResult = testRunResult.get(testcase); in testMergeRetriedRunResults_checkMergingStackTraces() local 345 assertEquals(TestStatus.PASSED, testResult.getResultStatus()); in testMergeRetriedRunResults_checkMergingStackTraces() 349 testResult.getStackTrace()); in testMergeRetriedRunResults_checkMergingStackTraces() [all …]
|
D | PassingTestFileReporterTest.java | 60 mResultReporter.testResult(mTest, createTestResult(TestResult.TestStatus.PASSED)); in testPassed() 69 mResultReporter.testResult(mTest, createTestResult(TestResult.TestStatus.FAILURE)); in testFailed()
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/binary/ |
D | KUnitModuleTestTest.java | 218 for (Pair<TestDescription, Boolean> testResult : expectedTestResults) { in test_module_load_fail() 219 Mockito.verify(mListener, Mockito.times(1)).testStarted(Mockito.eq(testResult.first)); in test_module_load_fail() 220 if (!testResult.second) { in test_module_load_fail() 222 .testFailed(Mockito.eq(testResult.first), any(FailureDescription.class)); in test_module_load_fail() 226 Mockito.eq(testResult.first), in test_module_load_fail() 255 for (Pair<TestDescription, Boolean> testResult : expectedTestResults) { in test_ktap_parse_fail() 256 Mockito.verify(mListener, Mockito.times(1)).testStarted(Mockito.eq(testResult.first)); in test_ktap_parse_fail() 257 if (!testResult.second) { in test_ktap_parse_fail() 259 .testFailed(Mockito.eq(testResult.first), any(FailureDescription.class)); in test_ktap_parse_fail() 263 Mockito.eq(testResult.first), in test_ktap_parse_fail() [all …]
|
D | KTapResultParserTest.java | 942 String[] testResult = new String[3]; in checkKTap() local 944 testResult[0] = entry.getKey().getTestName(); in checkKTap() 945 testResult[1] = entry.getValue().getStatus().toString(); in checkKTap() 946 testResult[2] = entry.getValue().getStackTrace(); in checkKTap() 947 if (testResult[2] == null) { in checkKTap() 948 testResult[2] = ""; in checkKTap() 950 assertArrayEquals(expectedResults[i++], testResult); in checkKTap()
|
D | KernelTargetTestTest.java | 284 for (Pair<TestDescription, Boolean> testResult : expectedTestResults) { 285 Mockito.verify(mListener, Mockito.times(1)).testStarted(eq(testResult.first)); 286 if (!testResult.second) { 288 .testFailed(Mockito.eq(testResult.first), any(FailureDescription.class)); 292 eq(testResult.first),
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/mobly/ |
D | MoblyBinaryHostTestTest.java | 136 File testResult = new File(mSpyTest.getLogDirAbsolutePath(), TEST_RESULT_FILE_NAME); in testRun_withPythonBinariesOption() local 147 FileUtils.createFile(testResult, ""); in testRun_withPythonBinariesOption() 178 File testResult = new File(mSpyTest.getLogDirAbsolutePath(), TEST_RESULT_FILE_NAME); in testRun_withParFileNameOption() local 188 FileUtils.createFile(testResult, ""); in testRun_withParFileNameOption() 223 File testResult = new File(mSpyTest.getLogDirAbsolutePath(), TEST_RESULT_FILE_NAME); in testRun_withStdLogOption() local 237 FileUtils.createFile(testResult, ""); in testRun_withStdLogOption() 251 File testResult = new File(mSpyTest.getLogDirAbsolutePath(), TEST_RESULT_FILE_NAME); in testRun_testResultIsMissing() local 266 assertFalse(testResult.exists()); in testRun_testResultIsMissing() 274 File testResult = new File(mSpyTest.getLogDirAbsolutePath(), TEST_RESULT_FILE_NAME); in testRun_shouldActivateVenvAndCleanUp_whenVenvIsSet() local 294 FileUtils.createFile(testResult, ""); in testRun_shouldActivateVenvAndCleanUp_whenVenvIsSet() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/helper/ |
D | TelephonyHelper.java | 118 TestResult testResult = runResult.getTestResults().get(SIM_TEST); in getSimInfo() local 119 if (testResult == null) { in getSimInfo() 124 info.mHasTelephonySupport = !TestStatus.FAILURE.equals(testResult.getResultStatus()); in getSimInfo() 125 info.mSimState = testResult.getMetrics().get(SIM_STATE_KEY); in getSimInfo() 127 stringToBool(testResult.getMetrics().get(CARRIER_PRIVILEGES_KEY)); in getSimInfo() 129 stringToBool(testResult.getMetrics().get(SECURED_ELEMENT_KEY)); in getSimInfo() 130 info.mHasSeService = stringToBool(testResult.getMetrics().get(SE_SERVICE_KEY)); in getSimInfo()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | MetricsXMLResultReporter.java | 138 KXmlSerializer serializer, TestDescription testId, TestResult testResult) in printTestResults() argument 143 long elapsedTime = testResult.getEndTime() - testResult.getStartTime(); in printTestResults() 146 printTestMetrics(serializer, testResult.getMetrics()); in printTestResults() 148 if (!TestStatus.PASSED.equals(testResult.getResultStatus())) { in printTestResults() 149 String result = testResult.getStatus().name(); in printTestResults() 151 String stackText = sanitize(testResult.getStackTrace()); in printTestResults()
|
D | ConsoleResultReporter.java | 89 public void testResult(TestDescription test, TestResult result) { in testResult() method in ConsoleResultReporter 90 mResultCountListener.testResult(test, result); in testResult() 217 static String getTestSummary(String testTag, TestDescription testId, TestResult testResult) { in getTestSummary() argument 224 testResult.getStatus(), in getTestSummary() 225 testResult.getEndTime() - testResult.getStartTime())); in getTestSummary() 226 String stack = testResult.getStackTrace(); in getTestSummary() 234 Map<String, String> metrics = testResult.getMetrics(); in getTestSummary()
|
D | LUCIResultReporter.java | 185 TestResult testResult = entry.getValue(); in convertMetricsToJson() local 195 TestStatus rawStatus = testResult.getResultStatus(); in convertMetricsToJson() 203 FailureDescription failure = testResult.getFailure(); in convertMetricsToJson() 206 String failureReason = testResult.getFailure().getOrigin() + ": " in convertMetricsToJson() 226 Long duration = testResult.getEndTime() - testResult.getStartTime(); in convertMetricsToJson()
|
D | TestResultListener.java | 38 public abstract void testResult(TestDescription test, TestResult result); in testResult() method in TestResultListener 110 testResult(mCurrentTest, mCurrentResult); in testRunEnded() 127 testResult(mCurrentTest, mCurrentResult); in reportTestFinish()
|
D | XmlResultReporter.java | 170 void print(KXmlSerializer serializer, TestDescription testId, TestResult testResult) in print() argument 179 com.android.ddmlib.testrunner.TestResult.TestStatus ddmlibStatus = testResult.getStatus(); in print() 201 String stackText = sanitize(testResult.getStackTrace()); in print()
|
D | PassingTestFileReporter.java | 39 public void testResult(TestDescription test, TestResult result) { in testResult() method in PassingTestFileReporter
|
D | JsonHttpTestResultReporter.java | 224 TestResult testResult = entry.getValue(); in convertMetricsToJson() local 236 if (testResult.getMetrics().size() > 0) { in convertMetricsToJson() 238 getValidMetrics(testResult.getMetrics())); in convertMetricsToJson()
|
D | CountingTestResultListener.java | 29 public void testResult(TestDescription test, TestResult result) { in testResult() method in CountingTestResultListener
|
/tools/metalava/metalava-model-testsuite-cli/src/main/java/com/android/tools/metalava/model/testsuite/cli/ |
D | UpdateBaselineCommand.kt | 103 private var testResult: TestResult = TestResult.PASSED variable in com.android.tools.metalava.model.testsuite.cli.UpdateBaselineCommand.FailureCollector 131 testResult = TestResult.PASSED in Attributes() 134 testResult = TestResult.FAILED in Attributes() 137 testResult = TestResult.SKIPPED in Attributes() 146 when (testResult) { in endElement()
|
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/reporter/ |
D | GameQualificationResultReporter.java | 368 private String getTestSummary(TestDescription testId, TestResult testResult) { in getTestSummary() argument 370 sb.append(String.format(" %s: %s (%dms)\n", testId.toString(), testResult.getStatus(), in getTestSummary() 371 testResult.getEndTime() - testResult.getStartTime())); in getTestSummary() 372 String stack = testResult.getStackTrace(); in getTestSummary()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/retry/ |
D | ResultsPlayer.java | 155 Entry<TestDescription, TestResult> testResult) { in addToReplay() argument 162 if (testResult != null) { in addToReplay() 163 holder.mResults.add(testResult); in addToReplay()
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/ |
D | PythonUnitTestRunnerTest.java | 171 private IRunUtil getMockRunUtil(UnitTestResult testResult) { in getMockRunUtil() argument 172 CommandResult expectedResult = testResult.getCommandResult(); in getMockRunUtil()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | CameraPerformanceTest.java | 165 String testResult = metric.getValue(); in parseResult() local 167 CLog.d("test result %s", testResult); in parseResult() 169 if (shouldUseCtsXmlResultParser(testResult)) { in parseResult() 182 Map<String, String> testKpis = parser.parse(testResult, testMethod); in parseResult()
|