Home
last modified time | relevance | path

Searched refs:MockLayerBuilder (Results 1 – 4 of 4) sorted by relevance

/platform_testing/libraries/flicker/utils/test/src/android/tools/utils/
DMockLayerTraceBuilderTest.kt32 MockLayerBuilder("Mock Layer") in containerLayerIsInvisible()
43 MockLayerBuilder("Parent Mock Layer") in childrenLayerInheritsParentBounds()
46 .addChild(MockLayerBuilder("Child Mock Layer")) in childrenLayerInheritsParentBounds()
56 MockLayerBuilder("Parent Mock Layer") in canAddChildLayer()
58 .addChild(MockLayerBuilder("Child Mock Layer")) in canAddChildLayer()
67 MockLayerBuilder("Mock Layer") in canSetLayerVisibility()
78 MockLayerBuilder("Mock Layer") in invisibleLayerHasNoVisibleBounds()
DMockLayerBuilder.kt31 class MockLayerBuilder(private val name: String) { in <lambda>() class
36 private val children = mutableListOf<MockLayerBuilder>() in <lambda>()
45 fun addChild(layer: MockLayerBuilder): MockLayerBuilder = apply { this.children.add(layer) } in <lambda>()
47 fun setContainerLayer(): MockLayerBuilder = apply { in <lambda>()
53 fun setVisible(): MockLayerBuilder = apply { this.isVisible = true } in <lambda>()
55 fun setInvisible(): MockLayerBuilder = apply { this.isVisible = false } in <lambda>()
57 fun addChildren(rootLayers: Collection<MockLayerBuilder>): MockLayerBuilder = apply { in <lambda>()
61 fun setAbsoluteBounds(bounds: Rect): MockLayerBuilder = apply { this.absoluteBounds = bounds } in <lambda>()
DMockLayerTraceEntryBuilder.kt43 fun addDisplay(rootLayers: List<MockLayerBuilder>): MockLayerTraceEntryBuilder = apply { in <lambda>()
45 MockLayerBuilder("Display").setAbsoluteBounds(bounds).addChildren(rootLayers).build() in <lambda>()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/subject/surfaceflinger/
DLayerTraceEntrySubjectTest.kt27 import android.tools.utils.MockLayerBuilder
183 MockLayerBuilder(app1Name) in orComponentMatcher_visibility_oneVisibleOtherInvisible()
185 .addChild(MockLayerBuilder(app1Name).setVisible()), in orComponentMatcher_visibility_oneVisibleOtherInvisible()
186 MockLayerBuilder(app2Name) in orComponentMatcher_visibility_oneVisibleOtherInvisible()
188 .addChild(MockLayerBuilder(app2Name).setInvisible()), in orComponentMatcher_visibility_oneVisibleOtherInvisible()
216 MockLayerBuilder(app1Name) in orComponentMatcher_visibility_oneVisibleOtherMissing()
218 .addChild(MockLayerBuilder(app1Name).setVisible()) in orComponentMatcher_visibility_oneVisibleOtherMissing()
246 MockLayerBuilder(app1Name) in canUseOrComponentMatcher_visibility_allVisible()
249 .addChild(MockLayerBuilder("$app1Name child").setVisible()), in canUseOrComponentMatcher_visibility_allVisible()
250 MockLayerBuilder(app2Name) in canUseOrComponentMatcher_visibility_allVisible()
[all …]