Lines Matching refs:options
40 void GenerateNdkInterface(const string& output_file, const Options& options, in GenerateNdkInterface() argument
43 const string i_header = options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::RAW); in GenerateNdkInterface()
45 GenerateInterfaceHeader(*i_writer, types, defined_type, options); in GenerateNdkInterface()
49 options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::CLIENT); in GenerateNdkInterface()
51 GenerateClientHeader(*bp_writer, types, defined_type, options); in GenerateNdkInterface()
55 options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::SERVER); in GenerateNdkInterface()
57 GenerateServerHeader(*bn_writer, types, defined_type, options); in GenerateNdkInterface()
61 GenerateSource(*source_writer, types, defined_type, options); in GenerateNdkInterface()
65 void GenerateNdkParcel(const string& output_file, const Options& options, in GenerateNdkParcel() argument
69 options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::RAW); in GenerateNdkParcel()
71 GenerateParcelHeader(*header_writer, types, defined_type, options); in GenerateNdkParcel()
75 options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::CLIENT); in GenerateNdkParcel()
81 options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::SERVER); in GenerateNdkParcel()
87 GenerateParcelSource(*source_writer, types, defined_type, options); in GenerateNdkParcel()
98 void GenerateNdkEnumDeclaration(const string& output_file, const Options& options, in GenerateNdkEnumDeclaration() argument
102 options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::RAW); in GenerateNdkEnumDeclaration()
104 GenerateEnumHeader(*header_writer, types, defined_type, options); in GenerateNdkEnumDeclaration()
108 options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::CLIENT); in GenerateNdkEnumDeclaration()
114 options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::SERVER); in GenerateNdkEnumDeclaration()
125 void GenerateNdk(const string& output_file, const Options& options, const AidlTypenames& types, in GenerateNdk() argument
129 GenerateNdkParcel(output_file, options, types, *parcelable, io_delegate); in GenerateNdk()
141 GenerateNdkEnumDeclaration(output_file, options, types, *enum_decl, io_delegate); in GenerateNdk()
146 GenerateNdkInterface(output_file, options, types, *interface, io_delegate); in GenerateNdk()
308 const Options& options) { in GenerateSource() argument
313 GenerateClassSource(out, types, defined_type, options); in GenerateSource()
314 GenerateClientSource(out, types, defined_type, options); in GenerateSource()
315 GenerateServerSource(out, types, defined_type, options); in GenerateSource()
316 GenerateInterfaceSource(out, types, defined_type, options); in GenerateSource()
327 const Options& options) { in GenerateClientMethodDefinition() argument
335 if (method.GetName() == kGetInterfaceHash && !options.Hash().empty()) { in GenerateClientMethodDefinition()
344 } else if (method.GetName() == kGetInterfaceVersion && options.Version() > 0) { in GenerateClientMethodDefinition()
357 if (options.GenLog()) { in GenerateClientMethodDefinition()
361 if (options.GenTraces()) { in GenerateClientMethodDefinition()
362 out << "ScopedTrace _aidl_trace(\"AIDL::" << Options::LanguageToString(options.TargetLanguage()) in GenerateClientMethodDefinition()
423 if (method.GetName() == kGetInterfaceHash && !options.Hash().empty()) { in GenerateClientMethodDefinition()
425 } else if (method.GetName() == kGetInterfaceVersion && options.Version() > 0) { in GenerateClientMethodDefinition()
439 if (options.GenLog()) { in GenerateClientMethodDefinition()
452 const AidlMethod& method, const Options& options) { in GenerateServerCaseDefinition() argument
463 if (options.GenTraces()) { in GenerateServerCaseDefinition()
464 out << "ScopedTrace _aidl_trace(\"AIDL::" << Options::LanguageToString(options.TargetLanguage()) in GenerateServerCaseDefinition()
481 if (options.GenLog()) { in GenerateServerCaseDefinition()
488 if (options.GenLog()) { in GenerateServerCaseDefinition()
522 const AidlInterface& defined_type, const Options& options) { in GenerateClassSource() argument
525 if (options.GenTraces()) { in GenerateClassSource()
554 GenerateServerCaseDefinition(out, types, defined_type, *method, options); in GenerateClassSource()
570 const AidlInterface& defined_type, const Options& options) { in GenerateClientSource() argument
575 if (options.GenLog()) { in GenerateClientSource()
580 GenerateClientMethodDefinition(out, types, defined_type, *method, options); in GenerateClientSource()
584 const AidlInterface& defined_type, const Options& options) { in GenerateServerSource() argument
591 if (options.GenLog()) { in GenerateServerSource()
615 if (method->GetName() == kGetInterfaceVersion && options.Version() > 0) { in GenerateServerSource()
623 if (method->GetName() == kGetInterfaceHash && !options.Hash().empty()) { in GenerateServerSource()
634 const AidlInterface& defined_type, const Options& options) { in GenerateInterfaceSource() argument
721 if (method->GetName() == kGetInterfaceVersion && options.Version() > 0) { in GenerateInterfaceSource()
730 if (method->GetName() == kGetInterfaceHash && !options.Hash().empty()) { in GenerateInterfaceSource()
756 const AidlInterface& defined_type, const Options& options) { in GenerateClientHeader() argument
764 if (options.GenLog()) { in GenerateClientHeader()
770 if (options.GenTraces()) { in GenerateClientHeader()
786 if (options.Version() > 0) { in GenerateClientHeader()
790 if (!options.Hash().empty()) { in GenerateClientHeader()
794 if (options.GenLog()) { in GenerateClientHeader()
802 const AidlInterface& defined_type, const Options& options) { in GenerateServerHeader() argument
824 if (method->GetName() == kGetInterfaceVersion && options.Version() > 0) { in GenerateServerHeader()
826 } else if (method->GetName() == kGetInterfaceHash && !options.Hash().empty()) { in GenerateServerHeader()
832 if (options.GenLog()) { in GenerateServerHeader()
847 const AidlInterface& defined_type, const Options& options) { in GenerateInterfaceHeader() argument
852 if (options.GenLog()) { in GenerateInterfaceHeader()
872 if (options.Version() > 0) { in GenerateInterfaceHeader()
873 out << "static const int32_t " << kVersion << " = " << std::to_string(options.Version()) in GenerateInterfaceHeader()
876 if (!options.Hash().empty()) { in GenerateInterfaceHeader()
877 out << "static inline const std::string " << kHash << " = \"" << options.Hash() << "\";\n"; in GenerateInterfaceHeader()
909 } else if (method->GetName() == kGetInterfaceVersion && options.Version() > 0) { in GenerateInterfaceHeader()
911 } else if (method->GetName() == kGetInterfaceHash && !options.Hash().empty()) { in GenerateInterfaceHeader()