/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/ |
D | WindowManagerStateSubjectTest.kt | 49 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 …]
|
D | AssertionsCheckerTest.kt | 72 } 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 …]
|
D | Utils.kt | 90 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()
|
D | WindowManagerTraceSubjectTest.kt | 77 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/ |
D | XmlRunListener.java | 173 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 …]
|
D | AtestRunListener.java | 95 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/ |
D | Assertions.kt | 57 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/ |
D | PrintListener.java | 52 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/ |
D | ErrorTerminator.java | 30 public void testFailure(Failure failure) { in testFailure() argument
|
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/ |
D | GcaEventLogCollectorTest.java | 93 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()
|
D | StubTestMetricListener.java | 43 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/ |
D | BaseMetricListener.java | 168 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
|
D | BaseCollectionListener.java | 88 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
|
D | SimpleperfListener.java | 132 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
|
D | LogcatCollector.java | 111 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
|
D | ScreenshotOnFailureCollector.java | 109 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
|
D | GcaEventLogCollector.java | 147 public void onTestFail(DataRecord runData, Description description, Failure failure) { in onTestFail() argument
|
D | PerfettoListener.java | 232 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
|
/platform_testing/libraries/health/runners/microbenchmark/tests/src/android/platform/test/microbenchmark/ |
D | MicrobenchmarkTest.java | 249 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/ |
D | LongevityClassRunnerTest.java | 449 for (Failure failure : failures) { in verifyForAssertionFailures() 450 if (failure.getException().getMessage().contains(ASSERTION_FAILURE_MESSAGE)) { in verifyForAssertionFailures() 451 throw failure.getException(); in verifyForAssertionFailures()
|
D | ProfileSuiteTest.java | 492 for (Failure failure : failures) { in verifyForAssertionFailures() 493 if (failure.getException() in verifyForAssertionFailures() 496 throw failure.getException(); in verifyForAssertionFailures()
|