Home
last modified time | relevance | path

Searched refs:Box (Results 1 – 25 of 1110) sorted by relevance

12345678910>>...45

/compose/ui/ui/src/androidInstrumentedTest/kotlin/androidx/compose/ui/focus/
DCancelFocusMoveTest.kt20 import androidx.compose.foundation.layout.Box
69 Box(Modifier.testFocusable(1)) in defaultOrderIsUsed()
70 Box(Modifier.testFocusable(2)) in defaultOrderIsUsed()
71 Box(Modifier.testFocusable(3)) in defaultOrderIsUsed()
74 Box(Modifier.testFocusable(4)) in defaultOrderIsUsed()
75 Box(Modifier.testFocusable(5)) { Box(Modifier.testFocusable(7)) } in defaultOrderIsUsed()
76 Box(Modifier.testFocusable(6)) in defaultOrderIsUsed()
79 Box(Modifier.testFocusable(8)) in defaultOrderIsUsed()
80 Box(Modifier.testFocusable(9)) in defaultOrderIsUsed()
81 Box(Modifier.testFocusable(10)) in defaultOrderIsUsed()
[all …]
DRequestFocusEnterExitTest.kt19 import androidx.compose.foundation.layout.Box
51 Box(Modifier.focusTarget(grandParent)) { in triggersExitAndEnter()
52 Box(Modifier.focusTarget(parent1)) { in triggersExitAndEnter()
53 Box(Modifier.focusRequester(source).focusTarget(child1)) in triggersExitAndEnter()
54 Box(Modifier.focusTarget(child2)) in triggersExitAndEnter()
56 Box(Modifier.focusTarget(parent2)) { in triggersExitAndEnter()
57 Box(Modifier.focusTarget(child3)) in triggersExitAndEnter()
58 Box(Modifier.focusRequester(destination).focusTarget(child4)) in triggersExitAndEnter()
86 Box(Modifier.focusTarget(grandParent)) { in exitPropertyOnFocusedItem_cantStopFocusFromLeaving()
87 Box(Modifier.focusTarget(parent1)) { in exitPropertyOnFocusedItem_cantStopFocusFromLeaving()
[all …]
DFocusRequesterTest.kt20 import androidx.compose.foundation.layout.Box
52 rule.setFocusableContent { Box {} } in focusRequesterModifierNotUsed()
67 Box( in requestFocus_noFocusTargetInLayoutNode()
88 Box( in requestFocus_focusTargetInLayoutNode_butBeforeFocusRequester()
111 Box( in requestFocus_focusTargetInLayoutNode()
134 Box( in requestFocus_focusTargetInChildLayoutNode()
138 Box(modifier = Modifier.focusTarget()) in requestFocus_focusTargetInChildLayoutNode()
157 Box(modifier = Modifier.onFocusChanged { focusState = it }) { in requestFocus_focusTargetAndReferenceInChildLayoutNode()
158 Box(modifier = Modifier.focusRequester(focusRequester).focusTarget()) in requestFocus_focusTargetAndReferenceInChildLayoutNode()
177 Box(modifier = Modifier.focusRequester(focusRequester)) { in requestFocus_focusTargetAndObserverInChildLayoutNode()
[all …]
DRequestFocusEnterTest.kt19 import androidx.compose.foundation.layout.Box
42 Box( in gainingFocus_doesNotTriggersEnter()
64 Box( in gainingFocus_doesNotTriggersEnterForChild()
69 Box(Modifier.focusProperties { onEnter = { enterTriggered = true } }.focusTarget()) in gainingFocus_doesNotTriggersEnterForChild()
87 Box(Modifier.focusProperties { onEnter = { enterTriggered = true } }.focusTarget()) { in gainingFocus_triggersEnterForParent()
88 Box( in gainingFocus_triggersEnterForParent()
110 Box(Modifier.focusProperties { onEnter = { enterTriggered = true } }.focusTarget()) { in gainingFocus_triggersEnterForGrandparent()
111 Box { in gainingFocus_triggersEnterForGrandparent()
112 Box( in gainingFocus_triggersEnterForGrandparent()
135 Box( in cancellingFocusGain_usingEnterProperty()
[all …]
DRequestFocusTest.kt22 import androidx.compose.foundation.layout.Box
63 Box( in active_isUnchanged()
85 Box( in captured_isUnchanged()
109 Box( in deactivated_isUnchanged()
132 Box( in activeParent_propagateFocus()
137 Box( in activeParent_propagateFocus()
164 Box( in deactivatedParent_propagateFocus()
170 Box( in deactivatedParent_propagateFocus()
200 Box( in deactivatedParent_activeChild_propagateFocus()
206 Box( in deactivatedParent_activeChild_propagateFocus()
[all …]
DClearFocusExitTest.kt19 import androidx.compose.foundation.layout.Box
46 Box( in clearFocus_doesNotTriggerExit()
70 Box( in clearFocus_doesNotTriggersExitForChild()
75 Box(Modifier.focusProperties { onExit = { clearTriggered = true } }.focusTarget()) in clearFocus_doesNotTriggersExitForChild()
95 Box(Modifier.focusProperties { onExit = { clearTriggered = true } }.focusTarget()) { in clearFocus_triggersExitForParent()
96 Box( in clearFocus_triggersExitForParent()
124 Box( in clearFocus_triggersExitForGrandparent()
133 Box { in clearFocus_triggersExitForGrandparent()
134 Box( in clearFocus_triggersExitForGrandparent()
159 Box( in cancellingClearFocus_usingExitProperty()
[all …]
DCustomFocusTraversalTest.kt22 import androidx.compose.foundation.layout.Box
80 Box( in initParameters()
86 Box(Modifier.onFocusChanged { item2Focused = it.isFocused }.focusTarget()) in initParameters()
87 Box( in initParameters()
122 Box( in focusProperties_previous()
127 Box(Modifier.onFocusChanged { item2Focused = it.isFocused }.focusTarget()) in focusProperties_previous()
128 Box( in focusProperties_previous()
165 Box( in focusProperties_up()
170 Box(Modifier.onFocusChanged { item2Focused = it.isFocused }.focusTarget()) in focusProperties_up()
171 Box( in focusProperties_up()
[all …]
DFocusAggregationTest.kt20 import androidx.compose.foundation.layout.Box
41 rule.setFocusableContent { Box(Modifier.onFocusChanged { focusState = it }) } in nonFocusableItem()
57 Box( in focusableItem_notFocused()
78 Box( in focusableItem_focused()
100 rule.setFocusableContent { Box(Modifier.onFocusChanged { focusState = it }) { Box {} } } in parentOfNonFocusableItem()
115 Box(Modifier.onFocusChanged { focusState = it }) { Box(Modifier.focusable()) } in parentWithSingleFocusableChild_childNotFocused()
132 Box(Modifier.onFocusChanged { focusState = it }) { in parentWithSingleFocusableChild_childFocused()
133 Box(Modifier.focusRequester(focusRequester).focusable()) in parentWithSingleFocusableChild_childFocused()
155 Box(Modifier.focusRequester(focusRequester).focusable()) in parentWithMultipleFocusableChildren_firstChildFocused()
156 Box(Modifier.focusable()) in parentWithMultipleFocusableChildren_firstChildFocused()
[all …]
DFocusTargetAttachDetachTest.kt21 import androidx.compose.foundation.layout.Box
90 Box { in resetTouchMode()
91 Box( in resetTouchMode()
129 Box { in removedModifier_onFocusChangedDoesNotHaveAFocusTarget()
130 Box( in removedModifier_onFocusChangedDoesNotHaveAFocusTarget()
159 Box( in removedFocusTarget_withNoNextFocusTarget()
184 Box( in removedActiveFocusTarget_pointsToNextFocusTarget()
189 Box(Modifier.focusTarget()) in removedActiveFocusTarget_pointsToNextFocusTarget()
211 Box( in removedActiveFocusTargetAndFocusChanged_triggersOnFocusEvent()
237 Box( in removedActiveComposable_doesNotTriggerOnFocusEvent()
[all …]
/compose/ui/ui/src/androidInstrumentedTest/kotlin/androidx/compose/ui/modifier/
DModifierLocalMultiLayoutNodeTest.kt19 import androidx.compose.foundation.layout.Box
48 Box(Modifier.modifierLocalConsumer { readValue = localString.current }) { in doesNotReadValuesProvidedByChildren()
49 Box(Modifier.modifierLocalProvider(localString) { providedValue }) in doesNotReadValuesProvidedByChildren()
64 Box(Modifier.modifierLocalProvider(localString) { providedValue }) { in readsValuesProvidedByParent()
65 Box(Modifier.modifierLocalConsumer { readValue = localString.current }) in readsValuesProvidedByParent()
80 Box(Modifier.modifierLocalProvider(localString) { providedValue }) { in readsValuesProvidedByGrandParent()
81 Box(Modifier.size(100.dp)) { in readsValuesProvidedByGrandParent()
82 Box(Modifier.modifierLocalConsumer { readValue = localString.current }) in readsValuesProvidedByGrandParent()
99 Box(Modifier.modifierLocalProvider(localString) { providedValue1 }) { in parentInSameLayoutNodeTakesPrecedenceOverParentLayoutNode()
100 Box( in parentInSameLayoutNodeTakesPrecedenceOverParentLayoutNode()
[all …]
/compose/foundation/foundation/src/androidInstrumentedTest/kotlin/androidx/compose/foundation/
DFocusGroupTest.kt61 Box( in focusGroup_withNonFocusableContent_isNotFocusable()
83 Box( in focusGroup_withFocusableContent_isNotFocusable()
88 Box(Modifier.focusable()) in focusGroup_withFocusableContent_isNotFocusable()
105 Box( in focusGroup_canBeMadeFocusableUsingFocusProperties()
156 Box(Modifier.focusRequester(initialFocus).focusable()) in oneDimensionalFocusSearch_traversesCurrentFocusGroupBeforeNextGroup()
157 Box(Modifier.onFocusChanged { expectedFocus = it }.focusable()) in oneDimensionalFocusSearch_traversesCurrentFocusGroupBeforeNextGroup()
160 Box(Modifier.focusable()) in oneDimensionalFocusSearch_traversesCurrentFocusGroupBeforeNextGroup()
161 Box(Modifier.focusable()) in oneDimensionalFocusSearch_traversesCurrentFocusGroupBeforeNextGroup()
180 Box(Modifier.focusable()) in oneDimensionalFocusSearch_flowsOverToNextGroup()
181 Box(Modifier.focusRequester(initialFocus).focusable()) in oneDimensionalFocusSearch_flowsOverToNextGroup()
[all …]
/compose/ui/ui/src/androidInstrumentedTest/kotlin/androidx/compose/ui/node/
DModifierNodeVisitSubtreeIfTest.kt19 import androidx.compose.foundation.layout.Box
41 rule.setContent { Box(Modifier.elementOf(node)) } in noChildren()
57 Box(Modifier.elementOf(node1)) { in stopsIfWeReturnFalse()
58 Box(Modifier.elementOf(node2)) { in stopsIfWeReturnFalse()
59 Box(Modifier.elementOf(node3)) in stopsIfWeReturnFalse()
60 Box(Modifier.elementOf(node4)) { Box(Modifier.elementOf(node6)) } in stopsIfWeReturnFalse()
61 Box(Modifier.elementOf(node5)) in stopsIfWeReturnFalse()
86 Box(Modifier.elementOf(node1)) { in continuesIfWeReturnTrue()
87 Box(Modifier.elementOf(node2)) { in continuesIfWeReturnTrue()
88 Box(Modifier.elementOf(node3)) in continuesIfWeReturnTrue()
[all …]
DModifierNodeVisitSelfAndChildrenTest.kt19 import androidx.compose.foundation.layout.Box
40 rule.setContent { Box(Modifier.elementOf(node)) } in noChildren()
54 rule.setContent { Box(Modifier.elementOf(node).elementOf(child)) } in oneChild()
68 rule.setContent { Box(Modifier.elementOf(node).elementOf(child1).elementOf(child2)) } in multipleNodesInModifierChain()
82 rule.setContent { Box(Modifier.elementOf(node).otherModifier().elementOf(child)) } in nonContiguousChild()
96 rule.setContent { Box(Modifier.elementOf(node)) { Box(Modifier.elementOf(child)) } } in childInDifferentLayoutNode()
111 Box(Modifier.elementOf(node)) { in childrenInDifferentLayoutNode()
112 Box(Modifier.elementOf(child1)) in childrenInDifferentLayoutNode()
113 Box(Modifier.elementOf(child2)) in childrenInDifferentLayoutNode()
130 Box(Modifier.elementOf(node)) { in childInDifferentLayoutNodeNonContiguous()
[all …]
DModifierNodeVisitChildrenTest.kt19 import androidx.compose.foundation.layout.Box
42 rule.setContent { Box(Modifier.elementOf(testNode)) } in noChildren()
56 rule.setContent { Box(Modifier.elementOf(node).elementOf(child1).elementOf(child2)) } in localChildren()
71 Box( in nonContiguousLocalChild()
94 Box(Modifier.elementOf(node)) { in visitChildrenInOtherLayoutNodes()
95 Box(Modifier.elementOf(child1)) { Box(Modifier.elementOf(grandchild1)) } in visitChildrenInOtherLayoutNodes()
96 Box(Modifier.elementOf(child2)) { Box(Modifier.elementOf(grandchild2)) } in visitChildrenInOtherLayoutNodes()
97 Box(Modifier.elementOf(child3)) in visitChildrenInOtherLayoutNodes()
115 Box(Modifier.elementOf(node)) { in visitChildrenInOtherLayoutNodesInDrawOrder_zIndex()
116 Box(Modifier.elementOf(child1).zIndex(10f)) in visitChildrenInOtherLayoutNodesInDrawOrder_zIndex()
[all …]
/compose/material3/material3/src/androidInstrumentedTest/kotlin/androidx/compose/material3/
DCardScreenshotTest.kt21 import androidx.compose.foundation.layout.Box
73 Box(wrap.testTag(wrapperTestTag), contentAlignment = Alignment.Center) { in filledCard_lightTheme()
75 Box(Modifier.fillMaxSize()) { in filledCard_lightTheme()
87 Box(wrap.testTag(wrapperTestTag), contentAlignment = Alignment.Center) { in filledCard_darkTheme()
89 Box(Modifier.fillMaxSize()) { in filledCard_darkTheme()
101 Box(wrap.testTag(wrapperTestTag), contentAlignment = Alignment.Center) { in filledCard_disabled_lightTheme()
107 Box(Modifier.fillMaxSize()) { in filledCard_disabled_lightTheme()
119 Box(wrap.testTag(wrapperTestTag), contentAlignment = Alignment.Center) { in filledCard_disabled_darkTheme()
125 Box(Modifier.fillMaxSize()) { in filledCard_disabled_darkTheme()
137 Box(wrap.testTag(wrapperTestTag), contentAlignment = Alignment.Center) { in elevatedCard_lightTheme()
[all …]
DIconButtonScreenshotTest.kt22 import androidx.compose.foundation.layout.Box
80 Box(wrap.testTag(wrapperTestTag)) { in iconButton_lightTheme()
92 Box(wrap.testTag(wrapperTestTag)) { in iconButton_darkTheme()
104 Box(wrap.testTag(wrapperTestTag)) { in iconButton_lightTheme_disabled()
117 Box(wrap.testTag(wrapperTestTag)) { in iconButton_lightTheme_pressed()
141 Box(wrap.testTag(wrapperTestTag)) { in iconButton_lightTheme_hovered()
159 Box(wrap.testTag(wrapperTestTag)) { in iconButton_lightTheme_focused()
180 Box(wrap.testTag(wrapperTestTag)) { in iconButton_largeContentClipped()
182 Box(Modifier.size(100.dp).background(Color.Blue)) in iconButton_largeContentClipped()
192 Box(wrap.testTag(wrapperTestTag)) { in iconToggleButton_lightTheme()
[all …]
DToggleButtonScreenshotTest.kt20 import androidx.compose.foundation.layout.Box
57 Box(Modifier.testTag(wrapperTestTag)) { in toggleButton_lightTheme()
67 Box(Modifier.testTag(wrapperTestTag)) { in toggleButton_lightTheme_disabled()
79 Box(Modifier.testTag(wrapperTestTag)) { in toggleButton_darkTheme()
89 Box(Modifier.testTag(wrapperTestTag)) { in toggleButton_checked_lightTheme()
99 Box(Modifier.testTag(wrapperTestTag)) { in toggleButton_checked_darkTheme()
110 Box(Modifier.testTag(wrapperTestTag)) { in toggleButton_lightTheme_defaultToPressed()
133 Box(Modifier.testTag(wrapperTestTag)) { in toggleButton_lightTheme_checkedToPressed()
155 Box(Modifier.testTag(wrapperTestTag)) { in elevatedToggleButton_lightTheme()
165 Box(Modifier.testTag(wrapperTestTag)) { in elevatedToggleButton_lightTheme_disabled()
[all …]
DSliderScreenshotTest.kt20 import androidx.compose.foundation.layout.Box in <lambda>()
73 Box(wrap.testTag(wrapperTestTag)) { Slider(remember { SliderState(0f) }) } in <lambda>()
83 Box(wrap.testTag(wrapperTestTag)) { Slider(remember { SliderState(0f) }) } in <lambda>()
94 Box(wrap.testTag(wrapperTestTag)) { in <lambda>()
106 Box(wrap.testTag(wrapperTestTag)) { in <lambda>()
117 Box(wrap.testTag(wrapperTestTag)) { Slider(remember { SliderState(0.5f) }) } in <lambda>()
126 Box(wrap.testTag(wrapperTestTag)) { in <lambda>()
140 Box(wrap.testTag(wrapperTestTag)) { in <lambda>()
154 Box(wrap.testTag(wrapperTestTag)) { in <lambda>()
168 Box(wrap.testTag(wrapperTestTag)) { Slider(remember { SliderState(0.5f) }) } in <lambda>()
[all …]
/compose/foundation/foundation-layout/samples/src/main/java/androidx/compose/foundation/layout/samples/
DSizeModifierSample.kt21 import androidx.compose.foundation.layout.Box
51 Box(Modifier.requiredSize(100.dp, 100.dp).requiredSize(50.dp, 50.dp).background(Color.Red)) in SimpleRequiredSizeModifier()
60 Box( in SimpleRequiredWidthModifier()
74 Box( in SimpleRequiredHeightModifier()
82 Box { Box(Modifier.size(100.dp, 100.dp).background(Color.Red)) } in SimpleSizeModifier()
88 Box { Box(Modifier.size(DpSize(100.dp, 100.dp)).background(Color.Red)) } in SimpleSizeModifierWithDpSize()
94 Box { Box(Modifier.width(100.dp).aspectRatio(1f).background(Color.Magenta)) } in SimpleWidthModifier()
100 Box { Box(Modifier.height(100.dp).aspectRatio(1f).background(Color.Blue)) } in SimpleHeightModifier()
106 Box(Modifier.fillMaxWidth().background(Color.Red), contentAlignment = Alignment.Center) { in SimpleFillWidthModifier()
107 Box(Modifier.size(100.dp).background(color = Color.Magenta)) in SimpleFillWidthModifier()
[all …]
DWindowInsetsPaddingSample.kt24 import androidx.compose.foundation.layout.Box in <lambda>()
79 Box(Modifier.captionBarPadding()) { in <lambda>()
94 Box(Modifier.systemBarsPadding()) { in systemBarsPaddingSample()
109 Box(Modifier.background(Color.Blue).statusBarsPadding()) { in displayCutoutPaddingSample()
110 Box(Modifier.background(Color.Yellow).displayCutoutPadding()) { in displayCutoutPaddingSample()
126 Box(Modifier.background(Color.Blue).statusBarsPadding()) { in statusBarsAndNavigationBarsPaddingSample()
127 Box(Modifier.background(Color.Green).navigationBarsPadding()) { in statusBarsAndNavigationBarsPaddingSample()
143 Box(Modifier.background(Color.Blue).systemBarsPadding()) { in imePaddingSample()
144 Box(Modifier.imePadding()) { in imePaddingSample()
160 Box(Modifier.background(Color.Blue).systemBarsPadding()) { in waterfallPaddingSample()
[all …]
/compose/material/material/src/androidInstrumentedTest/kotlin/androidx/compose/material/
DBackdropScaffoldTest.kt24 import androidx.compose.foundation.layout.Box in <lambda>()
91 appBar = { Box(Modifier.height(peekHeight)) }, in <lambda>()
92 backLayerContent = { Box(Modifier.height(contentHeight)) }, in <lambda>()
93 frontLayerContent = { Box(Modifier.fillMaxSize().testTag(frontLayer)) } in <lambda>()
108 appBar = { Box(Modifier.height(peekHeight)) }, in <lambda>()
109 backLayerContent = { Box(Modifier.height(contentHeight)) }, in <lambda>()
110 frontLayerContent = { Box(Modifier.fillMaxSize().testTag(frontLayer)) } in <lambda>()
133 appBar = { Box(Modifier.height(peekHeight)) }, in <lambda>()
134 backLayerContent = { Box(Modifier.height(contentHeight)) }, in <lambda>()
135 frontLayerContent = { Box(Modifier.fillMaxSize().testTag(frontLayer)) } in <lambda>()
[all …]
/compose/ui/ui/samples/src/main/java/androidx/compose/ui/samples/
DFocusSamples.kt24 import androidx.compose.foundation.layout.Box
61 Box( in FocusableSample()
73 Box( in FocusableSampleUsingLowerLevelFocusTarget()
152 Box( in RequestFocusSample()
168 Box(Modifier.focusable().size(100.dp)) in ClearFocusSample()
169 Box(Modifier.focusable().size(100.dp)) in ClearFocusSample()
170 Box(Modifier.focusable().size(100.dp)) in ClearFocusSample()
180 Box(Modifier.focusable()) in MoveFocusSample()
181 Box(Modifier.focusable()) in MoveFocusSample()
184 Box(Modifier.focusable()) in MoveFocusSample()
[all …]
/compose/foundation/foundation-layout/integration-tests/layout-demos/src/main/java/androidx/compose/foundation/layout/demos/
DRtlDemo.kt21 import androidx.compose.foundation.layout.Box in <lambda>()
92 Box(modifier = Modifier.padding(12.dp).size(56.dp).background(Color.Yellow)) { in TestPlacementInLimitedSpace()
105 Box(Modifier.fillMaxSize().background(Color.LightGray)) { in StackExample()
106 Box(Modifier.fillMaxSize().wrapContentSize(Alignment.TopStart)) { in StackExample()
107 Box(boxSize.then(Modifier.background(Color.Red))) {} in StackExample()
109 Box(Modifier.fillMaxSize().wrapContentHeight(Alignment.CenterVertically)) { in StackExample()
110 Box(boxSize.then(Modifier.background(Color.Green))) {} in StackExample()
112 Box(Modifier.fillMaxSize().wrapContentSize(Alignment.BottomEnd)) { in StackExample()
113 Box(boxSize.then(Modifier.background(Color.Blue))) {} in StackExample()
123 Box(boxSize.background(color = Color.Red)) {} in TestRow()
[all …]
/compose/ui/ui/benchmark/src/androidTest/java/androidx/compose/ui/benchmark/focus/
DParameterizedFocusBenchmark.kt19 import androidx.compose.foundation.layout.Box
73 Box(focusTargetModifiers()) { in parameters()
75 Box(Modifier.focusTarget()) { in parameters()
76 repeat(count) { Box(Modifier.focusTarget()) } in parameters()
85 Box( in parameters()
91 Box(Modifier.focusRequester(focusRequester).focusTarget()) in parameters()
117 Box(Modifier.thenIf(shouldAddNodes) { focusTargetModifiers() }) { in modifyActiveHierarchy_addRemoveModifiersWithExistingSubtree()
119 Box(Modifier.focusTarget()) { in modifyActiveHierarchy_addRemoveModifiersWithExistingSubtree()
120 repeat(count) { Box(Modifier.focusTarget()) } in modifyActiveHierarchy_addRemoveModifiersWithExistingSubtree()
128 Box( in modifyActiveHierarchy_addRemoveModifiersWithExistingSubtree()
[all …]
/compose/foundation/foundation/src/androidInstrumentedTest/kotlin/androidx/compose/foundation/relocation/
DBringIntoViewScrollableInteractionTest.kt28 import androidx.compose.foundation.layout.Box
102 Box( in initParameters()
112 Box( in initParameters()
135 Box( in noScrollableParent_itemNotVisible_noChange()
145 Box( in noScrollableParent_itemNotVisible_noChange()
174 Box( in itemAtLeadingEdge_alreadyVisible_noChange()
188 Box( in itemAtLeadingEdge_alreadyVisible_noChange()
211 Box( in itemAtTrailingEdge_alreadyVisible_noChange()
225 Box( in itemAtTrailingEdge_alreadyVisible_noChange()
254 Box( in itemAtCenter_alreadyVisible_noChange()
[all …]

12345678910>>...45