Home
last modified time | relevance | path

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

1234567

/platform_testing/libraries/flicker/src/android/tools/flicker/assertions/
DReaderAssertionRunner.kt39 } catch (error: FlickerAssertionError) { in doRunAssertion()
40 error in doRunAssertion()
41 } catch (error: AssumptionViolatedException) { in doRunAssertion()
42 error in doRunAssertion()
43 } catch (error: Throwable) { in doRunAssertion()
45 FlickerAssertionWrapperError(error) in doRunAssertion()
DCompoundAssertion.kt42 val error = kotlin.runCatching { assertion.invoke(target) }.exceptionOrNull() in <lambda>() constant
43 if (error != null) { in <lambda>()
44 Pair(assertion, error) in <lambda>()
DBaseAssertionRunner.kt38 private fun updateResultStatus(error: Throwable?) { in <lambda>()
40 if (error == null) RunStatus.ASSERTION_SUCCESS else RunStatus.ASSERTION_FAILED in <lambda>()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/subject/surfaceflinger/
DLayersTraceSubjectTest.kt58 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in <lambda>()
59 val error = assertThrows<AssertionError> { LayersTraceSubject(trace, reader).isEmpty() } in <lambda>() constant
60 assertThatErrorContainsDebugInfo(error) in <lambda>()
66 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in <lambda>()
72 error("Assertion should not have passed") in <lambda>()
79 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in <lambda>()
90 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in <lambda>()
100 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in <lambda>()
116 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in <lambda>()
134 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in <lambda>()
[all …]
DLayerTraceEntrySubjectTest.kt55 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in exceptionContainsDebugInfo()
56 val error = in exceptionContainsDebugInfo() constant
60 assertThatErrorContainsDebugInfo(error) in exceptionContainsDebugInfo()
61 Truth.assertThat(error).hasMessageThat().contains(TestComponents.IMAGINARY.className) in exceptionContainsDebugInfo()
67 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in testCanInspectBeginning()
77 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in testCanInspectEnd()
87 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in canDetectUncoveredRegion()
101 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in canTestLayerVisibleRegion_layerDoesNotExist()
114 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in canTestLayerVisibleRegion_layerDoesNotHaveExpectedVisibleRegion()
127 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in canTestLayerVisibleRegion_layerIsHiddenByParent()
[all …]
/platform_testing/libraries/flicker/src/android/tools/flicker/extractors/
DUtils.kt29 val wmTrace = reader.readWmTrace() ?: error("Missing WM trace") in interpolateStartTimestampFromTransition()
30 val layersTrace = reader.readLayersTrace() ?: error("Missing layers trace") in interpolateStartTimestampFromTransition()
32 reader.readTransactionsTrace() ?: error("Missing transactions trace") in interpolateStartTimestampFromTransition()
58 val layersTrace = reader.readLayersTrace() ?: error("Missing layers trace") in interpolateFinishTimestampFromTransition()
59 val wmTrace = reader.readWmTrace() ?: error("Missing WM trace") in interpolateFinishTimestampFromTransition()
61 reader.readTransactionsTrace() ?: error("Missing transactions trace") in interpolateFinishTimestampFromTransition()
97 ?: error("WM entry was unexpectedly empty!") in interpolateFinishTimestampFromTransition()
105 ?: error("No SF entry for finish timestamp") in interpolateFinishTimestampFromTransition()
110 ?: error( in interpolateFinishTimestampFromTransition()
129 val wmTrace = reader.readWmTrace() ?: error("Missing WM trace") in getFullTimestampAt()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/surfaceflinger/
DLayerTraceSubjectTest.kt29 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in exceptionContainsDebugInfo()
30 val error = assertThrows<AssertionError> { LayersTraceSubject(trace, reader).isEmpty() } in exceptionContainsDebugInfo() constant
31 assertThatErrorContainsDebugInfo(error) in exceptionContainsDebugInfo()
/platform_testing/libraries/flicker/src/android/tools/flicker/config/splitscreen/
DComponents.kt37 ?: error( in <lambda>()
41 scenarioInstance.reader.readLayersTrace() ?: error("Missing layers trace") in <lambda>()
58 else -> error("Unsupported transition type") in <lambda>()
65 ?: error( in <lambda>()
69 scenarioInstance.reader.readLayersTrace() ?: error("Missing layers trace") in <lambda>()
85 else -> error("Unsupported transition type") in <lambda>()
/platform_testing/libraries/flicker/appHelpers/src/android/tools/device/apphelpers/
DMapsAppHelper.kt53 getDirectionsButton() ?: error("Unable to find start directions button") in doSearch()
60 getDirectionsButton() ?: error("Unable to find start directions button") in getDirections()
66 getStartPointBox() ?: error("Unable to find starting point box") in getDirections()
69 currentLocation = getYourLocation() ?: error("Unable to find your location option") in getDirections()
76 getStartNavigationButton() ?: error("Unable to find start navigation button") in getDirections()
84 getStartNavigationButton() ?: error("Unable to find start navigation button") in startNavigation()
104 getCloseNavigationButton() ?: error("Unable to find close navigation button") in waitForNavigationToStart()
120 getSelectableSearchBar() ?: error("No selectable search bar found.") in inputSearch()
126 getEditableSearchBar() ?: error("Not editable search bar found.") in inputSearch()
148 error("Did not detect address result after 25 seconds") in startSearch()
[all …]
DMessagingAppHelper.kt43 pkgManager.getLaunchIntentForPackage(packageName) ?: error("Unable to find intent for SMS")
56 ?: error("Unable to resolve SMS activity") in getMessagesComponent()
64 ?: error("Unable to resolve SMS activity") in getMessagesName()
DBrowserAppHelper.kt47 ?: error("Unable to find intent for browser")
60 ?: error("Unable to resolve browser activity") in getBrowserName()
69 ?: error("Unable to resolve browser activity") in getBrowserComponent()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/component/
DComponentSplashScreenMatcher.kt26 error("Unimplemented - There are no splashscreen windows") in windowMatchesAnyOf()
30 error("Unimplemented - There are no splashscreen windows") in activityMatchesAnyOf()
58 error("Unimplemented - There are no splashscreen windows") in toActivityIdentifier()
62 error("Unimplemented - There are no splashscreen windows") in toWindowIdentifier()
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/surfaceflinger/
DLayersTraceEntryTest.kt41 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in canParseAllLayers()
51 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in canParseVisibleLayersLauncher()
69 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in canParseVisibleLayersSplitScreen()
88 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in canParseVisibleLayersInTransition()
111 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in canParseLayerHierarchy()
131 error("Failed to detect orphaned layers.") in canDetectOrphanLayers()
145 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in testCanParseNonCroppedLayerWithHWC()
159 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in canParseTraceEmptyState()
205 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in canDetectOccludedByLayerWithinThreshold()
209 var navBar = state.getLayerById(85) ?: error("Nav bar layer not found") in canDetectOccludedByLayerWithinThreshold()
[all …]
DLayersTraceTest.kt36 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in detectRootLayer()
67 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in canTestLayerOccludedByAppLayerHasVisibleRegion()
95 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in canTestLayerOccludedByAppLayerIsOccludedBySplashScreen()
117 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in getFirstEntryWithOnDisplay()
134 val trace = reader.readLayersTrace() ?: error("Unable to read layers trace") in getLastEntryWithOnDisplay()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/
DImageUtils.java143 String error = null; in assertImageSimilar() local
146 error = String.format("Images differ (by %.1f%%)", percentDifference); in assertImageSimilar()
148 error = "Widths differ too much for " + imageName + ": " + in assertImageSimilar()
152 error = "Heights differ too much for " + imageName + ": " + in assertImageSimilar()
157 if (error != null) { in assertImageSimilar()
176 error += " - see details in file://" + output.getPath() + "\n"; in assertImageSimilar()
177 error = saveImageAndAppendMessage(image, error, relativePath); in assertImageSimilar()
178 System.out.println(error); in assertImageSimilar()
179 fail(error); in assertImageSimilar()
/platform_testing/libraries/flicker/src/android/tools/flicker/config/pip/
DComponents.kt35 scenarioInstance.associatedTransition ?: error("Missing associated transition") in <lambda>()
40 ?: error("Missing to back change") in <lambda>()
43 error("Unhandled case - can't get PiP app for this case") in <lambda>()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/subject/wm/
DWindowManagerTraceSubjectTest.kt42 get() = chromeTraceReader.readWmTrace() ?: error("Unable to read WM trace") in <lambda>()
44 private val imeTrace = imeTraceReader.readWmTrace() ?: error("Unable to read WM trace") in <lambda>()
90 val trace = reader.readWmTrace() ?: error("Unable to read WM trace") in <lambda>()
179 val trace = reader.readWmTrace() ?: error("Unable to read WM trace") in <lambda>()
192 val trace = reader.readWmTrace() ?: error("Unable to read WM trace") in <lambda>()
219 val error = in <lambda>() constant
223 assertThatErrorContainsDebugInfo(error) in <lambda>()
233 val trace = reader.readWmTrace() ?: error("Unable to read WM trace") in <lambda>()
264 val trace = reader.readWmTrace() ?: error("Unable to read WM trace") in <lambda>()
280 val trace = reader.readWmTrace() ?: error("Unable to read WM trace") in <lambda>()
[all …]
DWindowManagerStateSubjectTest.kt47 get() = reader.readWmTrace() ?: error("Unable to read WM trace")
68 val error = in exceptionContainsDebugInfo() constant
74 assertThatErrorContainsDebugInfo(error) in exceptionContainsDebugInfo()
75 Truth.assertThat(error).hasMessageThat().contains(TestComponents.IMAGINARY.className) in exceptionContainsDebugInfo()
239 val trace = reader.readWmTrace() ?: error("Unable to read WM trace") in canDetectAppWindowVisibilitySubject()
256 val trace = reader.readWmTrace() ?: error("Unable to read WM trace") in canDetectLauncherVisibility()
315 val trace = reader.readWmTrace() ?: error("Unable to read WM trace") in canDetectActivityVisibility()
356 val trace = reader.readWmTrace() ?: error("Unable to read WM trace") in canDetectNoVisibleAppWindows()
364 val trace = reader.readWmTrace() ?: error("Unable to read WM trace") in canDetectHasVisibleAppWindows()
373 val trace = reader.readWmTrace() ?: error("Unable to read WM trace") in canDetectTaskFragment()
[all …]
/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/test/src/android/tools/flicker/config/
DFlickerConfigTest.kt105 flicker.assertLayers { error("Should never be called") } in canUnregisterAssertion()
137 flicker.assertLayers { error("Should never be called") } in canOverrideStabilityGroup()
228 flicker.assertLayers { error("Should never be called") } in throwsOnRegisteringAssertionToNotRegisteredScenario()
232 val error = in throwsOnRegisteringAssertionToNotRegisteredScenario() constant
234 Truth.assertThat(error) in throwsOnRegisteringAssertionToNotRegisteredScenario()
246 flicker.assertLayers { error("Should never be called") } in throwsOnRegisteringTheSameScenario()
256 val error = in throwsOnRegisteringTheSameScenario() constant
264 Truth.assertThat(error) in throwsOnRegisteringTheSameScenario()
276 flicker.assertLayers { error("Should never be called") } in throwsOnRegisteringTheSameAssertion()
286 val error = in throwsOnRegisteringTheSameAssertion() constant
[all …]
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/perfetto/
DTransitionsTraceParser.kt39 error("This parser can only read from perfetto trace processor") in <lambda>()
59 ?: error("transition_entry_id column should not be null") in <lambda>()
94 id = args.getChild("id")?.getInt() ?: error("Missing transition id"), in <lambda>()
115 ?: error("Missing mode (${it.getChild("mode")})"), in <lambda>()
117 ?: error("Missing layer id ${it.getChild("layer_id")}"), in <lambda>()
119 ?: error( in <lambda>()
/platform_testing/libraries/flicker/src/android/tools/flicker/assertors/assertions/
DStatusBarLayerPositionAtStart.kt46 ?: error("Missing wm trace entries") in getExpectedStatusBarPosition()
48 wmState.getDisplay(PlatformConsts.DEFAULT_DISPLAY) ?: error("Display not found") in getExpectedStatusBarPosition()
DStatusBarLayerPositionAtEnd.kt45 ?: error("Missing wm trace entries") in getExpectedStatusBarPosition()
47 wmState.getDisplay(PlatformConsts.DEFAULT_DISPLAY) ?: error("Display not found") in getExpectedStatusBarPosition()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/io/
DArtifactBuilder.kt59 val scenario = scenario ?: error("Missing scenario") in <lambda>()
73 val outputDir = outputDir ?: error("Missing output dir") in <lambda>()
80 val runStatus = runStatus ?: error("Missing run status") in <lambda>()
81 val scenario = scenario ?: error("Missing scenario") in <lambda>()
82 val outputDir = outputDir ?: error("Missing output dir") in <lambda>()
/platform_testing/libraries/flicker/utils/test/src/android/tools/utils/
DUtils.kt84 error("Expected exception ${ExceptionType::class.java}, but nothing was thrown") in <lambda>()
88 val error = assertThrows<AssertionError> { predicate() } in assertFail() constant
89 Truth.assertThat(error).hasMessageThat().contains(expectedMessage) in assertFail()
92 fun assertThatErrorContainsDebugInfo(error: Throwable) { in assertThatErrorContainsDebugInfo()
93 Truth.assertThat(error).hasMessageThat().contains("What?") in assertThatErrorContainsDebugInfo()
94 Truth.assertThat(error).hasMessageThat().contains("Where?") in assertThatErrorContainsDebugInfo()
204 fun assertExceptionMessage(error: Throwable?, expectedValue: String) { in newTestResultWriter()
206 .that(error) in newTestResultWriter()

1234567