/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/ |
D | SwipeToSceneTest.kt | 58 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/ |
D | ScreenDecorProvider.kt | 53 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/ |
D | Translate.kt | 44 value.x + x.toPx(), in transform() 45 value.y + y.toPx(), in transform()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/ |
D | KeyguardSurfaceBehindInteractor.kt | 27 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/ |
D | ComposeTools.kt | 28 @Composable fun Dp.toLocalPx() = with(LocalDensity.current) { this@toLocalPx.toPx() } in <lambda>()
|
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/grid/ |
D | Grids.kt | 130 ((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/ |
D | EdgeDetector.kt | 63 val sizePx = with(density) { size.toPx() } in source()
|
D | SceneTransitionLayout.kt | 487 ): Float = distance.toPx() in UserActionDistanceScope()
|
D | DraggableHandler.kt | 78 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/ |
D | PlatformSlider.kt | 209 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/ |
D | CustomizedAppBar.kt | 246 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/ |
D | PatternBouncer.kt | 92 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>()
|
D | PasswordBouncer.kt | 90 val lineWidthPx = with(LocalDensity.current) { 2.dp.toPx() } in <lambda>()
|
D | PinBouncer.kt | 297 cornerRadius = CornerRadius(cornerRadius.toPx()), in PinPadButton()
|
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/media/controls/ui/composable/ |
D | MediaCarousel.kt | 58 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/ |
D | AncButtonComponent.kt | 69 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/ |
D | ButtonComponent.kt | 69 with(LocalDensity.current) { LocalConfiguration.current.screenWidthDp.dp.toPx() } in Content()
|
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/widget/scaffold/ |
D | CustomizedAppBarTest.kt | 401 partiallyCollapsedHeightOffsetPx = partiallyCollapsedOffsetDp.toPx() in <lambda>() 402 fullyCollapsedHeightOffsetPx = fullyCollapsedOffsetDp.toPx() in <lambda>()
|
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/animation/ |
D | Expandable.kt | 468 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/ |
D | AlertDialogContent.kt | 152 val horizontalSpacing = 8.dp.toPx() in AlertDialogButtons()
|
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/ |
D | Notifications.kt | 191 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/ |
D | DragAndDropTargetState.kt | 68 val autoScrollThreshold = with(LocalDensity.current) { 60.dp.toPx() } in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/ |
D | Utils.kt | 169 fun Int.toPx(context: Context): Int { in toPx() method
|
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/common/material/ |
D | Swipeable.kt | 596 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/ |
D | PartitionedGridLayout.kt | 324 width = 1.dp.toPx(), in <lambda>()
|