/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | AssetsAtlasActivity.java | 40 private final Bitmap mBitmap; field in AssetsAtlasActivity.BitmapsView 46 mBitmap = ((BitmapDrawable) d).getBitmap(); in BitmapsView() 56 final Rect src = new Rect(0, 0, mBitmap.getWidth() / 2, mBitmap.getHeight() / 2); in onDraw() 57 final Rect dst = new Rect(0, 0, mBitmap.getWidth(), mBitmap.getHeight()); in onDraw() 59 canvas.drawBitmap(mBitmap, 0.0f, 0.0f, null); in onDraw() 60 canvas.translate(0.0f, mBitmap.getHeight()); in onDraw() 61 canvas.drawBitmap(mBitmap, matrix, null); in onDraw() 62 canvas.translate(0.0f, mBitmap.getHeight()); in onDraw() 63 canvas.drawBitmap(mBitmap, src, dst, null); in onDraw()
|
D | PathsActivity.java | 49 private final Bitmap mBitmap; field in PathsActivity.PathsView 100 mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ALPHA_8); in PathsView() 101 Canvas canvas = new Canvas(mBitmap); in PathsView() 132 canvas.drawBitmap(mBitmap, mPathBounds.left - mOffset * 1.5f, in onDraw()
|
/frameworks/base/graphics/java/android/graphics/ |
D | NinePatch.java | 67 private final Bitmap mBitmap; field in NinePatch 99 mBitmap = bitmap; in NinePatch() 108 mBitmap = patch.mBitmap; in NinePatch() 166 return mBitmap; in getBitmap() 202 nativeDraw(canvas.getNativeCanvasWrapper(), location, mBitmap, mNativeChunk, in drawSoftware() local 203 paint != null ? paint.getNativeInstance() : 0, canvas.mDensity, mBitmap.mDensity); in drawSoftware() 207 nativeDraw(canvas.getNativeCanvasWrapper(), location, mBitmap, mNativeChunk, in drawSoftware() local 208 paint != null ? paint.getNativeInstance() : 0, canvas.mDensity, mBitmap.mDensity); in drawSoftware() 216 return mBitmap.mDensity; in getDensity() 224 return mBitmap.getWidth(); in getWidth() [all …]
|
D | BitmapShader.java | 31 public final Bitmap mBitmap; field in BitmapShader 44 mBitmap = bitmap; in BitmapShader() 55 final BitmapShader copy = new BitmapShader(mBitmap, mTileX, mTileY); in copy()
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/ |
D | PhotoBitmapLoader.java | 37 private Bitmap mBitmap; field in PhotoBitmapLoader 86 Bitmap oldBitmap = mBitmap; in deliverResult() 87 mBitmap = bitmap; in deliverResult() 108 if (mBitmap != null) { in onStartLoading() 113 result.bitmap = mBitmap; in onStartLoading() 117 if (takeContentChanged() || mBitmap == null) { in onStartLoading() 158 if (mBitmap != null) { in onReset() 159 onReleaseResources(mBitmap); in onReset() 160 mBitmap = null; in onReset()
|
/frameworks/base/core/java/android/text/style/ |
D | IconMarginSpan.java | 29 mBitmap = b; in IconMarginSpan() 33 mBitmap = b; in IconMarginSpan() 38 return mBitmap.getWidth() + mPad; in getLeadingMargin() 49 x -= mBitmap.getWidth(); in drawLeadingMargin() 51 c.drawBitmap(mBitmap, x, itop, p); in drawLeadingMargin() 58 int ht = mBitmap.getHeight(); in chooseHeight() 70 private Bitmap mBitmap; field in IconMarginSpan
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
D | BasicBitmapDrawable.java | 72 private ReusableBitmap mBitmap; field in BasicBitmapDrawable 115 return mBitmap; in getBitmap() 219 if (mBitmap != null) { in setImage() 220 mBitmap.releaseReference(); in setImage() 221 mBitmap = null; in setImage() 265 mBitmap.releaseReference(); in setBitmap() 267 mBitmap = bmp; in setBitmap() 383 mBitmap.getLogicalWidth(), mBitmap.getLogicalHeight(), in draw() 389 final int orientation = mBitmap.getOrientation(); in draw() 394 new Rect(0, 0, mBitmap.getLogicalWidth(), mBitmap.getLogicalHeight()), in draw() [all …]
|
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/ |
D | RoundedBitmapDrawable.java | 46 final Bitmap mBitmap; field in RoundedBitmapDrawable 75 return mBitmap; in getBitmap() 79 mBitmapWidth = mBitmap.getScaledWidth(mTargetDensity); in computeBitmapSize() 80 mBitmapHeight = mBitmap.getScaledHeight(mTargetDensity); in computeBitmapSize() 120 if (mBitmap != null) { in setTargetDensity() 243 mDstRectF.width() / mBitmap.getWidth(), in updateDstRect() 244 mDstRectF.height() / mBitmap.getHeight()); in updateDstRect() 255 final Bitmap bitmap = mBitmap; in draw() 367 Bitmap bm = mBitmap; in getOpacity() 380 mBitmap = bitmap; in RoundedBitmapDrawable() [all …]
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | BitmapDrawable.java | 156 if (mBitmapState.mBitmap == null) { in BitmapDrawable() 168 if (mBitmapState.mBitmap == null) { in BitmapDrawable() 181 if (mBitmapState.mBitmap == null) { in BitmapDrawable() 193 if (mBitmapState.mBitmap == null) { in BitmapDrawable() 209 return mBitmapState.mBitmap; in getBitmap() 213 final Bitmap bitmap = mBitmapState.mBitmap; in computeBitmapSize() 224 if (mBitmapState.mBitmap != bitmap) { in setBitmap() 225 mBitmapState.mBitmap = bitmap; in setBitmap() 268 if (mBitmapState.mBitmap != null) { in setTargetDensity() 306 if (mBitmapState.mBitmap != null) { in setMipMap() [all …]
|
/frameworks/base/packages/WallpaperCropper/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 Assert.assertTrue(mBitmap != null); in freeBitmap() 148 onFreeBitmap(mBitmap); in freeBitmap() 149 mBitmap = null; in freeBitmap() 169 if (mBitmap != null) freeBitmap(); in invalidateContent() [all …]
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
D | ResourceModifiers.java | 50 public final Bitmap mBitmap; field in ResourceModifiers 65 mBitmap = BitmapFactory.decodeResource(resources, R.drawable.sunset1); in ResourceModifiers() 66 mTexWidth = mBitmap.getWidth(); in ResourceModifiers() 67 mTexHeight = mBitmap.getHeight(); in ResourceModifiers() 72 mRepeatShader = new BitmapShader(mBitmap, Shader.TileMode.REPEAT, in ResourceModifiers() 75 mTranslatedShader = new BitmapShader(mBitmap, Shader.TileMode.REPEAT, in ResourceModifiers() 82 mScaledShader = new BitmapShader(mBitmap, Shader.TileMode.MIRROR, in ResourceModifiers() 108 final float width = mBitmap.getWidth() / 8.0f; in ResourceModifiers() 109 final float height = mBitmap.getHeight() / 8.0f; in ResourceModifiers()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
D | BitmapOverlayFilter.java | 35 private Bitmap mBitmap; field in BitmapOverlayFilter 108 if (mBitmap != null) { in process() 127 FrameFormat format = ImageFormat.create(mBitmap.getWidth(), in createBitmapFrame() 128 mBitmap.getHeight(), in createBitmapFrame() 133 frame.setBitmap(mBitmap); in createBitmapFrame() 135 mBitmap.recycle(); in createBitmapFrame() 136 mBitmap = null; in createBitmapFrame()
|
D | BitmapSource.java | 37 private Bitmap mBitmap; field in BitmapSource 66 FrameFormat outputFormat = ImageFormat.create(mBitmap.getWidth(), in loadImage() 67 mBitmap.getHeight(), in loadImage() 71 mImageFrame.setBitmap(mBitmap); in loadImage() 76 mBitmap.recycle(); in loadImage() 78 mBitmap = null; in loadImage()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | UserAvatarView.java | 42 private Bitmap mBitmap; field in UserAvatarView 96 mBitmap = bitmap; in setBitmap() 97 if (mBitmap != null) { in setBitmap() 139 if (mBitmap != null) { in configureBounds() 140 dwidth = mBitmap.getWidth(); in configureBounds() 141 dheight = mBitmap.getHeight(); in configureBounds() 173 if (mBitmap != null && mScale > 0) { in onDraw() 178 float halfBW = mBitmap.getWidth() / 2f; in onDraw() 179 float halfBH = mBitmap.getHeight() / 2f; in onDraw() 215 mBitmap = null; in setDrawable()
|
/frameworks/support/v4/api21/android/support/v4/graphics/drawable/ |
D | RoundedBitmapDrawable21.java | 39 if (mBitmap != null) { in setMipMap() 40 mBitmap.setHasMipMap(mipMap); in setMipMap() 47 return mBitmap != null && mBitmap.hasMipMap(); in hasMipMap()
|
/frameworks/base/core/java/android/view/ |
D | PointerIcon.java | 74 private Bitmap mBitmap; field in PointerIcon 169 icon.mBitmap = bitmap; in createCustomIcon() 222 if (mSystemIconResourceId == 0 || mBitmap != null) { in load() 249 return mBitmap != null || mStyle == STYLE_NULL; in isLoaded() 272 return mBitmap; in getBitmap() 345 mBitmap.writeToParcel(out, flags); in writeToParcel() 368 if (mSystemIconResourceId == 0 && (mBitmap != otherIcon.mBitmap in equals() 413 mBitmap = ((BitmapDrawable)drawable).getBitmap(); in loadResource()
|
/frameworks/support/v4/java/android/support/v4/graphics/drawable/ |
D | RoundedBitmapDrawableFactory.java | 43 if (mBitmap != null) { in setMipMap() 44 BitmapCompat.setHasMipMap(mBitmap, mipMap); in setMipMap() 51 return mBitmap != null && BitmapCompat.hasMipMap(mBitmap); in hasMipMap()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/ |
D | PdfManipulationService.java | 79 private Bitmap mBitmap; field in PdfManipulationService.PdfRendererImpl 186 if (mBitmap != null) { in getBitmapForSize() 187 if (mBitmap.getWidth() == width && mBitmap.getHeight() == height) { in getBitmapForSize() 188 mBitmap.eraseColor(Color.WHITE); in getBitmapForSize() 189 return mBitmap; in getBitmapForSize() 191 mBitmap.recycle(); in getBitmapForSize() 193 mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in getBitmapForSize() 194 mBitmap.eraseColor(Color.WHITE); in getBitmapForSize() 195 return mBitmap; in getBitmapForSize()
|
/frameworks/support/v4/kitkat/android/support/v4/print/ |
D | PrintHelperKitkat.java | 319 Bitmap mBitmap = null; in printBitmap() 335 if (mBitmap != null) { in printBitmap() 373 mBitmap = bitmap; in printBitmap() 417 if (mBitmap != null) { in printBitmap() 418 mBitmap.recycle(); in printBitmap() 419 mBitmap = null; in printBitmap() 429 Bitmap maybeGrayscale = convertBitmapForColorMode(mBitmap, in printBitmap() 437 Matrix matrix = getMatrix(mBitmap.getWidth(), mBitmap.getHeight(), in printBitmap() 470 if (maybeGrayscale != mBitmap) { in printBitmap()
|
/frameworks/base/libs/hwui/ |
D | DisplayListOp.h | 625 , mBitmap(bitmap) in DrawBitmapOp() 630 renderer.drawBitmap(mBitmap, mPaint); in applyDraw() 636 mEntry = renderer.renderState().assetAtlas().getEntry(mBitmap); in getAtlasEntry() 687 renderer.drawBitmaps(mBitmap, mEntry, ops.size(), &vertices[0], in multiDraw() 693 mBitmap, mBitmap->width(), mBitmap->height(), in output() 703 (mergeid_t) mEntry->getMergeId() : (mergeid_t) mBitmap; in onDefer() 712 (mBitmap->colorType() != kAlpha_8_SkColorType); in onDefer() 721 const SkBitmap* bitmap() { return mBitmap; } in bitmap() 723 const SkBitmap* mBitmap; 734 mBitmap(bitmap), mSrc(srcLeft, srcTop, srcRight, srcBottom) {} in DrawBitmapRectOp() [all …]
|
/frameworks/base/core/jni/ |
D | android_view_PointerIcon.cpp | 35 jfieldID mBitmap; member 81 jobject bitmapObj = env->GetObjectField(loadedPointerIconObj, gPointerIconClassInfo.mBitmap); in android_view_PointerIcon_load() 112 gPointerIconClassInfo.mBitmap = GetFieldIDOrDie(env, gPointerIconClassInfo.clazz, in register_android_view_PointerIcon()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | BackingStore.java | 489 private Bitmap mBitmap = null; field in BackingStore.BitmapBacking 510 mBitmap = (Bitmap) backing.lock(ACCESS_BITMAP); in syncTo() 514 mBitmap.copyPixelsFromBuffer(buffer); in syncTo() 519 mBitmap.copyPixelsFromBuffer( in syncTo() 534 allocation.copyTo(mBitmap); in syncToAllocationBacking() 539 return mBitmap; in lock() 561 mBitmap = null; in destroy() 572 mBitmap = (Bitmap) data; in setData() 576 mBitmap = Bitmap.createBitmap(mDimensions[0], mDimensions[1], Bitmap.Config.ARGB_8888); in createBitmap()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | Camera2Source.java | 71 private Bitmap mBitmap; field in Camera2Source 182 mBitmap = Bitmap.createBitmap(mWidth, mHeight, Bitmap.Config.ARGB_8888); in onOpen() 183 mAllocationOut = Allocation.createFromBitmap(mRS, mBitmap); in onOpen() 234 mAllocationOut.copyTo(mBitmap); in onProcess() 235 outputFrame.setBitmap(mBitmap); in onProcess()
|
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/ |
D | RgbPlayerActivity.java | 70 private Bitmap mBitmap; field in RgbPlayerActivity.RgbView 132 mBitmap = Bitmap.createBitmap(mWidth, mHeight, in RgbView() 198 mBitmap.copyPixelsFromBuffer(mFlipBuf); in LoadImage() 205 canvas.drawBitmap(mBitmap, mStartX, mStartY, null); in onDraw()
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
D | GraphicsPerformanceTests.java | 164 private Bitmap mBitmap; field in GraphicsPerformanceTests.DrawBitmapTest 171 mBitmap = createBitmap(); in setUp() 187 mCanvas.drawBitmap(mBitmap, 0.0f, 0.0f, mPaint); in drawBitmapEven() 193 mCanvas.drawBitmap(mBitmap, 1.0f, 0.0f, mPaint); in drawBitmapOdd()
|