Lines Matching refs:method

209     for (const auto& method : interface->GetMethods()) {  in GenerateHeaderIncludes()  local
210 includes.insert(headerFilePath(method->GetType())); in GenerateHeaderIncludes()
211 for (const auto& argument : method->GetArguments()) { in GenerateHeaderIncludes()
326 const AidlMethod& method, in GenerateClientMethodDefinition() argument
330 out << NdkMethodDecl(types, method, clazz) << " {\n"; in GenerateClientMethodDefinition()
335 if (method.GetName() == kGetInterfaceHash && !options.Hash().empty()) { in GenerateClientMethodDefinition()
344 } else if (method.GetName() == kGetInterfaceVersion && options.Version() > 0) { in GenerateClientMethodDefinition()
358 out << cpp::GenLogBeforeExecute(ClassName(defined_type, ClassNames::CLIENT), method, in GenerateClientMethodDefinition()
363 << "::" << ClassName(defined_type, ClassNames::INTERFACE) << "::" << method.GetName() in GenerateClientMethodDefinition()
370 for (const auto& arg : method.GetArguments()) { in GenerateClientMethodDefinition()
387 out << MethodId(method) << ",\n"; in GenerateClientMethodDefinition()
390 out << (method.IsOneway() ? "FLAG_ONEWAY" : "0") << "\n"; in GenerateClientMethodDefinition()
403 out << "_aidl_status = " << iface << "::getDefaultImpl()->" << method.GetName() << "("; in GenerateClientMethodDefinition()
404 out << NdkArgList(types, method, FormatArgNameOnly) << ");\n"; in GenerateClientMethodDefinition()
411 if (!method.IsOneway()) { in GenerateClientMethodDefinition()
418 if (method.GetType().GetName() != "void") { in GenerateClientMethodDefinition()
420 ReadFromParcelFor({out, types, method.GetType(), "_aidl_out.get()", "_aidl_return"}); in GenerateClientMethodDefinition()
423 if (method.GetName() == kGetInterfaceHash && !options.Hash().empty()) { in GenerateClientMethodDefinition()
425 } else if (method.GetName() == kGetInterfaceVersion && options.Version() > 0) { in GenerateClientMethodDefinition()
429 for (const AidlArgument* arg : method.GetOutArguments()) { in GenerateClientMethodDefinition()
441 method, "_aidl_status", "_aidl_return", false /* isServer */, in GenerateClientMethodDefinition()
452 const AidlMethod& method, const Options& options) { in GenerateServerCaseDefinition() argument
453 out << "case " << MethodId(method) << ": {\n"; in GenerateServerCaseDefinition()
455 for (const auto& arg : method.GetArguments()) { in GenerateServerCaseDefinition()
459 if (method.GetType().GetName() != "void") { in GenerateServerCaseDefinition()
460 out << NdkNameOf(types, method.GetType(), StorageMode::STACK) << " _aidl_return;\n"; in GenerateServerCaseDefinition()
465 << "::" << ClassName(defined_type, ClassNames::INTERFACE) << "::" << method.GetName() in GenerateServerCaseDefinition()
469 for (const auto& arg : method.GetArguments()) { in GenerateServerCaseDefinition()
482 out << cpp::GenLogBeforeExecute(ClassName(defined_type, ClassNames::SERVER), method, in GenerateServerCaseDefinition()
485 out << "::ndk::ScopedAStatus _aidl_status = _aidl_impl->" << method.GetName() << "(" in GenerateServerCaseDefinition()
486 << NdkArgList(types, method, FormatArgForCall) << ");\n"; in GenerateServerCaseDefinition()
490 method, "_aidl_status", "_aidl_return", true /* isServer */, in GenerateServerCaseDefinition()
493 if (method.IsOneway()) { in GenerateServerCaseDefinition()
503 if (method.GetType().GetName() != "void") { in GenerateServerCaseDefinition()
505 WriteToParcelFor({out, types, method.GetType(), "_aidl_out", "_aidl_return"}); in GenerateServerCaseDefinition()
509 for (const AidlArgument* arg : method.GetOutArguments()) { in GenerateServerCaseDefinition()
553 for (const auto& method : defined_type.GetMethods()) { in GenerateClassSource() local
554 GenerateServerCaseDefinition(out, types, defined_type, *method, options); in GenerateClassSource()
579 for (const auto& method : defined_type.GetMethods()) { in GenerateClientSource() local
580 GenerateClientMethodDefinition(out, types, defined_type, *method, options); in GenerateClientSource()
611 for (const auto& method : defined_type.GetMethods()) { in GenerateServerSource() local
612 if (method->IsUserDefined()) { in GenerateServerSource()
615 if (method->GetName() == kGetInterfaceVersion && options.Version() > 0) { in GenerateServerSource()
616 out << NdkMethodDecl(types, *method, clazz) << " {\n"; in GenerateServerSource()
623 if (method->GetName() == kGetInterfaceHash && !options.Hash().empty()) { in GenerateServerSource()
624 out << NdkMethodDecl(types, *method, clazz) << " {\n"; in GenerateServerSource()
710 for (const auto& method : defined_type.GetMethods()) { in GenerateInterfaceSource() local
711 if (method->IsUserDefined()) { in GenerateInterfaceSource()
712 out << "::ndk::ScopedAStatus " << defaultClazz << "::" << method->GetName() << "(" in GenerateInterfaceSource()
713 << NdkArgList(types, *method, FormatArgNameUnused) << ") {\n"; in GenerateInterfaceSource()
721 if (method->GetName() == kGetInterfaceVersion && options.Version() > 0) { in GenerateInterfaceSource()
722 out << "::ndk::ScopedAStatus " << defaultClazz << "::" << method->GetName() << "(" in GenerateInterfaceSource()
730 if (method->GetName() == kGetInterfaceHash && !options.Hash().empty()) { in GenerateInterfaceSource()
731 out << "::ndk::ScopedAStatus " << defaultClazz << "::" << method->GetName() << "(" in GenerateInterfaceSource()
782 for (const auto& method : defined_type.GetMethods()) { in GenerateClientHeader() local
783 out << NdkMethodDecl(types, *method) << " override;\n"; in GenerateClientHeader()
820 for (const auto& method : defined_type.GetMethods()) { in GenerateServerHeader() local
821 if (method->IsUserDefined()) { in GenerateServerHeader()
824 if (method->GetName() == kGetInterfaceVersion && options.Version() > 0) { in GenerateServerHeader()
825 out << NdkMethodDecl(types, *method) << " final override;\n"; in GenerateServerHeader()
826 } else if (method->GetName() == kGetInterfaceHash && !options.Hash().empty()) { in GenerateServerHeader()
827 out << NdkMethodDecl(types, *method) << " final override;\n"; in GenerateServerHeader()
829 AIDL_FATAL(defined_type) << "Meta method '" << method->GetName() << "' is unimplemented."; in GenerateServerHeader()
891 for (const auto& method : defined_type.GetMethods()) { in GenerateInterfaceHeader() local
892 out << "virtual " << NdkMethodDecl(types, *method) << " = 0;\n"; in GenerateInterfaceHeader()
906 for (const auto& method : defined_type.GetMethods()) { in GenerateInterfaceHeader() local
907 if (method->IsUserDefined()) { in GenerateInterfaceHeader()
908 out << NdkMethodDecl(types, *method) << " override;\n"; in GenerateInterfaceHeader()
909 } else if (method->GetName() == kGetInterfaceVersion && options.Version() > 0) { in GenerateInterfaceHeader()
910 out << NdkMethodDecl(types, *method) << " override;\n"; in GenerateInterfaceHeader()
911 } else if (method->GetName() == kGetInterfaceHash && !options.Hash().empty()) { in GenerateInterfaceHeader()
912 out << NdkMethodDecl(types, *method) << " override;\n"; in GenerateInterfaceHeader()