/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewPerformanceTest.java | 40 private Canvas mCanvas; field in TextViewPerformanceTest 48 mCanvas = new Canvas(mBitmap); in setUp() 59 mLabelView.myDraw(mCanvas); in setUp() 62 mCanvas.save(); in setUp() 73 mTextView.myDraw(mCanvas); in testDrawTextViewLine() 74 mTextView.myDraw(mCanvas); in testDrawTextViewLine() 75 mTextView.myDraw(mCanvas); in testDrawTextViewLine() 76 mTextView.myDraw(mCanvas); in testDrawTextViewLine() 77 mTextView.myDraw(mCanvas); in testDrawTextViewLine() 78 mTextView.myDraw(mCanvas); in testDrawTextViewLine() [all …]
|
/frameworks/base/libs/hwui/ |
D | SkiaCanvas.cpp | 62 SkiaCanvas::SkiaCanvas(SkCanvas* canvas) : mCanvas(canvas) {} in SkiaCanvas() 66 mCanvas = mCanvasOwned.get(); in SkiaCanvas() 72 if (mCanvas != skiaCanvas) { in reset() 73 mCanvas = skiaCanvas; in reset() 86 mCanvas = mCanvasOwned.get(); in setBitmap() 97 return mCanvas->imageInfo().isOpaque(); in isOpaque() 101 return mCanvas->imageInfo().width(); in width() 105 return mCanvas->imageInfo().height(); in height() 113 return mCanvas->getSaveCount(); in getSaveCount() 117 int count = mCanvas->save(); in save() [all …]
|
D | SkiaCanvas.h | 47 virtual SkCanvas* asSkCanvas() override { return mCanvas; } in asSkCanvas() 160 void drawDrawable(SkDrawable* drawable) { mCanvas->drawDrawable(drawable); } in drawDrawable() 238 SkCanvas* mCanvas; // we do NOT own this canvas, it must survive us variable
|
/frameworks/base/graphics/java/android/graphics/ |
D | GraphicBuffer.java | 61 private Canvas mCanvas; field in GraphicBuffer 181 if (mCanvas == null) { in lockCanvas() 182 mCanvas = new Canvas(); in lockCanvas() 185 if (nLockCanvas(mNativeObject, mCanvas, dirty)) { in lockCanvas() 186 mSaveCount = mCanvas.save(); in lockCanvas() 187 return mCanvas; in lockCanvas() 206 if (!mDestroyed && mCanvas != null && canvas == mCanvas) { in unlockCanvasAndPost() 210 nUnlockCanvasAndPost(mNativeObject, mCanvas); in unlockCanvasAndPost()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaProfileRenderer.cpp | 25 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()
|
D | SkiaProfileRenderer.h | 26 explicit SkiaProfileRenderer(SkCanvas* canvas) : mCanvas(canvas) {} in SkiaProfileRenderer() 37 SkCanvas* mCanvas;
|
D | RenderNodeDrawable.cpp | 120 explicit MarkDraw(SkCanvas& canvas, RenderNode& node) : mCanvas(canvas), mNode(node) { in MarkDraw() 122 mNode.markDrawStart(mCanvas); in MarkDraw() 127 mNode.markDrawEnd(mCanvas); in ~MarkDraw() 132 SkCanvas& mCanvas; member in android::uirenderer::skiapipeline::MarkDraw
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/ |
D | BatteryMeterDrawableBaseTest.java | 44 private Canvas mCanvas; field in BatteryMeterDrawableBaseTest 63 mBatteryMeterDrawableBase.draw(mCanvas); in testDraw_hasPaddingAndBounds_drawWarningInCorrectPosition() 67 verify(mCanvas).drawText(eq("!"), eq(25f), eq(43.399998f), any(Paint.class)); in testDraw_hasPaddingAndBounds_drawWarningInCorrectPosition() 77 mBatteryMeterDrawableBase.draw(mCanvas); in testDraw_hasPaddingAndBounds_drawBatteryLevelInCorrectPosition() 81 verify(mCanvas).drawText(eq("20"), eq(25f), eq(42.6f), any(Paint.class)); in testDraw_hasPaddingAndBounds_drawBatteryLevelInCorrectPosition()
|
/frameworks/base/graphics/java/android/graphics/pdf/ |
D | PdfDocument.java | 388 private Canvas mCanvas; field in PdfDocument.Page 397 mCanvas = canvas; in Page() 434 return mCanvas; in getCanvas() 449 return mCanvas == null; in isFinished() 453 if (mCanvas != null) { in finish() 454 mCanvas.release(); in finish() 455 mCanvas = null; in finish()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
D | TiledImageView.java | 283 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/core/java/com/android/internal/app/ |
D | SimpleIconFactory.java | 72 private Canvas mCanvas; field in SimpleIconFactory 130 mCanvas = new Canvas(); in SimpleIconFactory() 131 mCanvas.setDrawFilter(new PaintFlagsDrawFilter(DITHER_FLAG, FILTER_BITMAP_FLAG)); in SimpleIconFactory() 183 mCanvas.setBitmap(bitmap); in createUserBadgedIconBitmap() 184 recreateIcon(Bitmap.createBitmap(bitmap), mCanvas); in createUserBadgedIconBitmap() local 185 mCanvas.setBitmap(null); in createUserBadgedIconBitmap() 241 mCanvas.setBitmap(bitmap); in createAppBadgedIconBitmap() 242 recreateIcon(Bitmap.createBitmap(bitmap), mCanvas); in createAppBadgedIconBitmap() local 250 mCanvas.drawBitmap(renderedAppIcon, mIconBitmapSize - mBadgeBitmapSize, in createAppBadgedIconBitmap() 254 mCanvas.setBitmap(null); in createAppBadgedIconBitmap() [all …]
|
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
D | CustomSurfaceView.java | 46 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/base/core/java/android/view/ |
D | TextureView.java | 129 private Canvas mCanvas; field in TextureView 683 if (mCanvas == null) { in lockCanvas() 684 mCanvas = new Canvas(); in lockCanvas() 688 if (!nLockCanvas(mNativeWindow, mCanvas, dirty)) { in lockCanvas() 692 mSaveCount = mCanvas.save(); in lockCanvas() 694 return mCanvas; in lockCanvas() 709 if (mCanvas != null && canvas == mCanvas) { in unlockCanvasAndPost() 714 nUnlockCanvasAndPost(mNativeWindow, mCanvas); in unlockCanvasAndPost()
|
D | Surface.java | 120 private final Canvas mCanvas = new CompatibleCanvas(); field in Surface 371 mLockedObject = nativeLockCanvas(mNativeObject, mCanvas, inOutDirty); in lockCanvas() 372 return mCanvas; in lockCanvas() 395 if (canvas != mCanvas) { in unlockSwCanvasAndPost() 910 private RecordingCanvas mCanvas; field in Surface.HwuiContext 923 if (mCanvas != null) { in lockCanvas() 926 mCanvas = mRenderNode.beginRecording(width, height); in lockCanvas() 927 return mCanvas; in lockCanvas() 931 if (canvas != mCanvas) { in unlockAndPost() 936 mCanvas = null; in unlockAndPost()
|
D | ViewDebug.java | 1943 private Canvas mCanvas; 1957 mCanvas = view.mAttachInfo.mCanvas; 1959 if (mCanvas == null) { 1960 mCanvas = new Canvas(); 1962 mEnabledHwBitmapsInSwMode = mCanvas.isHwBitmapsInSwModeEnabled(); 1963 mCanvas.setBitmap(mBitmap); 1964 return mCanvas; 1969 mCanvas.setBitmap(null); 1970 mCanvas.setHwBitmapsInSwModeEnabled(mEnabledHwBitmapsInSwMode);
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/util/ |
D | DrawingTestHelper.java | 64 private final Canvas mCanvas; field in DrawingTestHelper 72 mCanvas = new Canvas(mBitmap); in DrawingTestHelper() 80 view.draw(mCanvas); in drawView()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | GraphicsPerformanceTests.java | 80 protected Canvas mCanvas; field in GraphicsPerformanceTests.GraphicsTestBase 92 mCanvas = new Canvas(mDestBitmap); in setUp() 184 mCanvas.drawBitmap(mBitmap, 0.0f, 0.0f, mPaint); in drawBitmapEven() 190 mCanvas.drawBitmap(mBitmap, 1.0f, 0.0f, mPaint); in drawBitmapOdd()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
D | RedEyeFilter.java | 50 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/services/core/java/com/android/server/policy/ |
D | IconUtilities.java | 50 private final Canvas mCanvas = new Canvas(); field in IconUtilities 63 mCanvas.setDrawFilter(new PaintFlagsDrawFilter(Paint.DITHER_FLAG, in IconUtilities() 113 final Canvas canvas = mCanvas; in createIconBitmap()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderSessionImpl.java | 114 private Canvas mCanvas; field in RenderSessionImpl 477 mCanvas = null; in renderAndBuildResult() 491 if (mNewRenderSize || mCanvas == null || disableBitmapCaching) { in renderAndBuildResult() 519 if (mCanvas == null) { in renderAndBuildResult() 521 mCanvas = new Canvas(bitmap); in renderAndBuildResult() 523 mCanvas.setBitmap(bitmap); in renderAndBuildResult() 535 mCanvas.scale(scaleX, scaleY); in renderAndBuildResult() 538 mCanvas.setDensity(hardwareConfig.getDensity().getDpiValue()); in renderAndBuildResult() 567 renderResult = renderAndBuildResult(mViewRoot, mCanvas); in renderAndBuildResult() 1153 if (mCanvas != null) { in dispose() [all …]
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/ |
D | BitmapRegionTileSource.java | 377 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/core/java/android/app/ |
D | LauncherActivity.java | 254 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/ |
D | AdaptiveIconDrawable.java | 137 private final Canvas mCanvas; field in AdaptiveIconDrawable 165 mCanvas = new Canvas(); in AdaptiveIconDrawable() 358 mCanvas.setBitmap(mLayersBitmap); in draw() 359 mCanvas.drawColor(Color.BLACK); in draw() 366 dr.draw(mCanvas); in draw()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | KeyboardView.java | 256 private Canvas mCanvas; field in KeyboardView 667 mCanvas = new Canvas(mBuffer); in onBufferDraw() 675 mCanvas.save(); in onBufferDraw() 676 final Canvas canvas = mCanvas; in onBufferDraw() 770 mCanvas.restore(); in onBufferDraw() 1403 mCanvas = null; in closing()
|
/frameworks/base/core/java/android/widget/ |
D | StackView.java | 1388 private final Canvas mCanvas = new Canvas(); 1427 mCanvas.setBitmap(bitmap); 1437 v.draw(mCanvas); 1443 drawOutline(mCanvas, bitmap); 1444 mCanvas.setBitmap(null);
|