Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewPerformanceTest.java34 private Canvas mCanvas; field in TextViewPerformanceTest
44 mCanvas = new Canvas(mBitmap); in setUp()
53 mLabelView.myDraw(mCanvas); in setUp()
56 mCanvas.save(); in setUp()
66 mTextView.myDraw(mCanvas); in testDrawTextViewLine()
67 mTextView.myDraw(mCanvas); in testDrawTextViewLine()
68 mTextView.myDraw(mCanvas); in testDrawTextViewLine()
69 mTextView.myDraw(mCanvas); in testDrawTextViewLine()
70 mTextView.myDraw(mCanvas); in testDrawTextViewLine()
71 mTextView.myDraw(mCanvas); in testDrawTextViewLine()
[all …]
/frameworks/base/libs/hwui/
DSkiaCanvas.cpp56 : mCanvas(canvas) in SkiaCanvas()
67 mCanvas = mCanvasWrapper.get(); in SkiaCanvas()
73 if (mCanvas != skiaCanvas) { in reset()
74 mCanvas = skiaCanvas; in reset()
95 mCanvas = mCanvasWrapper.get(); in setBitmap()
106 return mCanvas->imageInfo().isOpaque(); in isOpaque()
110 return mCanvas->imageInfo().width(); in width()
114 return mCanvas->imageInfo().height(); in height()
122 return mCanvas->getSaveCount(); in getSaveCount()
126 int count = mCanvas->save(); in save()
[all …]
DSkiaCanvasProxy.cpp41 , mCanvas(canvas) in SkiaCanvasProxy()
45 mCanvas->drawPaint(paint); in onDrawPaint()
61 mCanvas->drawPoints(floatArray, floatCount, paint); in onDrawPoints()
65 mCanvas->drawLines(floatArray, floatCount, paint); in onDrawPoints()
87 mCanvas->drawOval(rect.fLeft, rect.fTop, rect.fRight, rect.fBottom, paint); in onDrawOval()
91 mCanvas->drawRect(rect.fLeft, rect.fTop, rect.fRight, rect.fBottom, paint); in onDrawRect()
98 mCanvas->drawRoundRect(rect.fLeft, rect.fTop, rect.fRight, rect.fBottom, in onDrawRRect()
103 mCanvas->drawPath(path, paint); in onDrawRRect()
109 mCanvas->drawArc(rect.fLeft, rect.fTop, rect.fRight, rect.fBottom, in onDrawArc()
114 mCanvas->drawPath(path, paint); in onDrawPath()
[all …]
DCanvasState.cpp29 , mCanvas(renderer) in CanvasState()
51 mCanvas.onViewportInitialized(); in initializeRecordingSaveStack()
68 mCanvas.onViewportInitialized(); in initializeSaveStack()
74 mSnapshot->fbo = mCanvas.getTargetFbo(); in initializeSaveStack()
141 mCanvas.onSnapshotRestored(*toRemove, *toRestore); in restoreSnapshot()
DSkiaCanvas.h50 return mCanvas; in asSkCanvas()
160 void drawDrawable(SkDrawable* drawable) { mCanvas->drawDrawable(drawable); } in drawDrawable()
192 SkCanvas* mCanvas; // we do NOT own this canvas, it must survive us variable
/frameworks/base/graphics/java/android/graphics/
DGraphicBuffer.java59 private Canvas mCanvas; field in GraphicBuffer
177 if (mCanvas == null) { in lockCanvas()
178 mCanvas = new Canvas(); in lockCanvas()
181 if (nLockCanvas(mNativeObject, mCanvas, dirty)) { in lockCanvas()
182 mSaveCount = mCanvas.save(); in lockCanvas()
183 return mCanvas; in lockCanvas()
202 if (!mDestroyed && mCanvas != null && canvas == mCanvas) { in unlockCanvasAndPost()
206 nUnlockCanvasAndPost(mNativeObject, mCanvas); in unlockCanvasAndPost()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaProfileRenderer.cpp25 mCanvas->drawRect(rect, paint); in drawRect()
32 mCanvas->drawRect(rect, paint); in drawRects()
37 return mCanvas->imageInfo().width(); in getViewportWidth()
41 return mCanvas->imageInfo().height(); in getViewportHeight()
DSkiaProfileRenderer.h27 : mCanvas(canvas) {} in SkiaProfileRenderer()
38 SkCanvas* mCanvas;
/frameworks/base/graphics/java/android/graphics/pdf/
DPdfDocument.java385 private Canvas mCanvas; field in PdfDocument.Page
394 mCanvas = canvas; in Page()
431 return mCanvas; in getCanvas()
446 return mCanvas == null; in isFinished()
450 if (mCanvas != null) { in finish()
451 mCanvas.release(); in finish()
452 mCanvas = null; in finish()
/frameworks/base/core/java/android/view/
DSurface.java108 private final Canvas mCanvas = new CompatibleCanvas(); field in Surface
314 mLockedObject = nativeLockCanvas(mNativeObject, mCanvas, inOutDirty); in lockCanvas()
315 return mCanvas; in lockCanvas()
338 if (canvas != mCanvas) { in unlockSwCanvasAndPost()
713 private DisplayListCanvas mCanvas; field in Surface.HwuiContext
722 if (mCanvas != null) { in lockCanvas()
725 mCanvas = mRenderNode.start(width, height); in lockCanvas()
726 return mCanvas; in lockCanvas()
730 if (canvas != mCanvas) { in unlockAndPost()
734 mRenderNode.end(mCanvas); in unlockAndPost()
[all …]
DTextureView.java123 private Canvas mCanvas; field in TextureView
673 if (mCanvas == null) { in lockCanvas()
674 mCanvas = new Canvas(); in lockCanvas()
678 if (!nLockCanvas(mNativeWindow, mCanvas, dirty)) { in lockCanvas()
682 mSaveCount = mCanvas.save(); in lockCanvas()
684 return mCanvas; in lockCanvas()
699 if (mCanvas != null && canvas == mCanvas) { in unlockCanvasAndPost()
704 nUnlockCanvasAndPost(mNativeWindow, mCanvas); in unlockCanvasAndPost()
/frameworks/base/packages/WallpaperCropper/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 …]
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
DCustomSurfaceView.java46 private Canvas mCanvas; field in CustomSurfaceView
103 if (mCanvas != null) { in acquireCanvas()
107 mCanvas = mSurface.lockCanvas(null); in acquireCanvas()
114 if (mCanvas != null) { in releaseCanvas()
119 mSurface.unlockCanvasAndPost(mCanvas); in releaseCanvas()
120 mCanvas = null; in releaseCanvas()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
DAppCompatVectorDrawableIntegrationTest.java40 private Canvas mCanvas; field in AppCompatVectorDrawableIntegrationTest
55 mCanvas = new Canvas(mBitmap); in setup()
66 vectorDrawable.draw(mCanvas); in testVectorDrawableAutoMirrored()
80 vectorDrawable.draw(mCanvas); in testVectorDrawableAutoMirrored()
/frameworks/base/libs/hwui/utils/
DTestWindowContext.cpp91 mCanvas.reset(new android::uirenderer::RecordingCanvas(mSize.width(), mSize.height())); in TestWindowData()
96 mCanvas->clipRect(0, 0, mSize.width(), mSize.height(), SkClipOp::kReplace_deprecated); in prepareToDraw()
97 return mCanvas->asSkCanvas(); in prepareToDraw()
101 mRootNode->setStagingDisplayList(mCanvas->finishRecording()); in finishDrawing()
169 std::unique_ptr<android::uirenderer::RecordingCanvas> mCanvas; member in android::uirenderer::TestWindowContext::TestWindowData
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/util/
DDrawingTestHelper.java63 private final Canvas mCanvas; field in DrawingTestHelper
71 mCanvas = new Canvas(mBitmap); in DrawingTestHelper()
79 view.draw(mCanvas); in drawView()
/frameworks/base/core/tests/coretests/src/android/graphics/
DGraphicsPerformanceTests.java79 protected Canvas mCanvas; field in GraphicsPerformanceTests.GraphicsTestBase
91 mCanvas = new Canvas(mDestBitmap); in setUp()
183 mCanvas.drawBitmap(mBitmap, 0.0f, 0.0f, mPaint); in drawBitmapEven()
189 mCanvas.drawBitmap(mBitmap, 1.0f, 0.0f, mPaint); in drawBitmapOdd()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DRedEyeFilter.java50 private final Canvas mCanvas = new Canvas(); field in RedEyeFilter
158 mCanvas.setBitmap(redEyeBitmap); in createRedEyeFrame()
163 mCanvas.drawCircle(mCenters[i] * bitmapWidth, mCenters[i + 1] * bitmapHeight, in createRedEyeFrame()
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/
DBitmapRegionTileSource.java377 private Canvas mCanvas; field in BitmapRegionTileSource
486 if (mCanvas == null) { in getTileWithoutReusingBitmap()
487 mCanvas = new Canvas(); in getTileWithoutReusingBitmap()
489 mCanvas.setBitmap(result); in getTileWithoutReusingBitmap()
490 mCanvas.drawBitmap(bitmap, in getTileWithoutReusingBitmap()
493 mCanvas.setBitmap(null); in getTileWithoutReusingBitmap()
/frameworks/base/services/core/java/com/android/server/policy/
DIconUtilities.java55 private final Canvas mCanvas = new Canvas(); field in IconUtilities
82 mCanvas.setDrawFilter(new PaintFlagsDrawFilter(Paint.DITHER_FLAG, in IconUtilities()
147 final Canvas canvas = mCanvas; in createIconBitmap()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderSessionImpl.java128 private Canvas mCanvas; field in RenderSessionImpl
492 mCanvas = null; in renderAndBuildResult()
505 if (mNewRenderSize || mCanvas == null || disableBitmapCaching) { in renderAndBuildResult()
533 if (mCanvas == null) { in renderAndBuildResult()
535 mCanvas = new Canvas(bitmap); in renderAndBuildResult()
537 mCanvas.setBitmap(bitmap); in renderAndBuildResult()
539 mCanvas.setDensity(hardwareConfig.getDensity().getDpiValue()); in renderAndBuildResult()
568 renderResult = renderAndBuildResult(mViewRoot, mCanvas); in renderAndBuildResult()
1538 if (mCanvas != null) { in dispose()
1539 mCanvas.release(); in dispose()
[all …]
/frameworks/base/core/java/android/app/
DLauncherActivity.java254 private Canvas mCanvas = new Canvas(); field in LauncherActivity.IconResizer
257 mCanvas.setDrawFilter(new PaintFlagsDrawFilter(Paint.DITHER_FLAG, in IconResizer()
303 final Canvas canvas = mCanvas; in createIconThumbnail()
321 final Canvas canvas = mCanvas; in createIconThumbnail()
/frameworks/base/graphics/java/android/graphics/drawable/
DAdaptiveIconDrawable.java136 private final Canvas mCanvas; field in AdaptiveIconDrawable
161 mCanvas = new Canvas(); in AdaptiveIconDrawable()
337 mCanvas.setBitmap(mMaskBitmap); in updateMaskBoundsInternal()
339 mCanvas.drawPath(mMask, mPaint); in updateMaskBoundsInternal()
356 mCanvas.setBitmap(mLayersBitmap); in draw()
357 mCanvas.drawColor(Color.BLACK); in draw()
364 dr.draw(mCanvas); in draw()
/frameworks/support/graphics/drawable/static/tests/src/android/support/graphics/drawable/tests/
DVectorDrawableTest.java134 private Canvas mCanvas; field in VectorDrawableTest
143 mCanvas = new Canvas(mBitmap); in setup()
166 mVectorDrawable.draw(mCanvas); in verifyVectorDrawables()
/frameworks/support/graphics/drawable/animated/tests/src/android/support/graphics/drawable/tests/
DAnimatedVectorDrawableTest.java84 private Canvas mCanvas; field in AnimatedVectorDrawableTest
114 mCanvas = new Canvas(mBitmap); in setup()
141 mAnimatedVectorDrawable.draw(mCanvas); in testInflate()

12