Home
last modified time | relevance | path

Searched refs:iconWidth (Results 1 – 8 of 8) 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()
76 int iconWidth = dest.getWidth(); 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()
92 float wScale = sourceWidth / (float) iconWidth; in drawIcon()
96 float iw = iconWidth * s; in drawIcon()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DSecondLevelIndicatorControlBar.java85 int iconWidth = firstIndicatorButton.getMeasuredWidth(); in getTouchViewIndex() local
86 int buttonRange = iconWidth + ICON_SPACING; in getTouchViewIndex()
178 int iconWidth = mCloseIcon.getMeasuredWidth(); in onLayout() local
183 int increment = iconWidth + ICON_SPACING; in onLayout()
185 getChildAt(i).layout(offsetX, 0, offsetX + iconWidth, height); in onLayout()
190 offsetX = width - iconWidth - 2 * padding; in onLayout()
194 offsetX = width - iconWidth - padding; in onLayout()
196 mCloseIcon.layout(offsetX, 0, (offsetX + iconWidth), height); in onLayout()
/packages/apps/Settings/src/com/android/settings/
DActivityPicker.java374 int iconWidth = icon.getIntrinsicWidth(); 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()
413 final int x = (width - iconWidth) / 2; in createIconThumbnail()
415 icon.setBounds(x, y, x + iconWidth, y + iconHeight); in createIconThumbnail()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardView.java478 final int iconWidth; in onDrawKeyTopVisuals() local
480 iconWidth = (int)(keyWidth * mSpacebarIconWidthRatio); in onDrawKeyTopVisuals()
482 iconWidth = Math.min(icon.getIntrinsicWidth(), keyWidth); in onDrawKeyTopVisuals()
491 final int iconX = (keyWidth - iconWidth) / 2; // Align horizontally center. in onDrawKeyTopVisuals()
492 drawIcon(canvas, icon, iconX, iconY, iconWidth, iconHeight); in onDrawKeyTopVisuals()
DMoreKeysKeyboardView.java96 final int iconWidth = Math.min(mDivider.getIntrinsicWidth(), keyWidth); in onDrawKeyTopVisuals() local
98 final int iconX = (keyWidth - iconWidth) / 2; // Align horizontally center in onDrawKeyTopVisuals()
100 drawIcon(canvas, mDivider, iconX, iconY, iconWidth, iconHeight); in onDrawKeyTopVisuals()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactListItemView.java558 int iconWidth = mPresenceIcon.getMeasuredWidth(); in onLayout() local
560 rightBound - iconWidth, in onLayout()
564 statusRightBound -= (iconWidth + mPresenceIconMargin); in onLayout()
576 int iconWidth = mPresenceIcon.getMeasuredWidth(); in onLayout() local
580 leftBound + iconWidth, in onLayout()
582 statusLeftBound += (iconWidth + mPresenceIconMargin); in onLayout()
DShortcutIntentBuilder.java405 int iconWidth = icon.getWidth(); in generatePhoneNumberIcon() local
406 dst.set(iconWidth - ((int) (20 * density)), -1, in generatePhoneNumberIcon()
407 iconWidth, ((int) (19 * density))); in generatePhoneNumberIcon()
/packages/apps/LegacyCamera/src/com/android/camera/
DModePicker.java259 int iconWidth = ((ImageView) mModeSelectionIcon[MODE_CAMERA]) in onLayout() local
261 int padding = (viewWidth - iconWidth) / 2; in onLayout()
265 (l + padding + iconWidth), in onLayout()