/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 | 514 Picture picture = new Picture(); in testCreateBitmap_Picture_immutable() local 515 Canvas canvas = picture.beginRecording(200, 100); in testCreateBitmap_Picture_immutable() 525 picture.endRecording(); in testCreateBitmap_Picture_immutable() 528 bitmap = Bitmap.createBitmap(picture); in testCreateBitmap_Picture_immutable() 531 bitmap = Bitmap.createBitmap(picture, 100, 100, Config.HARDWARE); in testCreateBitmap_Picture_immutable() 535 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 | 181 Picture picture = new Picture(); in testTextOnPathUsingPicture() local 182 Canvas pictureCanvas = picture.beginRecording(90, 90); in testTextOnPathUsingPicture() 184 picture.endRecording(); in testTextOnPathUsingPicture() 185 picture.draw(canvas); in testTextOnPathUsingPicture()
|
D | CanvasTests.java | 179 Picture picture = new Picture(); in testDrawHwBitmap_inPictureCanvas_inSwCanvas() local 180 Canvas pictureCanvas = picture.beginRecording(100, 100); in testDrawHwBitmap_inPictureCanvas_inSwCanvas() 183 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/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 | 211 byte[] picture = listener.waitForPicture(); in testCamera1() 213 assertNotNull("No still picture received from camera", picture); in testCamera1() 215 Bitmap b = BitmapFactory.decodeByteArray(picture, 0, picture.length); in testCamera1()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewTest.java | 866 public void onNewPicture(WebView view, Picture picture) { in onNewPicture() argument 926 public Picture picture; in testSetPictureListener() field in WebViewTest.MyPictureListener 929 public void onNewPicture(WebView view, Picture picture) { in testSetPictureListener() argument 935 this.picture = picture; in testSetPictureListener() 951 assertNull(listener.picture); in testSetPictureListener() 2773 private boolean isPictureFilledWithColor(Picture picture, int color) { in isPictureFilledWithColor() argument 2774 if (picture.getWidth() == 0 || picture.getHeight() == 0) in isPictureFilledWithColor() 2777 Bitmap bitmap = Bitmap.createBitmap(picture.getWidth(), picture.getHeight(), in isPictureFilledWithColor() 2779 picture.draw(new Canvas(bitmap)); in isPictureFilledWithColor()
|
/cts/libs/deviceutillegacy/src/android/webkit/cts/ |
D | WebViewSyncLoader.java | 435 public void onNewPicture(WebView view, Picture picture) { in onNewPicture() argument
|