Searched refs:hwBuffer (Results 1 – 2 of 2) sorted by relevance
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BitmapTest.java | 659 try (HardwareBuffer hwBuffer = createTestBuffer(128, 128, false)) { in testWrapHardwareBufferSucceeds() argument 660 Bitmap bitmap = Bitmap.wrapHardwareBuffer(hwBuffer, ColorSpace.get(Named.SRGB)); in testWrapHardwareBufferSucceeds() 668 try (HardwareBuffer hwBuffer = HardwareBuffer.create(512, 512, HardwareBuffer.RGBA_8888, 1, in testWrapHardwareBufferMissingGpuUsageFails() argument 671 Bitmap.wrapHardwareBuffer(hwBuffer, ColorSpace.get(Named.SRGB)); in testWrapHardwareBufferMissingGpuUsageFails() 678 try (HardwareBuffer hwBuffer = HardwareBuffer.create(512, 512, HardwareBuffer.RGBA_8888, 1, in testWrapHardwareBufferWithProtectedUsageFails() argument 684 Bitmap.wrapHardwareBuffer(hwBuffer, ColorSpace.get(Named.SRGB)); in testWrapHardwareBufferWithProtectedUsageFails() 691 try (HardwareBuffer hwBuffer = HardwareBuffer.create(512, 512, HardwareBuffer.RGBA_8888, 1, in testWrapHardwareBufferWithRgbBufferButNonRgbColorSpaceFails() argument 693 Bitmap bitmap = Bitmap.wrapHardwareBuffer(hwBuffer, ColorSpace.get(Named.CIE_LAB)); in testWrapHardwareBufferWithRgbBufferButNonRgbColorSpaceFails() 717 private void assertMatches(HardwareBuffer hwBuffer, HardwareBuffer hwBuffer2) { in assertMatches() argument 718 assertEquals(hwBuffer, hwBuffer2); in assertMatches() [all …]
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_BitmapTest.cpp | 60 static void fillRgbaHardwareBuffer(JNIEnv* env, jclass, jobject hwBuffer) { in fillRgbaHardwareBuffer() argument 61 AHardwareBuffer* hardware_buffer = AHardwareBuffer_fromHardwareBuffer(env, hwBuffer); in fillRgbaHardwareBuffer()
|