Searched refs:MockLayerBuilder (Results 1 – 4 of 4) sorted by relevance
32 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()
31 class MockLayerBuilder(private val name: String) { in <lambda>() class36 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>()
43 fun addDisplay(rootLayers: List<MockLayerBuilder>): MockLayerTraceEntryBuilder = apply { in <lambda>()45 MockLayerBuilder("Display").setAbsoluteBounds(bounds).addChildren(rootLayers).build() in <lambda>()
27 import android.tools.utils.MockLayerBuilder183 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 …]