Home | History | Annotate | Download | only in widget

Lines Matching refs:BITMAP

38 import android.graphics.Bitmap;
116 * Maps bitmaps to unique indicies to avoid Bitmap duplication.
295 // We currently only calculate Bitmap memory usage, so by default,
357 // reference the bitmap cache. We don't want to modify the object as it may need to
390 // Because pruning can remove the need for bitmaps, we reconstruct the bitmap cache
1051 ArrayList<Bitmap> mBitmaps;
1054 mBitmaps = new ArrayList<Bitmap>();
1059 mBitmaps = new ArrayList<Bitmap>();
1061 Bitmap b = Bitmap.CREATOR.createFromParcel(source);
1066 public int getBitmapId(Bitmap b) {
1079 public Bitmap getBitmapForId(int id) {
1096 ArrayList<Bitmap> bitmapsToBeAdded = bitmapCache.mBitmaps;
1099 Bitmap b = bitmapsToBeAdded.get(i);
1122 Bitmap bitmap;
1125 BitmapReflectionAction(int viewId, String methodName, Bitmap bitmap) {
1126 this.bitmap = bitmap;
1129 bitmapId = mBitmapCache.getBitmapId(bitmap);
1136 bitmap = mBitmapCache.getBitmapForId(bitmapId);
1150 ReflectionAction ra = new ReflectionAction(viewId, methodName, ReflectionAction.BITMAP,
1151 bitmap);
1157 bitmapId = bitmapCache.getBitmapId(bitmap);
1184 // BITMAP actions are never stored in the list of actions. They are only used locally
1186 static final int BITMAP = 12;
1251 case BITMAP:
1253 this.value = Bitmap.CREATOR.createFromParcel(in);
1328 case BITMAP:
1331 Bitmap)this.value).writeToParcel(out, flags);
1384 case BITMAP:
1385 return Bitmap.class;
2061 public void addBitmapMemory(Bitmap b) {
2062 final Bitmap.Config c = b.getConfig();
2175 // We only store a bitmap cache in the root of the RemoteViews.
2270 // Do not parcel the Bitmap cache - doing so creates an expensive copy of all bitmaps.
2335 * Recursively sets BitmapCache in the hierarchy and update the bitmap ids.
2353 * Returns an estimate of the bitmap heap memory usage for this RemoteViews.
2572 * @param viewId The id of the view whose bitmap should change
2573 * @param bitmap The new Bitmap for the drawable
2575 public void setImageViewBitmap(int viewId, Bitmap bitmap) {
2576 setBitmap(viewId, "setImageBitmap", bitmap);
2582 * @param viewId The id of the view whose bitmap should change
3057 * Call a method taking one Bitmap on a view in the layout for this RemoteViews.
3059 * <p class="note">The bitmap will be flattened into the parcel if this object is
3066 public void setBitmap(int viewId, String methodName, Bitmap value) {
3489 // We only write the bitmap cache if we are the root RemoteViews, as this cache
3510 // We only write the bitmap cache if we are the root RemoteViews, as this cache