Home
last modified time | relevance | path

Searched refs:metadataHeader (Results 1 – 6 of 6) sorted by relevance

/frameworks/native/libs/ui/tests/
DBufferHubMetadata_test.cpp35 EXPECT_NE(m1.metadataHeader(), nullptr); in TEST_F()
41 EXPECT_NE(m1.metadataHeader(), nullptr); in TEST_F()
49 BufferHubDefs::MetadataHeader* mh1 = m1.metadataHeader(); in TEST_F()
57 BufferHubDefs::MetadataHeader* mh2 = m2.metadataHeader(); in TEST_F()
68 EXPECT_NE(m1.metadataHeader(), nullptr); in TEST_F()
75 EXPECT_EQ(m1.metadataHeader(), nullptr); in TEST_F()
76 EXPECT_NE(m2.metadataHeader(), nullptr); in TEST_F()
87 EXPECT_EQ(m2.metadataHeader(), nullptr); in TEST_F()
88 EXPECT_NE(m3.metadataHeader(), nullptr); in TEST_F()
/frameworks/native/libs/ui/
DBufferHubMetadata.cpp78 auto metadataHeader = static_cast<MetadataHeader*>(mmap(nullptr, metadataSize, kAshmemProt, in import() local
81 if (metadataHeader == nullptr) { in import()
86 return BufferHubMetadata(userMetadataSize, std::move(ashmemFd), metadataHeader); in import()
90 MetadataHeader* metadataHeader) in BufferHubMetadata() argument
93 mMetadataHeader(metadataHeader) {} in BufferHubMetadata()
DBufferHubBuffer.cpp211 auto metadataHeader = mMetadata.metadataHeader(); in initWithBufferTraits() local
212 mBufferState = &metadataHeader->bufferState; in initWithBufferTraits()
213 mFenceState = &metadataHeader->fenceState; in initWithBufferTraits()
214 mActiveClientsBitMask = &metadataHeader->activeClientsBitMask; in initWithBufferTraits()
/frameworks/native/services/bufferhub/
DBufferNode.cpp17 BufferHubDefs::MetadataHeader* metadataHeader = mMetadata.metadataHeader(); in initializeMetadata() local
18 mBufferState = new (&metadataHeader->bufferState) std::atomic<uint32_t>(0); in initializeMetadata()
19 mFenceState = new (&metadataHeader->fenceState) std::atomic<uint32_t>(0); in initializeMetadata()
20 mActiveClientsBitMask = new (&metadataHeader->activeClientsBitMask) std::atomic<uint32_t>(0); in initializeMetadata()
DBufferHubService.cpp242 MetadataHeader* metadataHeader = in debug() local
243 const_cast<BufferHubMetadata*>(&node->metadata())->metadataHeader(); in debug()
244 const uint32_t state = metadataHeader->bufferState.load(std::memory_order_acquire); in debug()
245 const uint64_t index = metadataHeader->queueIndex; in debug()
/frameworks/native/libs/ui/include/ui/
DBufferHubMetadata.h72 BufferHubDefs::MetadataHeader* metadataHeader() { return mMetadataHeader; } in metadataHeader() function
76 BufferHubDefs::MetadataHeader* metadataHeader);