Searched refs:hardwareBitmap (Results 1 – 4 of 4) sorted by relevance
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | HardwareBitmapTests.java | 79 Bitmap hardwareBitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, in testDecodeResource() local 81 canvas.drawBitmap(hardwareBitmap, 0, 0, new Paint()); in testDecodeResource() 98 Bitmap hardwareBitmap = Bitmap.createBitmap(picture); in testCreateFromPicture() local 99 assertEquals(TEST_WIDTH, hardwareBitmap.getWidth()); in testCreateFromPicture() 100 assertEquals(TEST_HEIGHT, hardwareBitmap.getHeight()); in testCreateFromPicture() 101 assertEquals(Bitmap.Config.HARDWARE, hardwareBitmap.getConfig()); in testCreateFromPicture() 103 canvas.drawBitmap(hardwareBitmap, 0, 0, null); in testCreateFromPicture() 109 Bitmap hardwareBitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, in testReadbackThroughPicture() local 111 assertEquals(Bitmap.Config.HARDWARE, hardwareBitmap.getConfig()); in testReadbackThroughPicture() 116 canvas.drawBitmap(hardwareBitmap, 0, 0, null); in testReadbackThroughPicture() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BitmapRegionDecoderTest.java | 443 Bitmap hardwareBitmap = decoder.decodeRegion(new Rect(0, 0, 10, 10), options); in testDecodeHardwareBitmap() local 444 assertNotNull(hardwareBitmap); in testDecodeHardwareBitmap() 446 assertEquals(Config.HARDWARE, hardwareBitmap.getConfig()); in testDecodeHardwareBitmap()
|
D | BitmapFactoryTest.java | 767 Bitmap hardwareBitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, options); in testDecodeHardwareBitmap() local 768 assertNotNull(hardwareBitmap); in testDecodeHardwareBitmap() 770 assertEquals(Config.HARDWARE, hardwareBitmap.getConfig()); in testDecodeHardwareBitmap()
|
D | BitmapTest.java | 324 Bitmap hardwareBitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, in testCreateBitmapFromHardwareBitmap() local 326 assertEquals(Config.HARDWARE, hardwareBitmap.getConfig()); in testCreateBitmapFromHardwareBitmap() 328 Bitmap ret = Bitmap.createBitmap(hardwareBitmap, 0, 0, 100, 100, null, false); in testCreateBitmapFromHardwareBitmap() 903 Bitmap hardwareBitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, in testGetConfig() local 905 assertEquals(Bitmap.Config.HARDWARE, hardwareBitmap.getConfig()); in testGetConfig()
|