Home
last modified time | relevance | path

Searched refs:SpatialPanel (Results 1 – 25 of 39) sorted by relevance

12

/xr/compose/compose/src/test/kotlin/androidx/xr/compose/subspace/
DSpatialRowColumnTest.kt59 SpatialPanel { Text(text = "Column 1") } in spatialRowColumn_internalElementsAreLaidOutProperly()
63 SpatialPanel { Text(text = "Column 2") } in spatialRowColumn_internalElementsAreLaidOutProperly()
97 SpatialPanel { Text(text = "Column 1") } in spatialRow_internalElementsAreAligned()
100 SpatialPanel { Text(text = "Column 2") } in spatialRow_internalElementsAreAligned()
138 SpatialPanel { Text(text = "Column 1") } in spatialRow_internalElementsAreAligned_withModifier()
145 SpatialPanel { Text(text = "Column 2") } in spatialRow_internalElementsAreAligned_withModifier()
167 SpatialPanel { Text(text = "SpatialRow 1") } in spatialColumn_internalElementsAreAligned()
170 SpatialPanel { Text(text = "SpatialRow 2") } in spatialColumn_internalElementsAreAligned()
208 SpatialPanel { Text(text = "SpatialRow 1") } in spatialColumn_internalElementsAreAligned_withModifier()
215 SpatialPanel { Text(text = "SpatialRow 2") } in spatialColumn_internalElementsAreAligned_withModifier()
[all …]
DSpatialBoxTest.kt49 SpatialPanel(SubspaceModifier.testTag("panel1").size(50.dp)) { in spatialBox_elementsAreCenteredByDefault()
52 SpatialPanel(SubspaceModifier.testTag("panel2").size(50.dp)) { in spatialBox_elementsAreCenteredByDefault()
82 SpatialPanel(SubspaceModifier.testTag("panel1").size(50.dp)) { in spatialBox_elementsAreAlignedWithBoxSpatialAlignment_topLeft()
85 SpatialPanel(SubspaceModifier.testTag("panel2").size(50.dp)) { in spatialBox_elementsAreAlignedWithBoxSpatialAlignment_topLeft()
115 SpatialPanel(SubspaceModifier.testTag("panel1").size(50.dp)) { in spatialBox_elementsAreAlignedWithBoxSpatialAlignment_bottomRight()
118 SpatialPanel(SubspaceModifier.testTag("panel2").size(50.dp)) { in spatialBox_elementsAreAlignedWithBoxSpatialAlignment_bottomRight()
145 SpatialPanel( in spatialBox_elementsAreAlignedWithModifier()
152 SpatialPanel( in spatialBox_elementsAreAlignedWithModifier()
183 SpatialPanel(SubspaceModifier.testTag("panel1").size(50.dp)) { in spatialBox_elementsHonorPropagatedMinConstraints()
186 SpatialPanel(SubspaceModifier.testTag("panel2").size(50.dp)) { in spatialBox_elementsHonorPropagatedMinConstraints()
DSpatialPanelTest.kt73 SpatialPanel(SubspaceModifier.width(100.dp).testTag("panel")) { in spatialPanel_internalElementsAreLaidOutProperly()
94 SpatialPanel(SubspaceModifier.width(10.dp).testTag("panel")) { in spatialPanel_textTooLong_panelDoesNotGrowBeyondSpecifiedWidth()
119 SpatialPanel(view = textView, SubspaceModifier.testTag("panel")) in spatialPanel_viewBasedPanelComposes()
181 SpatialPanel( in spatialPanel_cornerRadius_dp()
196 SpatialPanel( in spatialPanel_cornerRadius_percent()
212 SpatialPanel( in activityPanel_launchesIntent()
241 SpatialPanel( in activityPanel_scrimAdds()
269 SpatialPanel( in activityPanel_scrimRemoves()
/xr/compose/compose/src/test/kotlin/androidx/xr/compose/subspace/layout/
DMovableModifierTest.kt34 import androidx.xr.compose.subspace.SpatialPanel
59 SpatialPanel(SubspaceModifier.testTag("panel")) { Text(text = "Panel") } in movable_noComponentByDefault()
78 SpatialPanel(SubspaceModifier.testTag("panel").movable()) { in movable_componentIsNotNullAndOnlyContainsSingleMovable()
93 SpatialPanel(SubspaceModifier.testTag("panel").movable(false)) { in movable_modifierIsDisabledAndComponentDoesNotExist()
109 SpatialPanel( in movable_modifierDoesNotChangeAndOnlyOneComponentExist()
137 SpatialPanel( in movable_modifierEnabledToDisabledAndComponentUpdates()
164 SpatialPanel( in movable_modifierOnPoseChangeUpdateAndComponentUpdates()
195 SpatialPanel( in movable_modifierDisableWithOnPoseChangeUpdateAndComponentRemoved()
228 SpatialPanel( in movable_modifierEnabledWithOnPoseChangeUpdateAndComponentUpdates()
260 SpatialPanel( in movable_modifierDisabledThenEnabledAndComponentUpdates()
[all …]
DSizeTest.kt24 import androidx.xr.compose.subspace.SpatialPanel
46 SpatialPanel( in size_individualModifiers_panelsAreSizedCorrectly()
67 SpatialPanel(SubspaceModifier.testTag("panel").size(20.dp)) { in size_combinedModifier_panelsAreSizedCorrectly()
87 SpatialPanel(SubspaceModifier.testTag("panel").size(20.dp)) { in size_combinedModifier_panelsRespectParentSizeConstraints()
107 SpatialPanel( in size_individualRequiredModifiers_panelsAreSizedCorrectly()
131 SpatialPanel(SubspaceModifier.testTag("panel").requiredSize(20.dp)) { in size_combinedRequiredModifier_panelsAreSizedCorrectly()
151 SpatialPanel(SubspaceModifier.testTag("panel").requiredSize(20.dp)) { in size_combinedRequiredModifier_panelsOverrideParentSizeConstraints()
172 SpatialPanel( in size_individualFillModifiers_panelsAreSizedCorrectly()
198 SpatialPanel( in size_individualFillModifiersWithFraction_panelsAreSizedCorrectly()
224 SpatialPanel(SubspaceModifier.testTag("panel").fillMaxSize()) { in size_combinedFillModifier_panelsAreSizedCorrectly()
[all …]
DResizableModifierTest.kt35 import androidx.xr.compose.subspace.SpatialPanel
67 SpatialPanel(SubspaceModifier.testTag("panel")) { Text(text = "Panel") } in resizable_noComponentByDefault()
86 SpatialPanel(SubspaceModifier.testTag("panel").resizable()) { in resizable_componentIsNotNullAndOnlyContainsSingleResizable()
101 SpatialPanel(SubspaceModifier.testTag("panel").resizable(enabled = false)) { in resizable_modifierIsDisabledAndComponentDoesNotExist()
117 SpatialPanel( in resizable_modifierDoesNotChangeAndComponentDoesNotUpdate()
147 SpatialPanel( in resizable_modifierEnabledToDisabledAndComponentUpdates()
175 SpatialPanel( in resizable_modifierOnSizeChangeUpdateAndComponentUpdates()
205 SpatialPanel( in resizable_modifierDisableWithOnSizeChangeUpdateAndComponentRemoved()
241 SpatialPanel( in resizable_modifierEnabledWithOnSizeChangeUpdateAndComponentUpdates()
276 SpatialPanel( in resizable_modifierDisabledThenEnabledAndComponentUpdates()
[all …]
DAlphaTest.kt26 import androidx.xr.compose.subspace.SpatialPanel
45 SpatialPanel(SubspaceModifier.testTag("panel").alpha(0.5f)) { in alpha_shouldBeAppliedToEntity()
67 SpatialPanel(SubspaceModifier.testTag("panel").alpha(0.5f).alpha(0.5f)) { in alpha_multiple_shouldBeMultipliedThenAppliedToEntity()
89 SpatialPanel(SubspaceModifier.testTag("panel").alpha(-1f)) { in alpha_negative_shouldBeClampedToZero()
111 SpatialPanel(SubspaceModifier.testTag("panel").alpha(1.1f)) { in alpha_greaterThanOne_shouldBeClampedToOne()
135 SpatialPanel(SubspaceModifier.testTag("panel").alpha(alpha)) { in alpha_updatesWhenValueChanges()
168 SpatialPanel(SubspaceModifier.testTag("panel").alpha(3f).alpha(0.1f)) { in alpha_multiple_valuesShouldBeClampedThenMultiplied()
DOffsetTest.kt34 import androidx.xr.compose.subspace.SpatialPanel
55 SpatialPanel(SubspaceModifier.testTag("panel").offset(20.dp, 20.dp, 20.dp)) { in offset_positiveValuesArePositionedCorrectly()
72 SpatialPanel(SubspaceModifier.testTag("panel").offset(-20.dp, -20.dp, -20.dp)) { in offset_negativeValuesArePositionedCorrectly()
89 SpatialPanel( in offset_combinedWithOtherModifiersArePositionedCorrectly()
113 SpatialPanel( in offset_nestedLayoutsArePositionedCorrectly()
120 SpatialPanel( in offset_nestedLayoutsArePositionedCorrectly()
148 SpatialPanel(SubspaceModifier.testTag("panel").offset(x = offsetX)) { in offset_updatesDynamically()
DPaddingTest.kt24 import androidx.xr.compose.subspace.SpatialPanel
47 SpatialPanel( in padding_settingValuesIndependentlySizesCorrectly()
78 SpatialPanel( in padding_settingDirectionalValuesSizesCorrectly()
102 SpatialPanel( in padding_settingAllValuesSizesCorrectly()
125 SpatialPanel( in padding_negativePaddingThrowsException()
DRotateTest.kt23 import androidx.xr.compose.subspace.SpatialPanel
44 SpatialPanel(SubspaceModifier.testTag("panel").rotate(90.0f, 0.0f, 0.0f)) { in rotation_canApplySingleRotation()
61 SpatialPanel( in rotation_canRotationAcrossTwoAxis()
DOnGloballyPositionedModifierTest.kt24 import androidx.xr.compose.subspace.SpatialPanel
45 SpatialPanel( in onGloballyPositioned_positionIsAlwaysSet()
DScaleModifierTest.kt25 import androidx.xr.compose.subspace.SpatialPanel
71 SpatialPanel(modifier = modifier) { Text(text = "Panel") } in PanelContent()
/xr/compose/integration-tests/layout/movableandresizablepanelapp/src/main/java/androidx/xr/compose/integration/layout/movableandresizablepanelapp/
DMovableAndResizablePanelApp.kt44 import androidx.xr.compose.subspace.SpatialPanel
98 SpatialPanel( in SpatialContent()
108 SpatialPanel( in SpatialContent()
114 SpatialPanel( in SpatialContent()
124 SpatialPanel( in SpatialContent()
134 SpatialPanel( in SpatialContent()
152 SpatialPanel( in SpatialContent()
174 SpatialPanel( in SpatialContent()
180 SpatialPanel( in SpatialContent()
/xr/compose/integration-tests/layout/movablepanelapp/src/main/java/androidx/xr/compose/integration/layout/movablepanelapp/
DMovablePanelApp.kt51 import androidx.xr.compose.subspace.SpatialPanel in <lambda>()
124 SpatialPanel( in <lambda>()
132 SpatialPanel( in <lambda>()
138 SpatialPanel( in <lambda>()
145 SpatialPanel( in <lambda>()
158 SpatialPanel( in <lambda>()
164 SpatialPanel( in <lambda>()
199 SpatialPanel( in <lambda>()
205 SpatialPanel( in <lambda>()
/xr/compose/integration-tests/layout/depthstackingapp/src/main/java/androidx/xr/compose/integration/layout/depthstackingapp/
DDepthStackingApp.kt36 import androidx.xr.compose.subspace.SpatialPanel
53 SpatialPanel(modifier = panelSize.offset(0.dp, 0.dp, (-50).dp).testTag("BackPanel")) { in SpatialContent()
56 SpatialPanel(modifier = panelSize.testTag("MiddlePanel")) { in SpatialContent()
59 SpatialPanel(modifier = panelSize.offset(0.dp, 0.dp, 50.dp).testTag("FrontPanel")) { in SpatialContent()
/xr/compose/integration-tests/layout/activitypanelapp/src/main/java/androidx/xr/compose/integration/layout/activitypanelapp/
DActivityPanelApp.kt29 import androidx.xr.compose.subspace.SpatialPanel
66 SpatialPanel( in SpatialContent()
77 SpatialPanel( in SpatialContent()
94 SpatialPanel( in SpatialContent()
/xr/compose/integration-tests/layout/resizablepanelapp/src/main/java/androidx/xr/compose/integration/layout/resizablepanelapp/
DResizablePanelApp.kt50 import androidx.xr.compose.subspace.SpatialPanel in <lambda>()
105 SpatialPanel( in <lambda>()
115 SpatialPanel( in <lambda>()
121 SpatialPanel( in <lambda>()
143 SpatialPanel( in <lambda>()
177 SpatialPanel( in <lambda>()
183 SpatialPanel( in <lambda>()
/xr/compose/integration-tests/layout/modifierorderapp/src/main/java/androidx/xr/compose/integration/layout/modifierorderapp/
DModifierOrderApp.kt37 import androidx.xr.compose.subspace.SpatialPanel
65 SpatialPanel( in SpatialContent()
78 SpatialPanel( in SpatialContent()
89 SpatialPanel( in SpatialContent()
/xr/compose/compose/src/test/kotlin/androidx/xr/compose/spatial/
DSubspaceTest.kt31 import androidx.xr.compose.subspace.SpatialPanel
111 SpatialPanel( in subspace_alreadyInSubspace_justRendersContentDirectly()
175 SpatialPanel( in applicationSubspace_alreadyInApplicationSubspace_justRendersContentDirectly()
199 TestSetup { Subspace { SpatialPanel(SubspaceModifier.testTag("panel")) {} } } in subspace_xrEnabled_contentIsCreated()
215 SpatialPanel(SubspaceModifier.testTag("panel")) {} in applicationSubspace_unbounded_xrEnabled_contentIsCreated()
239 SpatialPanel(SubspaceModifier.testTag("panel")) {} in applicationSubspace_customBounded_xrEnabled_contentIsCreated()
252 TestSetup { ApplicationSubspace { SpatialPanel(SubspaceModifier.testTag("panel")) {} } } in applicationSubspace_fovBounded_xrEnabled_contentIsCreated()
264 Subspace { SpatialPanel(SubspaceModifier.testTag("panel")) {} } in subspace_nonXr_contentIsNotCreated()
279 SpatialPanel(SubspaceModifier.testTag("panel")) {} in applicationSubspace_unbounded_nonXr_contentIsNotCreated()
301 SpatialPanel(SubspaceModifier.testTag("panel")) {} in applicationSubspace_customBounded_nonXr_contentIsNotCreated()
[all …]
/xr/compose/integration-tests/layout/modechangeapp/src/main/java/androidx/xr/compose/integration/layout/modechangeapp/
DModeChangeApp.kt42 import androidx.xr.compose.subspace.SpatialPanel
68 SpatialPanel(modifier = SubspaceModifier.width(300.dp).height(300.dp)) { in FullSpaceModeContent()
71 SpatialPanel(modifier = SubspaceModifier.width(600.dp).height(400.dp)) { in FullSpaceModeContent()
80 SpatialPanel(modifier = SubspaceModifier.width(300.dp).height(300.dp)) { in FullSpaceModeContent()
/xr/compose/integration-tests/layout/movablescalableapp/src/main/java/androidx/xr/compose/integration/layout/movablescalableapp/
DMovableScalableApp.kt40 import androidx.xr.compose.subspace.SpatialPanel in <lambda>()
65 SpatialPanel( in <lambda>()
91 SpatialPanel( in <lambda>()
107 SpatialPanel(SubspaceModifier.height(200.dp).width(200.dp)) { in <lambda>()
/xr/compose/integration-tests/layout/nestedsubspaceapp/src/main/java/androidx/xr/compose/integration/layout/nestedsubspaceapp/
DNestedSubspaceActivity.kt46 import androidx.xr.compose.subspace.SpatialPanel
65 SpatialPanel(SubspaceModifier.height(400.dp).width(800.dp).movable().resizable()) { in onCreate()
80 SpatialPanel( in onCreate()
94 SpatialPanel(SubspaceModifier.offset(z = 250.dp)) { in onCreate()
/xr/compose/integration-tests/layout/nestedsubspacesetsubspacecontentactivity/src/main/java/androidx/xr/compose/integration/layout/nestedsubspacesetsubspacecontentactivity/
DNestedSubspaceSetSubspaceContentActivity.kt47 import androidx.xr.compose.subspace.SpatialPanel
68 SpatialPanel(SubspaceModifier.height(400.dp).width(800.dp).movable().resizable()) { in onCreate()
83 SpatialPanel( in onCreate()
97 SpatialPanel(SubspaceModifier.offset(z = 250.dp)) { in onCreate()
/xr/compose/integration-tests/layout/uxtestapp/src/main/java/androidx/xr/compose/integration/layout/uxtestapp/
DUxTestApp.kt47 import androidx.xr.compose.subspace.SpatialPanel
62 SpatialPanel(SubspaceModifier.width(2000.dp).height(400.dp).movable()) { in onCreate()
100 SpatialPanel(SubspaceModifier.offset(z = elevation)) { in TestPanel()
/xr/compose/integration-tests/mediaplayerapp/src/main/java/androidx/xr/compose/integration/mediaplayerapp/
DMediaPlayerApp.kt36 import androidx.xr.compose.subspace.SpatialPanel in <lambda>()
48 SpatialPanel( in <lambda>()

12