Home
last modified time | relevance | path

Searched refs:withDefault (Results 1 – 7 of 7) sorted by relevance

/system/libhidl/adapter/
DHidlBinderAdapter.cpp159 sp<IBase> implementation = manager->get(interfaceName, args.instanceName).withDefault(nullptr); in adapterMain()
171 bool replaced = manager->add(args.registerInstanceName, adapter).withDefault(false); in adapterMain()
199 bool restored = manager->add(args.instanceName, implementation).withDefault(false); in adapterMain()
/system/hwservicemanager/
Dservice.cpp149 if (!manager->add(serviceName, manager).withDefault(false)) { in main()
154 if (!manager->add(serviceName, tokenManager).withDefault(false)) { in main()
DServiceManager.cpp401 bool linkRet = service->linkToDeath(this, kServiceDiedCookie).withDefault(false); in addImpl()
500 bool ret = callback->linkToDeath(this, kPackageListenerDiedCookie).withDefault(false); in registerForNotifications()
511 bool ret = callback->linkToDeath(this, kServiceListenerDiedCookie).withDefault(false); in registerForNotifications()
600 bool linkRet = cb->linkToDeath(this, kClientCallbackDiedCookie).withDefault(false); in registerClientCallback()
/system/libhidl/base/include/hidl/
DStatus.h238 T withDefault(T t) { in withDefault() function
267 sp<T> withDefault(sp<T> t) { in withDefault() function
/system/libhidl/
Dtest_main.cpp541 EXPECT_EQ(one, Return<hidl_string>(one).withDefault(two)); in TEST_F()
542 EXPECT_EQ(two, ret.withDefault(two)); in TEST_F()
544 hidl_string&& moved = ret.withDefault(std::move(two)); in TEST_F()
548 EXPECT_EQ(three, ret.withDefault(three)); in TEST_F()
/system/libhidl/transport/
DServiceManagement.cpp708 .withDefault(false)) { in done()
854 sp<IBase> base = pm->get(descriptor, instance).withDefault(nullptr); in getRawServiceInternal()
890 registered = sm->addWithChain(name.c_str(), service, chain).withDefault(false); in registerAsServiceInternal()
/system/chre/host/hal_generic/
Dgeneric_context_hub.cc184 if (!linkReturn.withDefault(false)) { in registerCallback()