Home
last modified time | relevance | path

Searched refs:defined_type (Results 1 – 13 of 13) sorted by relevance

/system/tools/aidl/
Dgenerate_ndk.cpp39 const AidlTypenames& types, const AidlInterface& defined_type, in GenerateNdkInterface() argument
41 const string i_header = options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::RAW); in GenerateNdkInterface()
43 GenerateInterfaceHeader(*i_writer, types, defined_type, options); in GenerateNdkInterface()
47 options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::CLIENT); in GenerateNdkInterface()
49 GenerateClientHeader(*bp_writer, types, defined_type, options); in GenerateNdkInterface()
53 options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::SERVER); in GenerateNdkInterface()
55 GenerateServerHeader(*bn_writer, types, defined_type, options); in GenerateNdkInterface()
59 GenerateSource(*source_writer, types, defined_type, options); in GenerateNdkInterface()
64 const AidlTypenames& types, const AidlStructuredParcelable& defined_type, in GenerateNdkParcel() argument
67 options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::RAW); in GenerateNdkParcel()
[all …]
Dgenerate_ndk.h30 const AidlDefinedType& defined_type, const IoDelegate& io_delegate);
33 void GenerateSource(CodeWriter& out, const AidlTypenames& types, const AidlInterface& defined_type,
36 const AidlInterface& defined_type, const Options& options);
38 const AidlInterface& defined_type, const Options& options);
40 const AidlInterface& defined_type, const Options& options);
42 const AidlInterface& defined_type, const Options& options);
44 const AidlInterface& defined_type, const Options& options);
46 const AidlInterface& defined_type, const Options& options);
48 const AidlInterface& defined_type, const Options& options);
51 const AidlStructuredParcelable& defined_type, const Options& options);
[all …]
Daidl.cpp94 bool check_filename(const std::string& filename, const AidlDefinedType& defined_type) { in check_filename() argument
105 const std::string package = defined_type.GetPackage(); in check_filename()
118 const std::string name = defined_type.GetName(); in check_filename()
149 AIDL_ERROR(defined_type) << name << " should be declared in a file called " << expected; in check_filename()
211 bool write_dep_file(const Options& options, const AidlDefinedType& defined_type, in write_dep_file() argument
255 HeaderFile(defined_type, c, false /* use_os_sep */)); in write_dep_file()
269 string generate_outputFileName(const Options& options, const AidlDefinedType& defined_type) { in generate_outputFileName() argument
274 string package = defined_type.GetPackage(); in generate_outputFileName()
285 const string& name = defined_type.GetName(); in generate_outputFileName()
586 for (const auto defined_type : main_parser->GetDefinedTypes()) { in load_and_validate_aidl() local
[all …]
Daidl_to_cpp_common.h40 string ClassName(const AidlDefinedType& defined_type, ClassNames type);
45 std::string HeaderFile(const AidlDefinedType& defined_type, ClassNames class_type,
48 void EnterNamespace(CodeWriter& out, const AidlDefinedType& defined_type);
49 void LeaveNamespace(CodeWriter& out, const AidlDefinedType& defined_type);
Daidl_to_cpp_common.cpp27 string ClassName(const AidlDefinedType& defined_type, ClassNames type) { in ClassName() argument
28 string base_name = defined_type.GetName(); in ClassName()
47 return defined_type.GetName(); in ClassName()
51 std::string HeaderFile(const AidlDefinedType& defined_type, ClassNames class_type, in HeaderFile() argument
53 std::string file_path = defined_type.GetPackage(); in HeaderFile()
62 file_path += ClassName(defined_type, class_type); in HeaderFile()
68 void EnterNamespace(CodeWriter& out, const AidlDefinedType& defined_type) { in EnterNamespace() argument
69 const std::vector<std::string> packages = defined_type.GetSplitPackage(); in EnterNamespace()
74 void LeaveNamespace(CodeWriter& out, const AidlDefinedType& defined_type) { in LeaveNamespace() argument
75 const std::vector<std::string> packages = defined_type.GetSplitPackage(); in LeaveNamespace()
Dgenerate_aidl_mappings.cpp30 SignatureMap generate_mappings(const AidlDefinedType* defined_type) { in generate_mappings() argument
31 const AidlInterface* interface = defined_type->AsInterface(); in generate_mappings()
Daidl_typenames.cpp154 const AidlDefinedType* defined_type = TryGetDefinedType(type_name); in ResolveTypename() local
155 if (defined_type != nullptr) { in ResolveTypename()
156 return make_pair(defined_type->GetCanonicalName(), true); in ResolveTypename()
Dgenerate_java.cpp74 bool generate_java(const std::string& filename, const AidlDefinedType* defined_type, in generate_java() argument
77 const AidlStructuredParcelable* parcelable = defined_type->AsStructuredParcelable(); in generate_java()
82 const AidlParcelable* parcelable_decl = defined_type->AsParcelable(); in generate_java()
87 const AidlInterface* interface = defined_type->AsInterface(); in generate_java()
Daidl_to_ndk.h31 std::string NdkHeaderFile(const AidlDefinedType& defined_type, cpp::ClassNames name,
Dtype_namespace.h118 virtual const ValidatableType* GetDefinedType(const AidlDefinedType& defined_type) const = 0;
154 const ValidatableType* GetDefinedType(const AidlDefinedType& defined_type) const override { in GetDefinedType() argument
155 return FindTypeByCanonicalName(defined_type.GetCanonicalName()); in GetDefinedType()
Dtype_cpp.cpp147 static string GetCppHeader(const AidlDefinedType& defined_type) { in GetCppHeader() argument
148 vector<string> name = defined_type.GetSplitPackage(); in GetCppHeader()
149 name.push_back(defined_type.GetName()); in GetCppHeader()
Dgenerate_cpp.cpp209 string BuildHeaderGuard(const AidlDefinedType& defined_type, ClassNames header_type) { in BuildHeaderGuard() argument
210 string class_name = ClassName(defined_type, header_type); in BuildHeaderGuard()
217 string ret = StringPrintf("AIDL_GENERATED_%s_%s_H_", defined_type.GetPackage().c_str(), in BuildHeaderGuard()
1226 const AidlDefinedType& defined_type, const IoDelegate& io_delegate) { in GenerateCpp() argument
1227 const AidlStructuredParcelable* parcelable = defined_type.AsStructuredParcelable(); in GenerateCpp()
1232 const AidlParcelable* parcelable_decl = defined_type.AsParcelable(); in GenerateCpp()
1237 const AidlInterface* interface = defined_type.AsInterface(); in GenerateCpp()
Daidl_to_ndk.cpp31 std::string NdkHeaderFile(const AidlDefinedType& defined_type, cpp::ClassNames name, in NdkHeaderFile() argument
34 return std::string("aidl") + seperator + cpp::HeaderFile(defined_type, name, use_os_sep); in NdkHeaderFile()