/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 | 621 Picture picture = new Picture(); in testCreateBitmap_Picture_immutable() local 622 Canvas canvas = picture.beginRecording(200, 100); in testCreateBitmap_Picture_immutable() 632 picture.endRecording(); in testCreateBitmap_Picture_immutable() 635 bitmap = Bitmap.createBitmap(picture); in testCreateBitmap_Picture_immutable() 638 bitmap = Bitmap.createBitmap(picture, 100, 100, Config.HARDWARE); in testCreateBitmap_Picture_immutable() 642 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 | 261 Picture picture = new Picture(); in testCreateFromPicture() local 263 Canvas canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testCreateFromPicture() 268 picture.endRecording(); in testCreateFromPicture() 270 Bitmap bitmap = Bitmap.createBitmap(picture, picture.getWidth(), in testCreateFromPicture() 271 picture.getHeight(), Bitmap.Config.ARGB_8888); in testCreateFromPicture()
|
D | RuntimeShaderTests.kt | 440 val picture = Picture() in <lambda>() constant 445 val canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT) in <lambda>() 448 picture.endRecording() in <lambda>() 450 Assert.assertTrue(picture.requiresHardwareAcceleration()) in <lambda>() 453 { canvas: Canvas, width: Int, height: Int -> canvas.drawPicture(picture) }, in <lambda>() 460 val picture = Picture() in <lambda>() constant 466 val canvas = picture.beginRecording(TEST_WIDTH, TEST_HEIGHT) in <lambda>() 469 picture.endRecording() in <lambda>() 471 Assert.assertTrue(picture.requiresHardwareAcceleration()) in <lambda>() 474 { canvas: Canvas, width: Int, height: Int -> canvas.drawPicture(picture) }, in <lambda>()
|
D | ExactCanvasTests.java | 203 Picture picture = new Picture(); in testTextOnPathUsingPicture() local 204 Canvas pictureCanvas = picture.beginRecording(90, 90); in testTextOnPathUsingPicture() 206 picture.endRecording(); in testTextOnPathUsingPicture() 207 picture.draw(canvas); in testTextOnPathUsingPicture()
|
D | CanvasTests.java | 289 Picture picture = new Picture(); in testDrawHwBitmap_inPictureCanvas_inSwCanvas() local 290 Canvas pictureCanvas = picture.beginRecording(100, 100); in testDrawHwBitmap_inPictureCanvas_inSwCanvas() 293 new Canvas(getMutableBitmap()).drawPicture(picture); in testDrawHwBitmap_inPictureCanvas_inSwCanvas()
|
/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/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/notificationlegacy/notificationlegacy30/src/android/app/notification/legacy30/cts/ |
D | NotificationTemplateApi30Test.kt | 73 val picture = createBitmap(40, 30) in <lambda>() constant 79 .setStyle(Notification.BigPictureStyle().bigPicture(picture)) in <lambda>() 108 val picture = createBitmap(40, 30) in <lambda>() constant 113 .bigPicture(picture) in <lambda>() 136 val picture = createBitmap(40, 30) in <lambda>() constant 143 .bigPicture(picture) in <lambda>() 168 val picture = createBitmap(40, 30) in <lambda>() constant 176 .bigPicture(picture) in <lambda>()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | EmojiTest.java | 333 Picture picture = webViewOnUiThread.capturePicture(); in capture() local 334 if (picture == null || picture.getHeight() <= 0 || picture.getWidth() <= 0) { in capture() 337 Bitmap bitmap = Bitmap.createBitmap(picture.getWidth(), picture.getHeight(), in capture() 340 picture.draw(canvas); in capture()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | FastBasicsTest.java | 224 byte[] picture = listener.waitForPicture(); in testCamera1() 226 assertNotNull("No still picture received from camera", picture); in testCamera1() 228 Bitmap b = BitmapFactory.decodeByteArray(picture, 0, picture.length); in testCamera1()
|
/cts/tests/tests/notification/src/android/app/notification/current/cts/ |
D | NotificationTemplateTest.kt | 168 val picture = createBitmap(40, 30) in <lambda>() constant 174 .setStyle(Notification.BigPictureStyle().bigPicture(picture)) in <lambda>() 190 val picture = createBitmap(40, 30) in <lambda>() constant 196 .setStyle(Notification.BigPictureStyle().bigPicture(picture)) in <lambda>() 212 val picture = createBitmap(40, 30) in <lambda>() constant 218 .setStyle(Notification.BigPictureStyle().bigPicture(picture)) in <lambda>() 367 val picture = createBitmap(40, 30) in <lambda>() constant 373 .bigPicture(picture) in <lambda>() 394 val picture = createBitmap(40, 30) in <lambda>() constant 402 .bigPicture(picture) in <lambda>() [all …]
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewTest.java | 856 public void onNewPicture(WebView view, Picture picture) { in onNewPicture() argument 914 public Picture picture; in testSetPictureListener() field in WebViewTest.MyPictureListener 917 public void onNewPicture(WebView view, Picture picture) { in testSetPictureListener() argument 923 this.picture = picture; in testSetPictureListener() 939 assertNull(listener.picture); in testSetPictureListener() 2781 private boolean isPictureFilledWithColor(Picture picture, int color) { in isPictureFilledWithColor() argument 2782 if (picture.getWidth() == 0 || picture.getHeight() == 0) return false; in isPictureFilledWithColor() 2785 Bitmap.createBitmap(picture.getWidth(), picture.getHeight(), Config.ARGB_8888); in isPictureFilledWithColor() 2786 picture.draw(new Canvas(bitmap)); in isPictureFilledWithColor()
|
/cts/libs/deviceutillegacy/src/android/webkit/cts/ |
D | WebViewSyncLoader.java | 443 public void onNewPicture(WebView view, Picture picture) { in onNewPicture() argument
|
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/ |
D | current.txt | 6463 field public static final String EXTRA_PICTURE = "android.picture"; 18396 … field @Deprecated public static final String FOCUS_MODE_CONTINUOUS_PICTURE = "continuous-picture"; 23686 field public static final String KEY_PICTURE_TYPE = "picture-type";
|