Home
last modified time | relevance | path

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

12

/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 …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DDecodedImageResource.java40 private Bitmap mBitmap; field in DecodedImageResource
46 mBitmap = bitmap; in DecodedImageResource()
57 return mBitmap; in getBitmap()
73 final Bitmap retBitmap = mBitmap; in reuseBitmap()
74 mBitmap = null; in reuseBitmap()
90 return ImageUtils.bitmapToBytes(mBitmap, BITMAP_QUALITY); in getBytes()
111 Assert.notNull(mBitmap); in getMediaSize()
113 return mBitmap.getAllocationByteCount(); in getMediaSize()
115 return mBitmap.getRowBytes() * mBitmap.getHeight(); in getMediaSize()
126 if (mBitmap != null) { in close()
[all …]
/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()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DBuffer.java29 private Bitmap mBitmap; field in Buffer
38 mBitmap = cache.getBitmapCopy(bitmap, BitmapCache.PREVIEW_CACHE); in Buffer()
42 mAllocation = Allocation.createFromBitmap(rs, mBitmap, in Buffer()
49 if (mBitmap == null || bitmap == null) { in isSameSize()
52 if (mBitmap.getWidth() == bitmap.getWidth() in isSameSize()
53 && mBitmap.getHeight() == bitmap.getHeight()) { in isSameSize()
60 Canvas canvas = new Canvas(mBitmap); in useBitmap()
65 return mBitmap; in getBitmap()
74 mAllocation.copyTo(mBitmap); in sync()
92 if (cache.cache(mBitmap)) { in remove()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
DAbstractAvatarDrawable.java52 protected ReusableBitmap mBitmap; field in AbstractAvatarDrawable
96 if (mBitmap != null && mBitmap.bmp != null) { in draw()
98 drawBitmap(mBitmap.bmp, mBitmap.getLogicalWidth(), mBitmap.getLogicalHeight(), canvas); in draw()
175 if (mBitmap != null) { in setImage()
176 mBitmap.releaseReference(); in setImage()
177 mBitmap = null; in setImage()
212 if (mBitmap != null && mBitmap != bmp) { in setBitmap()
213 mBitmap.releaseReference(); in setBitmap()
215 mBitmap = bmp; in setBitmap()
/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/WallpaperPicker/src/com/android/gallery3d/glrenderer/
DUploadedTexture.java55 protected Bitmap mBitmap; field in UploadedTexture
74 if (mBitmap == null) { in getBitmap()
75 mBitmap = onGetBitmap(); in getBitmap()
76 int w = mBitmap.getWidth(); in getBitmap()
77 int h = mBitmap.getHeight(); in getBitmap()
82 return mBitmap; in getBitmap()
86 Utils.assertTrue(mBitmap != null); in freeBitmap()
87 onFreeBitmap(mBitmap); in freeBitmap()
88 mBitmap = null; in freeBitmap()
108 if (mBitmap != null) freeBitmap(); in invalidateContent()
[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/Launcher3/src/com/android/launcher3/dragndrop/
DDragView.java49 private Bitmap mBitmap; field in DragView
130 mBitmap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight()); in DragView()
192 setMeasuredDimension(mBitmap.getWidth(), mBitmap.getHeight()); in onMeasure()
206 size.set((int)(mBitmap.getWidth() * getScaleX()), (int)(mBitmap.getHeight() * getScaleY())); in provideDragShadowMetrics()
208 final float xGrowth = mBitmap.getWidth() * (getScaleX() - 1); in provideDragShadowMetrics()
209 final float yGrowth = mBitmap.getHeight() * (getScaleY() - 1); in provideDragShadowMetrics()
223 canvas.drawBitmap(mBitmap, 0.0f, 0.0f, mPaint); in onDraw()
227 float sX = (mBitmap.getWidth() * 1.0f) / mCrossFadeBitmap.getWidth(); in onDraw()
228 float sY = (mBitmap.getHeight() * 1.0f) / mCrossFadeBitmap.getHeight(); in onDraw()
319 lp.width = mBitmap.getWidth(); in show()
[all …]
/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()
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 Utils.assertTrue(mBitmap != null); in freeBitmap()
148 onFreeBitmap(mBitmap); in freeBitmap()
149 mBitmap = null; in freeBitmap()
169 if (mBitmap != null) freeBitmap(); in invalidateContent()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
DIconView.java48 private Bitmap mBitmap; field in IconView
159 mBitmap = bitmap; in setBitmap()
200 if (mBitmap != null) { in onDraw()
206 m.setRectToRect(new RectF(0, 0, mBitmap.getWidth(), mBitmap.getHeight()), in onDraw()
209 float scaleWidth = mBitmapBounds.width() / (float) mBitmap.getWidth(); in onDraw()
210 float scaleHeight = mBitmapBounds.height() / (float) mBitmap.getHeight(); in onDraw()
212 float dx = (mBitmapBounds.width() - (mBitmap.getWidth() * scale)) / 2f; in onDraw()
213 float dy = (mBitmapBounds.height() - (mBitmap.getHeight() * scale)) / 2f; in onDraw()
220 canvas.drawBitmap(mBitmap, m, mPaint); in onDraw()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationWebView.java38 private Bitmap mBitmap; field in ConversationWebView
67 if (mBitmap == null) { in onDraw()
70 mBitmap = Bitmap.createBitmap(getWidth(), getHeight(), Bitmap.Config.RGB_565); in onDraw()
71 mCanvas = new Canvas(mBitmap); in onDraw()
74 mBitmap = null; in onDraw()
80 if (mBitmap != null) { in onDraw()
89 canvas.drawBitmap(mBitmap, x, y, null /* paint */); in onDraw()
106 if (mBitmap != null) { in destroyBitmap()
107 mBitmap = null; in destroyBitmap()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DPreviewImageView.java40 private Bitmap mBitmap; field in PreviewImageView
52 if (mBitmap == null || mBitmap.getWidth() != width || mBitmap.getHeight() != height) { in copy()
53 mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in copy()
54 mCanvas = new Canvas(mBitmap); in copy()
75 setImageBitmap(mBitmap); in copy()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetImageView.java42 private Bitmap mBitmap; field in WidgetImageView
61 mBitmap = bitmap; in setBitmap()
67 return mBitmap; in getBitmap()
72 if (mBitmap != null) { in onDraw()
74 canvas.drawBitmap(mBitmap, null, mDstRectF, mPaint); in onDraw()
94 float bitmapWidth = mBitmap.getWidth(); in updateDstRectF()
98 float scaledHeight = mBitmap.getHeight() * scale; in updateDstRectF()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallerInfoLookupHelperTest.java72 Bitmap mBitmap; field in CallerInfoLookupHelperTest
85 if (mBitmap == null) { in setUp()
94 mBitmap = ((BitmapDrawable) d).getBitmap(); in setUp()
134 imageListenerCaptor.getValue().onImageLoadComplete(0, mDrawable1, mBitmap, in testSimpleLookup()
138 assertEquals(mBitmap, mCallerInfo1.cachedPhotoIcon); in testSimpleLookup()
172 imageListenerCaptor.getValue().onImageLoadComplete(0, mDrawable1, mBitmap, in testLookupWithTwoListeners()
177 assertEquals(mBitmap, mCallerInfo1.cachedPhotoIcon); in testLookupWithTwoListeners()
211 imageListenerCaptor.getValue().onImageLoadComplete(0, mDrawable1, mBitmap, in testListenerAddedAfterCallerInfoBeforePhoto()
216 assertEquals(mBitmap, mCallerInfo1.cachedPhotoIcon); in testListenerAddedAfterCallerInfoBeforePhoto()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
DColorHueView.java48 Bitmap mBitmap; field in ColorHueView
84 mBitmap = Bitmap.createBitmap(256, 2, Bitmap.Config.ARGB_8888); in ColorHueView()
85 mTmpBuff = new int[mBitmap.getWidth() * mBitmap.getHeight()]; in ColorHueView()
93 int w = mBitmap.getWidth(); in fillBitmap()
94 int h = mBitmap.getHeight(); in fillBitmap()
108 mBitmap.setPixels(mTmpBuff, 0, w, 0, 0, w, h); in fillBitmap()
177 canvas.drawBitmap(mBitmap, null, mRect, mPaint); in onDraw()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
DMtpThumbnailTileView.java39 private Bitmap mBitmap; field in MtpThumbnailTileView
75 mBitmap = (Bitmap) result; in onMtpImageDataFetchedFromDevice()
76 setImageBitmap(mBitmap); in onMtpImageDataFetchedFromDevice()
108 if (mBitmap != null) { in cancelLoadingAndClear()
109 MtpBitmapFetch.recycleThumbnail(mBitmap); in cancelLoadingAndClear()
110 mBitmap = null; in cancelLoadingAndClear()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DBitmapDownloader.java58 Bitmap mBitmap; field in BitmapDownloader.BitmapItem
65 mBitmap = bitmap; in BitmapItem()
115 return bitmap.mBitmap.getByteCount(); in BitmapDownloader()
265 Bitmap currentBitmap = bitmapItem.mBitmap; in addBitmapToMemoryCache()
287 Bitmap bitmap = bitmapItem.mBitmap; in getBitmapFromMemCache()
309 return bitmapItem.mBitmap; in getBitmapFromMemCache()
320 return bitmapItem.mBitmap; in getBitmapFromMemCache()
333 return bitmapItem.mBitmap; in getLargestBitmapFromMemCache()
/packages/apps/Launcher3/src/com/android/launcher3/
DFastBitmapDrawable.java73 private final Bitmap mBitmap; field in FastBitmapDrawable
104 mBitmap = b; in FastBitmapDrawable()
121 canvas.drawBitmap(mBitmap, null, getBounds(), mPaint); in drawInternal()
127 .findDominantColorByHue(mBitmap, 20), true /* desaturateBackground */); in getIconPalette()
160 return mBitmap.getWidth(); in getIntrinsicWidth()
165 return mBitmap.getHeight(); in getIntrinsicHeight()
179 return mBitmap; in getBitmap()
DClickShadowView.java42 private Bitmap mBitmap; field in ClickShadowView
65 if (b != mBitmap){ in setBitmap()
66 mBitmap = b; in setBitmap()
75 if (mBitmap != null) { in onDraw()
77 canvas.drawBitmap(mBitmap, 0, 0, mPaint); in onDraw()
79 canvas.drawBitmap(mBitmap, 0, mShadowOffset, mPaint); in onDraw()
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/cards/
DCardView.java58 private Bitmap mBitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); field in CardView
308 if(mBitmap.isRecycled() || mBitmap.getWidth() != canvas.getWidth() in onDraw()
309 || mBitmap.getHeight() != canvas.getHeight()) { in onDraw()
311 mBitmap.recycle(); in onDraw()
312 mBitmap = Bitmap.createBitmap(canvas.getWidth(), canvas.getHeight(), Config.ARGB_8888); in onDraw()
313 mCanvas.setBitmap(mBitmap); in onDraw()
321 canvas.drawBitmap(mBitmap, 0, 0, null); in onDraw()

12