Searched refs:hwBuffer (Results 1 – 2 of 2) sorted by relevance
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_BitmapTest.cpp | 46 static void fillRgbaHardwareBuffer(JNIEnv* env, jclass, jobject hwBuffer) { in fillRgbaHardwareBuffer() argument 47 AHardwareBuffer* hardware_buffer = AHardwareBuffer_fromHardwareBuffer(env, hwBuffer); in fillRgbaHardwareBuffer()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BitmapTest.java | 552 try (HardwareBuffer hwBuffer = createTestBuffer(128, 128, false)) { in testWrapHardwareBufferSucceeds() argument 553 Bitmap bitmap = Bitmap.wrapHardwareBuffer(hwBuffer, ColorSpace.get(Named.SRGB)); in testWrapHardwareBufferSucceeds() 561 try (HardwareBuffer hwBuffer = HardwareBuffer.create(512, 512, HardwareBuffer.RGBA_8888, 1, in testWrapHardwareBufferWithInvalidUsageFails() argument 563 Bitmap bitmap = Bitmap.wrapHardwareBuffer(hwBuffer, ColorSpace.get(Named.SRGB)); in testWrapHardwareBufferWithInvalidUsageFails() 569 try (HardwareBuffer hwBuffer = HardwareBuffer.create(512, 512, HardwareBuffer.RGBA_8888, 1, in testWrapHardwareBufferWithRgbBufferButNonRgbColorSpaceFails() argument 571 Bitmap bitmap = Bitmap.wrapHardwareBuffer(hwBuffer, ColorSpace.get(Named.CIE_LAB)); in testWrapHardwareBufferWithRgbBufferButNonRgbColorSpaceFails() 2073 try (HardwareBuffer hwBuffer = createTestBuffer(1024, 512, false)) { in testWrappedHardwareBufferBitmapNotLeaking() argument 2075 Bitmap bitmap = Bitmap.wrapHardwareBuffer(hwBuffer, colorSpace); in testWrappedHardwareBufferBitmapNotLeaking() 2114 try (HardwareBuffer hwBuffer = createTestBuffer(128, 128, false)) { in testWrapHardwareBufferHoldsReference() argument 2116 nFillRgbaHwBuffer(hwBuffer); in testWrapHardwareBufferHoldsReference() [all …]
|