Home
last modified time | relevance | path

Searched refs:mCanvas (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/
DBaseIconFactory.java43 private final Canvas mCanvas; field in BaseIconFactory
68 mCanvas = new Canvas(); in BaseIconFactory()
69 mCanvas.setDrawFilter(new PaintFlagsDrawFilter(DITHER_FLAG, FILTER_BITMAP_FLAG)); in BaseIconFactory()
169 mCanvas.setBitmap(bitmap); in createBadgedIconBitmap()
170 getShadowGenerator().recreateIcon(Bitmap.createBitmap(bitmap), mCanvas); in createBadgedIconBitmap() local
171 mCanvas.setBitmap(null); in createBadgedIconBitmap()
248 mCanvas.setBitmap(target); in badgeWithDrawable()
249 badgeWithDrawable(mCanvas, badge); in badgeWithDrawable()
250 mCanvas.setBitmap(null); in badgeWithDrawable()
276 mCanvas.setBitmap(bitmap); in createIconBitmap()
[all …]
DIconNormalizer.java70 private final Canvas mCanvas; field in IconNormalizer
92 mCanvas = new Canvas(mBitmap); in IconNormalizer()
186 mCanvas.drawPath(mShapePath, mPaintMaskShape); in isShape()
189 mCanvas.drawPath(mShapePath, mPaintMaskShapeOutline); in isShape()
263 d.draw(mCanvas); in getScale()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLRootView.java82 private GLCanvas mCanvas; field in GLRootView
293 mCanvas = ApiHelper.HAS_GLES20_REQUIRED ? new GLES20Canvas() : new GLES11Canvas(gl); in onSurfaceCreated()
324 mCanvas.setSize(width, height); in onSurfaceChanged()
395 mCanvas.deleteRecycledResources(); in onDrawFrameLocked()
408 mCanvas.save(GLCanvas.SAVE_FLAG_ALL); in onDrawFrameLocked()
411 mContentView.render(mCanvas); in onDrawFrameLocked()
414 mCanvas.clearBuffer(); in onDrawFrameLocked()
416 mCanvas.restore(); in onDrawFrameLocked()
435 mCanvas.fillRect(10, 10, 5, 5, mInvalidateColor); in onDrawFrameLocked()
440 mCanvas.dumpStatisticsAndClear(); in onDrawFrameLocked()
[all …]
/packages/apps/Gallery2/src/com/android/photos/views/
DTiledImageView.java283 private GLES20Canvas mCanvas; field in TiledImageView.TileRenderer
287 mCanvas = new GLES20Canvas(); in onSurfaceCreated()
294 mCanvas.setSize(width, height); in onSurfaceChanged()
300 mCanvas.clearBuffer(); in onDrawFrame()
308 boolean complete = mRenderer.image.draw(mCanvas); in onDrawFrame()
338 private Canvas mCanvas = new Canvas(); field in TiledImageView.ColoredTiles
367 mCanvas.setBitmap(bitmap); in getTile()
368 mCanvas.drawColor(COLORS[level]); in getTile()
372 mCanvas.drawText(x + "x" + y, 128, 128, mPaint); in getTile()
376 mCanvas.drawText(x + "x" + y + " @ " + level, 128, 30, mPaint); in getTile()
[all …]
/packages/apps/Gallery2/src/com/android/photos/
DBitmapRegionTileSource.java65 private Canvas mCanvas; field in BitmapRegionTileSource
175 if (mCanvas == null) { in getTileWithoutReusingBitmap()
176 mCanvas = new Canvas(); in getTileWithoutReusingBitmap()
178 mCanvas.setBitmap(result); in getTileWithoutReusingBitmap()
179 mCanvas.drawBitmap(bitmap, in getTileWithoutReusingBitmap()
182 mCanvas.setBitmap(null); in getTileWithoutReusingBitmap()
/packages/apps/WallpaperPicker/src/com/android/photos/views/
DTiledImageView.java166 private GLES20Canvas mCanvas; field in TiledImageView.TileRenderer
170 mCanvas = new GLES20Canvas(); in onSurfaceCreated()
177 mCanvas.setSize(width, height); in onSurfaceChanged()
183 mCanvas.clearBuffer(); in onDrawFrame()
191 boolean complete = mRenderer.image.draw(mCanvas); in onDrawFrame()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DCanvasTexture.java27 protected Canvas mCanvas; field in CanvasTexture
39 mCanvas = new Canvas(bitmap); in onGetBitmap()
40 onDraw(mCanvas, bitmap); in onGetBitmap()
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/draw/
DDrawTestFragment.java30 private CanvasView mCanvas; field in DrawTestFragment
37 mCanvas = view.findViewById(R.id.drawCanvas); in onCreateView()
45 mClearButton.setOnClickListener(view -> mCanvas.clearCanvas()); in setClearButtonListener()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DCompositeImageRequest.java43 private final Canvas mCanvas; field in CompositeImageRequest
50 mCanvas = new Canvas(mBitmap); in CompositeImageRequest()
90 mCanvas.drawBitmap(smallCircleBitmap, matrix, mPaint); in loadMediaInternal()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DActivityPicker.java334 private final Canvas mCanvas = new Canvas(); field in ActivityPicker.IconResizer
337 mCanvas.setDrawFilter(new PaintFlagsDrawFilter(Paint.DITHER_FLAG, in IconResizer()
394 final Canvas canvas = mCanvas; in createIconThumbnail()
414 final Canvas canvas = mCanvas; in createIconThumbnail()
/packages/apps/Settings/src/com/android/settings/
DActivityPicker.java334 private final Canvas mCanvas = new Canvas(); field in ActivityPicker.IconResizer
337 mCanvas.setDrawFilter(new PaintFlagsDrawFilter(Paint.DITHER_FLAG, in IconResizer()
394 final Canvas canvas = mCanvas; in createIconThumbnail()
414 final Canvas canvas = mCanvas; in createIconThumbnail()
/packages/apps/ThemePicker/src/com/android/customization/widget/
DDynamicAdaptiveIconDrawable.java93 private final Canvas mCanvas; field in DynamicAdaptiveIconDrawable
116 mCanvas = new Canvas(); in DynamicAdaptiveIconDrawable()
278 mCanvas.setBitmap(mLayersBitmap); in draw()
279 mCanvas.drawColor(Color.BLACK); in draw()
286 dr.draw(mCanvas); in draw()
/packages/apps/Gallery/src/com/android/camera/
DGridViewSpecial.java971 private final Canvas mCanvas; field in ImageBlockManager.ImageBlock
985 mCanvas = new Canvas(mBitmap); in ImageBlock()
1103 mDrawAdapter.drawImage(mCanvas, image, b, xPos, yPos, in drawBitmap()
1105 mCanvas.drawBitmap(mOutline, xPos, yPos, null); in drawBitmap()
/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/car/
DKeyboardView.java268 private Canvas mCanvas; field in KeyboardView
729 mCanvas = new Canvas(mBuffer); in onBufferDraw()
734 final Canvas canvas = mCanvas; in onBufferDraw()
1428 mCanvas = null; in closing()