/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
D | IconFactory.java | 41 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/Settings/src/com/android/settings/applications/credentials/ |
D | ImageUtils.java | 88 int iconWidth = icon.getIntrinsicWidth(); in createIconThumbnail() local 91 if (iconWidth > 0 && iconHeight > 0) { in createIconThumbnail() 92 if (width < iconWidth || height < iconHeight) { in createIconThumbnail() 93 final float ratio = (float) iconWidth / iconHeight; in createIconThumbnail() 95 if (iconWidth > iconHeight) { in createIconThumbnail() 97 } else if (iconHeight > iconWidth) { in createIconThumbnail() 123 } else if (iconWidth < width && iconHeight < height) { in createIconThumbnail() 131 final int x = (width - iconWidth) / 2; in createIconThumbnail() 133 icon.setBounds(x, y, x + iconWidth, y + iconHeight); in createIconThumbnail()
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | SecondLevelIndicatorControlBar.java | 85 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/ |
D | ActivityPicker.java | 382 int iconWidth = icon.getIntrinsicWidth(); in createIconThumbnail() local 385 if (iconWidth > 0 && iconHeight > 0) { in createIconThumbnail() 386 if (width < iconWidth || height < iconHeight) { in createIconThumbnail() 387 final float ratio = (float) iconWidth / iconHeight; in createIconThumbnail() 389 if (iconWidth > iconHeight) { in createIconThumbnail() 391 } else if (iconHeight > iconWidth) { in createIconThumbnail() 415 } else if (iconWidth < width && iconHeight < height) { in createIconThumbnail() 421 final int x = (width - iconWidth) / 2; in createIconThumbnail() 423 icon.setBounds(x, y, x + iconWidth, y + iconHeight); in createIconThumbnail()
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | ConversationMessageView.java | 134 final int iconWidth = mContactIconView.getMeasuredWidth(); in onLayout() local 137 final int contentWidth = (right -left) - iconWidth - getPaddingLeft() - getPaddingRight(); in onLayout() 146 iconLeft = (right - left) - getPaddingRight() - iconWidth; in onLayout() 150 contentLeft = iconLeft + iconWidth; in onLayout() 155 contentLeft = iconLeft + iconWidth; in onLayout() 157 iconLeft = (right - left) - getPaddingRight() - iconWidth; in onLayout() 162 mContactIconView.layout(iconLeft, iconTop, iconLeft + iconWidth, iconTop + iconHeight); in onLayout()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | AddAccessoryPreferenceFragment.java | 115 final int iconWidth = in getDeviceDrawable() local 121 tempDrawable.setBounds(0, 0, iconWidth, iconHeight); in getDeviceDrawable() 123 Bitmap.createBitmap(iconWidth, iconHeight, Bitmap.Config.ARGB_8888); in getDeviceDrawable()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | ModePicker.java | 259 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/TvSystemUI/src/com/android/systemui/tv/sensorprivacy/ |
D | TvSensorPrivacyChangedActivity.java | 211 final int iconWidth = resources.getDimensionPixelSize(widthRes); in setIconSize() local 214 mIcon.getLayoutParams().width = iconWidth; in setIconSize() 218 mSecondIcon.getLayoutParams().width = iconWidth; in setIconSize()
|
D | TvUnblockSensorActivity.java | 314 final int iconWidth = resources.getDimensionPixelSize(widthRes); in setIconSize() local 317 mIcon.getLayoutParams().width = iconWidth; in setIconSize() 321 mSecondIcon.getLayoutParams().width = iconWidth; in setIconSize()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyboardView.java | 489 final int iconWidth; in onDrawKeyTopVisuals() local 491 iconWidth = (int)(keyWidth * mSpacebarIconWidthRatio); in onDrawKeyTopVisuals() 493 iconWidth = Math.min(icon.getIntrinsicWidth(), keyWidth); in onDrawKeyTopVisuals() 502 final int iconX = (keyWidth - iconWidth) / 2; // Align horizontally center. in onDrawKeyTopVisuals() 503 drawIcon(canvas, icon, iconX, iconY, iconWidth, iconHeight); in onDrawKeyTopVisuals()
|
D | MoreKeysKeyboardView.java | 96 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/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | IconView.java | 90 public void setDrawableSize(int iconWidth, int iconHeight) { in setDrawableSize() argument 91 mDrawableWidth = iconWidth; in setDrawableSize()
|
D | TaskViewIcon.java | 88 void setDrawableSize(int iconWidth, int iconHeight); in setDrawableSize() argument
|
D | IconAppChipView.java | 238 public void setDrawableSize(int iconWidth, int iconHeight) { in setDrawableSize() argument 240 mIconView.setDrawableSize(iconWidth, iconHeight); in setDrawableSize()
|
/packages/apps/Launcher3/src/com/android/launcher3/popup/ |
D | ArrowPopup.java | 442 int iconWidth = mTempRect.width(); in orientAboutObject() local 443 int xOffset = iconWidth / 2 - mArrowOffsetHorizontal - mArrowWidth / 2; in orientAboutObject() 482 int rightSide = leftAlignedX + iconWidth - insets.left; in orientAboutObject() 483 int leftSide = rightAlignedX - iconWidth - insets.left; in orientAboutObject()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | ConversationMessageView.java | 195 final int iconWidth = mContactIconView.getMeasuredWidth(); in onLayout() local 198 final int contentWidth = (right -left) - iconWidth - getPaddingLeft() - getPaddingRight(); in onLayout() 206 iconLeft = (right - left) - getPaddingRight() - iconWidth; in onLayout() 210 contentLeft = iconLeft + iconWidth; in onLayout() 215 contentLeft = iconLeft + iconWidth; in onLayout() 217 iconLeft = (right - left) - getPaddingRight() - iconWidth; in onLayout() 222 mContactIconView.layout(iconLeft, iconTop, iconLeft + iconWidth, iconTop + iconHeight); in onLayout()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ShortcutIntentBuilder.java | 450 int iconWidth = icon.getWidth(); in generatePhoneNumberIcon() local 463 dst.set(iconWidth - ((int) (20 * density)), -1, in generatePhoneNumberIcon() 464 iconWidth, ((int) (19 * density))); in generatePhoneNumberIcon()
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | ContactListItemView.java | 806 int iconWidth = mPresenceIcon.getMeasuredWidth(); in onLayout() local 808 rightBound - iconWidth, in onLayout() 812 statusRightBound -= (iconWidth + mPresenceIconMargin); in onLayout() 824 int iconWidth = mPresenceIcon.getMeasuredWidth(); in onLayout() local 828 leftBound + iconWidth, in onLayout() 830 statusLeftBound += (iconWidth + mPresenceIconMargin); in onLayout()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/ |
D | QuickstepTransitionManager.java | 788 float iconWidth = launcherIconBounds.width() * mIconScaleToFitScreen.value; in getOpeningWindowAnimators() 805 float scaleX = iconWidth / windowCropWidth; in getOpeningWindowAnimators() 811 float offsetX = (scaledCropWidth - iconWidth) / 2; in getOpeningWindowAnimators()
|