• Home
  • Raw
  • Download

Lines Matching refs:method

62 bool Interface::fillPingMethod(Method *method) const {  in fillPingMethod()
63 if (method->name() != "ping") { in fillPingMethod()
67 method->fillImplementation( in fillPingMethod()
93 bool Interface::fillLinkToDeathMethod(Method *method) const { in fillLinkToDeathMethod()
94 if (method->name() != "linkToDeath") { in fillLinkToDeathMethod()
98 method->fillImplementation( in fillLinkToDeathMethod()
137 bool Interface::fillUnlinkToDeathMethod(Method *method) const { in fillUnlinkToDeathMethod()
138 if (method->name() != "unlinkToDeath") { in fillUnlinkToDeathMethod()
142 method->fillImplementation( in fillUnlinkToDeathMethod()
185 bool Interface::fillSyspropsChangedMethod(Method *method) const { in fillSyspropsChangedMethod()
186 if (method->name() != "notifySyspropsChanged") { in fillSyspropsChangedMethod()
190 method->fillImplementation( in fillSyspropsChangedMethod()
203 bool Interface::fillSetHALInstrumentationMethod(Method *method) const { in fillSetHALInstrumentationMethod()
204 if (method->name() != "setHALInstrumentation") { in fillSetHALInstrumentationMethod()
208 method->fillImplementation( in fillSetHALInstrumentationMethod()
236 bool Interface::fillDescriptorChainMethod(Method *method) const { in fillDescriptorChainMethod()
237 if (method->name() != "interfaceChain") { in fillDescriptorChainMethod()
241 method->fillImplementation( in fillDescriptorChainMethod()
289 bool Interface::fillHashChainMethod(Method *method) const { in fillHashChainMethod()
290 if (method->name() != "getHashChain") { in fillHashChainMethod()
293 const VectorType *chainType = static_cast<const VectorType *>(&method->results()[0]->type()); in fillHashChainMethod()
296 method->fillImplementation( in fillHashChainMethod()
324 bool Interface::fillGetDescriptorMethod(Method *method) const { in fillGetDescriptorMethod()
325 if (method->name() != "interfaceDescriptor") { in fillGetDescriptorMethod()
329 method->fillImplementation( in fillGetDescriptorMethod()
346 bool Interface::fillGetDebugInfoMethod(Method *method) const { in fillGetDebugInfoMethod()
347 if (method->name() != "getDebugInfo") { in fillGetDebugInfoMethod()
358 method->fillImplementation( in fillGetDebugInfoMethod()
384 { { IMPL_INTERFACE, [method](auto &out) { in fillGetDebugInfoMethod()
385 const Type &refInfo = method->results().front()->type(); in fillGetDebugInfoMethod()
398 bool Interface::fillDebugMethod(Method *method) const { in fillDebugMethod()
399 if (method->name() != "debug") { in fillDebugMethod()
403 method->fillImplementation(hardware::IBinder::HIDL_DEBUG_TRANSACTION, in fillDebugMethod()
420 void Interface::addUserDefinedMethod(Method* method) { in addUserDefinedMethod() argument
421 CHECK(!method->isHidlReserved()); in addUserDefinedMethod()
422 mUserMethods.push_back(method); in addUserDefinedMethod()
432 for (const auto* method : methods()) { in getReferences() local
433 const auto& references = method->getReferences(); in getReferences()
450 for (const auto* method : methods()) { in getStrongReferences() local
451 const auto& references = method->getStrongReferences(); in getStrongReferences()
464 for (Method* method : mUserMethods) { in resolveInheritance()
472 method->setSerialId(serial); in resolveInheritance()
505 registeredMethodNames[tuple.method()->name()] = tuple.interface(); in validateUniqueNames()
508 for (const Method* method : mUserMethods) { in validateUniqueNames() local
509 auto registered = registeredMethodNames.find(method->name()); in validateUniqueNames()
516 std::cerr << "ERROR: Redefinition of method '" << method->name() << "'"; in validateUniqueNames()
519 std::cerr << "ERROR: Redefinition of reserved method '" << method->name() << "'"; in validateUniqueNames()
522 std::cerr << "ERROR: Redefinition of method '" << method->name() in validateUniqueNames()
525 std::cerr << " at " << method->location() << std::endl; in validateUniqueNames()
529 registeredMethodNames[method->name()] = this; in validateUniqueNames()
549 for (const Method* method : methods()) { in validateAnnotations() local
550 for (const Annotation* annotation : method->annotations()) { in validateAnnotations()
558 << "' for method: " << method->name() << " at " << method->location() in validateAnnotations()
571 Method *method = pair.second->copySignature(); in addAllReservedMethods() local
572 bool fillSuccess = fillPingMethod(method) in addAllReservedMethods()
573 || fillDescriptorChainMethod(method) in addAllReservedMethods()
574 || fillGetDescriptorMethod(method) in addAllReservedMethods()
575 || fillHashChainMethod(method) in addAllReservedMethods()
576 || fillSyspropsChangedMethod(method) in addAllReservedMethods()
577 || fillLinkToDeathMethod(method) in addAllReservedMethods()
578 || fillUnlinkToDeathMethod(method) in addAllReservedMethods()
579 || fillSetHALInstrumentationMethod(method) in addAllReservedMethods()
580 || fillGetDebugInfoMethod(method) in addAllReservedMethods()
581 || fillDebugMethod(method); in addAllReservedMethods()
584 std::cerr << "ERROR: hidl-gen does not recognize a reserved method " << method->name() in addAllReservedMethods()
588 if (!reservedMethodsById.emplace(method->getSerialId(), method).second) { in addAllReservedMethods()
589 std::cerr << "ERROR: hidl-gen uses duplicated serial id for " << method->name() in addAllReservedMethods()
590 << " and " << reservedMethodsById[method->getSerialId()]->name() in addAllReservedMethods()
591 << ", serialId = " << method->getSerialId() << std::endl; in addAllReservedMethods()
830 [&](auto method) { method->emitHidlDefinition(out); }); in emitHidlDefinition() argument
897 for (const auto &method : methods()) { in emitVtsMethodDeclaration() local
898 if (method->isHidlReserved()) { in emitVtsMethodDeclaration()
904 out << "name: \"" << method->name() << "\"\n"; in emitVtsMethodDeclaration()
907 for (const auto &result : method->results()) { in emitVtsMethodDeclaration()
916 for (const auto &arg : method->args()) { in emitVtsMethodDeclaration()
925 for (const auto &annotation : method->annotations()) { in emitVtsMethodDeclaration()
968 for (const auto* method : methods()) { in deepIsJavaCompatible() local
969 if (!method->deepIsJavaCompatible(visited)) { in deepIsJavaCompatible()