/packages/services/BuiltInPrintService/src/com/android/bips/ |
D | ImageToPdfTask.java | 45 private final Bitmap mBitmap; field in ImageToPdfTask 52 mBitmap = bitmap; in ImageToPdfTask() 78 if (mAttributes.getMediaSize().isPortrait() == mBitmap.getWidth() < mBitmap.getHeight()) { in writeBitmapToDocument() 93 scale = Math.max(extent.height() / POINTS_PER_INCH * mDpi / mBitmap.getHeight(), in writeBitmapToPage() 94 extent.width() / POINTS_PER_INCH * mDpi / mBitmap.getWidth()); in writeBitmapToPage() 98 scale = Math.min(extent.height() / POINTS_PER_INCH * mDpi / mBitmap.getWidth(), in writeBitmapToPage() 99 extent.width() / POINTS_PER_INCH * mDpi / mBitmap.getHeight()); in writeBitmapToPage() 118 scale = Math.max(extent.height() / mBitmap.getHeight(), in drawDirect() 119 extent.width() / mBitmap.getWidth()); in drawDirect() 121 scale = Math.min(extent.height() / mBitmap.getWidth(), in drawDirect() [all …]
|
D | ImagePrintActivity.java | 71 private Bitmap mBitmap; field in ImagePrintActivity 171 mBitmap = bitmap; in onPostExecute() 204 if (mBitmap != null) { in onDestroy() 205 mBitmap.recycle(); in onDestroy() 206 mBitmap = null; in onDestroy() 228 if (mBitmap == null) { in onLayout() 294 mGrayscaleBitmap = Bitmap.createBitmap(mBitmap.getWidth(), mBitmap.getHeight(), in getBitmap() 301 canvas.drawBitmap(mBitmap, 0, 0, paint); in getBitmap() 305 return mBitmap; in getBitmap()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | RotateBitmap.java | 24 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 …]
|
D | CropImage.java | 84 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/ |
D | DecodedImageResource.java | 40 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 …]
|
D | CompositeImageRequest.java | 42 private final Bitmap mBitmap; field in CompositeImageRequest 48 mBitmap = getBitmapPool().createOrReuseBitmap( in CompositeImageRequest() 50 mCanvas = new Canvas(mBitmap); in CompositeImageRequest() 97 return new DecodedImageResource(getKey(), mBitmap, ExifInterface.ORIENTATION_NORMAL); in loadMediaInternal()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | BitmapLoader.java | 46 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 …]
|
D | TiledScreenNail.java | 52 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/ |
D | Buffer.java | 29 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/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
D | UploadedTexture.java | 55 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/ |
D | BitmapJobDrawable.java | 40 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/Gallery2/src/com/android/photos/drawables/ |
D | AutoThumbnailDrawable.java | 53 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/WallpaperPicker2/tests/src/com/android/wallpaper/testing/ |
D | TestAsset.java | 36 private Bitmap mBitmap; field in TestAsset 51 mBitmap = Bitmap.createBitmap(1, 1, Config.ARGB_8888); in TestAsset() 52 mBitmap.setPixel(0, 0, pixelColor); in TestAsset() 54 mBitmap = null; in TestAsset() 60 receiver.onBitmapDecoded(mBitmap); in decodeBitmap() 66 receiver.onBitmapDecoded(mBitmap); in decodeBitmapRegion() 93 return mBitmap; in getBitmap() 97 mBitmap = bitmap; in setBitmap()
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | UploadedTexture.java | 62 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/Launcher3/src/com/android/launcher3/graphics/ |
D | ShiftedBitmapDrawable.java | 31 private final Bitmap mBitmap; field in ShiftedBitmapDrawable 38 mBitmap = bitmap; in ShiftedBitmapDrawable() 42 mConstantState = new MyConstantState(mBitmap, mShiftX, mShiftY); in ShiftedBitmapDrawable() 63 canvas.drawBitmap(mBitmap, mShiftX, mShiftY, mPaint); in draw() 85 private final Bitmap mBitmap; field in ShiftedBitmapDrawable.MyConstantState 90 mBitmap = bitmap; in MyConstantState() 97 return new ShiftedBitmapDrawable(mBitmap, mShiftX, mShiftY); in newDrawable()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/ |
D | IconView.java | 48 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/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | DefaultBitmapCropper.java | 66 private Bitmap mBitmap; field in DefaultBitmapCropper.ScaleBitmapTask 70 mBitmap = bitmap; in ScaleBitmapTask() 77 if (mBitmap == null) { in doInBackground() 83 mBitmap = Bitmap.createScaledBitmap( in doInBackground() 84 mBitmap, in doInBackground() 100 mCallback.onBitmapCropped(mBitmap); in onPostExecute()
|
D | DefaultWallpaperPersister.java | 602 private Bitmap mBitmap; field in DefaultWallpaperPersister.SetWallpaperTask 617 mBitmap = bitmap; in SetWallpaperTask() 670 if (mBitmap != null) { in doInBackground() 673 mBitmap = BitmapTransformer.applyFillTransformation(mBitmap, mFillSize); in doInBackground() 676 mBitmap = Bitmap.createScaledBitmap(mBitmap, mStretchSize.x, mStretchSize.y, in doInBackground() 680 wallpaperId = setBitmapToWallpaperManagerCompat(mBitmap, allowBackup, in doInBackground() 798 mBitmap = ((BitmapDrawable) mWallpaperManagerCompat.getDrawable()).getBitmap(); in setImageWallpaperHomeMetadata() 799 long bitmapHash = BitmapUtils.generateHashCode(mBitmap); in setImageWallpaperHomeMetadata()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/ |
D | MtpThumbnailTileView.java | 39 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/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/ |
D | ColorHueView.java | 48 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()
|
D | ColorSVRectView.java | 60 Bitmap mBitmap; field in ColorSVRectView 85 mBitmap = Bitmap.createBitmap(64, 46, Bitmap.Config.ARGB_8888); in ColorSVRectView() 95 int w = mBitmap.getWidth(); in fillBitmap() 96 int h = mBitmap.getHeight(); in fillBitmap() 107 mBitmap.setPixels(buff, 0, w, 0, 0, w, h); in fillBitmap() 127 canvas.drawBitmap(mBitmap, null, mRect, mPaint1); in onDraw()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallerInfoLookupHelperTest.java | 78 Bitmap mBitmap; field in CallerInfoLookupHelperTest 92 if (mBitmap == null) { in setUp() 102 mBitmap = ((BitmapDrawable) d).getBitmap(); in setUp() 151 imageListenerCaptor.getValue().onImageLoadComplete(0, mDrawable1, mBitmap, in testSimpleLookup() 155 assertEquals(mBitmap, mCallerInfo1.cachedPhotoIcon); in testSimpleLookup() 191 imageListenerCaptor.getValue().onImageLoadComplete(0, mDrawable1, mBitmap, in testLookupWithTwoListeners() 196 assertEquals(mBitmap, mCallerInfo1.cachedPhotoIcon); in testLookupWithTwoListeners() 232 imageListenerCaptor.getValue().onImageLoadComplete(0, mDrawable1, mBitmap, in testListenerAddedAfterCallerInfoBeforePhoto() 237 assertEquals(mBitmap, mCallerInfo1.cachedPhotoIcon); in testListenerAddedAfterCallerInfoBeforePhoto()
|
/packages/apps/EmergencyInfo/src/com/android/emergency/ |
D | CircleFramedDrawable.java | 39 private final Bitmap mBitmap; field in CircleFramedDrawable 59 mBitmap = Bitmap.createBitmap(mSize, mSize, Bitmap.Config.ARGB_8888); in CircleFramedDrawable() 60 final Canvas canvas = new Canvas(mBitmap); in CircleFramedDrawable() 100 canvas.drawBitmap(mBitmap, mSrcRect, mDstRect, null); in draw()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | CropView.java | 47 private Bitmap mBitmap; field in CropView 114 mBitmap = image; in initialize() 290 if (mBitmap == null) { in onDraw() 298 mImageBounds = new RectF(0, 0, mBitmap.getWidth(), mBitmap.getHeight()); in onDraw() 346 canvas.drawBitmap(mBitmap, mDisplayMatrix, mPaint); in onDraw()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/ |
D | Asset.java | 376 private Bitmap mBitmap; field in Asset.CenterCropBitmapTask 384 mBitmap = bitmap; in CenterCropBitmapTask() 398 int bitmapWidth = mBitmap.getWidth(); in doInBackground() 399 int bitmapHeight = mBitmap.getHeight(); in doInBackground() 406 mBitmap, Math.round(bitmapWidth / scale), Math.round(bitmapHeight / scale), in doInBackground()
|