Searched refs:iconWidth (Results 1 – 4 of 4) sorted by relevance
281 final int iconWidth = icon.getIntrinsicWidth(); in createIconThumbnail() local291 if (width < iconWidth || height < iconHeight) { in createIconThumbnail()292 final float ratio = (float) iconWidth / iconHeight; in createIconThumbnail()294 if (iconWidth > iconHeight) { in createIconThumbnail()296 } else if (iconHeight > iconWidth) { in createIconThumbnail()318 } else if (iconWidth < width && iconHeight < height) { in createIconThumbnail()324 final int x = (width - iconWidth) / 2; in createIconThumbnail()326 icon.setBounds(x, y, x + iconWidth, y + iconHeight); in createIconThumbnail()
152 int iconWidth = getResources().getDimensionPixelSize( in update() local155 || icon.getIntrinsicWidth() != iconWidth)) { in update()156 icon = new IntrinsicSizeDrawable(icon, iconWidth, iconHeight); in update()
1574 final int iconWidth = mIconView.getMeasuredWidth(); in onLayout() local1581 final int delta = Math.max(marginStart, hCenter - iconWidth / 2); in onLayout()1584 iconLeft = iconRight - iconWidth; in onLayout()1587 iconRight = iconLeft + iconWidth; in onLayout()
800 int iconWidth = contact.isValid() ? in createChipBitmap() local805 calculateAvailableWidth() - iconWidth - widths[0] - backgroundPadding.left in createChipBitmap()813 int width = Math.max(iconWidth * 2, textWidth + startPadding + mChipTextEndPadding in createChipBitmap()814 + iconWidth + backgroundPadding.left + backgroundPadding.right + indicatorPadding); in createChipBitmap()852 int iconX = shouldPositionAvatarOnRight() ? width - backgroundPadding.right - iconWidth : in createChipBitmap()856 result.right = iconX + iconWidth; in createChipBitmap()