Home
last modified time | relevance | path

Searched refs:paddingValues (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/compose/
DPaddingValuesExt.kt28 private class HorizontalPaddingValues(private val paddingValues: PaddingValues) : PaddingValues { in horizontalValues() constant in com.android.settingslib.spa.framework.compose.HorizontalPaddingValues
30 paddingValues.calculateLeftPadding(layoutDirection) in horizontalValues()
35 paddingValues.calculateRightPadding(layoutDirection) in horizontalValues()
40 private class VerticalPaddingValues(private val paddingValues: PaddingValues) : PaddingValues { constant in com.android.settingslib.spa.framework.compose.VerticalPaddingValues
43 override fun calculateTopPadding(): Dp = paddingValues.calculateTopPadding()
47 override fun calculateBottomPadding() = paddingValues.calculateBottomPadding()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/scaffold/
DSettingsScaffold.kt63 ) { paddingValues -> in paddingValues() method
64 Box(Modifier.padding(paddingValues.horizontalValues())) { in paddingValues()
65 content(paddingValues.verticalValues()) in paddingValues()
93 SettingsScaffold(title = "Display") { paddingValues -> in SettingsScaffoldPreview() method
94 Column(Modifier.padding(paddingValues)) { in SettingsScaffoldPreview()
DRegularScaffold.kt45 SettingsScaffold(title, actions) { paddingValues -> in paddingValues() method
47 Spacer(Modifier.height(paddingValues.calculateTopPadding())) in paddingValues()
49 Spacer(Modifier.height(paddingValues.calculateBottomPadding())) in paddingValues()
DSearchScaffold.kt98 ) { paddingValues -> in paddingValues() method
101 .padding(paddingValues.horizontalValues()) in paddingValues()
102 .padding(top = paddingValues.calculateTopPadding()) in paddingValues()
106 content(paddingValues.calculateBottomPadding()) { in paddingValues()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/shade/ui/composable/
DOverlayShade.kt171 private fun combinePaddings(vararg paddingValues: PaddingValues): PaddingValues { in combinePaddings()
175 start = paddingValues.maxOfOrNull { it.calculateStartPadding(layoutDirection) } ?: 0.dp, in combinePaddings()
176 top = paddingValues.maxOfOrNull { it.calculateTopPadding() } ?: 0.dp, in combinePaddings()
177 end = paddingValues.maxOfOrNull { it.calculateEndPadding(layoutDirection) } ?: 0.dp, in combinePaddings()
178 bottom = paddingValues.maxOfOrNull { it.calculateBottomPadding() } ?: 0.dp in combinePaddings()
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/scaffold/
DNonScrollablePagerPageProvider.kt52 SettingsScaffold(title = getTitle(arguments)) { paddingValues -> in <lambda>() method
53 Box(Modifier.padding(paddingValues)) { in <lambda>()
DScrollablePagerPageProvider.kt52 SettingsScaffold(title = getTitle(arguments)) { paddingValues -> in <lambda>() method
53 Box(Modifier.padding(paddingValues)) { in <lambda>()
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/widget/scaffold/
DSettingsScaffoldTest.kt81 SettingsScaffold(title = TITLE) { paddingValues -> in <lambda>() method
83 actualPaddingValues = paddingValues in <lambda>()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/
DCommunalHub.kt1312 private fun beforeContentPadding(paddingValues: PaddingValues): ContentPaddingInPx { in beforeContentPadding()
1315 start = paddingValues.calculateLeftPadding(LayoutDirection.Ltr).toPx(), in beforeContentPadding()
1316 top = paddingValues.calculateTopPadding().toPx() in beforeContentPadding()