Home
last modified time | relevance | path

Searched refs:intrinsicHeight (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DIntrinsicSizeFrameLayout.java37 private int intrinsicHeight = 0; field in IntrinsicSizeFrameLayout
60 intrinsicHeight = in init()
71 getIntrinsicMeasureSpec(heightMeasureSpec, intrinsicHeight)); in onMeasure()
83 return MeasureSpec.makeMeasureSpec(intrinsicHeight, MeasureSpec.EXACTLY); in getIntrinsicMeasureSpec()
87 return MeasureSpec.makeMeasureSpec(Math.min(size, intrinsicHeight), MeasureSpec.EXACTLY); in getIntrinsicMeasureSpec()
DIllustration.java155 int intrinsicHeight = illustration.getIntrinsicHeight(); in onLayout() local
161 intrinsicHeight = (int) (intrinsicHeight * scale); in onLayout()
166 intrinsicHeight, 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.kt36 assertThat(drawable.intrinsicHeight).isEqualTo((BATTERY_HEIGHT * density).toInt()) in intrinsicSize_shieldFalse_isBatterySize()
46 assertThat(drawable.intrinsicHeight) in intrinsicSize_shieldTrue_isBatteryPlusShieldSize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationChildrenContainer.java699 int intrinsicHeight = mNotificationHeaderMargin + mCurrentHeaderTranslation;
714 intrinsicHeight += NotificationUtils.interpolate(mChildPadding, mDividerHeight,
717 intrinsicHeight += childrenExpanded ? mDividerHeight : mChildPadding;
721 intrinsicHeight += NotificationUtils.interpolate(
726 intrinsicHeight += childrenExpanded
733 intrinsicHeight += child.getIntrinsicHeight();
737 intrinsicHeight += NotificationUtils.interpolate(mCollapsedBottomPadding, 0.0f,
740 intrinsicHeight += mCollapsedBottomPadding;
742 return intrinsicHeight;
789 int intrinsicHeight = child.getIntrinsicHeight();
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/unified/
DBatteryAttributionDrawable.kt52 val vScale = bounds.height().toFloat() / dr.intrinsicHeight.toFloat() in updateBoundsInner()
56 val dh = scale * dr.intrinsicHeight 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/core/java/com/android/internal/widget/
DMessagingImageMessage.java111 int intrinsicHeight = drawable.getIntrinsicHeight(); in setMessage() local
112 if (intrinsicHeight == 0) { in setMessage()
117 mAspectRatio = ((float) mDrawable.getIntrinsicWidth()) / intrinsicHeight; in setMessage()
/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.java440 int intrinsicHeight = icon.getIntrinsicHeight(); 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.kt63 assertEquals(HEIGHT, drawable.intrinsicHeight) in testKeyboardLayoutDrawable_hasCorrectDimensions()
/frameworks/base/core/java/com/android/internal/app/
DSimpleIconFactory.java396 int intrinsicHeight = icon.getIntrinsicHeight(); 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.kt71 private var intrinsicHeight: Int in <lambda>() variable
157 intrinsicHeight = (Companion.HEIGHT * density).toInt() in <lambda>()
307 return intrinsicHeight in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/drawable/
DDrawableSizeTest.kt57 assertThat(result.intrinsicHeight).isEqualTo(37) in testDownscaleToSize_drawableLargerThanRequirementWithDensity_resized()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ui/
DTransitioningIconDrawable.kt104 (drawable.intrinsicHeight / 2).toFloat() in drawScaledDrawable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/drawable/
DDrawableSize.kt54 ?: drawable.intrinsicHeight in downscaleToSize()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationContentViewTest.kt234 whenever(row.intrinsicHeight).thenReturn(expandedHeight) in <lambda>()
253 whenever(row.intrinsicHeight).thenReturn(contractedHeight) in <lambda>()
641 doReturn(height).whenever(row).intrinsicHeight in <lambda>()
DBigPictureIconManagerTest.kt485 expectedHeight: Int = expectedDrawable.intrinsicHeight in assertSize()
488 assertThat(drawable.intrinsicHeight).isEqualTo(expectedHeight) in assertSize()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackSizeCalculatorTest.kt306 whenever(expandableView.intrinsicHeight).thenReturn(10) in <lambda>()
380 whenever(row.intrinsicHeight).thenReturn(height.toInt()) in <lambda>()
DStackScrollAlgorithmTest.kt210 whenever(notificationRow.intrinsicHeight).thenReturn(100) in <lambda>()
1236 whenever(topHun.intrinsicHeight).thenReturn(topHunHeight) in <lambda>()
1237 whenever(bottomHun.intrinsicHeight).thenReturn(bottomHunHeight) in <lambda>()
/frameworks/base/graphics/java/android/graphics/drawable/
DDrawable.java1131 final int intrinsicHeight = getIntrinsicHeight(); in getMinimumHeight() local
1132 return intrinsicHeight > 0 ? intrinsicHeight : 0; in getMinimumHeight()

12