Home
last modified time | relevance | path

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

12

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DAssetsAtlasActivity.java40 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()
DPathsActivity.java49 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/
DNinePatch.java84 private final Bitmap mBitmap; field in NinePatch
117 mBitmap = bitmap; in NinePatch()
126 mBitmap = patch.mBitmap; in NinePatch()
185 return mBitmap; in getBitmap()
225 return mBitmap.mDensity; in getDensity()
233 return mBitmap.getWidth(); in getWidth()
241 return mBitmap.getHeight(); in getHeight()
250 return mBitmap.hasAlpha(); in hasAlpha()
264 long r = nativeGetTransparentRegion(mBitmap.getNativeInstance(), in getTransparentRegion()
DBitmapShader.java33 public Bitmap mBitmap; field in BitmapShader
55 if (bitmap == mBitmap && tileX == mTileX && tileY == mTileY) { in BitmapShader()
58 mBitmap = bitmap; in BitmapShader()
65 return nativeCreate(nativeMatrix, mBitmap.getNativeInstance(), mTileX, mTileY); in createNativeInstance()
/frameworks/opt/photoviewer/src/com/android/ex/photo/loaders/
DPhotoBitmapLoader.java37 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/opt/bitmap/src/com/android/bitmap/drawable/
DBasicBitmapDrawable.java72 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/base/tests/UiBench/src/com/android/test/uibench/
DBitmapUploadActivity.java34 private Bitmap mBitmap; field in BitmapUploadActivity.UploadView
49 mBitmap.eraseColor(Color.rgb(mColorValue, 255 - mColorValue, 255)); in setColorValue()
61 if (mBitmap == null in onAttachedToWindow()
62 || mBitmap.getWidth() != bitmapSize in onAttachedToWindow()
63 || mBitmap.getHeight() != bitmapSize) { in onAttachedToWindow()
64 mBitmap = Bitmap.createBitmap(bitmapSize, bitmapSize, Bitmap.Config.ARGB_8888); in onAttachedToWindow()
70 if (mBitmap != null) { in onDraw()
72 canvas.drawBitmap(mBitmap, null, mRect, null); in onDraw()
/frameworks/base/packages/WallpaperCropper/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 …]
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DResourceModifiers.java50 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/
DBitmapOverlayFilter.java35 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()
DBitmapSource.java37 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/core/java/android/text/style/
DIconMarginSpan.java50 private final Bitmap mBitmap; field in IconMarginSpan
70 mBitmap = bitmap; in IconMarginSpan()
76 return mBitmap.getWidth() + mPad; in getLeadingMargin()
88 x -= mBitmap.getWidth(); in drawLeadingMargin()
91 c.drawBitmap(mBitmap, x, itop, p); in drawLeadingMargin()
99 int ht = mBitmap.getHeight(); in chooseHeight()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/
DBitmapUploadActivity.java47 private Bitmap mBitmap; field in BitmapUploadActivity.UploadView
62 mBitmap.eraseColor(Color.rgb(mColorValue, 255 - mColorValue, 255)); in setColorValue()
74 if (mBitmap == null in onAttachedToWindow()
75 || mBitmap.getWidth() != bitmapSize in onAttachedToWindow()
76 || mBitmap.getHeight() != bitmapSize) { in onAttachedToWindow()
77 mBitmap = Bitmap.createBitmap(bitmapSize, bitmapSize, Bitmap.Config.ARGB_8888); in onAttachedToWindow()
83 if (mBitmap != null) { in onDraw()
85 canvas.drawBitmap(mBitmap, null, mRect, null); in onDraw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/glwallpaper/
DImageWallpaperRenderer.java60 private Bitmap mBitmap; field in ImageWallpaperRenderer
90 mImageProcessHelper.start(mBitmap); in ImageWallpaperRenderer()
104 mWallpaper.setup(mBitmap); in onSurfaceCreated()
105 mBitmap = null; in onSurfaceCreated()
110 Log.d(TAG, "loadBitmap: mBitmap=" + mBitmap); in loadBitmap()
112 if (mWallpaperManager != null && mBitmap == null) { in loadBitmap()
113 mBitmap = mWallpaperManager.getBitmap(); in loadBitmap()
115 if (mBitmap != null) { in loadBitmap()
116 mSurfaceSize.set(0, 0, mBitmap.getWidth(), mBitmap.getHeight()); in loadBitmap()
122 return mBitmap != null; in loadBitmap()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
DUserIconDrawable.java52 private Bitmap mBitmap; // baked representation. Required for transparent border around badge field in UserIconDrawable
132 mBitmap = null; in setIcon()
148 mBitmap = null; in setIconDrawable()
252 if (mBitmap != null) { in draw()
262 canvas.drawBitmap(mBitmap, 0, 0, mPaint); in draw()
302 return new BitmapDrawable(mBitmap).getConstantState(); in getConstantState()
332 if (mBitmap == null || (mUserDrawable == null && mUserIcon == null)) { in rebake()
336 final Canvas canvas = new Canvas(mBitmap); in rebake()
359 final float badgeTop = mBitmap.getHeight() - badgeDiameter; in rebake()
360 float badgeLeft = mBitmap.getWidth() - badgeDiameter; in rebake()
[all …]
DCircleFramedDrawable.java42 private final Bitmap mBitmap; field in CircleFramedDrawable
62 mBitmap = Bitmap.createBitmap(mSize, mSize, Bitmap.Config.ARGB_8888); in CircleFramedDrawable()
63 final Canvas canvas = new Canvas(mBitmap); in CircleFramedDrawable()
103 canvas.drawBitmap(mBitmap, mSrcRect, mDstRect, null); in draw()
/frameworks/base/graphics/java/android/graphics/drawable/
DBitmapDrawable.java179 if (mBitmapState.mBitmap == null) { in BitmapDrawable()
212 if (mBitmapState.mBitmap == null) { in BitmapDrawable()
229 return mBitmapState.mBitmap; in getBitmap()
233 final Bitmap bitmap = mBitmapState.mBitmap; in computeBitmapSize()
245 if (mBitmapState.mBitmap != bitmap) { in setBitmap()
246 mBitmapState.mBitmap = bitmap; in setBitmap()
289 if (mBitmapState.mBitmap != null) { in setTargetDensity()
327 if (mBitmapState.mBitmap != null) { in setMipMap()
328 mBitmapState.mBitmap.setHasMipMap(mipMap); in setMipMap()
343 return mBitmapState.mBitmap != null && mBitmapState.mBitmap.hasMipMap(); in hasMipMap()
[all …]
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/util/
DDrawingTestHelper.java65 private final Bitmap mBitmap; field in DrawingTestHelper
71 mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in DrawingTestHelper()
72 mCanvas = new Canvas(mBitmap); in DrawingTestHelper()
85 mBitmap.getPixels(out, 0, mWidth, 0, 0, mWidth, mHeight); in getPixels()
90 return mBitmap.getPixel(x, y); in getPixel()
/frameworks/base/packages/SettingsLib/AdaptiveIcon/src/com/android/settingslib/widget/
DAdaptiveOutlineDrawable.java40 private final Bitmap mBitmap; field in AdaptiveOutlineDrawable
56 mBitmap = bitmap; in AdaptiveOutlineDrawable()
75 canvas.drawBitmap(mBitmap, bounds.left + mInsetPx, bounds.top + mInsetPx, null); in draw()
80 return mBitmap.getHeight() + 2 * mInsetPx; in getIntrinsicHeight()
85 return mBitmap.getWidth() + 2 * mInsetPx; in getIntrinsicWidth()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/f32/
DRefocusFilterF32.java81 Bitmap mBitmap = Bitmap.createBitmap(buffers.inputImage.getWidth(), in extractSharpImage() local
83 Allocation mAllocation = Allocation.createFromBitmap(renderScript, mBitmap); in extractSharpImage()
86 mAllocation.copyTo(mBitmap); in extractSharpImage()
87 MediaStoreSaver.savePNG(mBitmap, "sharpF32", name, renderScript.getApplicationContext()); in extractSharpImage()
94 Bitmap mBitmap = Bitmap.createBitmap(buffers.inputImage.getWidth(), in extractFuzzyImage() local
96 Allocation mAllocation = Allocation.createFromBitmap(renderScript, mBitmap); in extractFuzzyImage()
99 mAllocation.copyTo(mBitmap); in extractFuzzyImage()
100 MediaStoreSaver.savePNG(mBitmap, "fuzzyF32", name, renderScript.getApplicationContext()); in extractFuzzyImage()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DMediaNotificationProcessorTest.java62 private Bitmap mBitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888); field in MediaNotificationProcessorTest
68 mColorizer = spy(new TestableColorizer(mBitmap)); in setUp()
85 .setLargeIcon(mBitmap) in testColorizedWithLargeIcon()
109 .setLargeIcon(mBitmap) in testRemoteViewsReset()
158 private final Bitmap mBitmap; field in MediaNotificationProcessorTest.TestableColorizer
161 mBitmap = bitmap; in TestableColorizer()
166 return mBitmap; in colorize()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
DPdfManipulationService.java79 private Bitmap mBitmap; field in PdfManipulationService.PdfRendererImpl
189 if (mBitmap != null) { in getBitmapForSize()
190 if (mBitmap.getWidth() == width && mBitmap.getHeight() == height) { in getBitmapForSize()
191 mBitmap.eraseColor(Color.WHITE); in getBitmapForSize()
192 return mBitmap; in getBitmapForSize()
194 mBitmap.recycle(); in getBitmapForSize()
196 mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in getBitmapForSize()
197 mBitmap.eraseColor(Color.WHITE); in getBitmapForSize()
198 return mBitmap; in getBitmapForSize()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/d1new/
DRefocusFilterd1new.java83 Bitmap mBitmap = Bitmap.createBitmap(buffers.inputImage.getWidth(), in extractSharpImage() local
85 Allocation mAllocation = Allocation.createFromBitmap(renderScript, mBitmap); in extractSharpImage()
88 mAllocation.copyTo(mBitmap); in extractSharpImage()
89 MediaStoreSaver.savePNG(mBitmap, "sharpd1new", name, renderScript.getApplicationContext()); in extractSharpImage()
96 Bitmap mBitmap = Bitmap.createBitmap(buffers.inputImage.getWidth(), in extractFuzzyImage() local
98 Allocation mAllocation = Allocation.createFromBitmap(renderScript, mBitmap); in extractFuzzyImage()
101 mAllocation.copyTo(mBitmap); in extractFuzzyImage()
102 MediaStoreSaver.savePNG(mBitmap, "fuzzyd1new", name, renderScript.getApplicationContext()); in extractFuzzyImage()
/frameworks/base/core/jni/android/graphics/
DBitmap.cpp48 : mBitmap(bitmap) { } in BitmapWrapper()
51 mInfo = mBitmap->info(); in freePixels()
52 mHasHardwareMipMap = mBitmap->hasHardwareMipMap(); in freePixels()
53 mAllocationSize = mBitmap->getAllocationByteCount(); in freePixels()
54 mRowBytes = mBitmap->rowBytes(); in freePixels()
55 mGenerationId = mBitmap->getGenerationID(); in freePixels()
56 mIsHardware = mBitmap->isHardware(); in freePixels()
57 mBitmap.reset(); in freePixels()
61 return mBitmap != nullptr; in valid()
66 return *mBitmap; in bitmap()
[all …]
/frameworks/base/core/java/com/android/internal/graphics/palette/
DPalette.java605 private final Bitmap mBitmap; field in Palette.Builder
626 mBitmap = bitmap; in Builder()
648 mBitmap = null; in Builder()
753 if (mBitmap != null) { in setRegion()
756 mRegion.set(0, 0, mBitmap.getWidth(), mBitmap.getHeight()); in setRegion()
811 if (mBitmap != null) { in generate()
815 final Bitmap bitmap = scaleBitmapDown(mBitmap); in generate()
822 if (bitmap != mBitmap && region != null) { in generate()
825 final double scale = bitmap.getWidth() / (double) mBitmap.getWidth(); in generate()
843 if (bitmap != mBitmap) { in generate()
[all …]

12