Home
last modified time | relevance | path

Searched refs:userMetadataSize (Results 1 – 13 of 13) sorted by relevance

/frameworks/native/libs/ui/
DBufferHubMetadata.cpp37 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()
DBufferHubBuffer.cpp44 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/
DBufferHubMetadata_test.cpp70 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()
DBufferHubBuffer_test.cpp136 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/
DBufferHubBuffer.h35 uint64_t usage, size_t userMetadataSize);
67 size_t userMetadataSize() const { return mMetadata.userMetadataSize(); } in userMetadataSize() function
108 uint64_t usage, size_t userMetadataSize);
DBufferHubMetadata.h36 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/
DBufferNode.h20 uint64_t usage, size_t userMetadataSize, int id = -1);
29 size_t userMetadataSize() const { return mMetadata.userMetadataSize(); } in userMetadataSize() function
DBufferHubService.h47 const uint32_t userMetadataSize,
62 uint32_t userMetadataSize, int metadataFd, int eventFd);
/frameworks/native/services/bufferhub/
DBufferHubService.cpp47 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()
DBufferNode.cpp32 uint64_t usage, size_t userMetadataSize, int id) in BufferNode() argument
57 mMetadata = BufferHubMetadata::create(userMetadataSize); in BufferNode()
/frameworks/hardware/interfaces/bufferhub/1.0/
DIBufferHub.hal26 * @param userMetadataSize The size of the user defined metadata in bytes.
34 uint32_t userMetadataSize)
/frameworks/hardware/interfaces/bufferhub/1.0/vts/functional/
DVtsHalBufferHubV1_0TargetTest.cpp104 uint32_t userMetadataSize; in isValidTraits() local
105 memcpy(&userMetadataSize, &bufferTraits.bufferInfo->data[4], sizeof(userMetadataSize)); in isValidTraits()
112 userMetadataSize == kUserMetadataSize; in isValidTraits()
/frameworks/native/services/bufferhub/tests/
DBufferNode_test.cpp44 EXPECT_EQ(mBufferNode->userMetadataSize(), kUserMetadataSize); in TEST_F()