Lines Matching refs:sm
109 void setDefaultServiceManager(const sp<IServiceManager>& sm);
113 const sp<IServiceManager> sm = defaultServiceManager();
114 return interface_cast<INTERFACE>(sm->waitForService(name));
119 const sp<IServiceManager> sm = defaultServiceManager();
120 if (!sm->isDeclared(name)) return nullptr;
121 return interface_cast<INTERFACE>(sm->waitForService(name));
126 const sp<IServiceManager> sm = defaultServiceManager();
127 if (!sm->isDeclared(name)) return nullptr;
128 return interface_cast<INTERFACE>(sm->checkService(name));
148 const sp<IServiceManager> sm = defaultServiceManager();
149 if (sm != nullptr) {
150 *outService = interface_cast<INTERFACE>(sm->getService(name));