Home
last modified time | relevance | path

Searched refs:error (Results 1 – 25 of 54) sorted by relevance

123

/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/assertions/
DFlickerAssertionErrorBuilder.kt27 private var error: Throwable? = null in <lambda>() variable in com.android.server.wm.flicker.assertions.FlickerAssertionErrorBuilder
31 fun fromError(error: Throwable): FlickerAssertionErrorBuilder = apply { in <lambda>()
32 this.error = error in <lambda>()
53 val error = error in <lambda>() constant
54 requireNotNull(error) in <lambda>()
55 if (error is FlickerSubjectException) { in <lambda>()
56 appendLine(error.errorType) in <lambda>()
58 append(error.errorDescription) in <lambda>()
60 append(error.subjectInformation) in <lambda>()
64 appendLine(error.message) in <lambda>()
[all …]
DAssertions.kt70 val error = kotlin.runCatching { assertion.invoke(target) }.exceptionOrNull() in invoke() constant
71 if (error != null) { in invoke()
72 Pair(assertion, error) in invoke()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/service/
DErrorParserTest.kt34 private val error = FlickerErrorProto.newBuilder() constant in com.android.server.wm.flicker.service.ErrorParserTest
44 .addErrors(error)
55 val error = errorState.errors.first() in canParseErrors() constant
58 assertThat(error.layerId).isEqualTo(1) in canParseErrors()
59 assertThat(error.taskId).isEqualTo(2) in canParseErrors()
60 assertThat(error.message).isEqualTo("Error!") in canParseErrors()
61 assertThat(error.stacktrace).isEqualTo("stacktrace of error") in canParseErrors()
62 assertThat(error.windowToken).isEqualTo("token") in canParseErrors()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/layers/
DLayerTraceEntrySubjectTest.kt46 val error = assertThrows(AssertionError::class.java) { in exceptionContainsDebugInfo() constant
51 assertThatErrorContainsDebugInfo(error) in exceptionContainsDebugInfo()
52 Truth.assertThat(error).hasMessageThat().contains(IMAGINARY_COMPONENT.className) in exceptionContainsDebugInfo()
53 Truth.assertThat(error).hasMessageThat().contains(FlickerSubject.ASSERTION_TAG) in exceptionContainsDebugInfo()
78 val error = assertThrows(AssertionError::class.java) { in canDetectUncoveredRegion() constant
83 assertFailure(error) in canDetectUncoveredRegion()
87 assertFailure(error) in canDetectUncoveredRegion()
97 val error = assertThrows(AssertionError::class.java) { in canTestLayerVisibleRegion_layerDoesNotExist() constant
102 assertFailure(error) in canTestLayerVisibleRegion_layerDoesNotExist()
111 val error = assertThrows(AssertionError::class.java) { in canTestLayerVisibleRegion_layerDoesNotHaveExpectedVisibleRegion() constant
[all …]
DLayerSubjectTest.kt39 val error = assertThrows(AssertionError::class.java) { in exceptionContainsDebugInfoImaginary() constant
45 assertThatErrorContainsDebugInfo(error) in exceptionContainsDebugInfoImaginary()
46 Truth.assertThat(error).hasMessageThat().contains("ImaginaryLayer") in exceptionContainsDebugInfoImaginary()
47 Truth.assertThat(error).hasMessageThat().contains("Layer name") in exceptionContainsDebugInfoImaginary()
53 val error = assertThrows(AssertionError::class.java) { in exceptionContainsDebugInfoConcrete() constant
60 assertThatErrorContainsDebugInfo(error) in exceptionContainsDebugInfoConcrete()
DLayersTraceSubjectTest.kt46 val error = assertThrows(AssertionError::class.java) { in <lambda>() constant
50 Truth.assertThat(error).hasMessageThat().contains("Trace start") in <lambda>()
51 Truth.assertThat(error).hasMessageThat().contains("Trace end") in <lambda>()
62 error("Assertion should not have passed") in <lambda>()
122 val error = assertThrows(AssertionError::class.java) { in <lambda>() constant
130 assertFailure(error) in <lambda>()
133 assertFailure(error) in <lambda>()
136 assertFailure(error) in <lambda>()
139 assertFailure(error) in <lambda>()
148 val error = assertThrows(AssertionError::class.java) { in <lambda>() constant
[all …]
DLayersTraceEntryTest.kt39 val error = assertThrows(AssertionError::class.java) { in exceptionContainsDebugInfo() constant
44 assertThatErrorContainsDebugInfo(error) in exceptionContainsDebugInfo()
123 error("Failed to detect orphaned layers.") in canDetectOrphanLayers()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/windowmanager/
DWindowStateSubjectTest.kt33 val error = assertThrows(AssertionError::class.java) { in exceptionContainsDebugInfoImaginary() constant
39 assertThatErrorContainsDebugInfo(error) in exceptionContainsDebugInfoImaginary()
40 Truth.assertThat(error).hasMessageThat().contains(IMAGINARY_COMPONENT.className) in exceptionContainsDebugInfoImaginary()
41 Truth.assertThat(error).hasMessageThat().contains("Window title") in exceptionContainsDebugInfoImaginary()
46 val error = assertThrows(AssertionError::class.java) { in exceptionContainsDebugInfoConcrete() constant
53 assertThatErrorContainsDebugInfo(error) in exceptionContainsDebugInfoConcrete()
DWindowManagerStateHelperTest.kt146 error("Reached the end of the trace") in <lambda>()
161 error("IME state should not be available") in <lambda>()
180 error("IME state should not be available") in <lambda>()
199 error("Chrome window should not exist in the start of the trace") in <lambda>()
218 error("SimpleActivity window should not exist in the start of the trace") in <lambda>()
284 error("Initial state in the trace should not be valid") in <lambda>()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/
DUtils.kt103 error("Expected $expectedThrowable, but nothing was thrown") in assertThrows()
110 else -> error("Expected assertion error, received $failure") in assertFailure()
116 fun assertThatErrorContainsDebugInfo(error: Throwable, withBlameEntry: Boolean = true) { in assertThatErrorContainsDebugInfo()
117 Truth.assertThat(error).hasMessageThat().contains("What?") in assertThatErrorContainsDebugInfo()
118 Truth.assertThat(error).hasMessageThat().contains("Where?") in assertThatErrorContainsDebugInfo()
119 Truth.assertThat(error).hasMessageThat().contains("Facts") in assertThatErrorContainsDebugInfo()
120 Truth.assertThat(error).hasMessageThat().contains("Trace start") in assertThatErrorContainsDebugInfo()
121 Truth.assertThat(error).hasMessageThat().contains("Trace end") in assertThatErrorContainsDebugInfo()
124 Truth.assertThat(error).hasMessageThat().contains("Entry") in assertThatErrorContainsDebugInfo()
DFlickerDSLTest.kt205 builder.transitions { error("Crashed transition") } in detectCrashedTransition()
227 val error = assertThrows(AssertionError::class.java) { in exceptionContainsDebugInfo() constant
231 Truth.assertThat(error).hasMessageThat().contains("Expected exception") in exceptionContainsDebugInfo()
233 assertThatErrorContainsDebugInfo(error) in exceptionContainsDebugInfo()
234 Truth.assertThat(error).hasMessageThat().contains("Trace file") in exceptionContainsDebugInfo()
235 Truth.assertThat(error).hasMessageThat().contains("Location") in exceptionContainsDebugInfo()
237 Truth.assertThat(error).hasMessageThat().contains("FAIL_ASSERTION") in exceptionContainsDebugInfo()
349 for (error in errors) { in canHandleAndTrackMultipleExecutionErrors() constant
/platform_testing/tests/perf/PerformanceLaunch/src/com/android/performanceLaunch/helper/
DSimpleGLRenderer.java146 int error; in checkGlError() local
147 while ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) { in checkGlError()
148 Log.e(TAG, glOperation + ": glError " + error); in checkGlError()
149 throw new RuntimeException(glOperation + ": glError " + error); in checkGlError()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/traces/
DFlickerFailureStrategy.kt29 override fun fail(error: AssertionError) { in fail()
31 throw FlickerSubjectException(subject, error) in fail()
DFlickerTraceSubject.kt86 fun first(): EntrySubject = subjects.firstOrNull() ?: error("Trace is empty") in <lambda>()
91 fun last(): EntrySubject = subjects.lastOrNull() ?: error("Trace is empty") in <lambda>()
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/common/
DFlickerComponentName.kt50 else -> error("Component name should have an activity of class name") in toActivityName()
68 else -> error("Component name should have an activity of class name") in toWindowName()
78 else -> error("Component name should have an activity of class name") in toShortWindowName()
134 error("Missing package/class separator") in unflattenFromString()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/rules/
DWMFlickerServiceRuleForTestSpec.kt85 val result = testSpec.result ?: error("No flicker results for $testSpec") in <lambda>()
101 ?: error("Output dir not detected") in <lambda>()
157 error(errorMsg) in <lambda>()
165 state.errors.any { error -> in <lambda>() method
166 error.assertionName.isNotEmpty() in <lambda>()
DFlickerMetricsCollectorRule.kt63 }.filter { error -> assertions.contains(error.assertionName) } in <lambda>() method
90 error(errorMsg) in <lambda>()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/helpers/
DSampleAppHelper.kt43 ?: error("Unable to find intent for browser") in getOpenAppIntent()
55 ?: error("Unable to resolve browser activity") in getOpenAppIntent()
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/parser/windowmanager/
DWindowManagerTraceParser.kt105 ?: error("Unable to read trace file") in <lambda>()
213 ) ?: error("Window container should not be null") in <lambda>()
281 ) ?: error("Window container should not be null") in <lambda>()
296 ) ?: error("Window container should not be null") in <lambda>()
332 ) ?: error("Window container should not be null") in <lambda>()
351 ) ?: error("Window container should not be null") in <lambda>()
371 ) ?: error("Window container should not be null") in <lambda>()
385 ) ?: error("Window container should not be null") in <lambda>()
431 ) ?: error("Window container should not be null"), in <lambda>()
561 else -> error("Invalid lastUsedAppTransition") in <lambda>()
[all …]
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/monitor/
DTransitionMonitor.kt50 } ?: error("Unable to acquire trace") in <lambda>()
/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/
DWaitUtils.kt123 ?: error(errorProvider()) in waitForValueToSettle()
205 error(errorProvider()) in waitForNullableValueToSettle()
253 ): T = waitForNullable(description, timeout, supplier) ?: error(errorProvider())
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/
DTransitionRunnerWithRules.kt62 return result ?: error("Transition did not run") in run()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/service/assertors/common/
DStatusBarLayerPositionAtStart.kt39 ?: error("Display not found") in doEvaluate()
DStatusBarLayerPositionAtEnd.kt39 ?: error("Display not found") in doEvaluate()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/
DLaunchAppUtils.kt38 ?: error("Package ${app.packageName} not available") in Context()

123