Home
last modified time | relevance | path

Searched refs:hardwareBitmap (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DHardwareBitmapTests.java79 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/
DBitmapRegionDecoderTest.java441 Bitmap hardwareBitmap = decoder.decodeRegion(new Rect(0, 0, 10, 10), options); in testDecodeHardwareBitmap() local
442 assertNotNull(hardwareBitmap); in testDecodeHardwareBitmap()
444 assertEquals(Config.HARDWARE, hardwareBitmap.getConfig()); in testDecodeHardwareBitmap()
DBitmapFactoryTest.java789 Bitmap hardwareBitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, options); in testDecodeHardwareBitmap() local
790 assertNotNull(hardwareBitmap); in testDecodeHardwareBitmap()
792 assertEquals(Config.HARDWARE, hardwareBitmap.getConfig()); in testDecodeHardwareBitmap()
DBitmapTest.java428 Bitmap hardwareBitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, in testCreateBitmapFromHardwareBitmap() local
430 assertEquals(Config.HARDWARE, hardwareBitmap.getConfig()); in testCreateBitmapFromHardwareBitmap()
432 Bitmap ret = Bitmap.createBitmap(hardwareBitmap, 0, 0, 96, 96, null, false); in testCreateBitmapFromHardwareBitmap()
1104 Bitmap hardwareBitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, in testGetConfig() local
1106 assertEquals(Bitmap.Config.HARDWARE, hardwareBitmap.getConfig()); in testGetConfig()