/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | DeviceUnavailableMonitor.java | 45 public void testRunFailed(FailureDescription failure) { in testRunFailed() argument 49 mUnavailableException = analyzeFailure(failure); in testRunFailed() 53 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument 57 mUnavailableException = analyzeFailure(failure); in testFailed() 61 public void invocationFailed(FailureDescription failure) { in invocationFailed() argument 66 mUnavailableException = analyzeFailure(failure); in invocationFailed() 79 private DeviceNotAvailableException analyzeFailure(FailureDescription failure) { in analyzeFailure() argument 80 if (failure.getCause() != null in analyzeFailure() 81 && failure.getCause() instanceof DeviceNotAvailableException) { in analyzeFailure() 82 return (DeviceNotAvailableException) failure.getCause(); in analyzeFailure() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/result/proto/ |
D | ProtoResultReporter.java | 212 public void invocationFailed(FailureDescription failure) { in invocationFailed() argument 213 mInvocationFailureDescription = failure; in invocationFailed() 357 public final void testRunFailed(FailureDescription failure) { in testRunFailed() argument 360 debugBuilder.setErrorMessage(failure.toString()); in testRunFailed() 361 if (failure.getFailureStatus() != null) { in testRunFailed() 362 debugBuilder.setFailureStatus(failure.getFailureStatus()); in testRunFailed() 365 if (failure.getActionInProgress() != null) { in testRunFailed() 366 debugContext.setActionInProgress(failure.getActionInProgress().toString()); in testRunFailed() 368 if (!Strings.isNullOrEmpty(failure.getDebugHelpMessage())) { in testRunFailed() 369 debugContext.setDebugHelpMessage(failure.getDebugHelpMessage()); in testRunFailed() [all …]
|
D | ProtoResultParser.java | 263 FailureDescription failure = in completeModuleEvents() local 266 mListener.testFailed(mCurrentTestCase, failure); in completeModuleEvents() 270 FailureDescription failure = in completeModuleEvents() local 274 mListener.testRunFailed(failure); in completeModuleEvents() 376 FailureDescription failure = FailureDescription.create(debugInfo.getErrorMessage()); in handleInvocationEnded() local 379 failure.setFailureStatus(debugInfo.getFailureStatus()); in handleInvocationEnded() 381 parseDebugInfoContext(endInvocationProto.getDebugInfo(), failure); in handleInvocationEnded() local 389 failure.setCause(invocationError); in handleInvocationEnded() 391 failure.setErrorIdentifier(InfraErrorIdentifier.OUT_OF_MEMORY_ERROR); in handleInvocationEnded() 396 failure.setCause(new RuntimeException(failure.getErrorMessage())); in handleInvocationEnded() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | EventsLoggerListener.java | 54 public void invocationFailed(FailureDescription failure) { in invocationFailed() argument 58 failure.getFailureStatus(), failure.getErrorIdentifier(), failure)); in invocationFailed() 106 public void testRunFailed(FailureDescription failure) { in testRunFailed() argument 110 failure.getErrorMessage(), in testRunFailed() 111 failure.getFailureStatus(), in testRunFailed() 112 failure.getErrorIdentifier())); in testRunFailed() 136 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument 146 public void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() argument
|
D | LogcatCrashResultForwarder.java | 104 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument 105 if (FailureStatus.NOT_EXECUTED.equals(failure.getFailureStatus())) { in testFailed() 106 super.testFailed(test, failure); in testFailed() 110 String trace = extractCrashAndAddToMessage(failure.getErrorMessage(), mStartTime); in testFailed() 112 failure.setErrorIdentifier(DeviceErrorIdentifier.INSTRUMENTATION_LOWMEMORYKILLER); in testFailed() 113 } else if (isCrash(failure.getErrorMessage())) { in testFailed() 114 failure.setErrorIdentifier(DeviceErrorIdentifier.INSTRUMENTATION_CRASH); in testFailed() 115 } else if (isTimeout(failure.getErrorMessage())) { in testFailed() 116 failure.setErrorIdentifier(TestErrorIdentifier.INSTRUMENTATION_TIMED_OUT); in testFailed() 118 failure.setErrorMessage(trace); in testFailed() [all …]
|
D | ResultForwarder.java | 124 public void invocationFailed(FailureDescription failure) { in invocationFailed() argument 127 listener.invocationFailed(failure); in invocationFailed() 242 public void testRunFailed(FailureDescription failure) { in testRunFailed() argument 245 listener.testRunFailed(failure); in testRunFailed() 315 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument 318 listener.testFailed(test, failure); in testFailed() 372 public void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() argument 375 listener.testAssumptionFailure(test, failure); in testAssumptionFailure()
|
D | SubprocessResultsReporter.java | 101 public void testAssumptionFailure(TestDescription testId, FailureDescription failure) { in testAssumptionFailure() argument 103 new FailedTestEventInfo(testId.getClassName(), testId.getTestName(), failure); in testAssumptionFailure() 144 public void testFailed(TestDescription testId, FailureDescription failure) { in testFailed() argument 146 new FailedTestEventInfo(testId.getClassName(), testId.getTestName(), failure); in testFailed() 175 public void testRunFailed(FailureDescription failure) { in testRunFailed() argument 176 TestRunFailedEventInfo info = new TestRunFailedEventInfo(failure); in testRunFailed() 292 public void invocationFailed(FailureDescription failure) { in invocationFailed() argument 293 InvocationFailedEventInfo info = new InvocationFailedEventInfo(failure); in invocationFailed()
|
D | FilteredResultForwarder.java | 95 public void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() argument 99 super.testAssumptionFailure(test, failure); in testAssumptionFailure() 111 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument 115 super.testFailed(test, failure); in testFailed()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/ |
D | RunNotifierWrapper.java | 83 public void fireTestFailure(Failure failure) { in fireTestFailure() argument 84 notifier.fireTestFailure(failure); in fireTestFailure() 85 if (failure.getException() instanceof DeviceNotAvailableException) { in fireTestFailure() 86 mDnae = (DeviceNotAvailableException) failure.getException(); in fireTestFailure() 87 } else if (failure.getException() instanceof InterruptedException) { in fireTestFailure() 88 throw new CarryInterruptedException((InterruptedException) failure.getException()); in fireTestFailure() 93 public void fireTestAssumptionFailed(Failure failure) { in fireTestAssumptionFailed() argument 94 notifier.fireTestAssumptionFailed(failure); in fireTestAssumptionFailed()
|
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/result/ |
D | MultiFailureDescription.java | 51 public MultiFailureDescription addFailure(FailureDescription failure) { in addFailure() argument 52 if (failure instanceof MultiFailureDescription) { in addFailure() 53 addMultiFailures(((MultiFailureDescription) failure).getFailures()); in addFailure() 55 mFailures.add(failure); in addFailure() 154 for (FailureDescription failure : failures) { in addMultiFailures() 155 if (failure instanceof MultiFailureDescription) { in addMultiFailures() 156 addMultiFailures(((MultiFailureDescription) failure).getFailures()); in addMultiFailures() 158 mFailures.add(failure); in addMultiFailures()
|
D | ITestLifeCycleReceiver.java | 96 public default void testRunFailed(FailureDescription failure) { in testRunFailed() argument 97 testRunFailed(failure.toString()); in testRunFailed() 165 public default void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument 166 testFailed(test, failure.toString()); in testFailed() 183 public default void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() argument 184 testAssumptionFailure(test, failure.toString()); in testAssumptionFailure()
|
/tools/test/connectivity/acts_tests/tests/google/tel/live/ |
D | TelLiveMobilityStressTest.py | 163 failure = 0 174 failure += 1 183 self.dut.log.info("Crashes found: %s", failure) 184 if failure: 252 failure = 0 266 failure += 1 279 self.dut.log.info("Call test failure: %s/%s", failure, total_count) 280 if failure: 286 failure = 0 294 failure += 1 [all …]
|
/tools/tradefederation/core/isolation/com/android/tradefed/isolation/ |
D | IsolationResultForwarder.java | 48 public void testFailure(Failure failure) throws IOException { in testFailure() argument 49 Description desc = failure.getDescription(); in testFailure() 50 System.err.println("ERROR: Test failed due to following exception: " + failure.getTrace()); in testFailure() 56 .setMessage(failure.getTrace()) in testFailure() 66 public void testAssumptionFailure(Failure failure) { in testAssumptionFailure() argument 69 Description desc = failure.getDescription(); in testAssumptionFailure() 73 testAssumptionFailure(new Failure(child, failure.getException())); in testAssumptionFailure() 84 .setMessage(failure.getMessage()) in testAssumptionFailure()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | ModuleListener.java | 125 public void testRunFailed(FailureDescription failure) { in testRunFailed() argument 128 failure.getFailureStatus(), in testRunFailed() 129 failure.getErrorIdentifier(), in testRunFailed() 130 failure.getErrorMessage(), in testRunFailed() 132 super.testRunFailed(failure); in testRunFailed() 229 public void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() argument 230 super.testAssumptionFailure(test, failure); in testAssumptionFailure() 232 mTrace = failure.toString(); in testAssumptionFailure() 255 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument 260 mTrace = failure.toString(); in testFailed() [all …]
|
/tools/test/connectivity/acts_tests/tests/google/bt/car_bt/ |
D | BtCarPairedConnectDisconnectTest.py | 113 failure = 0 135 failure = failure + 1 153 failure = failure + 1 157 failure, NUM_TEST_RUNS)) 158 if failure > 0:
|
/tools/asuite/atest/bazel/runner/src/com/android/tradefed/testtype/bazel/ |
D | ForwardingTestListener.java | 71 public void testRunFailed(FailureDescription failure) { in testRunFailed() argument 72 delegate().testRunFailed(failure); in testRunFailed() 106 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument 107 delegate().testFailed(test, failure); in testFailed() 116 public void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() argument 117 delegate().testAssumptionFailure(test, failure); in testAssumptionFailure() 161 public void invocationFailed(FailureDescription failure) { in invocationFailed() argument 162 delegate().invocationFailed(failure); in invocationFailed()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | GoogleBenchmarkResultParser.java | 77 FailureDescription failure = in parse() 80 mTestListener.testRunFailed(failure); in parse() 82 FailureDescription failure; in parse() 84 failure = in parse() 88 failure = in parse() 92 mTestListener.testRunFailed(failure); in parse() 97 FailureDescription failure = in parse() 101 mTestListener.testRunFailed(failure); in parse()
|
D | TestTimeoutEnforcer.java | 91 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument 92 super.testFailed(test, failure); in testFailed() 105 public void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() argument 106 super.testAssumptionFailure(test, failure); in testAssumptionFailure() 130 FailureDescription failure = in testEnded() local 138 super.testFailed(test, failure); in testEnded()
|
/tools/tradefederation/core/javatests/com/android/tradefed/retry/ |
D | BaseRetryDecisionTest.java | 174 FailureDescription failure = FailureDescription.create("run failure"); in testShouldRetry_runFailure() local 175 TestRunResult result = createResult(null, null, failure); in testShouldRetry_runFailure() 184 FailureDescription failure = FailureDescription.create("run failure"); in testShouldRetry_runFailure_noFullRetry() local 185 failure.setFullRerun(false); in testShouldRetry_runFailure_noFullRetry() 186 TestRunResult result = createResult(FailureDescription.create("failure"), null, failure); in testShouldRetry_runFailure_noFullRetry() 197 FailureDescription failure = FailureDescription.create("run failure"); in testShouldRetry_runFailure_nonRetriable() local 198 failure.setRetriable(false); in testShouldRetry_runFailure_nonRetriable() 199 TestRunResult result = createResult(null, null, failure); in testShouldRetry_runFailure_nonRetriable() 213 FailureDescription failure = FailureDescription.create("run failure"); in testShouldRetry_multi_runFailure_nonRetriable() local 214 failure.setRetriable(false); in testShouldRetry_multi_runFailure_nonRetriable() [all …]
|
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/ |
D | ITestInvocationListener.java | 86 default void invocationFailed(FailureDescription failure) { in invocationFailed() argument 87 if (failure.getCause() != null) { in invocationFailed() 88 invocationFailed(failure.getCause()); in invocationFailed() 92 String.format("ConvertedFailure: %s", failure.getErrorMessage()))); in invocationFailed()
|
/tools/tradefederation/core/src/com/android/tradefed/retry/ |
D | ResultAggregator.java | 151 public void invocationFailed(FailureDescription failure) { in invocationFailed() argument 152 super.invocationFailed(failure); in invocationFailed() 153 mAllForwarder.invocationFailed(failure); in invocationFailed() 296 public void testRunFailed(FailureDescription failure) { in testRunFailed() argument 297 super.testRunFailed(failure); in testRunFailed() 300 mDetailedForwarder.testRunFailed(failure); in testRunFailed() 329 public void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() argument 330 super.testAssumptionFailure(test, failure); in testAssumptionFailure() 331 mDetailedForwarder.testAssumptionFailure(test, failure); in testAssumptionFailure() 341 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | SubprocessEventHelper.java | 146 public TestRunFailedEventInfo(FailureDescription failure) { in TestRunFailedEventInfo() argument 147 mFailure = failure; in TestRunFailedEventInfo() 234 public InvocationFailedEventInfo(FailureDescription failure) { in InvocationFailedEventInfo() argument 235 if (failure.getCause() != null) { in InvocationFailedEventInfo() 236 mCause = failure.getCause(); in InvocationFailedEventInfo() 238 mCause = new Throwable(failure.getErrorMessage()); in InvocationFailedEventInfo() 240 mFailure = failure; in InvocationFailedEventInfo() 438 public FailedTestEventInfo(String className, String testName, FailureDescription failure) { in FailedTestEventInfo() argument 440 mFailure = failure; in FailedTestEventInfo() 733 FailureDescription failure, JSONObject jsonObject) { in updateFailureFromJsonObject() argument [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | JUnitXmlParserTest.java | 88 FailureDescription failure = failureCaptor.getValue(); in testParse() local 89 assertTrue(failure.getErrorMessage().contains("java.lang.NullPointerException")); in testParse() 102 FailureDescription failure = in testParseErrorAndSkipped() local 115 verify(mMockListener).testFailed(Mockito.eq(test3), Mockito.eq(failure)); in testParseErrorAndSkipped() 125 FailureDescription failure = in testParseError_format() local 131 verify(mMockListener).testFailed(Mockito.eq(test1), Mockito.eq(failure)); in testParseError_format()
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | BaseDeviceMetricCollector.java | 213 public void onTestRunFailed(DeviceMetricData testData, FailureDescription failure) in onTestRunFailed() argument 271 public final void invocationFailed(FailureDescription failure) { in invocationFailed() argument 272 mForwarder.invocationFailed(failure); in invocationFailed() 386 public final void testRunFailed(FailureDescription failure) { in testRunFailed() argument 390 onTestRunFailed(mRunData, failure); in testRunFailed() 402 mForwarder.testRunFailed(failure); in testRunFailed() 489 public final void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument 492 if (failure.getFailureStatus() == null in testFailed() 493 || !FailureStatus.NOT_EXECUTED.equals(failure.getFailureStatus())) { in testFailed() 509 mForwarder.testFailed(test, failure); in testFailed() [all …]
|
/tools/asuite/atest/tools/ |
D | start_avd_unittest.py | 80 failure = os.path.join(SEARCH_ROOT, 'acloud', 'create_failure.json') 82 start_avd.probe_acloud_status(failure, duration), 98 failure = os.path.join(SEARCH_ROOT, 'acloud', 'create_failure.json') 100 self.assertEqual(start_avd.get_acloud_duration(failure), failure_duration)
|