Lines Matching refs:sourceWidth
73 int sourceWidth = icon.getWidth(); in createIconBitmap() local
75 if (sourceWidth > textureWidth && sourceHeight > textureHeight) { in createIconBitmap()
78 (sourceWidth - textureWidth) / 2, in createIconBitmap()
81 } else if (sourceWidth == textureWidth && sourceHeight == textureHeight) { in createIconBitmap()
115 int sourceWidth = icon.getIntrinsicWidth(); in createIconBitmap() local
117 if (sourceWidth > 0 && sourceHeight > 0) { in createIconBitmap()
119 if (width < sourceWidth || height < sourceHeight) { in createIconBitmap()
121 final float ratio = (float) sourceWidth / sourceHeight; in createIconBitmap()
122 if (sourceWidth > sourceHeight) { in createIconBitmap()
124 } else if (sourceHeight > sourceWidth) { in createIconBitmap()
127 } else if (sourceWidth < width && sourceHeight < height) { in createIconBitmap()
129 width = sourceWidth; in createIconBitmap()