• Home
  • Raw
  • Download

Lines Matching refs:uniqueId

172     void registerUniqueId(unique_id_t uniqueId, std::shared_ptr<C2GraphicAllocation> allocation) {  in registerUniqueId()  argument
173 ALOGV("%s(uniqueId=%u)", __func__, uniqueId); in registerUniqueId()
176 mAllocationsRegistered[uniqueId] = std::move(allocation); in registerUniqueId()
179 std::shared_ptr<C2GraphicAllocation> getRegisteredAllocation(unique_id_t uniqueId) { in getRegisteredAllocation() argument
180 const auto iter = mAllocationsRegistered.find(uniqueId); in getRegisteredAllocation()
186 bool hasUniqueId(unique_id_t uniqueId) const { in hasUniqueId()
187 return mAllocationsRegistered.find(uniqueId) != mAllocationsRegistered.end() || in hasUniqueId()
188 mAllocationsToBeMigrated.find(uniqueId) != mAllocationsToBeMigrated.end(); in hasUniqueId()
191 void updateSlotBuffer(slot_t slotId, unique_id_t uniqueId, sp<GraphicBuffer> slotBuffer) { in updateSlotBuffer() argument
195 mSlotId2GraphicBuffer[slotId] = std::make_pair(uniqueId, std::move(slotBuffer)); in updateSlotBuffer()
246 unique_id_t uniqueId; in migrateLocalBuffers() local
249 std::tie(uniqueId, slotBuffer) = getSlotBuffer(oldSlot); in migrateLocalBuffers()
256 uniqueId, oldSlot); in migrateLocalBuffers()
260 ALOGV("%s() migrated buffer: uniqueId=%u, oldSlot=%d, newSlot=%d", __func__, uniqueId, in migrateLocalBuffers()
262 newSlotId2GraphicBuffer[newSlot] = std::make_pair(uniqueId, std::move(slotBuffer)); in migrateLocalBuffers()
265 if (!moveBufferToRegistered(uniqueId)) { in migrateLocalBuffers()
266 ALOGE("%s() failed to move buffer to registered, uniqueId=%u", __func__, uniqueId); in migrateLocalBuffers()
293 const unique_id_t uniqueId = iter->first; in migrateLostBuffer() local
322 ALOGD("%s(), migrated lost buffer uniqueId=%u to slot=%d", __func__, uniqueId, *newSlot); in migrateLostBuffer()
323 updateSlotBuffer(*newSlot, uniqueId, graphicBuffer); in migrateLostBuffer()
331 registerUniqueId(uniqueId, std::move(allocation)); in migrateLostBuffer()
344 unique_id_t uniqueId; in onBufferDequeued() local
345 std::tie(uniqueId, std::ignore) = getSlotBuffer(slotId); in onBufferDequeued()
347 moveBufferToRegistered(uniqueId); in onBufferDequeued()
373 bool moveBufferToRegistered(unique_id_t uniqueId) { in moveBufferToRegistered() argument
374 ALOGV("%s(uniqueId=%u)", __func__, uniqueId); in moveBufferToRegistered()
375 auto iter = mAllocationsToBeMigrated.find(uniqueId); in moveBufferToRegistered()
380 ALOGE("%s() duplicated uniqueId=%u", __func__, uniqueId); in moveBufferToRegistered()
568 unique_id_t uniqueId; in fetchGraphicBlock() local
570 std::tie(uniqueId, slotBuffer) = mTrackedGraphicBuffers.getSlotBuffer(slot); in fetchGraphicBlock()
571 ALOGV("%s(): dequeued slot=%d uniqueId=%u", __func__, slot, uniqueId); in fetchGraphicBlock()
573 if (!mTrackedGraphicBuffers.hasUniqueId(uniqueId)) { in fetchGraphicBlock()
596 mTrackedGraphicBuffers.registerUniqueId(uniqueId, std::move(allocation)); in fetchGraphicBlock()
612 mTrackedGraphicBuffers.getRegisteredAllocation(uniqueId); in fetchGraphicBlock()
676 const auto uniqueId = mDrmHandleManager.getHandle(slotBuffer->handle->data[0]); in getFreeSlotLocked() local
677 if (!uniqueId) { in getFreeSlotLocked()
681 mTrackedGraphicBuffers.updateSlotBuffer(*slot, *uniqueId, std::move(slotBuffer)); in getFreeSlotLocked()