Home | History | Annotate | Download | only in launcher2

Lines Matching full:icon

100     static Bitmap createIconBitmap(Drawable icon, Context context) {
109 if (icon instanceof PaintDrawable) {
110 PaintDrawable painter = (PaintDrawable) icon;
113 } else if (icon instanceof BitmapDrawable) {
115 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon;
121 int sourceWidth = icon.getIntrinsicWidth();
122 int sourceHeight = icon.getIntrinsicHeight();
154 // draw a big box for the icon for debugging
162 sOldBounds.set(icon.getBounds());
163 icon.setBounds(left, top, left+width, top+height);
164 icon.draw(canvas);
165 icon.setBounds(sOldBounds);