Home
last modified time | relevance | path

Searched refs:mBitmap (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Gallery/src/com/android/camera/
DCropImage.java84 private Bitmap mBitmap; field in CropImage
121 mBitmap = (Bitmap) extras.getParcelable("data"); in onCreate()
133 if (mBitmap == null) { in onCreate()
143 mBitmap = mImage.thumbBitmap(IImage.ROTATE_AS_NEEDED); in onCreate()
147 if (mBitmap == null) { in onCreate()
178 mImageView.setImageBitmapResetBase(mBitmap, true); in startFaceDetection()
188 : mBitmap; in startFaceDetection()
191 if (b != mBitmap && b != null) { in startFaceDetection()
193 mBitmap.recycle(); in startFaceDetection()
194 mBitmap = b; in startFaceDetection()
[all …]
DRotateBitmap.java24 private Bitmap mBitmap; field in RotateBitmap
28 mBitmap = bitmap; in RotateBitmap()
33 mBitmap = bitmap; in RotateBitmap()
46 return mBitmap; in getBitmap()
50 mBitmap = bitmap; in setBitmap()
60 int cx = mBitmap.getWidth() / 2; in getRotateMatrix()
61 int cy = mBitmap.getHeight() / 2; in getRotateMatrix()
75 return mBitmap.getWidth(); in getHeight()
77 return mBitmap.getHeight(); in getHeight()
83 return mBitmap.getHeight(); in getWidth()
[all …]
DViewImage.java1196 Bitmap mBitmap;
1202 mBitmap = null;
1230 return e.mBitmap;
1263 if (best.mBitmap != null) {
1264 best.mBitmap.recycle();
1268 best.mBitmap = bitmap;
1274 if (e.mBitmap != null) {
1275 e.mBitmap.recycle();
1292 if (e.mBitmap == b) {
DGridViewSpecial.java970 private Bitmap mBitmap; field in ImageBlockManager.ImageBlock
983 mBitmap = Bitmap.createBitmap(mBlockWidth, mBlockHeight, in ImageBlock()
985 mCanvas = new Canvas(mBitmap); in ImageBlock()
1003 mBitmap.recycle(); in recycle()
1004 mBitmap = null; in recycle()
1071 if (mBitmap == null) return; // This block has been recycled. in loadImageDone()
1113 canvas.drawBitmap(mBitmap, xPos, yPos, null); in doDraw()
1126 canvas.drawBitmap(mBitmap, srcRect, dstRect, null); in doDraw()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DBitmapLoader.java46 private Bitmap mBitmap; field in BitmapLoader
52 mBitmap = future.get(); in onFutureDone()
54 if (mBitmap != null) { in onFutureDone()
55 GalleryBitmapPool.getInstance().put(mBitmap); in onFutureDone()
56 mBitmap = null; in onFutureDone()
60 if (future.isCancelled() && mBitmap == null) { in onFutureDone()
64 mState = mBitmap == null ? STATE_ERROR : STATE_LOADED; in onFutureDone()
67 onLoadComplete(mBitmap); in onFutureDone()
87 if (mBitmap != null) { in recycle()
88 GalleryBitmapPool.getInstance().put(mBitmap); in recycle()
[all …]
DTiledScreenNail.java52 private Bitmap mBitmap; field in TiledScreenNail
58 mBitmap = bitmap; in TiledScreenNail()
103 if (mBitmap != null) GalleryBitmapPool.getInstance().put(mBitmap); in combine()
105 mBitmap = newer.mBitmap; in combine()
107 newer.mBitmap = null; in combine()
115 if (mBitmap != null) return; in updatePlaceholderSize()
140 if (mBitmap != null) { in recycle()
141 GalleryBitmapPool.getInstance().put(mBitmap); in recycle()
142 mBitmap = null; in recycle()
208 return (mBitmap == null) || isAnimating(); in isShowingPlaceholder()
DAlbumLabelMaker.java91 private Bitmap mBitmap; field in AlbumLabelMaker.LazyLoadedBitmap
99 if (mBitmap == null) { in get()
102 mBitmap = BitmapFactory.decodeResource( in get()
105 return mBitmap; in get()
/packages/apps/Gallery2/src/com/android/photos/drawables/
DAutoThumbnailDrawable.java53 private Bitmap mBitmap; field in AutoThumbnailDrawable
84 if (b == mBitmap) { in setBitmapLocked()
87 if (mBitmap != null) { in setBitmapLocked()
88 sBitmapPool.put(mBitmap); in setBitmapLocked()
90 mBitmap = b; in setBitmapLocked()
99 mBitmap = null; in onBoundsChange()
110 if (mBitmap != null) { in draw()
114 canvas.drawBitmap(mBitmap, 0, 0, mPaint); in draw()
122 if (mBitmap == null || mBounds.isEmpty()) { in updateDrawMatrixLocked()
130 int dwidth = mBitmap.getWidth(); in updateDrawMatrixLocked()
[all …]
/packages/apps/Gallery2/src/com/android/photos/shims/
DBitmapJobDrawable.java40 private Bitmap mBitmap; field in BitmapJobDrawable
55 if (mBitmap != null) { in setMediaItem()
56 GalleryBitmapPool.getInstance().put(mBitmap); in setMediaItem()
57 mBitmap = null; in setMediaItem()
72 mBitmap = bitmap; in run()
86 if (mBitmap != null) { in draw()
91 canvas.drawBitmap(mBitmap, 0, 0, mPaint); in draw()
101 if (mBitmap == null || bounds.isEmpty()) { in updateDrawMatrix()
109 int dwidth = mBitmap.getWidth(); in updateDrawMatrix()
110 int dheight = mBitmap.getHeight(); in updateDrawMatrix()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DWallpaperChooserDialogFragment.java57 private Bitmap mBitmap = null; field in WallpaperChooserDialogFragment
293 if (mBitmap != null) { in onPostExecute()
294 mBitmap.recycle(); in onPostExecute()
299 mBitmap = b; in onPostExecute()
303 mBitmap = null; in onPostExecute()
323 Bitmap mBitmap; field in WallpaperChooserDialogFragment.WallpaperDrawable
328 mBitmap = bitmap; in setBitmap()
329 if (mBitmap == null) in setBitmap()
331 mIntrinsicWidth = mBitmap.getWidth(); in setBitmap()
332 mIntrinsicHeight = mBitmap.getHeight(); in setBitmap()
[all …]
DFastBitmapDrawable.java28 private Bitmap mBitmap; field in FastBitmapDrawable
36 mBitmap = b; in FastBitmapDrawable()
38 mWidth = mBitmap.getWidth(); in FastBitmapDrawable()
39 mHeight = mBitmap.getHeight(); in FastBitmapDrawable()
49 canvas.drawBitmap(mBitmap, null, r, mPaint); in draw()
97 mBitmap = b; in setBitmap()
99 mWidth = mBitmap.getWidth(); in setBitmap()
100 mHeight = mBitmap.getHeight(); in setBitmap()
107 return mBitmap; in getBitmap()
DDragView.java38 private Bitmap mBitmap; field in DragView
110 mBitmap = Bitmap.createBitmap(bitmap, left, top, width, height); in DragView()
169 setMeasuredDimension(mBitmap.getWidth(), mBitmap.getHeight()); in onMeasure()
189 canvas.drawBitmap(mBitmap, 0.0f, 0.0f, mPaint); in onDraw()
193 float sX = (mBitmap.getWidth() * 1.0f) / mCrossFadeBitmap.getWidth(); in onDraw()
194 float sY = (mBitmap.getHeight() * 1.0f) / mCrossFadeBitmap.getHeight(); in onDraw()
253 lp.width = mBitmap.getWidth(); in show()
254 lp.height = mBitmap.getHeight(); in show()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DUploadedTexture.java62 protected Bitmap mBitmap; field in UploadedTexture
135 if (mBitmap == null) { in getBitmap()
136 mBitmap = onGetBitmap(); in getBitmap()
137 int w = mBitmap.getWidth() + mBorder * 2; in getBitmap()
138 int h = mBitmap.getHeight() + mBorder * 2; in getBitmap()
143 return mBitmap; in getBitmap()
147 Assert.assertTrue(mBitmap != null); in freeBitmap()
148 onFreeBitmap(mBitmap); in freeBitmap()
149 mBitmap = null; in freeBitmap()
169 if (mBitmap != null) freeBitmap(); in invalidateContent()
[all …]
DNinePatchTexture.java48 if (mBitmap != null) return mBitmap; in onGetBitmap()
54 mBitmap = bitmap; in onGetBitmap()
/packages/apps/VideoEditor/src/com/android/videoeditor/
DKenBurnsActivity.java78 private Bitmap mBitmap; field in KenBurnsActivity
171 if (mBitmap != null) { in doInBackground()
172 return mBitmap; in doInBackground()
193 mBitmap = bitmap; in onPostExecute()
324 mBitmap = (Bitmap) getLastNonConfigurationInstance(); in onCreate()
356 if (mBitmap != null) { in onDestroy()
357 mBitmap.recycle(); in onDestroy()
358 mBitmap = null; in onDestroy()
367 return mBitmap; in onRetainNonConfigurationInstance()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
DMtpThumbnailTileView.java36 private Bitmap mBitmap; field in MtpThumbnailTileView
71 mBitmap = (Bitmap)result; in onMtpImageDataFetchedFromDevice()
72 setImageBitmap(mBitmap); in onMtpImageDataFetchedFromDevice()
101 if (mBitmap != null) { in cancelLoadingAndClear()
102 MtpBitmapFetch.recycleThumbnail(mBitmap); in cancelLoadingAndClear()
103 mBitmap = null; in cancelLoadingAndClear()
/packages/apps/Gallery2/tests/src/com/android/gallery3d/glrenderer/
DTextureTest.java126 Bitmap mBitmap; field in TextureTest.MyUploadedTexture
131 mBitmap = Bitmap.createBitmap(47, 42, config); in onGetBitmap()
132 return mBitmap; in onGetBitmap()
137 assertSame(mBitmap, bitmap); in onFreeBitmap()
138 mBitmap.recycle(); in onFreeBitmap()
139 mBitmap = null; in onFreeBitmap()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropView.java48 private Bitmap mBitmap; field in CropView
101 mBitmap = image; in initialize()
277 if (mBitmap == null) { in onDraw()
285 mImageBounds = new RectF(0, 0, mBitmap.getWidth(), mBitmap.getHeight()); in onDraw()
331 canvas.drawBitmap(mBitmap, mDisplayMatrix, mPaint); in onDraw()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
DZoomCache.java27 private Bitmap mBitmap = null; field in ZoomCache
41 return mBitmap; in getImage()
45 mBitmap = bitmap; in setImage()
52 mBitmap = null; in reset()
DRenderingRequest.java30 private Bitmap mBitmap = null; field in RenderingRequest
96 if (mBitmap == null || mImagePreset == null in markAvailable()
112 return mBitmap; in getBitmap()
116 mBitmap = bitmap; in setBitmap()
/packages/apps/LegacyCamera/src/com/android/camera/
DThumbnail.java51 private Bitmap mBitmap; field in Thumbnail
61 mBitmap = rotateImage(bitmap, orientation); in Thumbnail()
62 if (mBitmap == null) throw new IllegalArgumentException("null bitmap"); in Thumbnail()
70 return mBitmap; in getBitmap()
113 mBitmap.compress(Bitmap.CompressFormat.JPEG, 90, d); in saveTo()
/packages/apps/Settings/src/com/android/settings/users/
DCircleFramedDrawable.java42 private final Bitmap mBitmap; field in CircleFramedDrawable
85 mBitmap = Bitmap.createBitmap(mSize, mSize, Bitmap.Config.ARGB_8888); in CircleFramedDrawable()
86 final Canvas canvas = new Canvas(mBitmap); in CircleFramedDrawable()
130 canvas.drawBitmap(mBitmap, mSrcRect, mDstRect, null); in draw()
/packages/apps/Tag/src/com/android/apps/tag/record/
DImageRecord.java40 private final Bitmap mBitmap; field in ImageRecord
43 mBitmap = Preconditions.checkNotNull(bitmap); in ImageRecord()
49 image.setImageBitmap(mBitmap); in getView()
/packages/apps/Mms/src/com/android/mms/ui/
DMmsThumbnailPresenter.java79 imageLoaded.mBitmap);
81 ((SlideViewInterface)mView).setImage(null, imageLoaded.mBitmap);
/packages/apps/Mms/src/com/android/mms/util/
DThumbnailManager.java525 public final Bitmap mBitmap; field in ImageLoaded
529 mBitmap = bitmap; in ImageLoaded()

12