Searched refs:intrinsicHeight (Results 1 – 11 of 11) sorted by relevance
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/elements/ |
D | DrawablePainter.kt | 77 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/ |
D | WidgetImageViewTest.kt | 59 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/ |
D | ScrimDrawable.java | 51 public void setIntrinsicHeight(int intrinsicHeight) { in setIntrinsicHeight() argument 52 mIntrinsicHeight = intrinsicHeight; in setIntrinsicHeight()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/widget/ |
D | AspectRatioImageView.java | 55 int intrinsicHeight = drawable.getIntrinsicHeight(); in onMeasure() local 57 if (intrinsicWidth < intrinsicHeight) { in onMeasure()
|
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/ |
D | BaseIconFactory.java | 382 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/ |
D | SimpleIconFactory.java | 395 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/ |
D | RegulatoryInfo.kt | 69 it.intrinsicWidth > 10 && it.intrinsicHeight > 10 in getRegulatoryInfo()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyboardView.java | 359 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/ |
D | UdfpsEnrollProgressBarDrawableV2.kt | 309 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/ |
D | KotlinUtils.kt | 595 pkgIcon.intrinsicHeight, in <lambda>() 600 pkgIcon.setBounds(0, 0, pkgIcon.intrinsicWidth, pkgIcon.intrinsicHeight) in <lambda>()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/orientation/ |
D | LandscapePagedViewHandler.kt | 230 dividerDrawable.intrinsicHeight = dividerSpacing in getTaskMenuHeight()
|