Loading libs/binder/include/binder/IServiceManager.h +7 −0 Original line number Original line Diff line number Diff line Loading @@ -113,6 +113,13 @@ sp<INTERFACE> waitForDeclaredService(const String16& name) { return interface_cast<INTERFACE>(sm->waitForService(name)); return interface_cast<INTERFACE>(sm->waitForService(name)); } } template<typename INTERFACE> sp<INTERFACE> waitForVintfService( const String16& instance = String16("default")) { return waitForDeclaredService<INTERFACE>( INTERFACE::descriptor + String16("/") + instance); } template<typename INTERFACE> template<typename INTERFACE> status_t getService(const String16& name, sp<INTERFACE>* outService) status_t getService(const String16& name, sp<INTERFACE>* outService) { { Loading Loading
libs/binder/include/binder/IServiceManager.h +7 −0 Original line number Original line Diff line number Diff line Loading @@ -113,6 +113,13 @@ sp<INTERFACE> waitForDeclaredService(const String16& name) { return interface_cast<INTERFACE>(sm->waitForService(name)); return interface_cast<INTERFACE>(sm->waitForService(name)); } } template<typename INTERFACE> sp<INTERFACE> waitForVintfService( const String16& instance = String16("default")) { return waitForDeclaredService<INTERFACE>( INTERFACE::descriptor + String16("/") + instance); } template<typename INTERFACE> template<typename INTERFACE> status_t getService(const String16& name, sp<INTERFACE>* outService) status_t getService(const String16& name, sp<INTERFACE>* outService) { { Loading