Home
last modified time | relevance | path

Searched refs:idOpt (Results 1 – 4 of 4) sorted by relevance

/frameworks/native/libs/ui/tests/
DDisplayId_test.cpp80 const auto idOpt = GpuVirtualDisplayId::fromUniqueId(kUniqueId); in TEST() local
81 ASSERT_TRUE(idOpt.has_value()); in TEST()
82 const GpuVirtualDisplayId id = idOpt.value(); in TEST()
/frameworks/native/services/surfaceflinger/Scheduler/
DScheduler.h251 VsyncSchedulePtr getVsyncSchedule(std::optional<PhysicalDisplayId> idOpt = std::nullopt)
253 return std::const_pointer_cast<VsyncSchedule>(std::as_const(*this).getVsyncSchedule(idOpt)); in EXCLUDES()
569 VsyncSchedulePtr getVsyncScheduleLocked(std::optional<PhysicalDisplayId> idOpt = std::nullopt)
572 static_cast<const Scheduler*>(this)->getVsyncScheduleLocked(idOpt)); in REQUIRES()
DScheduler.cpp767 auto Scheduler::getVsyncSchedule(std::optional<PhysicalDisplayId> idOpt) const in getVsyncSchedule()
770 return getVsyncScheduleLocked(idOpt); in getVsyncSchedule()
773 auto Scheduler::getVsyncScheduleLocked(std::optional<PhysicalDisplayId> idOpt) const in getVsyncScheduleLocked()
777 if (!idOpt) { in getVsyncScheduleLocked()
779 idOpt = mPacesetterDisplayId; in getVsyncScheduleLocked()
782 const auto displayOpt = mDisplays.get(*idOpt); in getVsyncScheduleLocked()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp3009 if (const auto idOpt = PhysicalDisplayId::tryCast(id)) { in composite() local
3010 resultsPerDisplay.try_emplace(*idOpt, CompositeResult{coverage}); in composite()
9122 const auto idOpt = PhysicalDisplayId::tryCast(display.getId()); in getActivatableDisplay()
9123 return idOpt && *idOpt != mActiveDisplayId && display.isPoweredOn() && in getActivatableDisplay()
9124 mPhysicalDisplays.get(*idOpt) in getActivatableDisplay()
9188 const auto idOpt = getHwComposer().toPhysicalDisplayId(hwcDisplayId); in updateHdcpLevels() local
9189 if (!idOpt) { in updateHdcpLevels()
9197 mPhysicalDisplays.get(*idOpt).transform(&PhysicalDisplay::isInternal).value_or(false); in updateHdcpLevels()
9205 static_cast<void>(mScheduler->schedule([this, displayId = *idOpt, connectedLevel, maxLevel]() { in updateHdcpLevels()