Searched refs:withDefault (Results 1 – 8 of 8) sorted by relevance
/system/libhidl/adapter/ |
D | HidlBinderAdapter.cpp | 159 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/ |
D | service.cpp | 152 if (!manager->add(serviceName, manager).withDefault(false)) { in main() 157 if (!manager->add(serviceName, tokenManager).withDefault(false)) { in main()
|
D | ServiceManager.cpp | 448 bool linkRet = service->linkToDeath(this, kServiceDiedCookie).withDefault(false); in addImpl() 547 bool ret = callback->linkToDeath(this, kPackageListenerDiedCookie).withDefault(false); in registerForNotifications() 558 bool ret = callback->linkToDeath(this, kServiceListenerDiedCookie).withDefault(false); in registerForNotifications() 647 bool linkRet = cb->linkToDeath(this, kClientCallbackDiedCookie).withDefault(false); in registerClientCallback()
|
/system/libhidl/base/include/hidl/ |
D | Status.h | 238 T withDefault(T t) { in withDefault() function 267 sp<T> withDefault(sp<T> t) { in withDefault() function
|
/system/libhidl/ |
D | test_main.cpp | 555 EXPECT_EQ(one, Return<hidl_string>(one).withDefault(two)); in TEST_F() 556 EXPECT_EQ(two, ret.withDefault(two)); in TEST_F() 558 hidl_string&& moved = ret.withDefault(std::move(two)); in TEST_F() 562 EXPECT_EQ(three, ret.withDefault(three)); in TEST_F()
|
/system/security/keystore2/apc_compat/ |
D | apc_compat.cpp | 109 return responseCode2Compat(rc.withDefault(ResponseCode::SystemError)); in promptUserConfirmation()
|
/system/libhidl/transport/ |
D | ServiceManagement.cpp | 679 .withDefault(false)) { in done() 825 sp<IBase> base = pm->get(descriptor, instance).withDefault(nullptr); in getRawServiceInternal() 867 registered = sm->addWithChain(name.c_str(), service, chain).withDefault(false); in registerAsServiceInternal()
|
/system/chre/host/hal_generic/common/ |
D | generic_context_hub_base.h | 206 if (!linkReturn.withDefault(false)) { in registerCallbackCommon()
|