Searched refs:iconWidth (Results 1 – 4 of 4) sorted by relevance
285 final int iconWidth = icon.getIntrinsicWidth(); in createIconThumbnail() local295 if (width < iconWidth || height < iconHeight) { in createIconThumbnail()296 final float ratio = (float) iconWidth / iconHeight; in createIconThumbnail()298 if (iconWidth > iconHeight) { in createIconThumbnail()300 } else if (iconHeight > iconWidth) { in createIconThumbnail()322 } else if (iconWidth < width && iconHeight < height) { in createIconThumbnail()328 final int x = (width - iconWidth) / 2; in createIconThumbnail()330 icon.setBounds(x, y, x + iconWidth, y + iconHeight); in createIconThumbnail()
138 int iconWidth = getPaddingEnd(); in onMeasure() local154 iconWidth += lp.leftMargin + lp.rightMargin + child.getMeasuredWidth(); in onMeasure()161 int endMargin = Math.max(mHeaderTextMarginEnd, iconWidth); in onMeasure()
853 int iconWidth = displayIcon ? in createChipBitmap() local866 - iconWidth in createChipBitmap()879 int width = Math.max(iconWidth * 2, in createChipBitmap()883 + iconWidth in createChipBitmap()936 width - backgroundPadding.right - iconWidth : in createChipBitmap()940 result.right = iconX + iconWidth; in createChipBitmap()1172 final int iconWidth = tmpBitmap != null ? tmpBitmap.getWidth() : 0; in constructChipSpan() local1175 result.setBounds(0, 0, iconWidth, iconHeight); in constructChipSpan()
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()