Searched refs:picture (Results 1 – 9 of 9) sorted by relevance
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | PictureTest.java | 96 private void verifyBalance(Picture picture) { in verifyBalance() argument 107 canvas.drawPicture(picture); in verifyBalance() 121 Picture picture = new Picture(); in testPicture() local 124 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testPicture() 127 picture.endRecording(); in testPicture() 131 picture.draw(canvas); in testPicture() 132 verifySize(picture); in testPicture() 135 picture.writeToStream(bout); in testPicture() 136 picture = Picture.createFromStream(new ByteArrayInputStream(bout.toByteArray())); in testPicture() 141 picture.draw(canvas); in testPicture() [all …]
|
/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/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 | 201 byte[] picture = listener.waitForPicture(); in testCamera1() 203 assertNotNull("No still picture received from camera", picture); in testCamera1() 205 Bitmap b = BitmapFactory.decodeByteArray(picture, 0, picture.length); in testCamera1()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
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/webkit/src/android/webkit/cts/ |
D | WebViewTest.java | 1074 public void onNewPicture(WebView view, Picture picture) { 1140 public Picture picture; 1143 public void onNewPicture(WebView view, Picture picture) { 1149 this.picture = picture; 1165 assertNull(listener.picture); 2763 private boolean isPictureFilledWithColor(Picture picture, int color) { 2764 if (picture.getWidth() == 0 || picture.getHeight() == 0) 2767 Bitmap bitmap = Bitmap.createBitmap(picture.getWidth(), picture.getHeight(), 2769 picture.draw(new Canvas(bitmap));
|
/cts/libs/deviceutillegacy/src/android/webkit/cts/ |
D | WebViewOnUiThread.java | 1102 public void onNewPicture(WebView view, Picture picture) {
|