Searched refs:iconWidth (Results 1 - 9 of 9) sorted by relevance
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
H A D | IconFactory.java | 31 * Builds an icon with the dimensions iconWidth:iconHeight. If scale is set 36 * @param iconWidth width 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, 76 int iconWidth = dest.getWidth(); 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 [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
H A D | SecondLevelIndicatorControlBar.java | 85 int iconWidth = firstIndicatorButton.getMeasuredWidth(); 86 int buttonRange = iconWidth + ICON_SPACING; 178 int iconWidth = mCloseIcon.getMeasuredWidth(); 183 int increment = iconWidth + ICON_SPACING; 185 getChildAt(i).layout(offsetX, 0, offsetX + iconWidth, height); 190 offsetX = width - iconWidth - 2 * padding; 194 offsetX = width - iconWidth - padding; 196 mCloseIcon.layout(offsetX, 0, (offsetX + iconWidth), height);
|
/packages/apps/Settings/src/com/android/settings/ |
H A D | ActivityPicker.java | 374 int iconWidth = icon.getIntrinsicWidth(); 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) { 413 final int x = (width - iconWidth) / 2; 415 icon.setBounds(x, y, x + iconWidth, y + iconHeight);
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | ModePicker.java | 259 int iconWidth = ((ImageView) mModeSelectionIcon[MODE_CAMERA]) 261 int padding = (viewWidth - iconWidth) / 2; 265 (l + padding + iconWidth),
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | MoreKeysKeyboardView.java | 96 final int iconWidth = Math.min(mDivider.getIntrinsicWidth(), keyWidth); 98 final int iconX = (keyWidth - iconWidth) / 2; // Align horizontally center 100 drawIcon(canvas, mDivider, iconX, iconY, iconWidth, iconHeight);
|
H A D | KeyboardView.java | 478 final int iconWidth; 480 iconWidth = (int)(keyWidth * mSpacebarIconWidthRatio); 482 iconWidth = Math.min(icon.getIntrinsicWidth(), keyWidth); 491 final int iconX = (keyWidth - iconWidth) / 2; // Align horizontally center. 492 drawIcon(canvas, icon, iconX, iconY, iconWidth, iconHeight);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
H A D | ShortcutIntentBuilder.java | 405 int iconWidth = icon.getWidth(); 406 dst.set(iconWidth - ((int) (20 * density)), -1, 407 iconWidth, ((int) (19 * density)));
|
H A D | ContactListItemView.java | 557 int iconWidth = mPresenceIcon.getMeasuredWidth(); 559 rightBound - iconWidth, 563 statusRightBound -= (iconWidth + mPresenceIconMargin); 575 int iconWidth = mPresenceIcon.getMeasuredWidth(); 579 leftBound + iconWidth, 581 statusLeftBound += (iconWidth + mPresenceIconMargin);
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | NotificationUtils.java | 1824 final int iconWidth = icon.getWidth(); 1825 final Bitmap newIcon = Bitmap.createBitmap(iconWidth, iconWidth, Bitmap.Config.ARGB_8888); 1833 canvas.drawCircle(iconWidth/2, iconWidth/2, iconWidth/2, paint);
|
Completed in 283 milliseconds