/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | GTestResultParser.java | 554 private String getTestClass(TestResult testResult) { in getTestClass() argument 560 sb.append(testResult.mTestClass); in getTestClass() 563 return testResult.mTestClass; in getTestClass() 573 TestResult testResult = getCurrentTestResult(); in processTestStartedTag() local 574 testResult.mTestClass = parsedResults.mTestClassName; in processTestStartedTag() 575 testResult.mTestName = parsedResults.mTestName; in processTestStartedTag() 577 if (getTestClass(testResult) !=null && testResult.mTestName !=null) { in processTestStartedTag() 578 testId = new TestDescription(getTestClass(testResult), testResult.mTestName); in processTestStartedTag() 581 getTestClass(testResult), testResult.mTestName); in processTestStartedTag() 600 TestResult testResult = getCurrentTestResult(); in doTestEnded() local [all …]
|
D | HostGTest.java | 167 CommandResult testResult = executeHostGTestCommand(cmd, maxTestTimeMs, resultParser); in runTest() local 169 switch (testResult.getStatus()) { in runTest() 173 final Integer exitCode = testResult.getExitCode(); in runTest()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | TestRunResultTest.java | 281 Map<TestDescription, TestResult> testResult = result.getTestResults(); in testMergeRetriedRunResults_fullMergeLogicCheck() local 282 assertTrue(testResult.containsKey(testcase1)); in testMergeRetriedRunResults_fullMergeLogicCheck() 283 assertTrue(testResult.containsKey(testcase2)); in testMergeRetriedRunResults_fullMergeLogicCheck() 284 assertTrue(testResult.containsKey(testcase3)); in testMergeRetriedRunResults_fullMergeLogicCheck() 286 TestResult test1Result = testResult.get(testcase1); in testMergeRetriedRunResults_fullMergeLogicCheck() 287 TestResult test2Result = testResult.get(testcase2); in testMergeRetriedRunResults_fullMergeLogicCheck() 288 TestResult test3Result = testResult.get(testcase3); in testMergeRetriedRunResults_fullMergeLogicCheck() 345 TestResult testResult = testRunResult.get(testcase); in testMergeRetriedRunResults_checkMergingStackTraces() local 346 assertEquals(TestStatus.PASSED, testResult.getStatus()); in testMergeRetriedRunResults_checkMergingStackTraces() 350 testResult.getStackTrace()); in testMergeRetriedRunResults_checkMergingStackTraces() [all …]
|
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 | PassingTestFileReporterTest.java | 60 mResultReporter.testResult(mTest, createTestResult(TestResult.TestStatus.PASSED)); in testPassed() 69 mResultReporter.testResult(mTest, createTestResult(TestResult.TestStatus.FAILURE)); in testFailed()
|
D | TestResultListenerTest.java | 45 public void testResult(TestDescription test, TestResult result) { in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | ConsoleResultReporter.java | 81 public void testResult(TestDescription test, TestResult result) { in testResult() method in ConsoleResultReporter 82 mResultCountListener.testResult(test, result); in testResult() 190 static String getTestSummary(String testTag, TestDescription testId, TestResult testResult) { in getTestSummary() argument 197 testResult.getStatus(), in getTestSummary() 198 testResult.getEndTime() - testResult.getStartTime())); in getTestSummary() 199 String stack = testResult.getStackTrace(); in getTestSummary() 207 Map<String, String> metrics = testResult.getMetrics(); in getTestSummary()
|
D | MetricsXMLResultReporter.java | 148 KXmlSerializer serializer, TestDescription testId, TestResult testResult) in printTestResults() argument 153 long elapsedTime = testResult.getEndTime() - testResult.getStartTime(); in printTestResults() 156 printTestMetrics(serializer, testResult.getMetrics()); in printTestResults() 158 if (!TestStatus.PASSED.equals(testResult.getStatus())) { in printTestResults() 159 String result = testResult.getStatus().name(); in printTestResults() 161 String stackText = sanitize(testResult.getStackTrace()); in printTestResults()
|
D | XmlResultReporter.java | 173 void print(KXmlSerializer serializer, TestDescription testId, TestResult testResult) in print() argument 181 if (!TestStatus.PASSED.equals(testResult.getStatus())) { in print() 182 String result = testResult.getStatus().equals(TestStatus.FAILURE) ? FAILURE : ERROR; in print() 191 String stackText = sanitize(testResult.getStackTrace()); in print()
|
D | TestResultListener.java | 38 public abstract void testResult(TestDescription test, TestResult result); in testResult() method in TestResultListener 104 testResult(mCurrentTest, mCurrentResult); in testRunEnded() 121 testResult(mCurrentTest, mCurrentResult); in reportTestFinish()
|
D | JsonHttpTestResultReporter.java | 225 TestResult testResult = entry.getValue(); in convertMetricsToJson() local 237 if (testResult.getMetrics().size() > 0) { in convertMetricsToJson() 238 JSONObject testResultMetrics = new JSONObject(testResult.getMetrics()); in convertMetricsToJson()
|
D | PassingTestFileReporter.java | 40 public void testResult(TestDescription test, TestResult result) { in testResult() method in PassingTestFileReporter
|
D | CountingTestResultListener.java | 31 public void testResult(TestDescription test, TestResult result) { in testResult() method in CountingTestResultListener
|
/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.getStatus()); 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/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/tests/src/com/android/tradefed/testtype/mobly/ |
D | MoblyBinaryHostTestTest.java | 108 File testResult = new File(mSpyTest.getLogDirAbsolutePath(), TEST_RESULT_FILE_NAME); in testRun_withPythonBinariesOption() local 116 FileUtils.createFile(testResult, ""); in testRun_withPythonBinariesOption() 146 File testResult = new File(mSpyTest.getLogDirAbsolutePath(), TEST_RESULT_FILE_NAME); in testRun_withParFileNameOption() local 153 FileUtils.createFile(testResult, ""); in testRun_withParFileNameOption()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | CameraPerformanceTest.java | 160 String testResult = metric.getValue(); in parseResult() local 162 CLog.d("test result %s", testResult); in parseResult() 164 if (shouldUseCtsXmlResultParser(testResult)) { in parseResult() 177 Map<String, String> testKpis = parser.parse(testResult, testMethod); in parseResult()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/mobly/ |
D | MoblyYamlResultParser.java | 73 ITestResult testResult = resultHandler.handle(docMap); in parseDocumentMap() local 75 mTestCount = ((Summary) testResult).getExecuted(); in parseDocumentMap() 77 return testResult; in parseDocumentMap()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/retry/ |
D | ResultsPlayer.java | 139 Entry<TestDescription, TestResult> testResult) { in addToReplay() argument 146 if (testResult != null) { in addToReplay() 147 holder.mResults.add(testResult); in addToReplay()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/ |
D | BaseHostJUnit4Test.java | 810 TestResult testResult = testEntry.getValue(); in printTestResult() local 811 TestStatus testStatus = testResult.getStatus(); in printTestResult() 815 CLog.logAndDisplay(LogLevel.WARN, testResult.getStackTrace()); in printTestResult()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | PythonUnitTestRunnerTest.java | 164 private IRunUtil getMockRunUtil(UnitTestResult testResult) { in getMockRunUtil() argument 165 CommandResult expectedResult = testResult.getCommandResult(); in getMockRunUtil()
|
/tools/tradefederation/contrib/src/com/android/regression/tests/ |
D | DetectRegression.java | 197 String testResult = in logResult() local 201 table.addLine(testResult).addSingleLineSeparator(); in logResult()
|
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/ |
D | TestRunResult.java | 279 private void addTestResult(TestDescription test, TestResult testResult) { in addTestResult() argument 281 mTestResults.put(test, testResult); in addTestResult()
|
/tools/tradefederation/core/src/com/android/tradefed/result/suite/ |
D | XmlSuiteResultFormatter.java | 387 XmlSerializer serializer, Entry<String, TestResult> testResult) in HandleLoggedFiles() argument 389 Map<String, LogFile> loggedFiles = testResult.getValue().getLoggedFiles(); in HandleLoggedFiles()
|