Home
last modified time | relevance | path

Searched defs:canvas (Results 1 – 25 of 188) sorted by relevance

12345678

/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DPaintTests.kt53 val canvas = Canvas(bitmap) in <lambda>() constant
84 paint, canvas -> in <lambda>() method
91 paint, canvas -> in <lambda>() method
100 paint, canvas -> in <lambda>() method
106 paint, canvas -> in <lambda>() method
112 paint, canvas -> in <lambda>() method
120 paint, canvas -> in <lambda>() method
126 paint, canvas -> in <lambda>() method
137 paint, canvas -> in <lambda>() method
143 paint, canvas -> in <lambda>() method
[all …]
DRenderNodeTests.java130 Canvas canvas = renderNode.beginRecording(); in testBasicDraw() local
156 Canvas canvas = renderNode.beginRecording(); in testAlphaOverlappingRendering() local
177 Canvas canvas = renderNode.beginRecording(); in testAlphaNonOverlappingRendering() local
196 Canvas canvas = renderNode.beginRecording(); in testUseCompositingLayer() local
323 RecordingCanvas canvas = renderNode.beginRecording(); in testStartEndRecordingEmpty() local
336 RecordingCanvas canvas = renderNode.beginRecording(); in testStartEndRecordingWithBounds() local
348 RecordingCanvas canvas = renderNode.beginRecording(5, 10); in testStartEndRecordingEmptyWithSize() local
361 RecordingCanvas canvas = renderNode.beginRecording(5, 10); in testStartEndRecordingWithBoundsWithSize() local
666 public void draw(@NonNull Canvas canvas) { in draw()
715 Canvas canvas = renderNode.beginRecording(); in testBlurRenderEffectImplicitInput() local
[all …]
DHardwareBitmapTests.java91 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testCreateFromPicture() local
114 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testReadbackThroughPicture() local
134 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testReadbackThroughPictureNoEndRecording() local
152 Canvas canvas = picture.beginRecording(bitmap.getWidth(), bitmap.getHeight()); in testCreateScaledBitmapFromPicture() local
206 }, true).addCanvasClient((canvas, width, height) -> { in testSetDensity() argument
286 }, true).addCanvasClient((canvas, width, height) -> { in testCompressHardware() argument
316 }, true).addCanvasClient((canvas, width, height) -> { in testBitmapCopy() argument
DRuntimeShaderTests.kt209 { canvas: Canvas, width: Int, height: Int -> canvas.drawRect(rect, paint) }, in <lambda>() method
224 { canvas: Canvas, width: Int, height: Int -> canvas.drawRect(rect, paint) }, in <lambda>() method
238 { canvas: Canvas, width: Int, height: Int -> canvas.drawRect(rect, paint) }, in <lambda>() method
255 { canvas: Canvas, width: Int, height: Int -> canvas.drawRect(rect, paint) }, in <lambda>() method
274 { canvas: Canvas, width: Int, height: Int -> canvas.drawRect(rect, paint) }, in <lambda>() method
305 { canvas: Canvas, width: Int, height: Int -> canvas.drawRect(rect, paint) }, in <lambda>() method
314 { canvas: Canvas, width: Int, height: Int -> canvas.drawRect(rect, paint) }, in <lambda>() method
352 { canvas: Canvas, width: Int, height: Int -> canvas.drawRect(rect, paint) }, in <lambda>() method
359 { canvas: Canvas, width: Int, height: Int -> canvas.drawRect(rect, paint) }, in <lambda>() method
375 { canvas: Canvas, width: Int, height: Int -> canvas.drawRect(rect, paint) }, in <lambda>() method
[all …]
DColorSpaceTests.java194 RecordingCanvas canvas = content.beginRecording(); in testEmojiRespectsColorSpace() local
264 RecordingCanvas canvas = content.beginRecording(); in testMultiAtlasGlyphsWithColorSpace() local
310 private void drawAsset(@NonNull Canvas canvas, Bitmap bitmap) { in drawAsset()
353 private void drawTranslucentAsset(@NonNull Canvas canvas, Bitmap bitmap) { in drawTranslucentAsset()
364 Canvas canvas = new Canvas(bitmap); in transformViaBitmap() local
DAutofillHighlightTests.java44 Canvas canvas = new Canvas(goldenBitmap); in testHighlightedFrameLayout() local
DEdgeEffectTests.java336 RecordingCanvas canvas = node.beginRecording(); in testNoSetSizeCallDoesNotCrash() local
350 RecordingCanvas canvas = node.beginRecording(); in testInvalidPullDistanceDoesNotCrash() local
369 RecordingCanvas canvas = node.beginRecording(); in testAbsorbThenDrawDoesNotCrash() local
448 public void draw(Canvas canvas) { in draw()
502 Canvas canvas = renderNode.beginRecording(); in testStretchPullAndHold() local
540 Canvas canvas = renderNode.beginRecording(); local
DAlphaBlendTest.java46 protected void onDraw(Canvas canvas) { in onDraw()
/cts/tests/tests/graphics/src/android/graphics/cts/
DPictureTest.java54 Canvas canvas = original.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testSaveRestoreBalance() local
72 private void createImbalance(Canvas canvas) { in createImbalance()
83 Canvas canvas = new Canvas(bitmap); in verifyBalance() local
108 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testPicture() local
139 private void drawPicture(Canvas canvas) { in drawPicture()
DBitmapShaderTest.java77 Canvas canvas = new Canvas(b); in testBitmapShader() local
126 Canvas canvas = new Canvas(dstBitmap); in testClamp() local
149 Canvas canvas = new Canvas(dstBitmap); in testRepeat() local
172 Canvas canvas = new Canvas(dstBitmap); in testMirror() local
204 Canvas canvas = new Canvas(dstBitmap); in testFiltering() local
256 Canvas canvas = new Canvas(Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_8888)); in testRecycledBitmapThrowsISE() local
279 Canvas canvas = new Canvas(result); in testBitmapShaderAppliesGainmapHLG() local
DComposeShaderTest.java57 Canvas canvas = new Canvas(bitmap); in testPorterDuff() local
90 Canvas canvas = new Canvas(bitmap); in testBlendMode() local
129 Canvas canvas = new Canvas(bitmap); in testXfermode() local
158 Canvas canvas = new Canvas(bitmap); in testChildLocalMatrix() local
DHardwareRendererTest.java68 Canvas canvas = surface.lockHardwareCanvas(); in lockHardwareCanvasSingleBuffer() local
94 Canvas canvas = content.beginRecording(); in hardwareBufferRendererLeakTest() local
DPorterDuffXfermodeTest.java49 Canvas canvas = new Canvas(target); in testPorterDuffXfermode() local
/cts/tests/tests/text/src/android/text/cts/
DLayoutDrawOrderTest.java82 Canvas canvas = mock(Canvas.class); in prepareMockCanvas() local
108 Canvas canvas = prepareMockCanvas(); in testBoringLayout_testDrawOrder_Selection_on_top_of_Highlight() local
128 Canvas canvas = prepareMockCanvas(); in testStaticLayout_testDrawOrder_Selection_on_top_of_Highlight() local
148 Canvas canvas = prepareMockCanvas(); in testDynamicLayout_testDrawOrder_Selection_on_top_of_Highlight() local
168 Canvas canvas = prepareMockCanvas(); in testStaticLayout_testDrawOrder_Highlight_on_top_of_Background() local
198 Canvas canvas = prepareMockCanvas(); in testDynamicLayout_testDrawOrder_Highlight_on_top_of_Background() local
DLayoutUseBoundsUtil.kt27 val canvas = Mockito.mock(Canvas::class.java) in getDrawingHorizontalOffset() constant
DControlCharacterGlyphTest.java39 Canvas canvas = new Canvas(bmp); in testLineBreakDrawsNothing() local
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewHighlightTest.java75 Canvas canvas = mock(Canvas.class); in prepareMockCanvas() local
141 Canvas canvas = prepareMockCanvas(textView); in drawRect() local
173 Canvas canvas = prepareMockCanvas(textView); in drawRectMultiple() local
208 Canvas canvas = prepareMockCanvas(textView); in drawRectCollapsed() local
238 Canvas canvas = prepareMockCanvas(textView); in drawRect_EditText() local
270 Canvas canvas = prepareMockCanvas(textView); in drawRectMultiple_EditText() local
307 Canvas canvas = prepareMockCanvas(textView); in drawRect_afterTextChange() local
DTextViewSearchResultHighlightTest.java74 Canvas canvas = mock(Canvas.class); in prepareMockCanvas() local
180 Canvas canvas = prepareMockCanvas(textView); in drawRect() local
211 Canvas canvas = prepareMockCanvas(textView); in drawWithHighlight() local
242 Canvas canvas = prepareMockCanvas(textView); in drawWithFocused() local
/cts/tests/tests/uirendering/src/android/uirendering/cts/blendmode/
DBitmapBlendModeCanvasClient.java65 public void draw(Canvas canvas, int width, int height) { in draw()
80 Canvas canvas = new Canvas(bitmap); in createBitmap() local
/cts/tests/tests/uirendering27/src/android/uirendering/cts/blendmode/
DBitmapBlendModeCanvasClient.java65 public void draw(Canvas canvas, int width, int height) { in draw()
80 Canvas canvas = new Canvas(bitmap); in createBitmap() local
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testinfrastructure/
DCanvasClient.java27 void draw(Canvas canvas, int width, int height); in draw()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DCanvasClient.java27 void draw(Canvas canvas, int width, int height); in draw()
DDisplayModifier.java420 abstract public void modifyDrawing(Paint paint, Canvas canvas); in modifyDrawing()
503 public void modifyDrawing(Canvas canvas, Paint paint) { in modifyDrawing()
563 public void modifyDrawing(Paint paint, Canvas canvas) { in modifyDrawing()
577 public void modifyDrawing(Paint paint, Canvas canvas) { in modifyDrawing()
/cts/tests/tests/text/src/android/text/style/cts/
DDynamicDrawableSpanTest.java85 Canvas canvas = new Canvas(); in testDraw() local
107 final Canvas canvas = new Canvas(bitmap); in testCenterAligned() local
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
DShapeTest.java112 Canvas canvas = new Canvas(bitmap); in testDraw() local
139 public void draw(Canvas canvas, Paint paint) { in draw()

12345678