Home
last modified time | relevance | path

Searched refs:mHardwareBuffer (Results 1 – 3 of 3) sorted by relevance

/cts/tests/sensor/jni/
DSensorTest.cpp139 mSharedMemoryFd(-1), mHardwareBuffer(nullptr) { in TestSharedMemory()
172 if (AHardwareBuffer_allocate(&desc, &mHardwareBuffer) == 0) { in TestSharedMemory()
174 if (AHardwareBuffer_lock(mHardwareBuffer, AHARDWAREBUFFER_USAGE_CPU_READ_RARELY, in TestSharedMemory()
212 if (mHardwareBuffer != nullptr) { in release()
215 AHardwareBuffer_unlock(mHardwareBuffer, &fence); in release()
218 AHardwareBuffer_release(mHardwareBuffer); in release()
219 mHardwareBuffer = nullptr; in release()
227 if (mSharedMemoryFd > 0 || mSize != 0 || mBuffer != nullptr || mHardwareBuffer != nullptr) { in release()
230 this, static_cast<int>(mType), mSharedMemoryFd, mHardwareBuffer, mSize, mBuffer); in release()
DSensorTest.h120 return mHardwareBuffer; in getHardwareBuffer()
138 AHardwareBuffer *mHardwareBuffer; variable
/cts/tests/sensor/src/android/hardware/cts/
DSensorDirectReportTest.java146 private HardwareBuffer mHardwareBuffer; field in SensorDirectReportTest
199 + (mHardwareBuffer == null) + ", " + (mHardwareBufferSecondary == null), in testSharedMemoryAllocation()
201 (mHardwareBuffer != null && mHardwareBufferSecondary != null)); in testSharedMemoryAllocation()
1300 = secondary ? mHardwareBufferSecondary : mHardwareBuffer; in prepareDirectChannel()
1333 secondary ? mHardwareBufferSecondary : mHardwareBuffer, in readSharedMemory()
1570 mHardwareBuffer = allocateHardwareBuffer(); in allocateSharedMemory()
1586 if (mHardwareBuffer != null) { in freeSharedMemory()
1587 mHardwareBuffer.close(); in freeSharedMemory()
1588 mHardwareBuffer = null; in freeSharedMemory()