Home
last modified time | relevance | path

Searched refs:iconWidth (Results 1 – 7 of 7) sorted by relevance

/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.java586 final int iconWidth = icon.getIntrinsicWidth(); in onDrawKeyTopVisuals() local
591 drawIcon(canvas, icon, iconX, iconY, iconWidth, iconHeight); in onDrawKeyTopVisuals()
593 final int iconX = (int)(centerX + labelWidth / 2 - iconWidth); in onDrawKeyTopVisuals()
594 drawIcon(canvas, icon, iconX, iconY, iconWidth, iconHeight); in onDrawKeyTopVisuals()
644 final int iconWidth = Math.min(icon.getIntrinsicWidth(), keyWidth); in onDrawKeyTopVisuals() local
652 iconX = keyWidth - mKeyLabelHorizontalPadding - iconWidth; in onDrawKeyTopVisuals()
653 alignX = iconX + iconWidth; in onDrawKeyTopVisuals()
655 iconX = (keyWidth - iconWidth) / 2; in onDrawKeyTopVisuals()
656 alignX = iconX + iconWidth / 2; in onDrawKeyTopVisuals()
658 drawIcon(canvas, icon, iconX, iconY, iconWidth, iconHeight); in onDrawKeyTopVisuals()
[all …]
DMainKeyboardView.java996 final int iconWidth = width * SPACE_LED_LENGTH_PERCENT / 100; in drawSpacebar() local
998 int x = (width - iconWidth) / 2; in drawSpacebar()
1000 drawIcon(canvas, mAutoCorrectionSpacebarLedIcon, x, y, iconWidth, iconHeight); in drawSpacebar()
1002 final int iconWidth = mSpaceIcon.getIntrinsicWidth(); in drawSpacebar() local
1004 int x = (width - iconWidth) / 2; in drawSpacebar()
1006 drawIcon(canvas, mSpaceIcon, x, y, iconWidth, iconHeight); in drawSpacebar()
/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()
/packages/apps/Contacts/src/com/android/contacts/list/
DShortcutIntentBuilder.java411 int iconWidth = icon.getWidth(); in generatePhoneNumberIcon() local
412 dst.set(iconWidth - ((int) (20 * density)), -1, in generatePhoneNumberIcon()
413 iconWidth, ((int) (19 * density))); in generatePhoneNumberIcon()
DContactListItemView.java529 int iconWidth = mPresenceIcon.getMeasuredWidth(); in onLayout() local
533 leftBound + iconWidth, in onLayout()
535 statusLeftBound += (iconWidth + mPresenceIconMargin); in onLayout()