Lines Matching refs:BITMAP
33 import android.graphics.Bitmap;
104 * Maps bitmaps to unique indicies to avoid Bitmap duplication.
253 // We currently only calculate Bitmap memory usage, so by default,
285 // reference the bitmap cache. We don't want to modify the object as it may need to
318 // Because pruning can remove the need for bitmaps, we reconstruct the bitmap cache
942 ArrayList<Bitmap> mBitmaps;
945 mBitmaps = new ArrayList<Bitmap>();
950 mBitmaps = new ArrayList<Bitmap>();
952 Bitmap b = Bitmap.CREATOR.createFromParcel(source);
957 public int getBitmapId(Bitmap b) {
970 public Bitmap getBitmapForId(int id) {
987 ArrayList<Bitmap> bitmapsToBeAdded = bitmapCache.mBitmaps;
990 Bitmap b = bitmapsToBeAdded.get(i);
1006 Bitmap bitmap;
1009 BitmapReflectionAction(int viewId, String methodName, Bitmap bitmap) {
1010 this.bitmap = bitmap;
1013 bitmapId = mBitmapCache.getBitmapId(bitmap);
1020 bitmap = mBitmapCache.getBitmapForId(bitmapId);
1034 ReflectionAction ra = new ReflectionAction(viewId, methodName, ReflectionAction.BITMAP,
1035 bitmap);
1041 bitmapId = bitmapCache.getBitmapId(bitmap);
1068 // BITMAP actions are never stored in the list of actions. They are only used locally
1070 static final int BITMAP = 12;
1134 case BITMAP:
1136 this.value = Bitmap.CREATOR.createFromParcel(in);
1207 case BITMAP:
1210 ((Bitmap)this.value).writeToParcel(out, flags);
1256 case BITMAP:
1257 return Bitmap.class;
1617 public void addBitmapMemory(Bitmap b) {
1618 final Bitmap.Config c = b.getConfig();
1731 // We only store a bitmap cache in the root of the RemoteViews.
1874 * Recursively sets BitmapCache in the hierarchy and update the bitmap ids.
1892 * Returns an estimate of the bitmap heap memory usage for this RemoteViews.
2076 * @param viewId The id of the view whose bitmap should change
2077 * @param bitmap The new Bitmap for the drawable
2079 public void setImageViewBitmap(int viewId, Bitmap bitmap) {
2080 setBitmap(viewId, "setImageBitmap", bitmap);
2485 * Call a method taking one Bitmap on a view in the layout for this RemoteViews.
2487 * <p class="note">The bitmap will be flattened into the parcel if this object is
2494 public void setBitmap(int viewId, String methodName, Bitmap value) {
2704 // We only write the bitmap cache if we are the root RemoteViews, as this cache
2725 // We only write the bitmap cache if we are the root RemoteViews, as this cache