/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | LegacySubprocessResultsReporter.java | 48 public void testAssumptionFailure(TestIdentifier testId, String trace) { in testAssumptionFailure() argument 50 new FailedTestEventInfo(testId.getClassName(), testId.getTestName(), trace); in testAssumptionFailure() 55 public void testEnded(TestIdentifier testId, Map<String, String> metrics) { in testEnded() argument 56 testEnded(testId, System.currentTimeMillis(), metrics); in testEnded() 60 public void testEnded(TestIdentifier testId, long endTime, Map<String, String> metrics) { in testEnded() argument 63 testId.getClassName(), testId.getTestName(), endTime, metrics); in testEnded() 68 public void testFailed(TestIdentifier testId, String reason) { in testFailed() argument 70 new FailedTestEventInfo(testId.getClassName(), testId.getTestName(), reason); in testFailed() 75 public void testIgnored(TestIdentifier testId) { in testIgnored() argument 76 BaseTestEventInfo info = new BaseTestEventInfo(testId.getClassName(), testId.getTestName()); in testIgnored() [all …]
|
D | TextResultReporter.java | 46 public void testFailed(TestDescription testId, String trace) { in testFailed() argument 47 super.testFailed(testId, trace); in testFailed() 51 public void testAssumptionFailure(TestDescription testId, String trace) { in testAssumptionFailure() argument 52 super.testAssumptionFailure(testId, trace); in testAssumptionFailure() 57 public void testEnded(TestDescription testId, HashMap<String, Metric> metrics) { in testEnded() argument 58 super.testEnded(testId, metrics); in testEnded() 61 printer.getWriter().format("\n%s metrics: %s\n", testId, metrics); in testEnded()
|
D | SubprocessResultsReporter.java | 92 public void testAssumptionFailure(TestDescription testId, String trace) { in testAssumptionFailure() argument 94 new FailedTestEventInfo(testId.getClassName(), testId.getTestName(), trace); in testAssumptionFailure() 100 public void testEnded(TestDescription testId, HashMap<String, Metric> metrics) { in testEnded() argument 101 testEnded(testId, System.currentTimeMillis(), metrics); in testEnded() 106 public void testEnded(TestDescription testId, long endTime, HashMap<String, Metric> metrics) { in testEnded() argument 110 testId.getClassName(), in testEnded() 111 testId.getTestName(), in testEnded() 119 public void testFailed(TestDescription testId, String reason) { in testFailed() argument 121 new FailedTestEventInfo(testId.getClassName(), testId.getTestName(), reason); in testFailed() 127 public void testIgnored(TestDescription testId) { in testIgnored() argument [all …]
|
D | InvocationToJUnitResultForwarder.java | 58 public void testFailed(TestDescription testId, String trace) { in testFailed() argument 59 Test test = new TestIdentifierResult(testId); in testFailed() 64 String.format("\nTest %s failed with stack:\n %s", testId.toString(), trace)); in testFailed() 68 public void testAssumptionFailure(TestDescription testId, String trace) { in testAssumptionFailure() argument 69 Test test = new TestIdentifierResult(testId); in testAssumptionFailure() 126 private TestIdentifierResult(TestDescription testId) { in TestIdentifierResult() argument 127 mTestId = testId; in TestIdentifierResult()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | DynamicFileStubTest.java | 75 TestDescription testId = new TestDescription(this.getClass().getName(), "DynamicFile"); in checkDynamicFile() local 76 listener.testStarted(testId); in checkDynamicFile() 79 listener.testFailed(testId, String.format("%s doesn't exist.", mFile.getPath())); in checkDynamicFile() 82 listener.testEnded(testId, new LinkedHashMap<String, Metric>()); in checkDynamicFile() 86 TestDescription testId = new TestDescription(this.getClass().getName(), "DynamicFileList"); in checkDynamicFileList() local 87 listener.testStarted(testId); in checkDynamicFileList() 96 listener.testFailed(testId, String.format("%s doesn't exist.", nonExistFiles)); in checkDynamicFileList() 99 listener.testEnded(testId, new LinkedHashMap<String, Metric>()); in checkDynamicFileList() 103 TestDescription testId = new TestDescription(this.getClass().getName(), "DynamicFileMap"); in checkDynamicFileMap() local 104 listener.testStarted(testId); in checkDynamicFileMap() [all …]
|
/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 | 64 TestDescription testId = new TestDescription("com.fakeclass", "faketest"); in testPrintEvent_Inop() local 65 mReporter.testStarted(testId); in testPrintEvent_Inop() 66 mReporter.testFailed(testId, "fake failure"); in testPrintEvent_Inop() 67 mReporter.testEnded(testId, new HashMap<String, Metric>()); in testPrintEvent_Inop() 121 TestDescription testId = new TestDescription("com.fakeclass", "faketest"); in testPrintEvent_printToSocket() local 131 mMockListener.testIgnored(testId); in testPrintEvent_printToSocket() 132 mMockListener.testAssumptionFailure(testId, "fake trace"); in testPrintEvent_printToSocket() 136 mReporter.testIgnored(testId); in testPrintEvent_printToSocket() 137 mReporter.testAssumptionFailure(testId, "fake trace"); in testPrintEvent_printToSocket() 159 TestDescription testId = new TestDescription("com.fakeclass", "faketest"); in testPrintEvent_printToSocket_StructuredFailures() local [all …]
|
D | LegacySubprocessResultsReporterTest.java | 52 TestIdentifier testId = new TestIdentifier("com.fakeclass", "faketest"); in testPrintEvent_Inop() local 53 mReporter.testStarted(testId); in testPrintEvent_Inop() 54 mReporter.testFailed(testId, "fake failure"); in testPrintEvent_Inop() 55 mReporter.testEnded(testId, Collections.emptyMap()); in testPrintEvent_Inop() 65 TestIdentifier testId = new TestIdentifier("com.fakeclass", "faketest"); in testPrintEvent_printToSocket() local 81 mReporter.testIgnored(testId); in testPrintEvent_printToSocket() 82 mReporter.testAssumptionFailure(testId, "fake trace"); in testPrintEvent_printToSocket()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | LocalRunInstructionBuilder.java | 56 TestDescription testId) { in getInstruction() argument 62 return getAtestInstruction(configDescriptor, testId); in getInstruction() 77 ConfigurationDescriptor configDescriptor, TestDescription testId) { in getAtestInstruction() argument 80 instruction.append(getCommand(configDescriptor, testId, LocalTestRunner.ATEST)); in getAtestInstruction() 94 TestDescription testId, in getCommand() argument 102 if (testId != null) { in getCommand() 103 testName.append(String.format(":%s", testId.getClassName())); in getCommand() 106 if (testId.getTestName().equals(testId.getTestNameWithoutParams())) { in getCommand() 107 testName.append(String.format("#%s", testId.getTestName())); in getCommand()
|
/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/src/com/android/tradefed/result/ddmlib/ |
D | TestRunToTestInvocationForwarder.java | 67 public void testStarted(TestIdentifier testId) { in testStarted() argument 68 if (INVALID_METHODS.contains(testId.getTestName())) { in testStarted() 69 mNullMethod = testId; in testStarted() 75 listener.testStarted(TestDescription.createFromTestIdentifier(testId)); in testStarted() 86 public void testAssumptionFailure(TestIdentifier testId, String trace) { in testAssumptionFailure() argument 87 if (mNullMethod != null && mNullMethod.equals(testId)) { in testAssumptionFailure() 93 TestDescription.createFromTestIdentifier(testId), trace); in testAssumptionFailure() 104 public void testFailed(TestIdentifier testId, String trace) { in testFailed() argument 105 if (mNullMethod != null && mNullMethod.equals(testId)) { in testFailed() 111 listener.testFailed(TestDescription.createFromTestIdentifier(testId), trace); in testFailed() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | GTestFuncTest.java | 104 private void doNativeTestAppRunSingleTestFailure(TestDescription testId) { in doNativeTestAppRunSingleTestFailure() argument 108 mMockListener.testStarted(EasyMock.eq(testId)); in doNativeTestAppRunSingleTestFailure() 109 mMockListener.testFailed(EasyMock.eq(testId), in doNativeTestAppRunSingleTestFailure() 111 mMockListener.testEnded(EasyMock.eq(testId), EasyMock.eq(emptyMap)); in doNativeTestAppRunSingleTestFailure() 123 TestDescription testId = in testRun_testCrash() local 126 doNativeTestAppRunSingleTestFailure(testId); in testRun_testCrash() 140 TestDescription testId = in testRun_deviceReboot() local 144 doNativeTestAppRunSingleTestFailure(testId); in testRun_deviceReboot() 178 TestDescription testId = in testRun_timeout() local 183 doNativeTestAppRunSingleTestFailure(testId); in testRun_timeout()
|
D | ArtRunTestTest.java | 180 TestDescription testId = new TestDescription(runName, RUN_TEST_NAME); in testRunSingleTest() local 181 mMockInvocationListener.testStarted(testId); in testRunSingleTest() 190 EasyMock.eq(testId), (HashMap<String, Metric>) EasyMock.anyObject()); in testRunSingleTest() 218 TestDescription testId = new TestDescription(runName, RUN_TEST_NAME); in testRunSingleTest_unexpectedOutput() local 219 mMockInvocationListener.testStarted(testId); in testRunSingleTest_unexpectedOutput() 227 mMockInvocationListener.testFailed(testId, "'unexpected\n' instead of 'output\n'"); in testRunSingleTest_unexpectedOutput() 229 EasyMock.eq(testId), (HashMap<String, Metric>) EasyMock.anyObject()); in testRunSingleTest_unexpectedOutput()
|
/tools/tradefederation/contrib/src/com/android/example/ |
D | RebootTest.java | 44 TestDescription testId; in run() local 50 testId = new TestDescription("RebootTest", in run() 52 listener.testStarted(testId); in run() 56 listener.testFailed(testId, "Failed to reboot."); in run() 58 listener.testEnded(testId, emptyMap); in run()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | GoogleBenchmarkResultParser.java | 79 TestDescription testId = new TestDescription(mTestClassName, name); in parse() local 80 mTestListener.testStarted(testId); in parse() 86 testId, in parse() 94 mTestListener.testIgnored(testId); in parse() 103 testId, "Benchmark reported an unspecified error"); in parse() 106 testId, in parse() 112 mTestListener.testEnded(testId, TfMetricProtoUtil.upgradeConvert(testResults)); in parse()
|
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 | ArtRunTest.java | 131 TestDescription testId = new TestDescription(runName, mRunTestName); in runArtTest() local 133 listener.testStarted(testId); in runArtTest() 155 listener.testFailed(testId, error); in runArtTest() 161 listener.testFailed(testId, "I/O error while accessing expected output file."); in runArtTest() 164 listener.testFailed(testId, "No output received to compare to."); in runArtTest() 168 listener.testEnded(testId, emptyTestMetrics); in runArtTest()
|
/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/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/core/test_framework/com/android/tradefed/testtype/rust/ |
D | RustTestResultParser.java | 167 TestDescription testId = new TestDescription(mCurrentTestFile, mCurrentTestName); in reportTestResult() local 169 mTestResultCache.put(testId, null); in reportTestResult() 171 mTestResultCache.put(testId, SKIPPED_ENTRY); in reportTestResult() 174 mTestResultCache.put(testId, FAILED_ENTRY); in reportTestResult() 176 mTestResultCache.put(testId, mCurrentTestStatus); in reportTestResult()
|
/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()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/ |
D | TokenTestClass.java | 46 TestDescription testId = new TestDescription("StubToken", "MethodToken"); in run() local 47 listener.testStarted(testId); in run() 48 listener.testEnded(testId, new LinkedHashMap<String, Metric>()); in run()
|
/tools/tradefederation/contrib/src/com/android/tradefed/ |
D | Sl4aBluetoothDiscovery.java | 93 TestDescription testId = in run() local 98 listener.testStarted(testId); in run() 121 listener.testFailed(testId, "Did not find the bluetooth from DUT."); in run() 125 listener.testFailed(testId, "Exception " + e); in run() 127 listener.testEnded(testId, new HashMap<String, Metric>()); in run()
|