Home
last modified time | relevance | path

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

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/elements/
DDrawablePainter.kt77 if (drawable.intrinsicWidth >= 0 && drawable.intrinsicHeight >= 0) {
79 drawable.setBounds(0, 0, drawable.intrinsicWidth, drawable.intrinsicHeight)
160 intrinsicWidth >= 0 && intrinsicHeight >= 0 -> {
161 Size(width = intrinsicWidth.toFloat(), height = intrinsicHeight.toFloat())
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/widget/picker/
DWidgetImageViewTest.kt59 whenever(testDrawable.intrinsicHeight).thenReturn(100) in getBitmapBounds_aspectRatioLargerThanView_scaledByWidth()
75 whenever(testDrawable.intrinsicHeight).thenReturn(200) in getBitmapBounds_aspectRatioSmallerThanView_scaledByHeight()
91 whenever(testDrawable.intrinsicHeight).thenReturn(100) in getBitmapBounds_noScale_returnsOriginalDrawableBounds()
/packages/apps/Contacts/src/com/android/contacts/drawer/
DScrimDrawable.java51 public void setIntrinsicHeight(int intrinsicHeight) { in setIntrinsicHeight() argument
52 mIntrinsicHeight = intrinsicHeight; in setIntrinsicHeight()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/widget/
DAspectRatioImageView.java55 int intrinsicHeight = drawable.getIntrinsicHeight(); in onMeasure() local
57 if (intrinsicWidth < intrinsicHeight) { in onMeasure()
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/
DBaseIconFactory.java382 int intrinsicHeight = icon.getIntrinsicHeight(); in createIconBitmap() local
383 if (intrinsicWidth > 0 && intrinsicHeight > 0) { in createIconBitmap()
385 final float ratio = (float) intrinsicWidth / intrinsicHeight; in createIconBitmap()
386 if (intrinsicWidth > intrinsicHeight) { in createIconBitmap()
388 } else if (intrinsicHeight > intrinsicWidth) { in createIconBitmap()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DSimpleIconFactory.java395 int intrinsicHeight = icon.getIntrinsicHeight(); in createIconBitmap() local
396 if (intrinsicWidth > 0 && intrinsicHeight > 0) { in createIconBitmap()
398 final float ratio = (float) intrinsicWidth / intrinsicHeight; in createIconBitmap()
399 if (intrinsicWidth > intrinsicHeight) { in createIconBitmap()
401 } else if (intrinsicHeight > intrinsicWidth) { in createIconBitmap()
/packages/apps/Settings/src/com/android/settings/deviceinfo/regulatory/
DRegulatoryInfo.kt69 it.intrinsicWidth > 10 && it.intrinsicHeight > 10 in getRegulatoryInfo()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardView.java359 final int intrinsicHeight = background.getIntrinsicHeight(); in onDrawKeyBackground() local
361 keyWidth / (float)intrinsicWidth, keyHeight / (float)intrinsicHeight); in onDrawKeyBackground()
363 bgHeight = (int)(intrinsicHeight * minScale); in onDrawKeyBackground()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/ui/enrollment/modules/enrolling/udfps/ui/widget/
DUdfpsEnrollProgressBarDrawableV2.kt309 y -= (checkMarkDrawable.intrinsicHeight / 2.0).toInt() in <lambda>()
311 return Rect(x, y, x + checkMarkDrawable.intrinsicWidth, y + checkMarkDrawable.intrinsicHeight) in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DKotlinUtils.kt595 pkgIcon.intrinsicHeight, in <lambda>()
600 pkgIcon.setBounds(0, 0, pkgIcon.intrinsicWidth, pkgIcon.intrinsicHeight) in <lambda>()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/orientation/
DLandscapePagedViewHandler.kt230 dividerDrawable.intrinsicHeight = dividerSpacing in getTaskMenuHeight()