Home
last modified time | relevance | path

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

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DIconFactory.java41 public static Bitmap createIcon(Bitmap sourceImage, int iconWidth, int iconHeight, in createIcon() argument
50 if (sourceWidth == 0 || sourceHeight == 0 || iconWidth == 0 || iconHeight == 0) { in createIcon()
54 Bitmap icon = Bitmap.createBitmap(iconWidth, iconHeight, in createIcon()
77 int iconHeight = dest.getHeight(); in drawIcon() local
79 if (sourceWidth == 0 || sourceHeight == 0 || iconWidth == 0 || iconHeight == 0) { in drawIcon()
83 Rect destRect = new Rect(0, 0, iconWidth, iconHeight); in drawIcon()
93 float hScale = sourceHeight / (float) iconHeight; in drawIcon()
97 float ih = iconHeight * s; in drawIcon()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DActivityPicker.java379 int iconHeight = icon.getIntrinsicHeight(); in createIconThumbnail() local
381 if (iconWidth > 0 && iconHeight > 0) { in createIconThumbnail()
382 if (width < iconWidth || height < iconHeight) { in createIconThumbnail()
383 final float ratio = (float) iconWidth / iconHeight; in createIconThumbnail()
385 if (iconWidth > iconHeight) { in createIconThumbnail()
387 } else if (iconHeight > iconWidth) { in createIconThumbnail()
411 } else if (iconWidth < width && iconHeight < height) { in createIconThumbnail()
418 final int y = (height - iconHeight) / 2; in createIconThumbnail()
419 icon.setBounds(x, y, x + iconWidth, y + iconHeight); in createIconThumbnail()
/packages/apps/Settings/src/com/android/settings/
DActivityPicker.java379 int iconHeight = icon.getIntrinsicHeight(); in createIconThumbnail() local
381 if (iconWidth > 0 && iconHeight > 0) { in createIconThumbnail()
382 if (width < iconWidth || height < iconHeight) { in createIconThumbnail()
383 final float ratio = (float) iconWidth / iconHeight; in createIconThumbnail()
385 if (iconWidth > iconHeight) { in createIconThumbnail()
387 } else if (iconHeight > iconWidth) { in createIconThumbnail()
411 } else if (iconWidth < width && iconHeight < height) { in createIconThumbnail()
418 final int y = (height - iconHeight) / 2; in createIconThumbnail()
419 icon.setBounds(x, y, x + iconWidth, y + iconHeight); in createIconThumbnail()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DAddAccessoryPreferenceFragment.java118 final int iconHeight = in getDeviceDrawable() local
120 tempDrawable.setBounds(0, 0, iconWidth, iconHeight); in getDeviceDrawable()
122 Bitmap.createBitmap(iconWidth, iconHeight, Bitmap.Config.ARGB_8888); in getDeviceDrawable()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMoreKeysKeyboardView.java97 final int iconHeight = mDivider.getIntrinsicHeight(); in onDrawKeyTopVisuals() local
99 final int iconY = (keyHeight - iconHeight) / 2; // Align vertically center in onDrawKeyTopVisuals()
100 drawIcon(canvas, mDivider, iconX, iconY, iconWidth, iconHeight); in onDrawKeyTopVisuals()
DKeyboardView.java495 final int iconHeight = icon.getIntrinsicHeight(); in onDrawKeyTopVisuals() local
498 iconY = keyHeight - iconHeight; in onDrawKeyTopVisuals()
500 iconY = (keyHeight - iconHeight) / 2; // Align vertically center. in onDrawKeyTopVisuals()
503 drawIcon(canvas, icon, iconX, iconY, iconWidth, iconHeight); in onDrawKeyTopVisuals()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DConversationMessageView.java133 final int iconHeight = mContactIconView.getMeasuredHeight(); in onLayout() local
160 mContactIconView.layout(iconLeft, iconTop, iconLeft + iconWidth, iconTop + iconHeight); in onLayout()
/packages/apps/Settings/src/com/android/settings/display/
DConversationMessageView.java133 final int iconHeight = mContactIconView.getMeasuredHeight(); in onLayout() local
160 mContactIconView.layout(iconLeft, iconTop, iconLeft + iconWidth, iconTop + iconHeight); in onLayout()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/
DQuickstepAppTransitionManagerImpl.java519 float iconHeight = bounds.height() * mIconScale.value; in getOpeningWindowAnimators()
535 float scaleY = iconHeight / windowHeight; in getOpeningWindowAnimators()
542 float offsetY = (scaledWindowHeight - iconHeight) / 2; in getOpeningWindowAnimators()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DArrowPopup.java277 int iconHeight = mTempRect.height(); in orientAboutObject() local
281 y = mTempRect.top + iconHeight + extraVerticalSpace; in orientAboutObject()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationMessageView.java196 final int iconHeight = mContactIconView.getMeasuredHeight(); in onLayout() local
222 mContactIconView.layout(iconLeft, iconTop, iconLeft + iconWidth, iconTop + iconHeight); in onLayout()