/frameworks/native/libs/ui/ |
D | BufferHubMetadata.cpp | 37 BufferHubMetadata BufferHubMetadata::create(size_t userMetadataSize) { in create() argument 40 if (userMetadataSize >= (std::numeric_limits<uint32_t>::max() - kMetadataHeaderSize)) { in create() 41 ALOGE("BufferHubMetadata::Create: metadata size too big: %zu.", userMetadataSize); in create() 45 const size_t metadataSize = userMetadataSize + kMetadataHeaderSize; in create() 73 size_t userMetadataSize = metadataSize - kMetadataHeaderSize; in import() local 86 return BufferHubMetadata(userMetadataSize, std::move(ashmemFd), metadataHeader); in import() 89 BufferHubMetadata::BufferHubMetadata(size_t userMetadataSize, unique_fd ashmemFd, in BufferHubMetadata() argument 91 : mUserMetadataSize(userMetadataSize), in BufferHubMetadata()
|
D | BufferHubBuffer.cpp | 44 uint64_t usage, size_t userMetadataSize) { in create() argument 46 new BufferHubBuffer(width, height, layerCount, format, usage, userMetadataSize)); in create() 61 uint32_t format, uint64_t usage, size_t userMetadataSize) { in BufferHubBuffer() argument 65 __FUNCTION__, width, height, layerCount, format, usage, userMetadataSize); in BufferHubBuffer() 88 if (!bufferhub->allocateBuffer(desc, static_cast<uint32_t>(userMetadataSize), allocCb).isOk()) { in BufferHubBuffer() 196 uint32_t userMetadataSize; in initWithBufferTraits() local 197 memcpy(&userMetadataSize, &bufferTraits.bufferInfo->data[4], sizeof(userMetadataSize)); in initWithBufferTraits() 198 if (mMetadata.userMetadataSize() != userMetadataSize) { in initWithBufferTraits() 200 userMetadataSize, mMetadata.userMetadataSize()); in initWithBufferTraits()
|
/frameworks/native/libs/ui/tests/ |
D | BufferHubMetadata_test.cpp | 70 EXPECT_EQ(m1.userMetadataSize(), sizeof(int)); in TEST_F() 81 EXPECT_EQ(m1.userMetadataSize(), 0U); in TEST_F() 82 EXPECT_EQ(m2.userMetadataSize(), sizeof(int)); in TEST_F() 93 EXPECT_EQ(m2.userMetadataSize(), 0U); in TEST_F() 94 EXPECT_EQ(m3.userMetadataSize(), sizeof(int)); in TEST_F()
|
D | BufferHubBuffer_test.cpp | 136 const size_t userMetadataSize = std::numeric_limits<size_t>::max() - kMetadataHeaderSize; in TEST_F() local 138 userMetadataSize); in TEST_F() 150 EXPECT_EQ(b1->userMetadataSize(), kUserMetadataSize); in TEST_F() 172 EXPECT_EQ(b1->userMetadataSize(), b2->userMetadataSize()); in TEST_F()
|
/frameworks/native/libs/ui/include/ui/ |
D | BufferHubBuffer.h | 35 uint64_t usage, size_t userMetadataSize); 67 size_t userMetadataSize() const { return mMetadata.userMetadataSize(); } in userMetadataSize() function 108 uint64_t usage, size_t userMetadataSize);
|
D | BufferHubMetadata.h | 36 static BufferHubMetadata create(size_t userMetadataSize); 68 size_t userMetadataSize() const { return mUserMetadataSize; } in userMetadataSize() function 75 BufferHubMetadata(size_t userMetadataSize, unique_fd ashmemFd,
|
/frameworks/native/services/bufferhub/include/bufferhub/ |
D | BufferNode.h | 20 uint64_t usage, size_t userMetadataSize, int id = -1); 29 size_t userMetadataSize() const { return mMetadata.userMetadataSize(); } in userMetadataSize() function
|
D | BufferHubService.h | 47 const uint32_t userMetadataSize, 62 uint32_t userMetadataSize, int metadataFd, int eventFd);
|
/frameworks/native/services/bufferhub/ |
D | BufferHubService.cpp | 47 const uint32_t userMetadataSize, in allocateBuffer() argument 54 desc.usage, userMetadataSize, in allocateBuffer() 74 node->userMetadataSize(), node->metadata().ashmemFd(), in allocateBuffer() 173 node->userMetadataSize(), node->metadata().ashmemFd(), in importBuffer() 363 uint32_t clientBitMask, uint32_t userMetadataSize, in buildBufferInfo() argument 375 memcpy(&infoHandle->data[4], &userMetadataSize, sizeof(userMetadataSize)); in buildBufferInfo()
|
D | BufferNode.cpp | 32 uint64_t usage, size_t userMetadataSize, int id) in BufferNode() argument 57 mMetadata = BufferHubMetadata::create(userMetadataSize); in BufferNode()
|
/frameworks/hardware/interfaces/bufferhub/1.0/vts/functional/ |
D | VtsHalBufferHubV1_0TargetTest.cpp | 104 uint32_t userMetadataSize; in isValidTraits() local 105 memcpy(&userMetadataSize, &bufferTraits.bufferInfo->data[4], sizeof(userMetadataSize)); in isValidTraits() 112 userMetadataSize == kUserMetadataSize; in isValidTraits()
|
/frameworks/hardware/interfaces/bufferhub/1.0/ |
D | IBufferHub.hal | 26 * @param userMetadataSize The size of the user defined metadata in bytes. 34 uint32_t userMetadataSize)
|
/frameworks/native/services/bufferhub/tests/ |
D | BufferNode_test.cpp | 44 EXPECT_EQ(mBufferNode->userMetadataSize(), kUserMetadataSize); in TEST_F()
|