Searched refs:hwBuffer (Results 1 – 2 of 2) sorted by relevance
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BitmapTest.java | 656 try (HardwareBuffer hwBuffer = createTestBuffer(128, 128, false)) { in testWrapHardwareBufferSucceeds() argument 657 Bitmap bitmap = Bitmap.wrapHardwareBuffer(hwBuffer, ColorSpace.get(Named.SRGB)); in testWrapHardwareBufferSucceeds() 665 try (HardwareBuffer hwBuffer = HardwareBuffer.create(512, 512, HardwareBuffer.RGBA_8888, 1, in testWrapHardwareBufferWithInvalidUsageFails() argument 667 Bitmap bitmap = Bitmap.wrapHardwareBuffer(hwBuffer, ColorSpace.get(Named.SRGB)); in testWrapHardwareBufferWithInvalidUsageFails() 673 try (HardwareBuffer hwBuffer = HardwareBuffer.create(512, 512, HardwareBuffer.RGBA_8888, 1, in testWrapHardwareBufferWithRgbBufferButNonRgbColorSpaceFails() argument 675 Bitmap bitmap = Bitmap.wrapHardwareBuffer(hwBuffer, ColorSpace.get(Named.CIE_LAB)); in testWrapHardwareBufferWithRgbBufferButNonRgbColorSpaceFails() 679 private void assertMatches(HardwareBuffer hwBuffer, HardwareBuffer hwBuffer2) { in assertMatches() argument 680 assertEquals(hwBuffer, hwBuffer2); in assertMatches() 681 assertEquals(hwBuffer.hashCode(), hwBuffer2.hashCode()); in assertMatches() 682 assertEquals(hwBuffer.getWidth(), hwBuffer2.getWidth()); 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()
|