Searched refs:iconWidth (Results 1 - 8 of 8) 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
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 DSecondLevelIndicatorControlBar.java85 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 DActivityPicker.java374 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DKeyboardView.java416 final int iconWidth = icon.getIntrinsicWidth();
421 drawIcon(canvas, icon, iconX, iconY, iconWidth, iconHeight);
423 final int iconX = (int)(centerX + labelWidth / 2.0f - iconWidth);
424 drawIcon(canvas, icon, iconX, iconY, iconWidth, iconHeight);
477 final int iconWidth = Math.min(icon.getIntrinsicWidth(), keyWidth);
485 iconX = keyWidth - mKeyLabelHorizontalPadding - iconWidth;
486 alignX = iconX + iconWidth;
488 iconX = (keyWidth - iconWidth) / 2;
489 alignX = iconX + iconWidth / 2;
491 drawIcon(canvas, icon, iconX, iconY, iconWidth, iconHeigh
[all...]
H A DMainKeyboardView.java1426 final int iconWidth = width * SPACE_LED_LENGTH_PERCENT / 100;
1428 int x = (width - iconWidth) / 2;
1430 drawIcon(canvas, mAutoCorrectionSpacebarLedIcon, x, y, iconWidth, iconHeight);
1432 final int iconWidth = mSpaceIcon.getIntrinsicWidth();
1434 int x = (width - iconWidth) / 2;
1436 drawIcon(canvas, mSpaceIcon, x, y, iconWidth, iconHeight);
/packages/apps/LegacyCamera/src/com/android/camera/
H A DModePicker.java259 int iconWidth = ((ImageView) mModeSelectionIcon[MODE_CAMERA])
261 int padding = (viewWidth - iconWidth) / 2;
265 (l + padding + iconWidth),
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
H A DShortcutIntentBuilder.java411 int iconWidth = icon.getWidth();
412 dst.set(iconWidth - ((int) (20 * density)), -1,
413 iconWidth, ((int) (19 * density)));
H A DContactListItemView.java575 int iconWidth = mPresenceIcon.getMeasuredWidth();
577 rightBound - iconWidth,
581 statusRightBound -= (iconWidth + mPresenceIconMargin);
593 int iconWidth = mPresenceIcon.getMeasuredWidth();
597 leftBound + iconWidth,
599 statusLeftBound += (iconWidth + mPresenceIconMargin);

Completed in 220 milliseconds