• Home
  • Raw
  • Download

Lines Matching refs:aHardwareBuffer

53         AHardwareBuffer *aHardwareBuffer = nullptr;  in createAndroidHardwareBuffer()  local
54 EXPECT_EQ(0, AHardwareBuffer_allocate(&aHardwareBufferDescription, &aHardwareBuffer)); in createAndroidHardwareBuffer()
57 EXPECT_EQ(0, AHardwareBuffer_lock(aHardwareBuffer, AHARDWAREBUFFER_USAGE_CPU_WRITE_RARELY, in createAndroidHardwareBuffer()
61 AHardwareBuffer_describe(aHardwareBuffer, &aHardwareBufferDescription); in createAndroidHardwareBuffer()
65 EXPECT_EQ(0, AHardwareBuffer_unlock(aHardwareBuffer, nullptr)); in createAndroidHardwareBuffer()
66 return aHardwareBuffer; in createAndroidHardwareBuffer()
72 void destroyAndroidHardwareBuffer(AHardwareBuffer *aHardwareBuffer) in destroyAndroidHardwareBuffer() argument
75 AHardwareBuffer_release(aHardwareBuffer); in destroyAndroidHardwareBuffer()
79 void *lockAndroidHardwareBuffer(AHardwareBuffer *aHardwareBuffer) in lockAndroidHardwareBuffer() argument
83 EXPECT_EQ(0, AHardwareBuffer_lock(aHardwareBuffer, AHARDWAREBUFFER_USAGE_CPU_READ_RARELY, in lockAndroidHardwareBuffer()
89 void unlockAndroidHardwareBuffer(AHardwareBuffer *aHardwareBuffer) in unlockAndroidHardwareBuffer() argument
92 AHardwareBuffer_unlock(aHardwareBuffer, nullptr); in unlockAndroidHardwareBuffer()
106 AHardwareBuffer *aHardwareBuffer; in TEST_P() local
108 aHardwareBuffer = createAndroidHardwareBuffer(kBufferSize, initData.data()); in TEST_P()
113 eglGetNativeClientBufferANDROID(aHardwareBuffer), kFlags); in TEST_P()
124 uint8_t *data = static_cast<uint8_t *>(lockAndroidHardwareBuffer(aHardwareBuffer)); in TEST_P()
131 unlockAndroidHardwareBuffer(aHardwareBuffer); in TEST_P()
135 destroyAndroidHardwareBuffer(aHardwareBuffer); in TEST_P()
147 AHardwareBuffer *aHardwareBuffer; in TEST_P() local
149 aHardwareBuffer = createAndroidHardwareBuffer(kBufferSize, initData.data()); in TEST_P()
155 eglGetNativeClientBufferANDROID(aHardwareBuffer), kFlags); in TEST_P()
176 uint8_t *data = static_cast<uint8_t *>(lockAndroidHardwareBuffer(aHardwareBuffer)); in TEST_P()
183 unlockAndroidHardwareBuffer(aHardwareBuffer); in TEST_P()
188 destroyAndroidHardwareBuffer(aHardwareBuffer); in TEST_P()
211 AHardwareBuffer *aHardwareBuffer; in TEST_P() local
213 aHardwareBuffer = createAndroidHardwareBuffer(kBufferSize, initData.data()); in TEST_P()
218 eglGetNativeClientBufferANDROID(aHardwareBuffer), kFlags); in TEST_P()
234 uint32_t *data = static_cast<uint32_t *>(lockAndroidHardwareBuffer(aHardwareBuffer)); in TEST_P()
241 unlockAndroidHardwareBuffer(aHardwareBuffer); in TEST_P()
245 destroyAndroidHardwareBuffer(aHardwareBuffer); in TEST_P()
258 AHardwareBuffer *aHardwareBuffer; in TEST_P() local
260 aHardwareBuffer = createAndroidHardwareBuffer(kBufferSize, initData.data()); in TEST_P()
265 eglGetNativeClientBufferANDROID(aHardwareBuffer), kFlags); in TEST_P()
283 destroyAndroidHardwareBuffer(aHardwareBuffer); in TEST_P()
296 AHardwareBuffer *aHardwareBuffer; in TEST_P() local
299 aHardwareBuffer = createAndroidHardwareBuffer(kBufferSize, initData.data()); in TEST_P()
304 eglGetNativeClientBufferANDROID(aHardwareBuffer), kFlags); in TEST_P()
333 uint8_t *data = static_cast<uint8_t *>(lockAndroidHardwareBuffer(aHardwareBuffer)); in TEST_P()
340 unlockAndroidHardwareBuffer(aHardwareBuffer); in TEST_P()
345 destroyAndroidHardwareBuffer(aHardwareBuffer); in TEST_P()