/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | PictureTest.java | 95 private void verifyBalance(Picture picture) { in verifyBalance() argument 106 canvas.drawPicture(picture); in verifyBalance() 120 Picture picture = new Picture(); in testPicture() local 123 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testPicture() 126 picture.endRecording(); in testPicture() 130 picture.draw(canvas); in testPicture() 131 verifySize(picture); in testPicture() 134 picture.writeToStream(bout); in testPicture() 135 picture = Picture.createFromStream(new ByteArrayInputStream(bout.toByteArray())); in testPicture() 140 picture.draw(canvas); in testPicture() [all …]
|
D | CanvasTest.java | 1688 Picture picture = new Picture(); in testDrawHwBitmap_inPictureCanvas_inSwCanvas() local 1689 Canvas pictureCanvas = picture.beginRecording(100, 100); in testDrawHwBitmap_inPictureCanvas_inSwCanvas() 1691 mCanvas.drawPicture(picture); // we verify this specific call should IAE in testDrawHwBitmap_inPictureCanvas_inSwCanvas()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | PictureDrawableTest.java | 49 Picture picture = new Picture(); in testDraw() local 50 Canvas recodingCanvas = picture.beginRecording(100, 200); in testDraw() 52 picture.endRecording(); in testDraw() 53 pictureDrawable.setPicture(picture); in testDraw() 78 Picture picture = new Picture(); in testGetIntrinsicSize() local 79 picture.beginRecording(99, 101); in testGetIntrinsicSize() 81 pictureDrawable.setPicture(picture); in testGetIntrinsicSize() 124 Picture picture = new Picture(); in testAccessPicture() local 125 pictureDrawable.setPicture(picture); in testAccessPicture() 127 assertEquals(picture, pictureDrawable.getPicture()); in testAccessPicture()
|
D | DefaultFocusHighlightTest.java | 335 static PictureDrawable createPictureDrawable(Picture picture) { in createPictureDrawable() argument 336 PictureDrawable pictureDrawable = new PictureDrawable(picture); in createPictureDrawable()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | HardwareBitmapTests.java | 88 Picture picture = new Picture(); in testCreateFromPicture() local 90 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testCreateFromPicture() 95 picture.endRecording(); in testCreateFromPicture() 97 Bitmap hardwareBitmap = Bitmap.createBitmap(picture); in testCreateFromPicture() 111 Picture picture = new Picture(); in testReadbackThroughPicture() local 113 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testReadbackThroughPicture() 116 picture.endRecording(); in testReadbackThroughPicture() 118 assertTrue(picture.requiresHardwareAcceleration()); in testReadbackThroughPicture() 119 Bitmap result = Bitmap.createBitmap(picture, picture.getWidth(), picture.getHeight(), in testReadbackThroughPicture() 131 Picture picture = new Picture(); in testReadbackThroughPictureNoEndRecording() local [all …]
|
D | BitmapTests.java | 226 Picture picture = new Picture(); in testCreateFromPicture() local 228 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testCreateFromPicture() 233 picture.endRecording(); in testCreateFromPicture() 235 Bitmap bitmap = Bitmap.createBitmap(picture, picture.getWidth(), in testCreateFromPicture() 236 picture.getHeight(), Bitmap.Config.ARGB_8888); in testCreateFromPicture()
|
D | ExactCanvasTests.java | 176 Picture picture = new Picture(); in testTextOnPathUsingPicture() local 177 Canvas pictureCanvas = picture.beginRecording(90, 90); in testTextOnPathUsingPicture() 179 picture.endRecording(); in testTextOnPathUsingPicture() 180 picture.draw(canvas); in testTextOnPathUsingPicture()
|
/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/text/src/android/text/cts/ |
D | EmojiTest.java | 291 Picture picture = webViewOnUiThread.capturePicture(); in capture() local 292 if (picture == null || picture.getHeight() <= 0 || picture.getWidth() <= 0) { in capture() 295 bitmap = Bitmap.createBitmap(picture.getWidth(), picture.getHeight(), in capture() 298 picture.draw(canvas); in capture()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | FastBasicsTest.java | 207 byte[] picture = listener.waitForPicture(); in testCamera1() 209 assertNotNull("No still picture received from camera", picture); in testCamera1() 211 Bitmap b = BitmapFactory.decodeByteArray(picture, 0, picture.length); in testCamera1()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewTest.java | 1089 public void onNewPicture(WebView view, Picture picture) { 1155 public Picture picture; 1158 public void onNewPicture(WebView view, Picture picture) { 1164 this.picture = picture; 1180 assertNull(listener.picture); 2980 private boolean isPictureFilledWithColor(Picture picture, int color) { 2981 if (picture.getWidth() == 0 || picture.getHeight() == 0) 2984 Bitmap bitmap = Bitmap.createBitmap(picture.getWidth(), picture.getHeight(), 2986 picture.draw(new Canvas(bitmap));
|
/cts/libs/deviceutillegacy/src/android/webkit/cts/ |
D | WebViewOnUiThread.java | 1093 public void onNewPicture(WebView view, Picture picture) {
|