Searched refs:mHardwareBuffer (Results 1 – 3 of 3) sorted by relevance
/cts/tests/sensor/jni/ |
D | SensorTest.cpp | 139 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()
|
D | SensorTest.h | 120 return mHardwareBuffer; in getHardwareBuffer() 138 AHardwareBuffer *mHardwareBuffer; variable
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorDirectReportTest.java | 149 private HardwareBuffer mHardwareBuffer; field in SensorDirectReportTest 202 + (mHardwareBuffer == null) + ", " + (mHardwareBufferSecondary == null), in testSharedMemoryAllocation() 204 (mHardwareBuffer != null && mHardwareBufferSecondary != null)); in testSharedMemoryAllocation() 1121 = secondary ? mHardwareBufferSecondary : mHardwareBuffer; in prepareDirectChannel() 1154 secondary ? mHardwareBufferSecondary : mHardwareBuffer, in readSharedMemory() 1391 mHardwareBuffer = allocateHardwareBuffer(); in allocateSharedMemory() 1407 if (mHardwareBuffer != null) { in freeSharedMemory() 1408 mHardwareBuffer.close(); in freeSharedMemory() 1409 mHardwareBuffer = null; in freeSharedMemory()
|