Lines Matching refs:INTERFACE
162 template<typename INTERFACE>
163 sp<INTERFACE> waitForService(const String16& name) {
165 return interface_cast<INTERFACE>(sm->waitForService(name));
168 template<typename INTERFACE>
169 sp<INTERFACE> waitForDeclaredService(const String16& name) {
172 return interface_cast<INTERFACE>(sm->waitForService(name));
175 template <typename INTERFACE>
176 sp<INTERFACE> checkDeclaredService(const String16& name) {
179 return interface_cast<INTERFACE>(sm->checkService(name));
182 template<typename INTERFACE>
183 sp<INTERFACE> waitForVintfService(
185 return waitForDeclaredService<INTERFACE>(
186 INTERFACE::descriptor + String16("/") + instance);
189 template<typename INTERFACE>
190 sp<INTERFACE> checkVintfService(
192 return checkDeclaredService<INTERFACE>(
193 INTERFACE::descriptor + String16("/") + instance);
196 template<typename INTERFACE>
197 status_t getService(const String16& name, sp<INTERFACE>* outService)
203 *outService = interface_cast<INTERFACE>(sm->getService(name));