Lines Matching refs:icon
70 static Bitmap createIconBitmap(Bitmap icon, Context context) { in createIconBitmap() argument
73 int sourceWidth = icon.getWidth(); in createIconBitmap()
74 int sourceHeight = icon.getHeight(); in createIconBitmap()
77 return Bitmap.createBitmap(icon, in createIconBitmap()
83 return icon; in createIconBitmap()
87 return createIconBitmap(new BitmapDrawable(resources, icon), context); in createIconBitmap()
94 static Bitmap createIconBitmap(Drawable icon, Context context) { in createIconBitmap() argument
103 if (icon instanceof PaintDrawable) { in createIconBitmap()
104 PaintDrawable painter = (PaintDrawable) icon; in createIconBitmap()
107 } else if (icon instanceof BitmapDrawable) { in createIconBitmap()
109 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon; in createIconBitmap()
115 int sourceWidth = icon.getIntrinsicWidth(); in createIconBitmap()
116 int sourceHeight = icon.getIntrinsicHeight(); in createIconBitmap()
157 sOldBounds.set(icon.getBounds()); in createIconBitmap()
158 icon.setBounds(left, top, left+width, top+height); in createIconBitmap()
159 icon.draw(canvas); in createIconBitmap()
160 icon.setBounds(sOldBounds); in createIconBitmap()