Home
last modified time | relevance | path

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

12345678910>>...26

/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/libs/hwui/jni/
Dandroid_graphics_DisplayListCanvas.cpp77 return reinterpret_cast<jlong>(Canvas::create_recording_canvas(width, height, renderNode)); in android_view_DisplayListCanvas_createDisplayListCanvas()
82 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_resetDisplayListCanvas()
97 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_enableZ()
103 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_finishRecording()
109 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_drawRenderNode()
115 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_drawTextureLayer()
123 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_drawRoundRectProps()
136 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_drawCircleProps()
148 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_drawRippleProps()
167 Canvas* canvas = reinterpret_cast<Canvas*>(canvasPtr); in android_view_DisplayListCanvas_drawWebViewFunctor()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/startingsurface/
DTaskSnapshotWindowTest.java36 import android.graphics.Canvas;
115 final Canvas mockCanvas = mock(Canvas.class); in fillEmptyBackground_fillHorizontally()
125 final Canvas mockCanvas = mock(Canvas.class); in fillEmptyBackground_fillVertically()
135 final Canvas mockCanvas = mock(Canvas.class); in fillEmptyBackground_fillBoth()
146 final Canvas mockCanvas = mock(Canvas.class); in fillEmptyBackground_dontFill_sameSize()
156 final Canvas mockCanvas = mock(Canvas.class); in fillEmptyBackground_dontFill_bitmapLarger()
225 final Canvas mockCanvas = mock(Canvas.class); in testDrawStatusBarBackground()
237 final Canvas mockCanvas = mock(Canvas.class); in testDrawStatusBarBackground_nullFrame()
249 final Canvas mockCanvas = mock(Canvas.class); in testDrawStatusBarBackground_nope()
262 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/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/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 Paint&)> ops[] = { in createContent()
34 [](Canvas& canvas, float size, const Paint& paint) { in createContent()
37 [](Canvas& canvas, float size, const Paint& paint) { in createContent()
40 [](Canvas& canvas, float size, const Paint& paint) { in createContent()
49 [](Canvas& canvas, float size, const Paint& paint) { in createContent()
53 [](Canvas& canvas, float size, const Paint& paint) { in createContent()
57 [](Canvas& canvas, float size, const Paint& paint) { in createContent()
60 [](Canvas& canvas, float size, const Paint& 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 Paint& 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()
134 Canvas* canvas;
141 void Canvas::drawGlyphs(const minikin::Font& font, const int* glyphIds, const float* positions, in drawGlyphs()
161 void Canvas::drawText(const uint16_t* text, int textSize, int start, int count, int contextStart, in drawText()
186 void Canvas::drawDoubleRoundRectXY(float outerLeft, float outerTop, float outerRight, in drawDoubleRoundRectXY()
202 void Canvas::drawDoubleRoundRectRadii(float outerLeft, float outerTop, float outerRight, in drawDoubleRoundRectRadii()
223 DrawTextOnPathFunctor(const minikin::Layout& layout, Canvas* canvas, float hOffset, in DrawTextOnPathFunctor()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
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()
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()
DPenStylusActivity.kt22 import android.graphics.Canvas
41 private var mCanvas: Canvas?
58 fun lockCanvas(rect: Rect?): Canvas { in lockCanvas()
66 fun unlockCanvas(canvas: Canvas) { in unlockCanvas()
73 inline fun update(area: Rect?, func: Canvas.() -> Unit) { in update()
/frameworks/base/core/java/android/view/
DSurfaceHolder.java21 import android.graphics.Canvas;
253 public Canvas lockCanvas(); in lockCanvas()
267 public Canvas lockCanvas(Rect dirty); in lockCanvas()
279 default Canvas lockHardwareCanvas() { in lockHardwareCanvas()
293 public void unlockCanvasAndPost(Canvas canvas); in unlockCanvasAndPost()
/frameworks/base/graphics/java/android/graphics/
DGraphicBuffer.java63 private Canvas mCanvas;
153 public Canvas lockCanvas() { in lockCanvas()
172 public Canvas lockCanvas(Rect dirty) { in lockCanvas()
178 mCanvas = new Canvas(); in lockCanvas()
201 public void unlockCanvasAndPost(Canvas canvas) { in unlockCanvasAndPost()
301 private static native boolean nLockCanvas(long nativeObject, Canvas canvas, Rect dirty); in nLockCanvas()
302 private static native boolean nUnlockCanvasAndPost(long nativeObject, Canvas canvas); in nUnlockCanvasAndPost()
/frameworks/base/libs/hwui/apex/
DTypeCast.h27 class Canvas; variable
44 static inline Canvas* toCanvas(ACanvas* canvas) { in toCanvas()
45 return reinterpret_cast<Canvas*>(canvas); in toCanvas()
48 static inline ACanvas* toACanvas(Canvas* canvas) { in toACanvas()
/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/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DMediaNotificationProcessorTest.java23 import android.graphics.Canvas;
62 Canvas canvas = new Canvas(mArtwork); in findBackgroundSwatch_white()
74 Canvas canvas = new Canvas(mArtwork); in findBackgroundSwatch_red()
/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/core/tests/coretests/src/com/android/internal/policy/
DDecorViewTest.java23 import android.graphics.Canvas;
56 Canvas testCanvas = new Canvas(expectedBitmap); in setBackgroundDrawableSameAsSetWindowBackground()
64 Canvas resCanvas = new Canvas(resultBitmap); in setBackgroundDrawableSameAsSetWindowBackground()
/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/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/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/base/core/java/com/android/internal/widget/helper/
DItemTouchUIUtil.java19 import android.graphics.Canvas;
43 void onDraw(Canvas c, RecyclerView recyclerView, View view, in onDraw()
50 void onDrawOver(Canvas c, RecyclerView recyclerView, View view, in onDrawOver()

12345678910>>...26