Searched refs:iconHeight (Results 1 – 4 of 4) sorted by relevance
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
D | IconFactory.java | 41 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/apps/Settings/src/com/android/settings/ |
D | ActivityPicker.java | 375 int iconHeight = icon.getIntrinsicHeight(); in createIconThumbnail() local 377 if (iconWidth > 0 && iconHeight > 0) { in createIconThumbnail() 378 if (width < iconWidth || height < iconHeight) { in createIconThumbnail() 379 final float ratio = (float) iconWidth / iconHeight; in createIconThumbnail() 381 if (iconWidth > iconHeight) { in createIconThumbnail() 383 } else if (iconHeight > iconWidth) { in createIconThumbnail() 407 } else if (iconWidth < width && iconHeight < height) { in createIconThumbnail() 414 final int y = (height - iconHeight) / 2; in createIconThumbnail() 415 icon.setBounds(x, y, x + iconWidth, y + iconHeight); in createIconThumbnail()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyboardView.java | 417 final int iconHeight = icon.getIntrinsicHeight(); in onDrawKeyTopVisuals() local 418 final int iconY = (keyHeight - iconHeight) / 2; in onDrawKeyTopVisuals() 421 drawIcon(canvas, icon, iconX, iconY, iconWidth, iconHeight); in onDrawKeyTopVisuals() 424 drawIcon(canvas, icon, iconX, iconY, iconWidth, iconHeight); in onDrawKeyTopVisuals() 478 final int iconHeight = icon.getIntrinsicHeight(); in onDrawKeyTopVisuals() local 480 final int iconY = (keyHeight - iconHeight) / 2; in onDrawKeyTopVisuals() 491 drawIcon(canvas, icon, iconX, iconY, iconWidth, iconHeight); in onDrawKeyTopVisuals() 496 drawRectangle(canvas, iconX, iconY, iconWidth, iconHeight, 0x80c00000, line); in onDrawKeyTopVisuals()
|
D | MainKeyboardView.java | 1427 final int iconHeight = mAutoCorrectionSpacebarLedIcon.getIntrinsicHeight(); in drawSpacebar() local 1429 int y = height - iconHeight; in drawSpacebar() 1430 drawIcon(canvas, mAutoCorrectionSpacebarLedIcon, x, y, iconWidth, iconHeight); in drawSpacebar() 1433 final int iconHeight = mSpaceIcon.getIntrinsicHeight(); in drawSpacebar() local 1435 int y = height - iconHeight; in drawSpacebar() 1436 drawIcon(canvas, mSpaceIcon, x, y, iconWidth, iconHeight); in drawSpacebar()
|