Lines Matching refs:method
58 bool Interface::fillPingMethod(Method *method) const { in fillPingMethod()
59 if (method->name() != "ping") { in fillPingMethod()
63 method->fillImplementation( in fillPingMethod()
89 bool Interface::fillLinkToDeathMethod(Method *method) const { in fillLinkToDeathMethod()
90 if (method->name() != "linkToDeath") { in fillLinkToDeathMethod()
94 method->fillImplementation( in fillLinkToDeathMethod()
133 bool Interface::fillUnlinkToDeathMethod(Method *method) const { in fillUnlinkToDeathMethod()
134 if (method->name() != "unlinkToDeath") { in fillUnlinkToDeathMethod()
138 method->fillImplementation( in fillUnlinkToDeathMethod()
181 bool Interface::fillSyspropsChangedMethod(Method *method) const { in fillSyspropsChangedMethod()
182 if (method->name() != "notifySyspropsChanged") { in fillSyspropsChangedMethod()
186 method->fillImplementation( in fillSyspropsChangedMethod()
199 bool Interface::fillSetHALInstrumentationMethod(Method *method) const { in fillSetHALInstrumentationMethod()
200 if (method->name() != "setHALInstrumentation") { in fillSetHALInstrumentationMethod()
204 method->fillImplementation( in fillSetHALInstrumentationMethod()
232 bool Interface::fillDescriptorChainMethod(Method *method) const { in fillDescriptorChainMethod()
233 if (method->name() != "interfaceChain") { in fillDescriptorChainMethod()
237 method->fillImplementation( in fillDescriptorChainMethod()
285 bool Interface::fillHashChainMethod(Method *method) const { in fillHashChainMethod()
286 if (method->name() != "getHashChain") { in fillHashChainMethod()
289 const VectorType *chainType = static_cast<const VectorType *>(&method->results()[0]->type()); in fillHashChainMethod()
292 method->fillImplementation( in fillHashChainMethod()
320 bool Interface::fillGetDescriptorMethod(Method *method) const { in fillGetDescriptorMethod()
321 if (method->name() != "interfaceDescriptor") { in fillGetDescriptorMethod()
325 method->fillImplementation( in fillGetDescriptorMethod()
342 bool Interface::fillGetDebugInfoMethod(Method *method) const { in fillGetDebugInfoMethod()
343 if (method->name() != "getDebugInfo") { in fillGetDebugInfoMethod()
354 method->fillImplementation( in fillGetDebugInfoMethod()
380 { { IMPL_INTERFACE, [method](auto &out) { in fillGetDebugInfoMethod()
381 const Type &refInfo = method->results().front()->type(); in fillGetDebugInfoMethod()
394 bool Interface::fillDebugMethod(Method *method) const { in fillDebugMethod()
395 if (method->name() != "debug") { in fillDebugMethod()
399 method->fillImplementation(hardware::IBinder::HIDL_DEBUG_TRANSACTION, in fillDebugMethod()
416 void Interface::addUserDefinedMethod(Method* method) { in addUserDefinedMethod() argument
417 CHECK(!method->isHidlReserved()); in addUserDefinedMethod()
418 mUserMethods.push_back(method); in addUserDefinedMethod()
428 for (const auto* method : methods()) { in getReferences() local
429 const auto& references = method->getReferences(); in getReferences()
446 for (const auto* method : methods()) { in getStrongReferences() local
447 const auto& references = method->getStrongReferences(); in getStrongReferences()
460 for (Method* method : mUserMethods) { in resolveInheritance()
468 method->setSerialId(serial); in resolveInheritance()
504 registeredMethodNames[tuple.method()->name()] = tuple.interface(); in validateUniqueNames()
507 for (const Method* method : mUserMethods) { in validateUniqueNames() local
508 auto registered = registeredMethodNames.find(method->name()); in validateUniqueNames()
515 std::cerr << "ERROR: Redefinition of method '" << method->name() << "'"; in validateUniqueNames()
518 std::cerr << "ERROR: Redefinition of reserved method '" << method->name() << "'"; in validateUniqueNames()
521 std::cerr << "ERROR: Redefinition of method '" << method->name() in validateUniqueNames()
524 std::cerr << " at " << method->location() << std::endl; in validateUniqueNames()
528 registeredMethodNames[method->name()] = this; in validateUniqueNames()
535 for (const Method* method : methods()) { in validateAnnotations() local
536 for (const Annotation* annotation : method->annotations()) { in validateAnnotations()
544 << "' for method: " << method->name() << ". An annotation should be one of: " in validateAnnotations()
556 Method *method = pair.second->copySignature(); in addAllReservedMethods() local
557 bool fillSuccess = fillPingMethod(method) in addAllReservedMethods()
558 || fillDescriptorChainMethod(method) in addAllReservedMethods()
559 || fillGetDescriptorMethod(method) in addAllReservedMethods()
560 || fillHashChainMethod(method) in addAllReservedMethods()
561 || fillSyspropsChangedMethod(method) in addAllReservedMethods()
562 || fillLinkToDeathMethod(method) in addAllReservedMethods()
563 || fillUnlinkToDeathMethod(method) in addAllReservedMethods()
564 || fillSetHALInstrumentationMethod(method) in addAllReservedMethods()
565 || fillGetDebugInfoMethod(method) in addAllReservedMethods()
566 || fillDebugMethod(method); in addAllReservedMethods()
569 std::cerr << "ERROR: hidl-gen does not recognize a reserved method " << method->name() in addAllReservedMethods()
573 if (!reservedMethodsById.emplace(method->getSerialId(), method).second) { in addAllReservedMethods()
574 std::cerr << "ERROR: hidl-gen uses duplicated serial id for " << method->name() in addAllReservedMethods()
575 << " and " << reservedMethodsById[method->getSerialId()]->name() in addAllReservedMethods()
576 << ", serialId = " << method->getSerialId() << std::endl; in addAllReservedMethods()
809 [&](auto method) { method->emitHidlDefinition(out); }); in emitHidlDefinition() argument
876 for (const auto &method : methods()) { in emitVtsMethodDeclaration() local
877 if (method->isHidlReserved()) { in emitVtsMethodDeclaration()
883 out << "name: \"" << method->name() << "\"\n"; in emitVtsMethodDeclaration()
886 for (const auto &result : method->results()) { in emitVtsMethodDeclaration()
895 for (const auto &arg : method->args()) { in emitVtsMethodDeclaration()
904 for (const auto &annotation : method->annotations()) { in emitVtsMethodDeclaration()
943 for (const auto* method : methods()) { in deepIsJavaCompatible() local
944 if (!method->deepIsJavaCompatible(visited)) { in deepIsJavaCompatible()