Home
last modified time | relevance | path

Searched refs:intrinsicWidth (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DIntrinsicSizeFrameLayout.java38 private int intrinsicWidth = 0; field in IntrinsicSizeFrameLayout
62 intrinsicWidth = in init()
70 getIntrinsicMeasureSpec(widthMeasureSpec, intrinsicWidth), in onMeasure()
DIllustration.java154 int intrinsicWidth = illustration.getIntrinsicWidth(); in onLayout() local
159 scale = layoutWidth / (float) intrinsicWidth; in onLayout()
160 intrinsicWidth = layoutWidth; in onLayout()
165 intrinsicWidth, in onLayout()
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/ui/graphics/painter/
DDrawablePainter.kt82 if (drawable.intrinsicWidth >= 0 && drawable.intrinsicHeight >= 0) {
84 drawable.setBounds(0, 0, drawable.intrinsicWidth, drawable.intrinsicHeight)
167 intrinsicWidth >= 0 && intrinsicHeight >= 0 -> {
168 Size(width = intrinsicWidth.toFloat(), height = intrinsicHeight.toFloat())
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/compose/
DDrawablePainter.kt91 if (drawable.intrinsicWidth >= 0 && drawable.intrinsicHeight >= 0) {
93 drawable.setBounds(0, 0, drawable.intrinsicWidth, drawable.intrinsicHeight)
176 intrinsicWidth >= 0 && intrinsicHeight >= 0 -> {
177 Size(width = intrinsicWidth.toFloat(), height = intrinsicHeight.toFloat())
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/battery/
DAccessorizedBatteryDrawableTest.kt37 assertThat(drawable.intrinsicWidth).isEqualTo((BATTERY_WIDTH * density).toInt()) in intrinsicSize_shieldFalse_isBatterySize()
48 assertThat(drawable.intrinsicWidth).isEqualTo((BATTERY_WIDTH_WITH_SHIELD * density).toInt()) in intrinsicSize_shieldTrue_isBatteryPlusShieldSize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/unified/
DBatteryAttributionDrawable.kt51 val hScale = bounds.width().toFloat() / dr.intrinsicWidth.toFloat() in updateBoundsInner()
55 val dw = scale * dr.intrinsicWidth in updateBoundsInner()
/frameworks/base/packages/SystemUI/src/com/android/systemui/decor/
DRoundedCornerResDelegate.kt125 topRoundedSize = Size(it.intrinsicWidth, it.intrinsicHeight) in reloadMeasures()
128 bottomRoundedSize = Size(it.intrinsicWidth, it.intrinsicHeight) in reloadMeasures()
DDebugRoundedCornerDelegate.kt125 topRoundedDrawable?.let { topRoundedSize = Size(it.intrinsicWidth, it.intrinsicHeight) } in reloadMeasures()
127 bottomRoundedSize = Size(it.intrinsicWidth, it.intrinsicHeight) in reloadMeasures()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DPlaceHolderDrawable.kt12 return PlaceHolderDrawable(other.intrinsicWidth, other.intrinsicHeight) in createFrom()
DBigPictureIconManager.kt300 get() = Size(/*width=*/ intrinsicWidth, /*height=*/ intrinsicHeight)
/frameworks/base/packages/SystemUI/shared/biometrics/src/com/android/systemui/biometrics/
DUtils.kt140 if (intrinsicWidth <= 0 || intrinsicHeight <= 0) { in toBitmap()
144 Bitmap.createBitmap(intrinsicWidth, intrinsicHeight, Bitmap.Config.ARGB_8888) in toBitmap()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DBaseIconFactory.java439 int intrinsicWidth = icon.getIntrinsicWidth(); in drawIconBitmap() local
441 if (intrinsicWidth > 0 && intrinsicHeight > 0) { in drawIconBitmap()
443 final float ratio = (float) intrinsicWidth / intrinsicHeight; in drawIconBitmap()
444 if (intrinsicWidth > intrinsicHeight) { in drawIconBitmap()
446 } else if (intrinsicHeight > intrinsicWidth) { in drawIconBitmap()
/frameworks/base/tests/Input/src/android/hardware/input/
DKeyboardLayoutPreviewTests.kt62 assertEquals(WIDTH, drawable.intrinsicWidth) in testKeyboardLayoutDrawable_hasCorrectDimensions()
/frameworks/base/core/java/com/android/internal/app/
DSimpleIconFactory.java395 int intrinsicWidth = icon.getIntrinsicWidth(); in createIconBitmap() local
397 if (intrinsicWidth > 0 && intrinsicHeight > 0) { in createIconBitmap()
399 final float ratio = (float) intrinsicWidth / intrinsicHeight; in createIconBitmap()
400 if (intrinsicWidth > intrinsicHeight) { in createIconBitmap()
402 } else if (intrinsicHeight > intrinsicWidth) { in createIconBitmap()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DThemedBatteryDrawable.kt72 private var intrinsicWidth: Int in <lambda>() variable
158 intrinsicWidth = (Companion.WIDTH * density).toInt() in <lambda>()
311 return intrinsicWidth in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/drawable/
DDrawableSizeTest.kt56 assertThat(result.intrinsicWidth).isEqualTo(75) in testDownscaleToSize_drawableLargerThanRequirementWithDensity_resized()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ui/
DTransitioningIconDrawable.kt103 (drawable.intrinsicWidth / 2).toFloat(), in drawScaledDrawable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/drawable/
DDrawableSize.kt52 ?: drawable.intrinsicWidth in downscaleToSize()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DBigPictureIconManagerTest.kt484 expectedWidth: Int = expectedDrawable.intrinsicWidth, in assertSize()
487 assertThat(drawable.intrinsicWidth).isEqualTo(expectedWidth) in assertSize()
/frameworks/base/graphics/java/android/graphics/drawable/
DDrawable.java1117 final int intrinsicWidth = getIntrinsicWidth(); in getMinimumWidth() local
1118 return intrinsicWidth > 0 ? intrinsicWidth : 0; in getMinimumWidth()
DLayerDrawable.java1619 int intrinsicWidth, int intrinsicHeight) {
1639 if (width < 0 && intrinsicWidth < 0) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/backlight/ui/view/
DKeyboardBacklightDialog.kt243 intrinsicWidth = diameter in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/graphics/
DImageLoaderTest.kt453 assertThat(actual?.width).isEqualTo(expected.intrinsicWidth) in assertSizeEqualToDrawableSize()
/frameworks/base/core/java/android/widget/
DProgressBar.java2117 final int intrinsicWidth = mIndeterminateDrawable.getIntrinsicWidth(); in updateDrawableBounds() local
2119 final float intrinsicAspect = (float) intrinsicWidth / intrinsicHeight; in updateDrawableBounds()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/binder/
DMediaControlViewBinder.kt505 val width = drawable.intrinsicWidth in <lambda>()

12