/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | PictureTest.java | 81 private void verifyBalance(Picture picture) { in verifyBalance() argument 92 canvas.drawPicture(picture); in verifyBalance() 106 Picture picture = new Picture(); in testPicture() local 108 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testPicture() 111 picture.endRecording(); in testPicture() 115 picture.draw(canvas); in testPicture() 116 verifySize(picture); in testPicture() 119 Picture pic = new Picture(picture); in testPicture() 129 Picture picture = new Picture(); in testBeginRecordingTwice() local 130 picture.beginRecording(10, 10); in testBeginRecordingTwice() [all …]
|
D | BitmapTest.java | 618 Picture picture = new Picture(); in testCreateBitmap_Picture_immutable() local 619 Canvas canvas = picture.beginRecording(200, 100); in testCreateBitmap_Picture_immutable() 629 picture.endRecording(); in testCreateBitmap_Picture_immutable() 632 bitmap = Bitmap.createBitmap(picture); in testCreateBitmap_Picture_immutable() 635 bitmap = Bitmap.createBitmap(picture, 100, 100, Config.HARDWARE); in testCreateBitmap_Picture_immutable() 639 bitmap = Bitmap.createBitmap(picture, 100, 100, Config.ARGB_8888); in testCreateBitmap_Picture_immutable()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | PictureDrawableTest.java | 50 Picture picture = new Picture(); in testDraw() local 51 Canvas recodingCanvas = picture.beginRecording(100, 200); in testDraw() 53 picture.endRecording(); in testDraw() 54 pictureDrawable.setPicture(picture); in testDraw() 79 Picture picture = new Picture(); in testGetIntrinsicSize() local 80 picture.beginRecording(99, 101); in testGetIntrinsicSize() 82 pictureDrawable.setPicture(picture); in testGetIntrinsicSize() 125 Picture picture = new Picture(); in testAccessPicture() local 126 pictureDrawable.setPicture(picture); in testAccessPicture() 128 assertEquals(picture, pictureDrawable.getPicture()); in testAccessPicture()
|
D | DefaultFocusHighlightTest.java | 336 static PictureDrawable createPictureDrawable(Picture picture) { in createPictureDrawable() argument 337 PictureDrawable pictureDrawable = new PictureDrawable(picture); in createPictureDrawable()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | HardwareBitmapTests.java | 89 Picture picture = new Picture(); in testCreateFromPicture() local 91 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testCreateFromPicture() 96 picture.endRecording(); in testCreateFromPicture() 98 Bitmap hardwareBitmap = Bitmap.createBitmap(picture); in testCreateFromPicture() 112 Picture picture = new Picture(); in testReadbackThroughPicture() local 114 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testReadbackThroughPicture() 117 picture.endRecording(); in testReadbackThroughPicture() 119 assertTrue(picture.requiresHardwareAcceleration()); in testReadbackThroughPicture() 120 Bitmap result = Bitmap.createBitmap(picture, picture.getWidth(), picture.getHeight(), in testReadbackThroughPicture() 132 Picture picture = new Picture(); in testReadbackThroughPictureNoEndRecording() local [all …]
|
D | BitmapTests.java | 227 Picture picture = new Picture(); in testCreateFromPicture() local 229 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testCreateFromPicture() 234 picture.endRecording(); in testCreateFromPicture() 236 Bitmap bitmap = Bitmap.createBitmap(picture, picture.getWidth(), in testCreateFromPicture() 237 picture.getHeight(), Bitmap.Config.ARGB_8888); in testCreateFromPicture()
|
D | ExactCanvasTests.java | 182 Picture picture = new Picture(); in testTextOnPathUsingPicture() local 183 Canvas pictureCanvas = picture.beginRecording(90, 90); in testTextOnPathUsingPicture() 185 picture.endRecording(); in testTextOnPathUsingPicture() 186 picture.draw(canvas); in testTextOnPathUsingPicture()
|
D | CanvasTests.java | 220 Picture picture = new Picture(); in testDrawHwBitmap_inPictureCanvas_inSwCanvas() local 221 Canvas pictureCanvas = picture.beginRecording(100, 100); in testDrawHwBitmap_inPictureCanvas_inSwCanvas() 224 new Canvas(getMutableBitmap()).drawPicture(picture); in testDrawHwBitmap_inPictureCanvas_inSwCanvas()
|
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testinfrastructure/ |
D | CanvasClientView.java | 67 Picture picture = new Picture(); in onDraw() local 68 Canvas pictureCanvas = picture.beginRecording(ActivityTestBase.TEST_WIDTH, in onDraw() 72 picture.endRecording(); in onDraw() 73 picture.draw(canvas); in onDraw()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/ |
D | CanvasClientView.java | 67 Picture picture = new Picture(); in onDraw() local 68 Canvas pictureCanvas = picture.beginRecording(ActivityTestBase.TEST_WIDTH, in onDraw() 72 picture.endRecording(); in onDraw() 73 picture.draw(canvas); in onDraw()
|
/cts/tests/tests/notificationlegacy/notificationlegacy30/src/android/app/notification/legacy30/cts/ |
D | NotificationTemplateApi30Test.kt | 59 val picture = createBitmap(40, 30) in <lambda>() constant 65 .setStyle(Notification.BigPictureStyle().bigPicture(picture)) in <lambda>() 88 val picture = createBitmap(40, 30) in <lambda>() constant 93 .bigPicture(picture) in <lambda>() 112 val picture = createBitmap(40, 30) in <lambda>() constant 119 .bigPicture(picture) in <lambda>() 141 val picture = createBitmap(40, 30) in <lambda>() constant 147 .bigPicture(picture) in <lambda>()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | EmojiTest.java | 324 Picture picture = webViewOnUiThread.capturePicture(); in capture() local 325 if (picture == null || picture.getHeight() <= 0 || picture.getWidth() <= 0) { in capture() 328 Bitmap bitmap = Bitmap.createBitmap(picture.getWidth(), picture.getHeight(), in capture() 331 picture.draw(canvas); in capture()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | FastBasicsTest.java | 223 byte[] picture = listener.waitForPicture(); in testCamera1() 225 assertNotNull("No still picture received from camera", picture); in testCamera1() 227 Bitmap b = BitmapFactory.decodeByteArray(picture, 0, picture.length); in testCamera1()
|
/cts/libs/deviceutillegacy/src/android/webkit/cts/ |
D | WebViewSyncLoader.java | 446 public void onNewPicture(WebView view, Picture picture) { in onNewPicture() argument
|