Home
last modified time | relevance | path

Searched refs:toDp (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/scene/ui/view/
DSceneWindowRootViewBinder.kt174 val left = boundingRect?.left?.toDp(context) ?: 0.dp in <lambda>()
175 val top = boundingRect?.top?.toDp(context) ?: 0.dp in <lambda>()
176 val right = boundingRect?.right?.toDp(context) ?: 0.dp in <lambda>()
177 val bottom = boundingRect?.bottom?.toDp(context) ?: 0.dp in <lambda>()
201 return point.x.toDp(context) in <lambda>()
205 private fun Int.toDp(context: Context): Dp { in <lambda>() method
/frameworks/base/core/java/android/content/res/
DFontScaleConverterImpl.java59 public FontScaleConverterImpl(@NonNull float[] fromSp, @NonNull float[] toDp) { in FontScaleConverterImpl() argument
60 if (fromSp.length != toDp.length || fromSp.length == 0) { in FontScaleConverterImpl()
65 mToDpValues = toDp; in FontScaleConverterImpl()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/statusbar/phone/
DSystemUIDialogFactoryExt.kt126 WindowInsets.safeDrawing.getBottom(this).toDp() in SystemUIDialogFactory()
178 start = insets.getLeft(this, LocalLayoutDirection.current).toDp() + horizontalPadding, in Modifier()
179 top = insets.getTop(this).toDp(), in Modifier()
180 end = insets.getRight(this, LocalLayoutDirection.current).toDp() + horizontalPadding in Modifier()
/frameworks/base/tools/fonts/
Dfont-scaling-array-generator.js146 toDp: newSizeDp
181 const itemsToDp = currentScaleArray.items.map(d => d.toDp)
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/ui/
DCopyableBody.kt51 dpOffset = DpOffset(it.x.toDp(), it.y.toDp()) in CopyableBody()
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/widget/preference/
DPreferenceTest.kt71 MaterialTheme.typography.bodyMedium.lineHeight.toDp() in longSummary_notSingleLine_atLeastTwoLinesHeight()
93 MaterialTheme.typography.bodyMedium.lineHeight.toDp() in longSummary_notSingleLine_onlyOneLineHeight()
/frameworks/base/packages/CredentialManager/horologist/src/com/google/android/horologist/compose/layout/
DScrollAway.kt37 state.initialOffsetPx.toDp() in <lambda>()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/common/ui/compose/windowinsets/
DScreenDecorProvider.kt49 val screenCornerRadiusDp = with(LocalDensity.current) { screenCornerRadius.toDp() } in ScreenDecorProvider()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/section/
DTopAreaSection.kt221 with(density) { dimen = (if (id == 0) 0 else res.getDimensionPixelSize(id)).toDp() } in getDimen()
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/
DSceneTransitionLayoutTest.kt472 x = (bounds.left - otherBounds.left).toDp(), in SemanticsNodeInteraction()
473 y = (bounds.top - otherBounds.top).toDp(), in SemanticsNodeInteraction()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/
DUtils.kt173 fun Int.toDp(context: Context): Int { in toDp() method
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/
DCommunalHub.kt1298 val screenHeight = with(density) { windowMetrics.bounds.height().toDp() } in gridContentPadding()
1299 val toolbarHeight = with(density) { Dimensions.ToolbarPaddingTop + toolbarSize.height.toDp() } in gridContentPadding()
/frameworks/base/packages/CredentialManager/horologist/src/com/google/android/horologist/compose/rotaryinput/
DRotary.kt403 snapOffset.toDp() in snapOffsetDp()