Home
last modified time | relevance | path

Searched refs:failure (Results 1 – 21 of 21) sorted by relevance

/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/
DWindowManagerStateSubjectTest.kt49 var failure = assertThrows(AssertionError::class.java) { in canDetectAboveAppWindowVisibility_isInvisible() variable
52 assertFailure(failure).factValue("Is Invisible").contains("pip-dismiss-overlay") in canDetectAboveAppWindowVisibility_isInvisible()
54 failure = assertThrows(AssertionError::class.java) { in canDetectAboveAppWindowVisibility_isInvisible()
57 assertFailure(failure).factValue("Is Visible").contains("NavigationBar") in canDetectAboveAppWindowVisibility_isInvisible()
82 var failure = assertThrows(FlickerSubjectException::class.java) { in canDetectWindowCoversAtLeastRegion_largerRegion() variable
85 assertFailure(failure).factValue("Uncovered region").contains("SkRegion((1440,0,1441,171))") in canDetectWindowCoversAtLeastRegion_largerRegion()
87 failure = assertThrows(FlickerSubjectException::class.java) { in canDetectWindowCoversAtLeastRegion_largerRegion()
91 assertFailure(failure).factValue("Uncovered region") in canDetectWindowCoversAtLeastRegion_largerRegion()
107 var failure = assertThrows(FlickerSubjectException::class.java) { in canDetectWindowCoversAtMostRegion_smallerRegion() variable
110 assertFailure(failure).factValue("Out-of-bounds region") in canDetectWindowCoversAtMostRegion_smallerRegion()
[all …]
DAssertionsCheckerTest.kt72 } catch (failure: Throwable) { in <lambda>()
73 require(failure is FlickerSubjectException) { "Unknown failure $failure" } in <lambda>()
74 assertFailure(failure.cause) in <lambda>()
76 assertFailure(failure.cause) in <lambda>()
97 } catch (failure: Throwable) { in <lambda>()
98 require(failure is FlickerSubjectException) { "Unknown failure $failure" } in <lambda>()
99 assertFailure(failure.cause) in <lambda>()
111 } catch (failure: Throwable) { in <lambda>()
112 require(failure is FlickerSubjectException) { "Unknown failure $failure" } in <lambda>()
113 assertFailure(failure.cause) in <lambda>()
[all …]
DUtils.kt90 fun assertFailure(failure: Throwable?): TruthFailureSubject { in assertFailure()
91 val target = when (failure) { in assertFailure()
92 is FlickerSubjectException -> failure.cause in assertFailure()
93 is AssertionError -> failure in assertFailure()
94 else -> error("Expected assertion error, received $failure") in assertFailure()
DWindowManagerTraceSubjectTest.kt77 val failure = assertThrows(FlickerSubjectException::class.java) { in testCanInspectAppWindowOnTop() constant
83 assertFailure(failure).factValue("Could not find").contains("InvalidWindow") in testCanInspectAppWindowOnTop()
/platform_testing/libraries/junitxml/src/com/android/junitxml/
DXmlRunListener.java173 public void testFailure(Failure failure) throws Exception { in testFailure() argument
174 Description description = failure.getDescription(); in testFailure()
177 if (failure.getException() instanceof AssertionError) { in testFailure()
178 formatError(ELEMENT_FAILURE, failure); in testFailure()
181 formatError(ELEMENT_ERROR, failure); in testFailure()
186 private void formatError(String type, Failure failure) throws Exception { in formatError() argument
189 if (failure.getDescription() != null) { in formatError()
190 currentTest = mTestElements.get(failure.getDescription()); in formatError()
197 final String message = failure.getMessage(); in formatError()
203 failure.getDescription().getClassName()); in formatError()
[all …]
DAtestRunListener.java95 public void testFailure(Failure failure) { in testFailure() argument
96 Description description = failure.getDescription(); in testFailure()
100 eventData.put(TRACE_KEY, failure.getTrace()); in testFailure()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/assertions/
DAssertions.kt57 val failure = assertions.mapNotNull { in invoke() constant
60 if (failure != null) { in invoke()
61 throw failure in invoke()
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/sample/
DPrintListener.java52 public void testFailure(Failure failure) throws Exception { in testFailure() argument
57 public void testAssumptionFailure(Failure failure) { in testAssumptionFailure() argument
/platform_testing/libraries/health/runners/longevity/host/src/android/host/test/longevity/listener/
DErrorTerminator.java30 public void testFailure(Failure failure) { in testFailure() argument
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DGcaEventLogCollectorTest.java93 Failure failure = in testGcaEventLogCollectionOnTestEnd_includeFailure() local
95 listener.testFailure(failure); in testGcaEventLogCollectionOnTestEnd_includeFailure()
148 Failure failure = in testGcaEventLogCollectOnTestEnd_skipFailure() local
150 listener.testFailure(failure); in testGcaEventLogCollectOnTestEnd_skipFailure()
201 Failure failure = in testGcaEventLogCollectionOnTestRunEnd_runEndOnly() local
203 listener.testFailure(failure); in testGcaEventLogCollectionOnTestRunEnd_runEndOnly()
DStubTestMetricListener.java43 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DBaseMetricListener.java168 public final void testFailure(Failure failure) throws Exception { in testFailure() argument
169 Description description = failure.getDescription(); in testFailure()
172 onTestFail(mTestData, description, failure); in testFailure()
178 super.testFailure(failure); in testFailure()
255 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
DBaseCollectionListener.java88 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
DSimpleperfListener.java132 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
DLogcatCollector.java111 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
DScreenshotOnFailureCollector.java109 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
DGcaEventLogCollector.java147 public void onTestFail(DataRecord runData, Description description, Failure failure) { in onTestFail() argument
DPerfettoListener.java232 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
/platform_testing/libraries/health/runners/microbenchmark/tests/src/android/platform/test/microbenchmark/
DMicrobenchmarkTest.java249 Failure failure = failureCaptor.getValue(); in testStopsEarly_ifBatteryLevelIsBelowThreshold() local
250 Throwable throwable = failure.getException(); in testStopsEarly_ifBatteryLevelIsBelowThreshold()
276 Failure failure = failureCaptor.getValue(); in testStopsEarly_ifBatteryDrainIsAboveThreshold() local
277 Throwable throwable = failure.getException(); in testStopsEarly_ifBatteryDrainIsAboveThreshold()
/platform_testing/libraries/health/runners/longevity/platform/tests/src/android/platform/test/longevity/
DLongevityClassRunnerTest.java449 for (Failure failure : failures) { in verifyForAssertionFailures()
450 if (failure.getException().getMessage().contains(ASSERTION_FAILURE_MESSAGE)) { in verifyForAssertionFailures()
451 throw failure.getException(); in verifyForAssertionFailures()
DProfileSuiteTest.java492 for (Failure failure : failures) { in verifyForAssertionFailures()
493 if (failure.getException() in verifyForAssertionFailures()
496 throw failure.getException(); in verifyForAssertionFailures()