Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DHolographicOutlineHelper.java46 private final Canvas mCanvas = new Canvas(); field in HolographicOutlineHelper
173 mCanvas.setBitmap(cache); in createMediumDropShadow()
176 mCanvas.setBitmap(cache); in createMediumDropShadow()
177 mCanvas.drawColor(Color.BLACK, PorterDuff.Mode.CLEAR); in createMediumDropShadow()
180 int saveCount = mCanvas.save(); in createMediumDropShadow()
181 mCanvas.scale(scaleX, scaleY); in createMediumDropShadow()
182 mCanvas.translate(-rect.left, -rect.top); in createMediumDropShadow()
183 drawable.draw(mCanvas); in createMediumDropShadow()
184 mCanvas.restoreToCount(saveCount); in createMediumDropShadow()
185 mCanvas.setBitmap(null); in createMediumDropShadow()
[all …]
DShadowGenerator.java53 private final Canvas mCanvas; field in ShadowGenerator
60 mCanvas = new Canvas(); in ShadowGenerator()
80 mCanvas.setBitmap(result); in recreateIcon()
84 mCanvas.drawBitmap(shadow, offset[0], offset[1], mDrawPaint); in recreateIcon()
88mCanvas.drawBitmap(shadow, offset[0], offset[1] + KEY_SHADOW_DISTANCE * mIconSize, mDrawPaint); in recreateIcon()
92 mCanvas.drawBitmap(icon, 0, 0, mDrawPaint); in recreateIcon()
94 mCanvas.setBitmap(null); in recreateIcon()
DIconNormalizer.java70 private final Canvas mCanvas; field in IconNormalizer
96 mCanvas = new Canvas(mBitmap); in IconNormalizer()
254 d.draw(mCanvas);
/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/UnifiedEmail/src/com/android/mail/browse/
DConversationWebView.java39 private Canvas mCanvas; field in ConversationWebView
71 mCanvas = new Canvas(mBitmap); in onDraw()
75 mCanvas = null; in onDraw()
84 mCanvas.save(); in onDraw()
85 mCanvas.translate(-x, -y); in onDraw()
86 super.onDraw(mCanvas); in onDraw()
87 mCanvas.restore(); in onDraw()
108 mCanvas = null; in destroyBitmap()
/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/Launcher3/src/com/android/launcher3/folder/
DPreviewImageView.java40 private Canvas mCanvas; field in PreviewImageView
53 mCanvas = new Canvas(mBitmap); in copy()
72 mCanvas.drawColor(0, PorterDuff.Mode.CLEAR); in copy()
73 view.draw(mCanvas); in copy()
/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/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/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/cards/
DCardView.java62 private Canvas mCanvas = new Canvas(); field in CardView
313 mCanvas.setBitmap(mBitmap); in onDraw()
317 mCanvas.drawColor(Color.TRANSPARENT, Mode.CLEAR); in onDraw()
319 mCanvas.drawCircle(mCurveRadius, getHeight() / 2, mCurveRadius, mBackgroundCirclePaint); in onDraw()
/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/UnifiedEmail/src/com/android/mail/photomanager/
DLetterTileProvider.java55 private final Canvas mCanvas = new Canvas(); field in LetterTileProvider
96 final Canvas c = mCanvas; in getLetterTile()
/packages/apps/Launcher2/src/com/android/launcher2/
DAppsCustomizePagedView.java185 private Canvas mCanvas; field in AppsCustomizePagedView
256 mCanvas = new Canvas(); in AppsCustomizePagedView()
754 mCanvas.setBitmap(preview); in beginDraggingWidget()
755 mCanvas.save(); in beginDraggingWidget()
758 mCanvas.restore(); in beginDraggingWidget()
759 mCanvas.setBitmap(null); in beginDraggingWidget()
/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
726 mCanvas = new Canvas(mBuffer); in onBufferDraw()
731 final Canvas canvas = mCanvas; in onBufferDraw()
1425 mCanvas = null; in closing()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DKeyboardView.java248 private Canvas mCanvas; field in KeyboardView
681 mCanvas = new Canvas(mBuffer); in onBufferDraw()
686 final Canvas canvas = mCanvas; in onBufferDraw()
1343 mCanvas = null; in closing()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryHistoryChart.java232 Canvas mCanvas; field in BatteryHistoryChart
676 mCanvas = null; in onSizeChanged()
1145 mCanvas = new Canvas(mBitmap); in buildBitmap()
1146 drawChart(mCanvas, width, height); in buildBitmap()
/packages/apps/Launcher3/src/com/android/launcher3/
DWorkspace.java267 private final Canvas mCanvas = new Canvas(); field in Workspace
432 mOutlineProvider.generateDragOutline(mCanvas); in onDragStart()
2147 final Bitmap b = previewProvider.createDragBitmap(mCanvas); in beginDragShared()
3325 mCanvas.setBitmap(b);
3329 layout.draw(mCanvas);
3330 mCanvas.setBitmap(null);