Home
last modified time | relevance | path

Searched refs:and_then (Results 1 – 15 of 15) sorted by relevance

/frameworks/native/libs/ftl/
Doptional_test.cpp122 EXPECT_EQ(std::nullopt, Optional<int>().and_then([](int) -> Optional<int> { return 0; })); in TEST()
123 EXPECT_EQ(std::nullopt, Optional<int>().and_then([](int) { return Optional<int>(); })); in TEST()
126 EXPECT_EQ(0, Optional(0).and_then([](int x) { return Optional(x); })); in TEST()
127 EXPECT_EQ(123, Optional("123").and_then(parse_int)); in TEST()
128 EXPECT_EQ(std::nullopt, Optional("abc").and_then(parse_int)); in TEST()
133 EXPECT_EQ('z', opt.and_then([](char& c) { in TEST()
144 EXPECT_EQ("xyz"s, Optional("abc"s).and_then([&out](std::string&& str) { in TEST()
155 .and_then([](StringVector&& v) -> Optional<StringVector> { in TEST()
159 .and_then([](const StringVector& v) -> Optional<std::string> { in TEST()
163 .and_then(parse_int) in TEST()
[all …]
/frameworks/native/include/ftl/
Doptional.h73 constexpr auto and_then(F&& f) const& { in and_then() function
80 constexpr auto and_then(F&& f) & { in and_then() function
87 constexpr auto and_then(F&& f) const&& { in and_then() function
94 constexpr auto and_then(F&& f) && { in and_then() function
/frameworks/native/libs/binder/rust/src/
Derror.rs150 Self::new_service_specific_error(err, message.and_then(to_cstring).as_deref()) in new_service_specific_error_str()
172 Self::new_exception(exception, message.and_then(to_cstring).as_deref()) in new_exception_str()
255 pub fn and_then<T, F>(self, op: F) -> result::Result<T, Status> in and_then() method
Dbinder.rs471 self.weak_binder.promote().ok_or(StatusCode::DEAD_OBJECT).and_then(FromIBinder::try_from) in upgrade()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DCompositionEngine.cpp100 if (!ftl::Optional(output->getDisplayId()).and_then(HalDisplayId::tryCast)) { in offloadOutputs()
DOutput.cpp438 .and_then(PhysicalDisplayId::tryCast) in present()
439 .and_then([&refreshArgs](PhysicalDisplayId id) { in present()
849 .and_then(PhysicalDisplayId::tryCast) in writeCompositionState()
850 .and_then([&refreshArgs](PhysicalDisplayId id) { in writeCompositionState()
DDisplay.cpp208 if (const auto displayId = ftl::Optional(getDisplayId()).and_then(PhysicalDisplayId::tryCast); in applyDisplayBrightness()
/frameworks/native/libs/binder/rust/tests/
Dserialization.rs239 unsafe { expected.as_ref().and_then(|e| CStr::from_ptr(e).to_str().ok()) }; in on_transact()
/frameworks/native/services/surfaceflinger/Scheduler/
DScheduler.h543 return mPacesetterDisplayId.and_then([this](PhysicalDisplayId pacesetterId) in pacesetterDisplayLocked()
DRefreshRateSelector.cpp1086 .and_then([this](DisplayModeId modeId) in onKernelTimerChanged()
1623 .and_then(&ftl::enum_name<KernelIdleTimerController>) in dump()
DScheduler.cpp644 (ftl::FakeGuard(mDisplayLock), mDisplays.get(id)).and_then([](const Display& display) { in addPresentFence()
/frameworks/native/services/surfaceflinger/tests/unittests/
DTestableSurfaceFlinger.h966 .and_then(&PhysicalDisplayId::tryCast) in physicalDisplay()
967 .and_then(display::getPhysicalDisplay(mFlinger.physicalDisplays())); in physicalDisplay()
/frameworks/native/libs/binder/rust/src/parcel/
Dparcelable.rs798 i32::deserialize(parcel).and_then(Stability::try_from) in deserialize()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp1128 const auto displayOpt = mPhysicalDisplays.get(*id).and_then(getDisplayDeviceAndSnapshot()); in getStaticDisplayInfo()
1245 const auto displayOpt = mPhysicalDisplays.get(*id_).and_then(getDisplayDeviceAndSnapshot()); in getDynamicDisplayInfoFromId()
1266 .and_then(getDisplayDeviceAndSnapshot()); in getDynamicDisplayInfoFromToken()
1381 .and_then(getDisplayDeviceAndSnapshot())); in setActiveModeFromBackdoor()
1608 .and_then(getDisplayDeviceAndSnapshot()); in setActiveColorMode()
8701 .and_then([&](const display::DisplaySnapshot& snapshot) { in getPreferredDisplayMode()
DSurfaceFlinger.h1045 .and_then(display::getPhysicalDisplay(mPhysicalDisplays)) in makeLayerFilterForDisplay()