Searched refs:iconHeight (Results 1 - 4 of 4) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
H A DIconFactory.java31 * Builds an icon with the dimensions iconWidth:iconHeight. If scale is set
37 * @param iconHeight height of the icon bitmap.
39 * @return an icon bitmap with the dimensions iconWidth:iconHeight.
41 public static Bitmap createIcon(Bitmap sourceImage, int iconWidth, int iconHeight, argument
50 if (sourceWidth == 0 || sourceHeight == 0 || iconWidth == 0 || iconHeight == 0) {
54 Bitmap icon = Bitmap.createBitmap(iconWidth, iconHeight,
77 int iconHeight = dest.getHeight();
79 if (sourceWidth == 0 || sourceHeight == 0 || iconWidth == 0 || iconHeight == 0) {
83 Rect destRect = new Rect(0, 0, iconWidth, iconHeight);
91 // crop image to aspect ratio iconWidth:iconHeight
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DActivityPicker.java375 int iconHeight = icon.getIntrinsicHeight();
377 if (iconWidth > 0 && iconHeight > 0) {
378 if (width < iconWidth || height < iconHeight) {
379 final float ratio = (float) iconWidth / iconHeight;
381 if (iconWidth > iconHeight) {
383 } else if (iconHeight > iconWidth) {
407 } else if (iconWidth < width && iconHeight < height) {
414 final int y = (height - iconHeight) / 2;
415 icon.setBounds(x, y, x + iconWidth, y + iconHeight);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DMoreKeysKeyboardView.java97 final int iconHeight = mDivider.getIntrinsicHeight();
99 final int iconY = (keyHeight - iconHeight) / 2; // Align vertically center
100 drawIcon(canvas, mDivider, iconX, iconY, iconWidth, iconHeight);
H A DKeyboardView.java484 final int iconHeight = icon.getIntrinsicHeight();
487 iconY = keyHeight - iconHeight;
489 iconY = (keyHeight - iconHeight) / 2; // Align vertically center.
492 drawIcon(canvas, icon, iconX, iconY, iconWidth, iconHeight);

Completed in 114 milliseconds