Home
last modified time | relevance | path

Searched refs:layer (Results 1 – 25 of 28) sorted by relevance

12

/platform_testing/libraries/flicker/src/android/tools/flicker/subject/layers/
DLayerSubject.kt48 val layer: Layer constant in android.tools.flicker.subject.layers.LayerSubject
51 get() = layer.isVisible
53 get() = !layer.isVisible
55 get() = layer.name
59 get() = RegionSubject(layer.visibleRegion, timestamp, reader)
62 get() = layer.visibilityReason
69 get() = RegionSubject(layer.screenBounds, timestamp, reader)
71 override val selfFacts = listOf(Fact("Frame", layer.currFrame), Fact("Layer", layer.name))
74 operator fun invoke(assertion: (Layer) -> Unit): LayerSubject = apply { assertion(this.layer) } in <lambda>()
82 val bufferSize = Size.from(layer.activeBuffer.width, layer.activeBuffer.height) in <lambda>()
[all …]
DLayerTraceEntrySubject.kt105 ComponentNameMatcher.SCREEN_RECORDING_OVERLAYS.layerMatchesAnyOf(it.layer) in <lambda>()
108 subjects.filter { componentMatcher.layerMatchesAnyOf(it.layer) } in <lambda>()
127 val visibleAreas = visibleLayers.mapNotNull { it.layer.visibleRegion } in <lambda>()
130 val visibleAreas = visibleLayers.map { Region(it.layer.screenBounds.toRect()) } in <lambda>()
151 val layers = subjects.map { it.layer } in <lambda>()
170 val layers = subjects.map { it.layer } in <lambda>()
193 val layers = subjects.map { it.layer } in <lambda>()
196 componentLayers.all { layer -> in <lambda>() method
197 subjects.first { subject -> subject.layer == layer }.isInvisible in <lambda>()
226 val matchingSubjects = subjects.filter { splashScreenMatcher.layerMatchesAnyOf(it.layer) } in <lambda>()
[all …]
DLayersTraceSubject.kt80 override fun layer(name: String, frameNumber: Long): LayerSubject { in <lambda>() method in android.tools.flicker.subject.layers.LayersTraceSubject
81 val result = subjects.firstNotNullOfOrNull { it.layer(name, frameNumber) } in <lambda>()
97 subjects.mapNotNull { it.layer { layer -> layer.name.contains(name) } } in <lambda>() method
103 subjects.mapNotNull { it.layer { layer -> predicate(layer) } } in <lambda>() method
275 .dropWhile { layer -> layer.currFrame != firstFrame } in <lambda>() method
280 .zip(frameNumbers.asSequence()) { layer, frameNumber -> in <lambda>() method
282 layer.currFrame == frameNumber in <lambda>()
DILayerSubject.kt109 fun layer(name: String, frameNumber: Long): LayerSubject? method
/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/
DLayerDescriptor.kt3 class LayerDescriptor(layer: Layer) {
4 val id = layer.id
5 val name = layer.name
7 layer.isTask || (layer.parent?.let { LayerDescriptor(it).isAppLayer } ?: false) in <lambda>()
DLayerTraceEntry.kt137 val layer = roots.removeAt(0) in <lambda>() constant
138 layers.add(layer) in <lambda>()
139 roots.addAll(layer.children) in <lambda>()
164 traversalList.forEach { layer -> in <lambda>() method
165 val visible = layer.isVisible in <lambda>()
168 .firstOrNull { it.layerStackId == layer.stackId } in <lambda>()
176 it.stackId == layer.stackId && in <lambda>()
177 it.contains(layer, displaySize) && in <lambda>()
178 (!it.hasRoundedCorners || (layer.cornerRadius == it.cornerRadius)) in <lambda>()
180 layer.addOccludedBy(occludedBy) in <lambda>()
[all …]
DLayerTraceEntryBuilder.kt65 layers.forEach { layer -> in <lambda>() method
66 val id = layer.id in <lambda>()
68 duplicateLayerCallback(layer) in <lambda>()
70 result[id] = layer in <lambda>()
106 for (layer in layers.values) { in <lambda>() method
107 val parentId = layer.parentId in <lambda>()
111 orphans.add(layer) in <lambda>()
114 parentLayer.addChild(layer) in <lambda>()
115 layer.parent = parentLayer in <lambda>()
125 for (layer in layers.values) { in <lambda>() method
[all …]
DLayersTrace.kt75 val layer = entry.getLayerById(layerId) in <lambda>() constant
76 if (layer != null) { in <lambda>()
77 return LayerDescriptor(layer) in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/perfetto/
DLayersTraceParser.kt159 private fun newLayer(layer: Args, excludesCompositionState: Boolean): Layer { in <lambda>()
162 val activeBuffer = newActiveBuffer(layer.getChild("active_buffer")) in <lambda>()
163 val visibleRegion = newRegion(layer.getChild("visible_region")) ?: Region() in <lambda>()
164 val crop = newCropRect(layer.getChild("crop")) in <lambda>()
166 layer.getChild("name")?.getString() ?: "", in <lambda>()
167 layer.getChild("id")?.getInt() ?: 0, in <lambda>()
168 layer.getChild("parent")?.getInt() ?: 0, in <lambda>()
169 layer.getChild("z")?.getInt() ?: 0, in <lambda>()
172 layer.getChild("flags")?.getInt() ?: 0, in <lambda>()
173 newRectF(layer.getChild("bounds")), in <lambda>()
[all …]
/platform_testing/libraries/flicker/utils/src/android/tools/traces/component/
DIComponentNameMatcher.kt28 fun activityRecordMatchesAnyOf(layer: Layer): Boolean =
29 activityRecordMatchesAnyOf(listOf(layer))
DIComponentMatcher.kt56 fun layerMatchesAnyOf(layer: Layer): Boolean = layerMatchesAnyOf(listOf(layer)) in windowMatchesAnyOf()
DOrComponentMatcher.kt47 override fun layerMatchesAnyOf(layer: Layer): Boolean { in <lambda>()
48 return componentMatchers.any { it.layerMatchesAnyOf(layer) } in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/
DConditionsFactory.kt259 .filter { layer -> componentMatcher.layerMatchesAnyOf(layer) } in <lambda>() method
260 .any { layer -> layer.color.alpha() == 1.0f } in <lambda>() method
265 val layer = it.layerState.getLayerById(layerId) in <lambda>() constant
266 layer?.color?.alpha() == 1.0f in <lambda>()
279 .filter { layer -> componentMatcher.layerMatchesAnyOf(layer) } in <lambda>() method
280 .any { layer -> isTransformFlagSet(layer, transform) } in <lambda>() method
285 val layer = it.layerState.getLayerById(layerId) in <lambda>() constant
286 layer?.transform?.type?.isFlagSet(transform) ?: false in <lambda>()
298 private fun isTransformFlagSet(layer: Layer, transform: Int): Boolean = in <lambda>()
299 layer.transform.type?.isFlagSet(transform) ?: false in <lambda>()
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/surfaceflinger/
DLayersTraceTest.kt71 val layer = entry.getLayerWithBuffer(component) in canTestLayerOccludedByAppLayerHasVisibleRegion() constant
73 .that(layer?.visibleRegion?.isEmpty) in canTestLayerOccludedByAppLayerHasVisibleRegion()
76 .that(layer?.visibleRegion?.toString()) in canTestLayerOccludedByAppLayerHasVisibleRegion()
97 val layer = entry.getLayerWithBuffer(component) in canTestLayerOccludedByAppLayerIsOccludedBySplashScreen() constant
98 val occludedBy = layer?.occludedBy ?: emptyList() in canTestLayerOccludedByAppLayerIsOccludedBySplashScreen()
99 val partiallyOccludedBy = layer?.partiallyOccludedBy ?: emptyList() in canTestLayerOccludedByAppLayerIsOccludedBySplashScreen()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/subject/surfaceflinger/
DLayerSubjectTest.kt44 val foundLayer = LayersTraceSubject(trace, reader).first().layer("ImaginaryLayer", 0) in exceptionContainsDebugInfoImaginary()
53 .layer("SoundVizWallpaperV2", 26033) in canTestAssertionsOnLayer()
DLayerTraceEntrySubjectTest.kt367 entry.layer(simpleActivityMatcher) ?: error("Layer should be available") in detectOccludedLayerBecauseOfRoundedCorners()
369 entry.layer(imeActivityMatcher) ?: error("Layer should be available") in detectOccludedLayerBecauseOfRoundedCorners()
370 val simpleActivityLayer = simpleActivitySubject.layer in detectOccludedLayerBecauseOfRoundedCorners()
371 val imeActivityLayer = imeActivitySubject.layer in detectOccludedLayerBecauseOfRoundedCorners()
DLayersTraceSubjectTest.kt259 val region = it.layer.visibleRegion ?: Region() in <lambda>()
354 ComponentNameMatcher.SNAPSHOT.layerMatchesAnyOf(subject.layer) && in <lambda>()
358 snapshotLayers.mapNotNull { snapshotLayer -> snapshotLayer.layer.visibleRegion } in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/
DWindowState.kt34 val layer: Int, constant in android.tools.traces.wm.WindowState
82 if (layer != other.layer) return false in <lambda>()
105 result = 31 * result + layer in <lambda>()
/platform_testing/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/settings/
DREADME.md7 - If you would like to add a new page in the first layer of Settings, for example, `Display`, please
9 - If you would like to add a new page **not** in the first layer of Settings, for example,
11 the first layer (`display`) in Settings. It means `ISettingsDisplayHelper.java` and
/platform_testing/libraries/flicker/src/android/tools/flicker/config/
DTransitionFilters.kt188 entry.flattenedLayers.firstOrNull { layer -> in <lambda>() method
190 .layerMatchesAnyOf(layer) in <lambda>()
217 entry.flattenedLayers.any { layer -> in <lambda>() method
218 layer.id == layerId && in <lambda>()
219 ComponentNameMatcher.WALLPAPER_WINDOW_TOKEN.layerMatchesAnyOf(layer) in <lambda>()
/platform_testing/libraries/flicker/utils/test/src/android/tools/utils/
DMockLayerBuilder.kt45 fun addChild(layer: MockLayerBuilder): MockLayerBuilder = apply { this.children.add(layer) } in <lambda>()
/platform_testing/libraries/flicker/test/src/android/tools/integration/
DNoErrorTest.kt103 it.entry.flattenedLayers.filter { layer -> layer.isVisible } in <lambda>() method
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/
DWindowManagerStateHelper.kt355 val layer = in getWindowRegion() constant
356 it.layerState.visibleLayers.firstOrNull { layer -> in getWindowRegion() method
357 componentMatcher.layerMatchesAnyOf(layer) in getWindowRegion()
360 layer?.visibleRegion == expectedRegion in getWindowRegion()
/platform_testing/libraries/flicker/
DREADME.md136 // Example adds an assertion to the check if layer is hidden by parent.
139 // such as if layer is not found or layer is not hidden by parent
140 // or layer has no parent.
156 // Check if "Chrome" layer is hidden by parent in the first trace entry.
/platform_testing/libraries/flicker/src/android/tools/flicker/assertors/assertions/
DSplitAppLayerBoundsSnapToDivider.kt57 layer(splitScreenDivider)?.visibleRegion?.region in calculateExpectedDisplaySize()

12