Home
last modified time | relevance | path

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

/packages/apps/Gallery/src/com/android/camera/
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 …]
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 …]
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()
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) {
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DBitmapScreenNail.java47 private Bitmap mBitmap; field in BitmapScreenNail
54 mBitmap = bitmap; in BitmapScreenNail()
90 if (newer.mBitmap != null) { in combine()
91 if (mBitmap != null) { in combine()
92 MediaItem.getThumbPool().recycle(mBitmap); in combine()
94 mBitmap = newer.mBitmap; in combine()
95 newer.mBitmap = null; in combine()
108 if (mBitmap != null) return; in updatePlaceholderSize()
133 if (mBitmap != null) { in recycle()
134 MediaItem.getThumbPool().recycle(mBitmap); in recycle()
[all …]
DBitmapLoader.java45 private Bitmap mBitmap; field in BitmapLoader
51 mBitmap = future.get(); in onFutureDone()
53 if (mBitmap != null) { in onFutureDone()
54 recycleBitmap(mBitmap); in onFutureDone()
55 mBitmap = null; in onFutureDone()
59 if (future.isCancelled() && mBitmap == null) { in onFutureDone()
63 mState = mBitmap == null ? STATE_ERROR : STATE_LOADED; in onFutureDone()
66 onLoadComplete(mBitmap); in onFutureDone()
86 if (mBitmap != null) { in recycle()
87 recycleBitmap(mBitmap); in recycle()
[all …]
DUploadedTexture.java63 protected Bitmap mBitmap; field in UploadedTexture
136 if (mBitmap == null) { in getBitmap()
137 mBitmap = onGetBitmap(); in getBitmap()
138 int w = mBitmap.getWidth() + mBorder * 2; in getBitmap()
139 int h = mBitmap.getHeight() + mBorder * 2; in getBitmap()
144 return mBitmap; in getBitmap()
148 Utils.assertTrue(mBitmap != null); in freeBitmap()
149 onFreeBitmap(mBitmap); in freeBitmap()
150 mBitmap = null; in freeBitmap()
170 if (mBitmap != null) freeBitmap(); in invalidateContent()
[all …]
DAlbumLabelMaker.java100 private Bitmap mBitmap; field in AlbumLabelMaker.LazyLoadedBitmap
108 if (mBitmap == null) { in get()
111 mBitmap = BitmapFactory.decodeResource( in get()
114 return mBitmap; in get()
DNinePatchTexture.java50 if (mBitmap != null) return mBitmap; in onGetBitmap()
56 mBitmap = bitmap; in onGetBitmap()
/packages/apps/Launcher2/src/com/android/launcher2/
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()
48 canvas.drawBitmap(mBitmap, r.left, r.top, mPaint); in draw()
96 mBitmap = b; in setBitmap()
98 mWidth = mBitmap.getWidth(); in setBitmap()
99 mHeight = mBitmap.getHeight(); in setBitmap()
106 return mBitmap; in getBitmap()
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 …]
DDragView.java38 private Bitmap mBitmap; field in DragView
106 mBitmap = Bitmap.createBitmap(bitmap, left, top, width, height); in DragView()
165 setMeasuredDimension(mBitmap.getWidth(), mBitmap.getHeight()); in onMeasure()
185 canvas.drawBitmap(mBitmap, 0.0f, 0.0f, mPaint); in onDraw()
189 float sX = (mBitmap.getWidth() * 1.0f) / mCrossFadeBitmap.getWidth(); in onDraw()
190 float sY = (mBitmap.getHeight() * 1.0f) / mCrossFadeBitmap.getHeight(); in onDraw()
252 lp.width = mBitmap.getWidth(); in show()
253 lp.height = mBitmap.getHeight(); in show()
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/
DTextureTest.java118 Bitmap mBitmap; field in TextureTest.MyUploadedTexture
123 mBitmap = Bitmap.createBitmap(47, 42, config); in onGetBitmap()
124 return mBitmap; in onGetBitmap()
129 assertSame(mBitmap, bitmap); in onFreeBitmap()
130 mBitmap.recycle(); in onFreeBitmap()
131 mBitmap = null; in onFreeBitmap()
/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/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()
362 if (mBitmap != null) { in onDestroy()
363 mBitmap.recycle(); in onDestroy()
364 mBitmap = null; in onDestroy()
373 return mBitmap; in onRetainNonConfigurationInstance()
/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/Mms/src/com/android/mms/ui/
DMmsThumbnailPresenter.java77 imageLoaded.mBitmap);
79 ((SlideViewInterface)mView).setImage(null, imageLoaded.mBitmap);
DMessageListItem.java419 mListItem.setVideoThumbnail(null, imageLoaded.mBitmap); in onItemLoaded()
421 mListItem.setImage(null, imageLoaded.mBitmap); in onItemLoaded()
/packages/apps/Camera/src/com/android/camera/
DThumbnail.java51 private Bitmap mBitmap; field in Thumbnail
61 mBitmap = rotateImage(bitmap, orientation); in Thumbnail()
69 return mBitmap; in getBitmap()
113 mBitmap.compress(Bitmap.CompressFormat.JPEG, 90, d); in saveLastThumbnailToFile()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DCropImage.java141 private Bitmap mBitmap; field in CropImage
643 canvas.drawBitmap(mBitmap, in getCroppedImage()
739 mBitmap = regionDecoder.decodeRegion( in onBitmapRegionDecoderAvailable()
742 mBitmap, regionDecoder), mMediaItem.getFullImageRotation()); in onBitmapRegionDecoderAvailable()
744 mCropView.detectFaces(mBitmap); in onBitmapRegionDecoderAvailable()
759 mBitmap = bitmap; in onBitmapAvailable()
/packages/apps/Mms/src/com/android/mms/util/
DThumbnailManager.java502 public final Bitmap mBitmap;
506 mBitmap = bitmap;
/packages/apps/Music/src/com/android/music/
DMusicUtils.java840 private Bitmap mBitmap; field in MusicUtils.FastBitmapDrawable
842 mBitmap = b; in FastBitmapDrawable()
846 canvas.drawBitmap(mBitmap, 0, 0, null); in draw()