Home
last modified time | relevance | path

Searched refs:trace (Results 1 – 25 of 34) sorted by relevance

12

/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DAtraceCollector.java170 private void postProcess(File trace, String id) { in postProcess() argument
181 commandLine.add(entry.replaceAll(mLogProcessingTraceInput, trace.getAbsolutePath())); in postProcess()
205 File trace = device.pullFile(fullLogPath()); in onTestEnd() local
206 if (trace != null) { in onTestEnd()
207 CLog.i("Log size: %s bytes", String.valueOf(trace.length())); in onTestEnd()
208 try (FileInputStreamSource streamSource = new FileInputStreamSource(trace)) { in onTestEnd()
215 postProcess(trace, device.getSerialNumber()); in onTestEnd()
216 trace.delete(); in onTestEnd()
DBaseDeviceMetricCollector.java200 public final void testFailed(TestDescription test, String trace) { in testFailed() argument
201 mForwarder.testFailed(test, trace); in testFailed()
227 public final void testAssumptionFailure(TestDescription test, String trace) { in testAssumptionFailure() argument
228 mForwarder.testAssumptionFailure(test, trace); in testAssumptionFailure()
/tools/tradefederation/core/src/com/android/tradefed/result/
DTextResultReporter.java46 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()
DNameMangleListener.java75 public void testFailed(TestDescription test, String trace) { in testFailed() argument
77 mListener.testFailed(mangledTestId, trace); in testFailed()
82 public void testAssumptionFailure(TestDescription test, String trace) { in testAssumptionFailure() argument
84 mListener.testAssumptionFailure(mangledTestId, trace); in testAssumptionFailure()
DInvocationToJUnitResultForwarder.java57 public void testFailed(TestDescription testId, String trace) { in testFailed() argument
60 mJUnitListener.addFailure(test, new AssertionFailedError(trace)); in testFailed()
64 public void testAssumptionFailure(TestDescription testId, String trace) { in testAssumptionFailure() argument
66 AssumptionViolatedException throwable = new AssumptionViolatedException(trace); in testAssumptionFailure()
DLogcatCrashResultForwarder.java57 public void testFailed(TestDescription test, String trace) { in testFailed() argument
59 trace = extractCrashAndAddToMessage(trace, mStartTime); in testFailed()
60 super.testFailed(test, trace); in testFailed()
DStubTestRunListener.java40 public void testFailed(TestIdentifier test, String trace) { in testFailed() argument
48 public void testAssumptionFailure(TestIdentifier test, String trace) { in testAssumptionFailure() argument
DITestLifeCycleReceiver.java115 public default void testFailed(TestDescription test, String trace) {} in testFailed() argument
123 public default void testAssumptionFailure(TestDescription test, String trace) {} in testAssumptionFailure() argument
DResultForwarder.java232 public void testFailed(TestDescription test, String trace) { in testFailed() argument
235 listener.testFailed(test, trace); in testFailed()
263 public void testAssumptionFailure(TestDescription test, String trace) { in testAssumptionFailure() argument
266 listener.testAssumptionFailure(test, trace); in testAssumptionFailure()
DCollectingTestListener.java183 public void testFailed(TestDescription test, String trace) { in testFailed() argument
185 mCurrentResults.testFailed(test, trace); in testFailed()
189 public void testAssumptionFailure(TestDescription test, String trace) { in testAssumptionFailure() argument
191 mCurrentResults.testAssumptionFailure(test, trace); in testAssumptionFailure()
DTestRunResult.java208 private void updateTestResult(TestDescription test, TestStatus status, String trace) { in updateTestResult() argument
215 r.setStackTrace(trace); in updateTestResult()
219 public void testFailed(TestDescription test, String trace) { in testFailed() argument
220 updateTestResult(test, TestStatus.FAILURE, trace); in testFailed()
223 public void testAssumptionFailure(TestDescription test, String trace) { in testAssumptionFailure() argument
224 updateTestResult(test, TestStatus.ASSUMPTION_FAILURE, trace); in testAssumptionFailure()
DBugreportCollector.java445 public void testFailed(TestDescription test, String trace) { in testFailed() argument
446 mListener.testFailed(test, trace); in testFailed()
447 mCollector.testFailed(test, trace); in testFailed()
454 public void testAssumptionFailure(TestDescription test, String trace) { in testAssumptionFailure() argument
455 mListener.testAssumptionFailure(test, trace); in testAssumptionFailure()
456 mCollector.testAssumptionFailure(test, trace); in testAssumptionFailure()
DLegacySubprocessResultsReporter.java39 public void testAssumptionFailure(TestIdentifier testId, String trace) { in testAssumptionFailure() argument
41 new FailedTestEventInfo(testId.getClassName(), testId.getTestName(), trace); in testAssumptionFailure()
DXmlResultReporter.java88 public void testFailed(TestDescription test, String trace) { in testFailed() argument
89 super.testFailed(test, trace); in testFailed()
90 CLog.d("%s : %s", test, trace); in testFailed()
DTestResult.java119 public void setStackTrace(String trace) { in setStackTrace() argument
120 mStackTrace = trace; in setStackTrace()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DTestFailureListenerTest.java64 final String trace = "oups it failed"; in testTestFailed() local
90 mFailureListener.testFailed(testId, trace); in testTestFailed()
111 final String trace = "oups it failed"; in testTestFailed_notAvailable() local
131 mFailureListener.testFailed(testId, trace); in testTestFailed_notAvailable()
143 final String trace = "oups it failed"; in testTestFailed_userBuild() local
148 mFailureListener.testFailed(testId, trace); in testTestFailed_userBuild()
163 final String trace = "oups it failed"; in testFailed_multiDevice() local
173 mFailureListener.testFailed(testId, trace); in testFailed_multiDevice()
/tools/tradefederation/core/prod-tests/tests/src/com/android/continuous/
DSmokeTestFailureReporterTest.java61 final String trace = "this is a trace"; in testSingleFail() local
78 mReporter.testFailed(testId, trace); in testSingleFail()
105 final String trace = "this is a trace"; in testTwoPassOneFail() local
128 mReporter.testFailed(testFail, trace); in testTwoPassOneFail()
/tools/tradefederation/core/src/com/android/tradefed/result/ddmlib/
DTestRunToTestInvocationForwarder.java76 public void testAssumptionFailure(TestIdentifier testId, String trace) { in testAssumptionFailure() argument
80 TestDescription.createFromTestIdentifier(testId), trace); in testAssumptionFailure() local
91 public void testFailed(TestIdentifier testId, String trace) { in testFailed() argument
94 listener.testFailed(TestDescription.createFromTestIdentifier(testId), trace); in testFailed() local
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DGTestXmlResultParser.java175 String trace = ((Element)testcase.getElementsByTagName("failure").item(0)) in processTestResult() local
177 if (!trace.contains("Failed")) { in processTestResult()
180 trace += "\nFailed"; in processTestResult()
183 listener.testFailed(testId, trace); in processTestResult()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DModuleListener.java119 public void testFailed(TestDescription test, String trace) { in testFailed() argument
129 trace); in testFailed()
131 super.testFailed(test, trace); in testFailed()
/tools/tradefederation/core/tests/res/testdata/
Dsubprocess1.txt5 …roid.gesture.cts.GestureLibraryTest","testName":"testGetGestureEntries", "trace":"Failed deal with…
11 …me":"android.gesture.cts.GestureLibraryTest","testName":"testRecognize", "trace":"assume I fail...…
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DXmlResultReporterTest.java143 final String trace = "this is a trace"; in testSingleFail() local
150 mResultReporter.testFailed(testId, trace); in testSingleFail()
160 final String failureTag = String.format("<failure>%s</failure>", trace); in testSingleFail()
DMetricsXMLResultReporterTest.java128 final String trace = "sample trace"; in testTestFailMetrics() local
135 mResultReporter.testFailed(testId, trace); in testTestFailMetrics()
146 final String failureTag = String.format("<FAILURE>%s</FAILURE>", trace); in testTestFailMetrics()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DInstrumentationTestFuncTest.java120 public void testFailed(TestDescription test, String trace) { in testRun_testFailed()
121 error[0] = trace; in testRun_testFailed()
185 public void testFailed(TestDescription test, String trace) { in testRun_testTimeout()
186 error[0] = trace; in testRun_testTimeout()
/tools/tradefederation/contrib/src/com/android/media/tests/
DCameraTestBase.java301 public void testFailed(TestDescription test, String trace) { in testFailed() argument
302 super.testFailed(test, trace); in testFailed()
305 if (trace.startsWith(INCOMPLETE_TEST_ERR_MSG_PREFIX)) { in testFailed()
306 mFatalErrors.put(test.getTestName(), trace); in testFailed() local
307 CLog.d("Test (%s) failed due to fatal error : %s", test.getTestName(), trace); in testFailed()
309 mListener.testFailed(test, trace); in testFailed()

12