Home
last modified time | relevance | path

Searched refs:Canvas (Results 1 – 25 of 536) sorted by relevance

12345678910>>...22

/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DDisplayModifier.java22 import android.graphics.Canvas;
40 abstract public void modifyDrawing(Paint paint, Canvas canvas); in modifyDrawing()
85 public void modifyDrawing(Paint paint, Canvas canvas) {
91 public void modifyDrawing(Paint paint, Canvas canvas) {
101 public void modifyDrawing(Paint paint, Canvas canvas) {
107 public void modifyDrawing(Paint paint, Canvas canvas) {
115 public void modifyDrawing(Paint paint, Canvas canvas) {
128 public void modifyDrawing(Paint paint, Canvas canvas) {
136 public void modifyDrawing(Paint paint, Canvas canvas) {
142 public void modifyDrawing(Paint paint, Canvas canvas) {
[all …]
/frameworks/base/core/jni/
Dandroid_view_DisplayListCanvas.cpp95 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_callDrawGLFunction()
110 return reinterpret_cast<jlong>(Canvas::create_recording_canvas(width, height, renderNode)); in android_view_DisplayListCanvas_createDisplayListCanvas()
115 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_resetDisplayListCanvas()
126 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_insertReorderBarrier()
131 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_finishRecording()
136 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_drawRenderNode()
142 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_drawTextureLayer()
150 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_drawRoundRectProps()
163 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_drawCircleProps()
172 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_drawWebViewFunctor()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskSnapshotSurfaceTest.java36 import android.graphics.Canvas;
93 final Canvas mockCanvas = mock(Canvas.class); in fillEmptyBackground_fillHorizontally()
103 final Canvas mockCanvas = mock(Canvas.class); in fillEmptyBackground_fillVertically()
113 final Canvas mockCanvas = mock(Canvas.class); in fillEmptyBackground_fillBoth()
124 final Canvas mockCanvas = mock(Canvas.class); in fillEmptyBackground_dontFill_sameSize()
134 final Canvas mockCanvas = mock(Canvas.class); in fillEmptyBackground_dontFill_bitmapLarger()
188 final Canvas mockCanvas = mock(Canvas.class); in testDrawStatusBarBackground()
201 final Canvas mockCanvas = mock(Canvas.class); in testDrawStatusBarBackground_nullFrame()
214 final Canvas mockCanvas = mock(Canvas.class); in testDrawStatusBarBackground_nope()
228 final Canvas mockCanvas = mock(Canvas.class); in testDrawNavigationBarBackground()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DBatteryMeterDrawableTest.java30 import android.graphics.Canvas;
58 final Canvas canvas = mock(Canvas.class); in testDrawImageButNoTextIfPluggedIn()
68 final Canvas canvas = mock(Canvas.class); in testDrawTextIfNotPluggedIn()
78 final Canvas canvas = mock(Canvas.class); in testDrawNoTextIfPowerSaveEnabled()
89 final Canvas canvas = mock(Canvas.class); in testDrawTextWarningAtCriticalLevel()
101 final Canvas canvas = mock(Canvas.class); in testDrawTextNoWarningAboveCriticalLevel()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DAlphaLayersActivity.java21 import android.graphics.Canvas;
65 protected void onDraw(Canvas canvas) { in onDraw()
80 public void dispatchDraw(Canvas canvas) { in dispatchDraw()
90 Canvas.EdgeType.BW)); in dispatchDraw()
92 Canvas.EdgeType.BW)); in dispatchDraw()
100 Canvas.EdgeType.BW)); in dispatchDraw()
102 Canvas.EdgeType.BW)); in dispatchDraw()
110 Canvas.EdgeType.BW)); in dispatchDraw()
112 Canvas.EdgeType.BW)); in dispatchDraw()
129 Canvas.HAS_ALPHA_LAYER_SAVE_FLAG | Canvas.CLIP_TO_LAYER_SAVE_FLAG); in dispatchDraw()
DLayersActivity.java21 import android.graphics.Canvas;
48 protected void onDraw(Canvas canvas) { in onDraw()
56 Canvas.ALL_SAVE_FLAG); in onDraw()
66 Canvas.ALL_SAVE_FLAG); in onDraw()
83 Canvas.ALL_SAVE_FLAG); in onDraw()
100 Canvas.ALL_SAVE_FLAG); in onDraw()
DNewLayersActivity.java21 import android.graphics.Canvas;
49 protected void onDraw(Canvas canvas) { in onDraw()
56 drawStuff(canvas, Canvas.ALL_SAVE_FLAG); in onDraw()
59 drawStuff(canvas, Canvas.HAS_ALPHA_LAYER_SAVE_FLAG); in onDraw()
64 private void drawStuff(Canvas canvas, int saveFlags) { in drawStuff()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DGlifPatternDrawableTest.java23 import android.graphics.Canvas;
51 final Canvas canvas = new Canvas(bitmap); in testDraw()
68 final Canvas canvas = new Canvas(bitmap); in testDrawTwice()
87 final Canvas canvas = new Canvas(); in testScaleToCanvasSquare()
103 final Canvas canvas = new Canvas(); in testScaleToCanvasTall()
120 final Canvas canvas = new Canvas(); in testScaleToCanvasWide()
137 final Canvas canvas = new Canvas(); in testScaleToCanvasMaxSize()
/frameworks/base/libs/hwui/tests/microbench/
DDisplayListCanvasBench.cpp46 std::unique_ptr<Canvas> canvas(Canvas::create_recording_canvas(100, 100)); in BM_DisplayListCanvas_record_empty()
58 std::unique_ptr<Canvas> canvas(Canvas::create_recording_canvas(100, 100)); in BM_DisplayListCanvas_record_saverestore()
74 std::unique_ptr<Canvas> canvas(Canvas::create_recording_canvas(100, 100)); in BM_DisplayListCanvas_record_translate()
93 std::unique_ptr<Canvas> canvas(Canvas::create_recording_canvas(100, 100)); in BM_DisplayListCanvas_record_simpleBitmapView()
123 std::unique_ptr<Canvas> canvas(Canvas::create_recording_canvas(100, 100)); in BM_DisplayListCanvas_basicViewGroupDraw()
/frameworks/base/libs/hwui/tests/common/scenes/
DShapeAnimation.cpp30 void createContent(int width, int height, Canvas& canvas) override { in createContent()
32 0, 0, width, height, [width](RenderProperties& props, Canvas& canvas) { in createContent()
33 std::function<void(Canvas&, float, const SkPaint&)> ops[] = { in createContent()
34 [](Canvas& canvas, float size, const SkPaint& paint) { in createContent()
37 [](Canvas& canvas, float size, const SkPaint& paint) { in createContent()
40 [](Canvas& canvas, float size, const SkPaint& paint) { in createContent()
49 [](Canvas& canvas, float size, const SkPaint& paint) { in createContent()
53 [](Canvas& canvas, float size, const SkPaint& paint) { in createContent()
57 [](Canvas& canvas, float size, const SkPaint& paint) { in createContent()
60 [](Canvas& canvas, float size, const SkPaint& paint) { in createContent()
DTvApp.cpp66 void createContent(int width, int height, Canvas& canvas) override { in createContent()
94 sp<RenderNode> createBitmapNode(Canvas& canvas, SkColor color, int left, int top, int width, in createBitmapNode()
98 [this, width, height, color](RenderProperties& props, Canvas& canvas) { in createBitmapNode()
106 sp<RenderNode> createSharedBitmapNode(Canvas& canvas, int left, int top, int width, int height, in createSharedBitmapNode()
109 [bitmap](RenderProperties& props, Canvas& canvas) { in createSharedBitmapNode()
114 sp<RenderNode> createInfoNode(Canvas& canvas, int left, int top, int width, int height, in createInfoNode()
117 [text, text2](RenderProperties& props, Canvas& canvas) { in createInfoNode()
132 sp<RenderNode> createColorNode(Canvas& canvas, int left, int top, int width, int height, in createColorNode()
135 [color](RenderProperties& props, Canvas& canvas) { in createColorNode()
150 Canvas& canvas) { in createCard()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DRenderNodeTests.cpp42 auto child = TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in TEST()
46 [&child](RenderProperties& props, Canvas& canvas) { in TEST()
55 TestUtils::recordNode(*parent, [](Canvas& canvas) { in TEST()
69 auto child = TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in TEST()
73 [&child](RenderProperties& props, Canvas& canvas) { in TEST()
89 TestUtils::recordNode(*parent, [](Canvas& canvas) { in TEST()
105 TestUtils::recordNode(*child, [](Canvas& canvas) { in TEST()
113 [&child](Canvas& canvas) { canvas.drawRenderNode(child.get()); }); in TEST()
131 auto child = TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in TEST()
135 [&child](RenderProperties& props, Canvas& canvas) { in TEST()
[all …]
/frameworks/base/libs/hwui/hwui/
DCanvas.cpp32 Canvas* Canvas::create_recording_canvas(int width, int height, uirenderer::RenderNode* renderNode) { in create_recording_canvas()
37 const SkPaint& paint, Canvas* canvas) { in drawStroke()
43 void Canvas::drawTextDecorations(float x, float y, float length, const Paint& paint) { in drawTextDecorations()
86 DrawTextFunctor(const minikin::Layout& layout, Canvas* canvas, const Paint& paint, float x, in DrawTextFunctor()
143 Canvas* canvas;
151 void Canvas::drawText(const uint16_t* text, int textSize, int start, int count, int contextStart, in drawText()
177 void Canvas::drawDoubleRoundRectXY(float outerLeft, float outerTop, float outerRight, in drawDoubleRoundRectXY()
193 void Canvas::drawDoubleRoundRectRadii(float outerLeft, float outerTop, float outerRight, in drawDoubleRoundRectRadii()
214 DrawTextOnPathFunctor(const minikin::Layout& layout, Canvas* canvas, float hOffset, in DrawTextOnPathFunctor()
229 Canvas* canvas;
[all …]
/frameworks/base/core/java/android/view/
DSurfaceHolder.java19 import android.graphics.Canvas;
249 public Canvas lockCanvas(); in lockCanvas()
263 public Canvas lockCanvas(Rect dirty); in lockCanvas()
275 default Canvas lockHardwareCanvas() { in lockHardwareCanvas()
289 public void unlockCanvasAndPost(Canvas canvas); in unlockCanvasAndPost()
DSurface.java23 import android.graphics.Canvas;
65 private static native long nativeLockCanvas(long nativeObject, Canvas canvas, Rect dirty) in nativeLockCanvas()
67 private static native void nativeUnlockCanvasAndPost(long nativeObject, Canvas canvas); in nativeUnlockCanvasAndPost()
122 private final Canvas mCanvas = new CompatibleCanvas();
362 public Canvas lockCanvas(Rect inOutDirty) in lockCanvas()
384 public void unlockCanvasAndPost(Canvas canvas) { in unlockCanvasAndPost()
396 private void unlockSwCanvasAndPost(Canvas canvas) { in unlockSwCanvasAndPost()
435 public Canvas lockHardwareCanvas() { in lockHardwareCanvas()
468 public Canvas lockHardwareWideColorGamutCanvas() { in lockHardwareWideColorGamutCanvas()
488 public void unlockCanvas(Canvas canvas) { in unlockCanvas()
[all …]
DTextureView.java23 import android.graphics.Canvas;
129 private Canvas mCanvas;
338 public final void draw(Canvas canvas) { in draw()
367 protected final void onDraw(Canvas canvas) { in onDraw()
657 public Canvas lockCanvas() { in lockCanvas()
680 public Canvas lockCanvas(Rect dirty) { in lockCanvas()
684 mCanvas = new Canvas(); in lockCanvas()
708 public void unlockCanvasAndPost(Canvas canvas) { in unlockCanvasAndPost()
858 private static native boolean nLockCanvas(long nativeWindow, Canvas canvas, Rect dirty); in nLockCanvas()
859 private static native void nUnlockCanvasAndPost(long nativeWindow, Canvas canvas); in nUnlockCanvasAndPost()
/frameworks/base/graphics/java/android/graphics/
DGraphicBuffer.java61 private Canvas mCanvas;
157 public Canvas lockCanvas() { in lockCanvas()
176 public Canvas lockCanvas(Rect dirty) { in lockCanvas()
182 mCanvas = new Canvas(); in lockCanvas()
205 public void unlockCanvasAndPost(Canvas canvas) { in unlockCanvasAndPost()
305 private static native boolean nLockCanvas(long nativeObject, Canvas canvas, Rect dirty); in nLockCanvas()
306 private static native boolean nUnlockCanvasAndPost(long nativeObject, Canvas canvas); in nUnlockCanvasAndPost()
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
DHealing.java20 import android.graphics.Canvas;
52 Canvas c = new Canvas(bitmap); in buildMask()
102 Canvas undoCanvas = new Canvas(mUndoBitmap); in heal()
106 Canvas c = new Canvas(output); in heal()
179 Canvas undoCanvas = new Canvas(mUndoBitmap); in heal_orig()
183 Canvas c = new Canvas(output); in heal_orig()
/frameworks/base/core/java/com/android/internal/view/
DBaseSurfaceHolder.java19 import android.graphics.Canvas;
157 public Canvas lockCanvas() { in lockCanvas()
162 public Canvas lockCanvas(Rect dirty) { in lockCanvas()
167 public Canvas lockHardwareCanvas() { in lockHardwareCanvas()
171 private final Canvas internalLockCanvas(Rect dirty, boolean hardware) { in internalLockCanvas()
180 Canvas c = null; in internalLockCanvas()
225 public void unlockCanvasAndPost(Canvas canvas) { in unlockCanvasAndPost()
/frameworks/base/apct-tests/perftests/core/src/android/widget/
DTextViewPrecomputedTextPerfTest.java22 import android.graphics.Canvas;
65 public void onDraw(Canvas canvas) { in onDraw()
95 Canvas.freeTextLayoutCaches(); in testNewLayout_RandomText()
115 Canvas.freeTextLayoutCaches(); in testNewLayout_RandomText_Selectable()
137 Canvas.freeTextLayoutCaches(); in testNewLayout_PrecomputedText()
160 Canvas.freeTextLayoutCaches(); in testNewLayout_PrecomputedText_Selectable()
178 Canvas.freeTextLayoutCaches(); in testSetText_RandomText()
196 Canvas.freeTextLayoutCaches(); in testSetText_RandomText_Selectable()
216 Canvas.freeTextLayoutCaches(); in testSetText_PrecomputedText()
237 Canvas.freeTextLayoutCaches(); in testSetText_PrecomputedText_Selectable()
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/view/
DRecentsTransition.java22 import android.graphics.Canvas;
90 return createHardwareBitmap(width, height, new Consumer<Canvas>() {
92 public void accept(Canvas c) {
108 public static Bitmap createHardwareBitmap(int width, int height, Consumer<Canvas> consumer) {
110 final Canvas canvas = picture.beginRecording(width, height);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DMediaArtworkProcessorTest.kt22 import android.graphics.Canvas
64 Canvas(artwork).drawColor(Color.BLUE) in testProcessArtwork()
77 Canvas(artwork).drawColor(Color.BLUE) in testCache()
90 Canvas(artwork).drawColor(Color.BLUE) in testConfig()
101 Canvas(artwork).drawColor(Color.BLUE) in testRecycledArtwork()
/frameworks/base/apct-tests/perftests/core/src/android/text/
DPaintMeasureDrawPerfTest.java18 import android.graphics.Canvas;
80 Canvas.freeTextLayoutCaches(); in timeMeasure()
87 if (!mCached) Canvas.freeTextLayoutCaches(); in timeMeasure()
102 Canvas.freeTextLayoutCaches(); in timeDraw()
113 if (!mCached) Canvas.freeTextLayoutCaches(); in timeDraw()
/frameworks/layoutlib/bridge/src/android/view/
DSurfaceView.java22 import android.graphics.Canvas;
106 public Canvas lockCanvas() {
111 public Canvas lockCanvas(Rect dirty) {
116 public void unlockCanvasAndPost(Canvas canvas) {
/frameworks/base/graphics/java/android/graphics/pdf/
DPdfDocument.java20 import android.graphics.Canvas;
121 Canvas canvas = new PdfCanvas(nativeStartPage(mNativeDocument, pageInfo.mPageWidth, in startPage()
252 private final class PdfCanvas extends Canvas {
388 private Canvas mCanvas;
396 private Page(Canvas canvas, PageInfo pageInfo) { in Page()
433 public Canvas getCanvas() { in getCanvas()

12345678910>>...22