Home
last modified time | relevance | path

Searched refs:FailureDescription (Results 1 – 25 of 64) sorted by relevance

123

/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/result/
DFailureDescription.java27 public class FailureDescription { class
48 FailureDescription() {} in FailureDescription() method in FailureDescription
54 public FailureDescription setFailureStatus(TestRecordProto.FailureStatus status) { in setFailureStatus()
68 public FailureDescription setActionInProgress(ActionInProgress action) { in setActionInProgress()
79 public FailureDescription setDebugHelpMessage(String message) { in setDebugHelpMessage()
90 public FailureDescription setCause(Throwable cause) { in setCause()
101 public FailureDescription setRetriable(boolean retriable) { in setRetriable()
112 public FailureDescription setErrorIdentifier(ErrorIdentifier errorId) { in setErrorIdentifier()
123 public FailureDescription setOrigin(String origin) { in setOrigin()
155 public static FailureDescription create(String errorMessage) { in create()
[all …]
DMultiFailureDescription.java32 public final class MultiFailureDescription extends FailureDescription {
34 private List<FailureDescription> mFailures = new ArrayList<>();
36 public MultiFailureDescription(List<FailureDescription> failures) { in MultiFailureDescription()
41 public MultiFailureDescription(FailureDescription... failures) { in MultiFailureDescription()
51 public MultiFailureDescription addFailure(FailureDescription failure) { in addFailure()
60 public List<FailureDescription> getFailures() { in getFailures()
102 for (FailureDescription desc : mFailures) { in isRetriable()
119 for (FailureDescription f : mFailures) { in toString()
143 private void addMultiFailures(List<FailureDescription> failures) { in addMultiFailures()
144 for (FailureDescription failure : failures) { in addMultiFailures()
DITestLifeCycleReceiver.java95 public default void testRunFailed(FailureDescription failure) { in testRunFailed()
164 public default void testFailed(TestDescription test, FailureDescription failure) { in testFailed()
182 public default void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DMultiFailureDescriptionTest.java32 FailureDescription failure1 = FailureDescription.create("error message 1"); in testCreation()
33 FailureDescription failure2 = FailureDescription.create("error message 2"); in testCreation()
43 FailureDescription failure1 = FailureDescription.create("error message 1"); in testCreation_nested()
44 FailureDescription failure2 = FailureDescription.create("error message 2"); in testCreation_nested()
DSubprocessResultsReporterTest.java125 Capture<FailureDescription> captured = new Capture<>(); in testPrintEvent_printToSocket()
146 FailureDescription capturedFailure = captured.getValue(); in testPrintEvent_printToSocket()
163 Capture<FailureDescription> captured = new Capture<>(); in testPrintEvent_printToSocket_StructuredFailures()
164 Capture<FailureDescription> invocationFailureCaptured = new Capture<>(); in testPrintEvent_printToSocket_StructuredFailures()
177 FailureDescription runFailure = in testPrintEvent_printToSocket_StructuredFailures()
178 FailureDescription.create("no reason") in testPrintEvent_printToSocket_StructuredFailures()
184 FailureDescription invocationFailure = in testPrintEvent_printToSocket_StructuredFailures()
185 FailureDescription.create("invoc error") in testPrintEvent_printToSocket_StructuredFailures()
198 FailureDescription capturedFailure = captured.getValue(); in testPrintEvent_printToSocket_StructuredFailures()
210 FailureDescription capturedInvocation = invocationFailureCaptured.getValue(); in testPrintEvent_printToSocket_StructuredFailures()
DFailureDescriptionTest.java31 private FailureDescription mFailureDescription;
35 mFailureDescription = FailureDescription.create("error message"); in testCreation()
DLogcatCrashResultForwarderTest.java99 Capture<FailureDescription> captured = new Capture<>(); in testCaptureTestCrash_oneCrashingLogcat()
144 Capture<FailureDescription> captured = new Capture<>(); in testCaptureTestCrash_oneCrashingLogcatAfterTestEnded()
192 Capture<FailureDescription> captured = new Capture<>(); in testCaptureTestCrash_duplicateStack()
/tools/tradefederation/core/tests/src/com/android/tradefed/retry/
DBaseRetryDecisionTest.java27 import com.android.tradefed.result.FailureDescription;
122 TestRunResult result = createResult(null, FailureDescription.create("failure2")); in testShouldRetry_failure()
133 FailureDescription.create("failure"), in testShouldRetry_failure_nonRetriable()
134 FailureDescription.create("failure2").setRetriable(false)); in testShouldRetry_failure_nonRetriable()
145 TestRunResult result = createResult(null, FailureDescription.create("failure2")); in testShouldRetry_success()
158 TestRunResult result = createResult(null, FailureDescription.create("failure2")); in testShouldRetry_morefailure()
164 TestRunResult result2 = createResult(FailureDescription.create("failure"), null); in testShouldRetry_morefailure()
171 FailureDescription failure = FailureDescription.create("run failure"); in testShouldRetry_runFailure()
181 FailureDescription failure = FailureDescription.create("run failure"); in testShouldRetry_runFailure_nonRetriable()
185 FailureDescription failure2 = FailureDescription.create("run failure2"); in testShouldRetry_runFailure_nonRetriable()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DInstrumentationListener.java22 import com.android.tradefed.result.FailureDescription;
96 public void testRunFailed(FailureDescription error) { in testRunFailed()
121 FailureDescription error = in testRunEnded()
122 FailureDescription.create( in testRunEnded()
136 FailureDescription failure = in testRunEnded()
137 FailureDescription.create( in testRunEnded()
DGTestListener.java19 import com.android.tradefed.result.FailureDescription;
69 FailureDescription error = FailureDescription.create(errorMessage.toString()); in testRunEnded()
/tools/tradefederation/core/src/com/android/tradefed/result/suite/
DFormattedGeneratorReporter.java22 import com.android.tradefed.result.FailureDescription;
73 FailureDescription description = in invocationFailed()
74 FailureDescription.create(cause.getMessage()).setCause(cause); in invocationFailed()
82 public void invocationFailed(FailureDescription failure) { in invocationFailed()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DDeviceBatteryLevelChecker.java28 import com.android.tradefed.result.FailureDescription;
137 FailureDescription failure = FailureDescription.create(e.getMessage()).setCause(e); in run()
146 FailureDescription failure = in run()
147 FailureDescription.create("No battery charge information"); in run()
175 FailureDescription.create("Failed to determine battery level")); in runTest()
262 test, FailureDescription.create("Failed to read battery level")); in runBatteryCharging()
284 FailureDescription.create( in checkChargingSpeed()
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/
DTestRunResult.java64 private FailureDescription mRunFailureError = null;
217 public FailureDescription getRunFailureDescription() { in getRunFailureDescription()
285 TestDescription test, TestStatus status, FailureDescription failure) { in updateTestResult()
299 updateTestResult(test, TestStatus.FAILURE, FailureDescription.create(trace)); in testFailed()
302 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed()
307 updateTestResult(test, TestStatus.ASSUMPTION_FAILURE, FailureDescription.create(trace)); in testAssumptionFailure()
336 testRunFailed((FailureDescription) null); in testRunFailed()
338 testRunFailed(FailureDescription.create(errorMessage)); in testRunFailed()
342 public void testRunFailed(FailureDescription failureDescription) { in testRunFailed()
344 failureDescription = FailureDescription.create("testRunFailed(null) was called."); in testRunFailed()
[all …]
DTestResult.java37 private FailureDescription mFailureDescription;
73 public FailureDescription getFailure() { in getFailure()
139 mFailureDescription = FailureDescription.create(stackTrace); in setStackTrace()
143 public void setFailure(FailureDescription failureDescription) { in setFailure()
204 List<FailureDescription> errors = new ArrayList<>(); in merge()
229 errors.add(FailureDescription.create("incomplete test case result.")); in merge()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DDeviceBatteryLevelCheckerTest.java30 import com.android.tradefed.result.FailureDescription;
128 mTestDescription, FailureDescription.create("Failed to determine battery level")); in testNull()
131 FailureDescription failure = FailureDescription.create("No battery charge information"); in testNull()
176 EasyMock.eq(mTestDescription2), EasyMock.<FailureDescription>anyObject()); in testLow()
237 mTestDescription, FailureDescription.create("Failed to read battery level")); in testLow_becomeNull()
240 FailureDescription failure = FailureDescription.create("No battery charge information"); in testLow_becomeNull()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/proto/
DProtoResultParserTest.java31 import com.android.tradefed.result.FailureDescription;
161 mMockListener.testFailed(test2, FailureDescription.create("I failed")); in testEvents()
172 Capture<FailureDescription> captureInvocFailure = new Capture<>(); in testEvents()
232 FailureDescription invocFailureCaptured = captureInvocFailure.getValue(); in testEvents()
251 FailureDescription invocFailure = in testEvents_invocationFailure()
252 FailureDescription.create(failure.getMessage()) in testEvents_invocationFailure()
261 Capture<FailureDescription> captureInvocFailure = new Capture<>(); in testEvents_invocationFailure()
276 FailureDescription invocFailureCaptured = captureInvocFailure.getValue(); in testEvents_invocationFailure()
293 FailureDescription invocFailure = in testEvents_invocationFailure_errorNotSet()
294 FailureDescription.create(failure.getMessage()) in testEvents_invocationFailure_errorNotSet()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/logger/
DCurrentInvocationTest.java20 import com.android.tradefed.result.FailureDescription;
33 FailureDescription description = in testCreateFailure()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ddmlib/
DTestRunToTestInvocationForwarderTest.java20 import com.android.tradefed.result.FailureDescription;
94 FailureDescription expectedFailure = in testForwarding_null()
95 FailureDescription.create( in testForwarding_null()
133 FailureDescription expectedFailure = in testForwarding_initError()
134 FailureDescription.create( in testForwarding_initError()
/tools/tradefederation/core/src/com/android/tradefed/result/ddmlib/
DTestRunToTestInvocationForwarder.java21 import com.android.tradefed.result.FailureDescription;
146 FailureDescription failure = in testEnded()
147 FailureDescription.create(message, FailureStatus.TEST_FAILURE); in testEnded()
187 FailureDescription failureDescription = FailureDescription.create(failure); in testRunFailed()
/tools/tradefederation/core/src/com/android/tradefed/result/proto/
DProtoResultParser.java28 import com.android.tradefed.result.FailureDescription;
207 FailureDescription failure = in completeModuleEvents()
208 FailureDescription.create( in completeModuleEvents()
304 FailureDescription failure = FailureDescription.create(debugInfo.getErrorMessage()); in handleInvocationEnded()
415 FailureDescription failure = FailureDescription.create(debugInfo.getErrorMessage()); in handleTestRunEnd()
451 FailureDescription failure = in handleTestCaseEnd()
452 FailureDescription.create(testcaseProto.getDebugInfo().getErrorMessage()); in handleTestCaseEnd()
464 FailureDescription assumption = in handleTestCaseEnd()
465 FailureDescription.create(testcaseProto.getDebugInfo().getErrorMessage()); in handleTestCaseEnd()
635 private void parseDebugInfoContext(DebugInfo debugInfo, FailureDescription failure) { in parseDebugInfoContext()
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/invoker/logger/
DCurrentInvocation.java21 import com.android.tradefed.result.FailureDescription;
168 public static FailureDescription createFailure( in createFailure()
170 FailureDescription failure = FailureDescription.create(errorMessage); in createFailure()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DModuleListener.java23 import com.android.tradefed.result.FailureDescription;
93 public void testRunFailed(FailureDescription failure) { in testRunFailed()
172 public void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure()
191 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/mobly/
DMoblyYamlResultParser.java19 import com.android.tradefed.result.FailureDescription;
94 FailureDescription failureDescription = in reportToListeners()
95 FailureDescription.create( in reportToListeners()
/tools/tradefederation/core/src/com/android/tradefed/retry/
DResultAggregator.java23 import com.android.tradefed.result.FailureDescription;
68 private List<FailureDescription> mAllDetailedFailures = new ArrayList<>();
124 public void invocationFailed(FailureDescription failure) { in invocationFailed()
236 public void testRunFailed(FailureDescription failure) { in testRunFailed()
266 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed()
301 FailureDescription currentFailure = mDetailedRunResults.getRunFailureDescription(); in testRunEnded()
398 FailureDescription.create("Test did not complete due to exception.")); in forwardTestResults()
/tools/tradefederation/core/src/com/android/tradefed/result/
DLogcatCrashResultForwarder.java75 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed()
91 testRunFailed(FailureDescription.create(errorMessage, FailureStatus.TEST_FAILURE)); in testRunFailed()
95 public void testRunFailed(FailureDescription error) { in testRunFailed()

123