/tools/tradefederation/core/src/com/android/tradefed/result/ddmlib/ |
D | TestRunToTestInvocationForwarder.java | 59 public void testStarted(TestIdentifier testId) { in testStarted() argument 60 if (NULL_STRING.equals(testId.getTestName())) { in testStarted() 61 mNullMethod = testId; in testStarted() 67 listener.testStarted(TestDescription.createFromTestIdentifier(testId)); in testStarted() 78 public void testStarted(TestIdentifier testId, long startTime) { in testStarted() argument 79 if (NULL_STRING.equals(testId.getTestName())) { in testStarted() 80 mNullMethod = testId; in testStarted() 86 listener.testStarted(TestDescription.createFromTestIdentifier(testId), startTime); in testStarted() 97 public void testAssumptionFailure(TestIdentifier testId, String trace) { in testAssumptionFailure() argument 98 if (mNullMethod != null && mNullMethod.equals(testId)) { in testAssumptionFailure() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | LegacySubprocessResultsReporter.java | 43 public void testAssumptionFailure(TestIdentifier testId, String trace) { in testAssumptionFailure() argument 45 new FailedTestEventInfo(testId.getClassName(), testId.getTestName(), trace); in testAssumptionFailure() 50 public void testEnded(TestIdentifier testId, Map<String, String> metrics) { in testEnded() argument 51 testEnded(testId, System.currentTimeMillis(), metrics); in testEnded() 55 public void testEnded(TestIdentifier testId, long endTime, Map<String, String> metrics) { in testEnded() argument 58 testId.getClassName(), testId.getTestName(), endTime, metrics); in testEnded() 63 public void testFailed(TestIdentifier testId, String reason) { in testFailed() argument 65 new FailedTestEventInfo(testId.getClassName(), testId.getTestName(), reason); in testFailed() 70 public void testIgnored(TestIdentifier testId) { in testIgnored() argument 71 BaseTestEventInfo info = new BaseTestEventInfo(testId.getClassName(), testId.getTestName()); in testIgnored() [all …]
|
D | SubprocessResultsReporter.java | 76 public void testAssumptionFailure(TestDescription testId, String trace) { in testAssumptionFailure() argument 78 new FailedTestEventInfo(testId.getClassName(), testId.getTestName(), trace); in testAssumptionFailure() 84 public void testEnded(TestDescription testId, HashMap<String, Metric> metrics) { in testEnded() argument 85 testEnded(testId, System.currentTimeMillis(), metrics); in testEnded() 90 public void testEnded(TestDescription testId, long endTime, HashMap<String, Metric> metrics) { in testEnded() argument 94 testId.getClassName(), in testEnded() 95 testId.getTestName(), in testEnded() 103 public void testFailed(TestDescription testId, String reason) { in testFailed() argument 105 new FailedTestEventInfo(testId.getClassName(), testId.getTestName(), reason); in testFailed() 111 public void testIgnored(TestDescription testId) { in testIgnored() argument [all …]
|
D | TextResultReporter.java | 46 public void testFailed(TestDescription testId, String trace) { in testFailed() argument 48 printer.getWriter().format("\nTest %s: failed \n stack: %s ", testId, trace); in testFailed() 52 public void testAssumptionFailure(TestDescription testId, String trace) { in testAssumptionFailure() argument 54 printer.getWriter().format("\nTest %s: assumption failed \n stack: %s ", testId, trace); in testAssumptionFailure() 59 public void testEnded(TestDescription testId, HashMap<String, Metric> metrics) { in testEnded() argument 60 super.testEnded(testId, metrics); in testEnded() 63 printer.getWriter().format("\n%s metrics: %s\n", testId, metrics); in testEnded()
|
D | InvocationToJUnitResultForwarder.java | 57 public void testFailed(TestDescription testId, String trace) { in testFailed() argument 58 Test test = new TestIdentifierResult(testId); in testFailed() 64 public void testAssumptionFailure(TestDescription testId, String trace) { in testAssumptionFailure() argument 65 Test test = new TestIdentifierResult(testId); in testAssumptionFailure() 120 private TestIdentifierResult(TestDescription testId) { in TestIdentifierResult() argument 121 mTestId = testId; in TestIdentifierResult()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | DynamicFileStubTest.java | 73 TestDescription testId = new TestDescription(this.getClass().getName(), "DynamicFile"); in checkDynamicFile() local 74 listener.testStarted(testId); in checkDynamicFile() 77 listener.testFailed(testId, String.format("%s doesn't exist.", mFile.getPath())); in checkDynamicFile() 80 listener.testEnded(testId, new LinkedHashMap<String, Metric>()); in checkDynamicFile() 84 TestDescription testId = new TestDescription(this.getClass().getName(), "DynamicFileList"); in checkDynamicFileList() local 85 listener.testStarted(testId); in checkDynamicFileList() 94 listener.testFailed(testId, String.format("%s doesn't exist.", nonExistFiles)); in checkDynamicFileList() 97 listener.testEnded(testId, new LinkedHashMap<String, Metric>()); in checkDynamicFileList() 101 TestDescription testId = new TestDescription(this.getClass().getName(), "DynamicFileMap"); in checkDynamicFileMap() local 102 listener.testStarted(testId); in checkDynamicFileMap() [all …]
|
D | GTestResultParser.java | 491 String[] testId = identifier.split("\\."); in parseTestDescription() local 492 if (testId.length < 2) { in parseTestDescription() 496 returnInfo.mTestClassName = testId[0]; in parseTestDescription() 497 returnInfo.mTestName = testId[1]; in parseTestDescription() 576 TestDescription testId = null; in processTestStartedTag() local 578 testId = new TestDescription(getTestClass(testResult), testResult.mTestName); in processTestStartedTag() 586 listener.testStarted(testId); in processTestStartedTag() 601 TestDescription testId = null; in doTestEnded() local 603 testId = new TestDescription(getTestClass(testResult), testResult.mTestName); in doTestEnded() 651 listener.testFailed(testId, mCurrentTestResult.getTrace()); in doTestEnded() [all …]
|
D | DeviceTestCase.java | 133 TestDescription testId = new TestDescription(runName, methodName); in run() local 134 listener.testStarted(testId); in run() 135 listener.testEnded(testId, empty); in run() 140 TestDescription testId = new TestDescription(runName, getName()); in run() local 141 listener.testStarted(testId); in run() 142 listener.testEnded(testId, empty); in run()
|
D | PythonUnitTestResultParser.java | 361 TestDescription testId = new TestDescription(mCurrentTestClass, mCurrentTestName); in reportNonFailureTestResult() local 363 mTestResultCache.put(testId, null); in reportNonFailureTestResult() 365 mTestResultCache.put(testId, SKIPPED_ENTRY); in reportNonFailureTestResult() 367 mTestResultCache.put(testId, "Test unexpected succeeded"); in reportNonFailureTestResult() 377 TestDescription testId = new TestDescription(mCurrentTestClass, mCurrentTestName); in reportFailureTestResult() local 378 mTestResultCache.put(testId, mCurrentTraceback.toString()); in reportFailureTestResult()
|
D | GTestXmlResultParser.java | 172 TestDescription testId = in processTestResult() local 176 listener.testStarted(testId); in processTestResult() 181 listener.testIgnored(testId); in processTestResult() 194 listener.testFailed(testId, trace); in processTestResult() 201 listener.testEnded(testId, TfMetricProtoUtil.upgradeConvert(map)); in processTestResult()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | MetricsXMLResultReporterTest.java | 76 final TestDescription testId = new TestDescription("FooTest", "testFoo"); in testRunMetrics() local 82 mResultReporter.testStarted(testId); in testRunMetrics() 83 mResultReporter.testEnded(testId, TfMetricProtoUtil.upgradeConvert(map)); in testRunMetrics() 91 testId.getTestName(), testId.getClassName()); in testRunMetrics() 103 final TestDescription testId = new TestDescription("FooTest", "testFoo"); in testTestMetrics() local 109 mResultReporter.testStarted(testId); in testTestMetrics() 110 mResultReporter.testEnded(testId, TfMetricProtoUtil.upgradeConvert(map)); in testTestMetrics() 118 testId.getTestName(), testId.getClassName()); in testTestMetrics() 127 final TestDescription testId = new TestDescription("FooTest", "testFoo"); in testTestFailMetrics() local 134 mResultReporter.testStarted(testId); in testTestFailMetrics() [all …]
|
D | XmlResultReporterTest.java | 119 final TestDescription testId = new TestDescription("FooTest", "testFoo"); in testSinglePass() local 125 mResultReporter.testStarted(testId); in testSinglePass() 126 mResultReporter.testEnded(testId, emptyMap); in testSinglePass() 133 testId.getTestName(), testId.getClassName()); in testSinglePass() 142 final TestDescription testId = new TestDescription("FooTest", "testFoo"); in testSingleFail() local 149 mResultReporter.testStarted(testId); in testSingleFail() 150 mResultReporter.testFailed(testId, trace); in testSingleFail() 151 mResultReporter.testEnded(testId, emptyMap); in testSingleFail() 158 testId.getTestName(), testId.getClassName()); in testSingleFail()
|
D | SubprocessResultsReporterTest.java | 56 TestDescription testId = new TestDescription("com.fakeclass", "faketest"); in testPrintEvent_Inop() local 57 mReporter.testStarted(testId); in testPrintEvent_Inop() 58 mReporter.testFailed(testId, "fake failure"); in testPrintEvent_Inop() 59 mReporter.testEnded(testId, new HashMap<String, Metric>()); in testPrintEvent_Inop() 111 TestDescription testId = new TestDescription("com.fakeclass", "faketest"); in testPrintEvent_printToSocket() local 120 mMockListener.testIgnored(testId); in testPrintEvent_printToSocket() 121 mMockListener.testAssumptionFailure(testId, "fake trace"); in testPrintEvent_printToSocket() 125 mReporter.testIgnored(testId); in testPrintEvent_printToSocket() 126 mReporter.testAssumptionFailure(testId, "fake trace"); in testPrintEvent_printToSocket()
|
D | LegacySubprocessResultsReporterTest.java | 51 TestIdentifier testId = new TestIdentifier("com.fakeclass", "faketest"); in testPrintEvent_Inop() local 52 mReporter.testStarted(testId); in testPrintEvent_Inop() 53 mReporter.testFailed(testId, "fake failure"); in testPrintEvent_Inop() 54 mReporter.testEnded(testId, Collections.emptyMap()); in testPrintEvent_Inop() 64 TestIdentifier testId = new TestIdentifier("com.fakeclass", "faketest"); in testPrintEvent_printToSocket() local 79 mReporter.testIgnored(testId); in testPrintEvent_printToSocket() 80 mReporter.testAssumptionFailure(testId, "fake trace"); in testPrintEvent_printToSocket()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | TestFailureListenerTest.java | 58 TestDescription testId = new TestDescription("com.fake", "methodfake"); in testTestFailed() local 68 mFailureListener.testStarted(testId); in testTestFailed() 69 mFailureListener.testFailed(testId, trace); in testTestFailed() 70 mFailureListener.testEnded(testId, new HashMap<String, Metric>()); in testTestFailed() 82 TestDescription testId = new TestDescription("com.fake", "methodfake"); in testTestFailed_userBuild() local 85 mFailureListener.testStarted(testId); in testTestFailed_userBuild() 86 mFailureListener.testFailed(testId, trace); in testTestFailed_userBuild() 87 mFailureListener.testEnded(testId, new HashMap<String, Metric>()); in testTestFailed_userBuild() 102 TestDescription testId = new TestDescription("com.fake", "methodfake"); in testFailed_multiDevice() local 110 mFailureListener.testStarted(testId); in testFailed_multiDevice() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | GTestFuncTest.java | 101 private void doNativeTestAppRunSingleTestFailure(TestDescription testId) { in doNativeTestAppRunSingleTestFailure() argument 105 mMockListener.testStarted(EasyMock.eq(testId)); in doNativeTestAppRunSingleTestFailure() 106 mMockListener.testFailed(EasyMock.eq(testId), in doNativeTestAppRunSingleTestFailure() 108 mMockListener.testEnded(EasyMock.eq(testId), EasyMock.eq(emptyMap)); in doNativeTestAppRunSingleTestFailure() 120 TestDescription testId = in testRun_testCrash() local 123 doNativeTestAppRunSingleTestFailure(testId); in testRun_testCrash() 137 TestDescription testId = in testRun_deviceReboot() local 141 doNativeTestAppRunSingleTestFailure(testId); in testRun_deviceReboot() 175 TestDescription testId = in testRun_timeout() local 180 doNativeTestAppRunSingleTestFailure(testId); in testRun_timeout()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | LocalRunInstructionBuilder.java | 54 TestDescription testId) { in getInstruction() argument 60 return getAtestInstruction(configDescriptor, testId); in getInstruction() 75 ConfigurationDescriptor configDescriptor, TestDescription testId) { in getAtestInstruction() argument 80 if (testId != null) { in getAtestInstruction() 81 testName.append(String.format(":%s", testId.getClassName())); in getAtestInstruction() 84 if (testId.getTestName().equals(testId.getTestNameWithoutParams())) { in getAtestInstruction() 85 testName.append(String.format("#%s", testId.getTestName())); in getAtestInstruction()
|
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/reporter/ |
D | GameQualificationResultReporter.java | 62 public void putRequirements(TestDescription testId, CertificationRequirements requirements) { in putRequirements() argument 63 mRequirements.put(testId, requirements); in putRequirements() 76 … public void testEnded(TestDescription testId, long elapsedTime, HashMap<String, Metric> metrics) { in testEnded() argument 77 super.testEnded(testId, elapsedTime, metrics); in testEnded() 81 summaries.put(testId, summary); in testEnded() 305 TestDescription testId = entry.getKey(); in createPerformanceReport() local 310 text.append(testId.getTestName()); in createPerformanceReport() 327 testId.getTestName(), in createPerformanceReport() 338 text.append(testId.getTestName()); in createPerformanceReport() 347 text.append(testId.getTestName()); in createPerformanceReport() [all …]
|
/tools/tradefederation/contrib/src/com/android/graphics/tests/ |
D | SkiaTest.java | 95 TestDescription testId = new TestDescription(mSkiaApp, "testFileExists"); in run() local 96 listener.testStarted(testId); in run() 99 listener.testFailed(testId, "Device does not have " + fullPath); in run() 100 listener.testEnded(testId, new HashMap<String, Metric>()); in run() 103 listener.testEnded(testId, new HashMap<String, Metric>()); in run() 183 TestDescription testId = new TestDescription(testIdClass, testIdMethod); in retrieveAndUploadFile() local 184 listener.testStarted(testId); in retrieveAndUploadFile() 186 listener.testFailed(testId, "Failed to pull " + remotePath); in retrieveAndUploadFile() 197 listener.testEnded(testId, new HashMap<String, Metric>()); in retrieveAndUploadFile()
|
/tools/tradefederation/contrib/src/com/android/uicd/tests/ |
D | UiConductorTest.java | 199 String testId = UUID.randomUUID().toString(); in runTest() local 201 rUtil.runTimedCmd(testTimeout, getCommand(jarFile, testFileName, testId, key)); in runTest() 202 logInfo(testId, "STD", cmndRes.getStdout()); in runTest() 203 logInfo(testId, "ERR", cmndRes.getStderr()); in runTest() 210 testId, in runTest() 239 private void logInfo(String testId, String cmdOutputType, String content) { in logInfo() argument 244 + testId in logInfo() 251 + testId in logInfo() 341 private String[] getCommand(File jarFile, String testFileName, String testId, String key) { in getCommand() argument 350 if (!getOutFilesArgsForUicdBin(OUTPUT_RELATIVE_PATH + "/" + testId).isEmpty()) { in getCommand() [all …]
|
/tools/tradefederation/contrib/src/com/android/example/ |
D | RebootTest.java | 48 TestDescription testId; in run() local 54 testId = new TestDescription("RebootTest", in run() 56 listener.testStarted(testId); in run() 61 listener.testFailed(testId, "Reboot failed"); in run() 66 listener.testEnded(testId, emptyMap); in run()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | VideoMultimeterRunner.java | 65 TestDescription testId = new TestDescription(getClass() in run() local 69 listener.testStarted(testId); in run() 86 listener.testFailed(testId, "Failed to set up environment"); in run() 90 listener.testFailed(testId, "Failed to acquire run token"); in run() 93 listener.testEnded(testId, TfMetricProtoUtil.upgradeConvert(metrics)); in run()
|
D | AudioJitterTest.java | 92 TestDescription testId = new TestDescription(getClass().getCanonicalName(), RUN_KEY); in run() local 96 listener.testStarted(testId); in run() 123 listener.testFailed(testId, errMsg); in run() 124 listener.testEnded(testId, TfMetricProtoUtil.upgradeConvert(metrics)); in run() 128 listener.testEnded(testId, TfMetricProtoUtil.upgradeConvert(metrics)); in run()
|
/tools/tradefederation/contrib/src/com/android/tradefed/ |
D | Sl4aBluetoothDiscovery.java | 94 TestDescription testId = in run() local 99 listener.testStarted(testId); in run() 122 listener.testFailed(testId, "Did not find the bluetooth from DUT."); in run() 126 listener.testFailed(testId, "Exception " + e); in run() 128 listener.testEnded(testId, new HashMap<String, Metric>()); in run()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | LocalRunInstructionBuilderTest.java | 77 TestDescription testId = new TestDescription(CLASS_NAME, METHOD_NAME); in testGetInstruction_withTestId() local 80 configDescriptor, LocalTestRunner.ATEST, testId); in testGetInstruction_withTestId() 97 TestDescription testId = new TestDescription(CLASS_NAME, METHOD_NAME_WITH_PARAMETER); in testGetInstruction_withTestIdAndParameter() local 100 configDescriptor, LocalTestRunner.ATEST, testId); in testGetInstruction_withTestIdAndParameter()
|