Searched refs:bufferTraits (Results 1 – 5 of 5) sorted by relevance
/frameworks/hardware/interfaces/bufferhub/1.0/vts/functional/ |
D | VtsHalBufferHubV1_0TargetTest.cpp | 76 uint32_t clientStateMask(const BufferTraits& bufferTraits) { in clientStateMask() argument 78 memcpy(&clientStateMask, &bufferTraits.bufferInfo->data[3], sizeof(clientStateMask)); in clientStateMask() 93 bool isValidTraits(const BufferTraits& bufferTraits) { in isValidTraits() argument 95 memcpy(&desc, &bufferTraits.bufferDesc, sizeof(AHardwareBuffer_Desc)); in isValidTraits() 97 const native_handle_t* bufferInfo = bufferTraits.bufferInfo.getNativeHandle(); in isValidTraits() 105 memcpy(&userMetadataSize, &bufferTraits.bufferInfo->data[4], sizeof(userMetadataSize)); in isValidTraits() 110 bufferTraits.bufferHandle.getNativeHandle() != nullptr && metadataFd >= 0 && in isValidTraits() 111 eventFd >= 0 && bufferId >= 0 && clientStateMask(bufferTraits) != 0U && in isValidTraits() 122 BufferTraits bufferTraits = {}; in TEST_F() local 127 bufferTraits = std::move(traits); in TEST_F() [all …]
|
/frameworks/native/libs/ui/ |
D | BufferHubBuffer.cpp | 80 BufferTraits bufferTraits; in BufferHubBuffer() local 85 bufferTraits = std::move(outTraits); in BufferHubBuffer() 99 const int importRet = initWithBufferTraits(bufferTraits); in BufferHubBuffer() 116 BufferTraits bufferTraits; in BufferHubBuffer() local 121 bufferTraits = std::move(outTraits); in BufferHubBuffer() 137 const int importRet = initWithBufferTraits(bufferTraits); in BufferHubBuffer() 156 int BufferHubBuffer::initWithBufferTraits(const BufferTraits& bufferTraits) { in initWithBufferTraits() argument 159 if (bufferTraits.bufferInfo.getNativeHandle() == nullptr) { in initWithBufferTraits() 164 if (bufferTraits.bufferHandle.getNativeHandle() == nullptr) { in initWithBufferTraits() 170 unique_fd ashmemFd(fcntl(bufferTraits.bufferInfo->data[0], F_DUPFD_CLOEXEC, 0)); in initWithBufferTraits() [all …]
|
/frameworks/hardware/interfaces/bufferhub/1.0/ |
D | IBufferHub.hal | 31 * @return bufferTraits the struct containing the information of the buffer. 37 BufferTraits bufferTraits); 47 * @return bufferTraits the struct containing the information of the buffer. 52 BufferTraits bufferTraits);
|
/frameworks/native/services/bufferhub/ |
D | BufferHubService.cpp | 82 BufferTraits bufferTraits = {/*bufferDesc=*/allocatedBufferDesc, in allocateBuffer() local 87 /*bufferTraits=*/std::move(bufferTraits)); in allocateBuffer() 175 BufferTraits bufferTraits = {/*bufferDesc=*/bufferDesc, in importBuffer() local 180 /*bufferTraits=*/std::move(bufferTraits)); in importBuffer()
|
/frameworks/native/libs/ui/include/ui/ |
D | BufferHubBuffer.h | 112 int initWithBufferTraits(const frameworks::bufferhub::V1_0::BufferTraits& bufferTraits);
|