/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
D | IntrinsicSizeFrameLayout.java | 37 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()
|
D | Illustration.java | 155 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/ |
D | DrawablePainter.kt | 82 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/ |
D | DrawablePainter.kt | 91 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/ |
D | AccessorizedBatteryDrawableTest.kt | 36 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/ |
D | NotificationChildrenContainer.java | 699 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/ |
D | BatteryAttributionDrawable.kt | 52 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/ |
D | RoundedCornerResDelegate.kt | 125 topRoundedSize = Size(it.intrinsicWidth, it.intrinsicHeight) in reloadMeasures() 128 bottomRoundedSize = Size(it.intrinsicWidth, it.intrinsicHeight) in reloadMeasures()
|
D | DebugRoundedCornerDelegate.kt | 125 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/ |
D | PlaceHolderDrawable.kt | 12 return PlaceHolderDrawable(other.intrinsicWidth, other.intrinsicHeight) in createFrom()
|
D | BigPictureIconManager.kt | 300 get() = Size(/*width=*/ intrinsicWidth, /*height=*/ intrinsicHeight)
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | MessagingImageMessage.java | 111 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/ |
D | Utils.kt | 140 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/ |
D | BaseIconFactory.java | 440 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/ |
D | KeyboardLayoutPreviewTests.kt | 63 assertEquals(HEIGHT, drawable.intrinsicHeight) in testKeyboardLayoutDrawable_hasCorrectDimensions()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | SimpleIconFactory.java | 396 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/ |
D | ThemedBatteryDrawable.kt | 71 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/ |
D | DrawableSizeTest.kt | 57 assertThat(result.intrinsicHeight).isEqualTo(37) in testDownscaleToSize_drawableLargerThanRequirementWithDensity_resized()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ui/ |
D | TransitioningIconDrawable.kt | 104 (drawable.intrinsicHeight / 2).toFloat() in drawScaledDrawable()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/drawable/ |
D | DrawableSize.kt | 54 ?: drawable.intrinsicHeight in downscaleToSize()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationContentViewTest.kt | 234 whenever(row.intrinsicHeight).thenReturn(expandedHeight) in <lambda>() 253 whenever(row.intrinsicHeight).thenReturn(contractedHeight) in <lambda>() 641 doReturn(height).whenever(row).intrinsicHeight in <lambda>()
|
D | BigPictureIconManagerTest.kt | 485 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/ |
D | NotificationStackSizeCalculatorTest.kt | 306 whenever(expandableView.intrinsicHeight).thenReturn(10) in <lambda>() 380 whenever(row.intrinsicHeight).thenReturn(height.toInt()) in <lambda>()
|
D | StackScrollAlgorithmTest.kt | 210 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/ |
D | Drawable.java | 1131 final int intrinsicHeight = getIntrinsicHeight(); in getMinimumHeight() local 1132 return intrinsicHeight > 0 ? intrinsicHeight : 0; in getMinimumHeight()
|