Home
last modified time | relevance | path

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

/frameworks/native/libs/ftl/
Dexpected_test.cpp64 EXPECT_EQ(ftl::Optional(-1), IntExp(-1).value_opt()); in TEST()
65 EXPECT_EQ(std::nullopt, IntExp(ftl::Unexpected(std::errc::broken_pipe)).value_opt()); in TEST()
70 exp.value_opt().transform([](const auto& s) { return s.front(); })); in TEST()
75 EXPECT_EQ(ftl::Optional(6), std::move(exp).value_opt().transform(&std::string::length)); in TEST()
/frameworks/native/include/ftl/
Dexpected.h122 constexpr Optional<T> value_opt() const& { in value_opt() function
126 constexpr Optional<T> value_opt() && { in value_opt() function
/frameworks/native/services/surfaceflinger/
DDisplayDevice.cpp209 if (const auto vsyncPeriodOpt = mHwComposer.getDisplayVsyncPeriod(physicalId).value_opt()) { in getVsyncPeriodFromHWC()
DSurfaceFlinger.cpp3434 activeModeHwcIdOpt = activeModeHwcIdExp.value_opt(); in loadDisplayModes()
/frameworks/native/services/surfaceflinger/tests/unittests/
DHWComposerTest.cpp156 EXPECT_EQ(mHwc.getActiveMode(info->id).value_opt(), kConfigId); in TEST_F()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWC2.cpp439 getConnectionType().value_opt() != ui::DisplayConnectionType::External)) { in setActiveConfigWithConstraints()