Home
last modified time | relevance | path

Searched refs:toPx (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/
DSwipeToSceneTest.kt58 get() = Offset((LayoutWidth / 2).toPx(), (LayoutHeight / 2).toPx()) in <lambda>()
62 get() = Offset((LayoutWidth / 2).toPx(), 0f) in <lambda>()
66 get() = Offset(0f, (LayoutHeight / 2).toPx()) in <lambda>()
146 moveBy(Offset(-55.dp.toPx() - touchSlop, 0f), delayMillis = 1_000) in <lambda>()
177 moveBy(Offset(0f, 56.dp.toPx() + touchSlop), delayMillis = 1_000) in <lambda>()
225 end = middle - Offset(55.dp.toPx() + touchSlop, 0f), in <lambda>()
226 endVelocity = 124.dp.toPx(), in <lambda>()
250 end = middle + Offset(0f, 55.dp.toPx() + touchSlop), in <lambda>()
251 endVelocity = 126.dp.toPx(), in <lambda>()
288 moveBy(pointerId = i, Offset(0f, touchSlop + 10.dp.toPx()), delayMillis = 1_000) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/common/ui/compose/windowinsets/
DScreenDecorProvider.kt53 with(density) { WindowInsets.systemBars.asPaddingValues().calculateBottomPadding().toPx() } in ScreenDecorProvider()
60 .toPx() in ScreenDecorProvider()
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/transformation/
DTranslate.kt44 value.x + x.toPx(), in transform()
45 value.y + y.toPx(), in transform()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/
DKeyguardSurfaceBehindInteractor.kt27 import com.android.systemui.util.kotlin.toPx in <lambda>()
88 SURFACE_TRANSLATION_Y_DISTANCE_DP.toPx(context).toFloat(), in <lambda>()
/frameworks/base/packages/EasterEgg/src/com/android/egg/landroid/
DComposeTools.kt28 @Composable fun Dp.toLocalPx() = with(LocalDensity.current) { this@toLocalPx.toPx() } in <lambda>()
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/grid/
DGrids.kt130 ((columns - 1) * horizontalSpacing.toPx()).roundToInt() in Grid()
131 val totalVerticalSpacingBetweenChildren = ((rows - 1) * verticalSpacing.toPx()).roundToInt() in Grid()
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/
DEdgeDetector.kt63 val sizePx = with(density) { size.toPx() } in source()
DSceneTransitionLayout.kt487 ): Float = distance.toPx() in UserActionDistanceScope()
DDraggableHandler.kt78 get() = with(layoutImpl.density) { 125.dp.toPx() } in onDrag()
85 get() = with(layoutImpl.density) { 56.dp.toPx() } in onDrag()
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/
DPlatformSlider.kt209 LocalDensity.current.run { 16.dp.toPx() } in Track()
214 indicatorWidth + LocalDensity.current.run { 16.dp.toPx() } in Track()
293 val indicatorCornerRadius = CornerRadius(indicatorRadiusDp.toPx(), indicatorRadiusDp.toPx()) in TrackBackground()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/scaffold/
DCustomizedAppBar.kt246 val height = LocalDensity.current.run { ContainerHeight.toPx() } in SingleRowTopAppBar()
302 pinnedHeightPx = pinnedHeight.toPx() in TwoRowsTopAppBar()
304 defaultMaxHeightPx = (MaxHeightWithoutTitle + DefaultTitleHeight).toPx() in TwoRowsTopAppBar()
394 MaxHeightWithoutTitle.toPx() + coordinates.size.height.toFloat() in TwoRowsTopAppBar()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/
DPatternBouncer.kt92 val dotRadius = with(density) { (DOT_DIAMETER_DP / 2).dp.toPx() } in <lambda>()
94 val lineStrokeWidth = with(density) { LINE_STROKE_WIDTH_DP.dp.toPx() } in <lambda>()
120 dots.associateWith { dot -> with(density) { (80 + (20 * dot.y)).dp.toPx() } } in <lambda>()
DPasswordBouncer.kt90 val lineWidthPx = with(LocalDensity.current) { 2.dp.toPx() } in <lambda>()
DPinBouncer.kt297 cornerRadius = CornerRadius(cornerRadius.toPx()), in PinPadButton()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/media/controls/ui/composable/
DMediaCarousel.kt58 val layoutHeight = with(density) { mediaHeight.toPx() }.toInt() in SceneScope()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/anc/ui/composable/
DAncButtonComponent.kt69 with(LocalDensity.current) { LocalConfiguration.current.screenWidthDp.dp.toPx() } in Content()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/button/ui/composable/
DButtonComponent.kt69 with(LocalDensity.current) { LocalConfiguration.current.screenWidthDp.dp.toPx() } in Content()
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/widget/scaffold/
DCustomizedAppBarTest.kt401 partiallyCollapsedHeightOffsetPx = partiallyCollapsedOffsetDp.toPx() in <lambda>()
402 fullyCollapsedHeightOffsetPx = fullyCollapsedOffsetDp.toPx() in <lambda>()
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/animation/
DExpandable.kt468 val strokeWidth = border.width.toPx() in drawBackground()
496 val strokeWidth = border.width.toPx() in drawBackground()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/dialog/ui/composable/
DAlertDialogContent.kt152 val horizontalSpacing = 8.dp.toPx() in AlertDialogButtons()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/
DNotifications.kt191 with(density) { WindowInsets.systemBars.asPaddingValues().calculateBottomPadding().toPx() } in NotificationScrollingStack()
215 val minScrimTop = with(density) { ShadeHeader.Dimensions.CollapsedHeight.toPx() } in NotificationScrollingStack()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/
DDragAndDropTargetState.kt68 val autoScrollThreshold = with(LocalDensity.current) { 60.dp.toPx() } in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/
DUtils.kt169 fun Int.toPx(context: Context): Int { in toPx() method
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/common/material/
DSwipeable.kt596 state.velocityThreshold = velocityThreshold.toPx() in <lambda>()
633 return fromValue + offset.toPx() * sign(toValue - fromValue) in computeThreshold()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/panels/ui/compose/
DPartitionedGridLayout.kt324 width = 1.dp.toPx(), in <lambda>()

12