Home
last modified time | relevance | path

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

/system/tools/aidl/
Dgenerate_ndk.cpp42 const AidlStructuredParcelable& defined_type, const Options& options);
44 const AidlStructuredParcelable& defined_type, const Options& options);
46 const AidlUnionDecl& defined_type, const Options& options);
48 const AidlUnionDecl& defined_type, const Options& options);
54 const AidlTypenames& types, const AidlInterface& defined_type, in GenerateNdkInterface() argument
56 const string i_header = options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::RAW); in GenerateNdkInterface()
58 GenerateInterfaceHeader(*i_writer, types, defined_type, options); in GenerateNdkInterface()
62 options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::CLIENT); in GenerateNdkInterface()
64 GenerateClientHeader(*bp_writer, types, defined_type, options); in GenerateNdkInterface()
68 options.OutputHeaderDir() + NdkHeaderFile(defined_type, ClassNames::SERVER); in GenerateNdkInterface()
[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);
Daidl_typenames.cpp136 for (const auto& defined_type : doc->DefinedTypes()) { in GetDocumentFor() local
137 if (defined_type.get() == type) { in GetDocumentFor()
175 if (auto defined_type = TryGetDefinedType(type_name); defined_type) { in IsParcelable() local
176 return defined_type->AsParcelable() != nullptr; in IsParcelable()
233 const AidlDefinedType* defined_type = TryGetDefinedType(type_name); in ResolveTypename() local
234 if (defined_type != nullptr) { in ResolveTypename()
235 return {defined_type->GetCanonicalName(), true, defined_type}; in ResolveTypename()
336 if (auto defined_type = TryGetDefinedType(type.GetName()); defined_type != nullptr) { in GetEnumDeclaration() local
337 if (auto enum_decl = defined_type->AsEnumDeclaration(); enum_decl != nullptr) { in GetEnumDeclaration()
345 if (auto defined_type = TryGetDefinedType(type.GetName()); defined_type != nullptr) { in GetInterface() local
[all …]
Daidl.cpp95 bool check_filename(const std::string& filename, const AidlDefinedType& defined_type) { in check_filename() argument
106 const std::string package = defined_type.GetPackage(); in check_filename()
119 const std::string name = defined_type.GetName(); in check_filename()
150 AIDL_ERROR(defined_type) << name << " should be declared in a file called " << expected; in check_filename()
156 bool write_dep_file(const Options& options, const AidlDefinedType& defined_type, in write_dep_file() argument
180 if (defined_type.AsUnstructuredParcelable() != nullptr && in write_dep_file()
207 HeaderFile(defined_type, c, false /* use_os_sep */)); in write_dep_file()
222 string GetOutputFilePath(const Options& options, const AidlDefinedType& defined_type) { in GetOutputFilePath() argument
226 string package = defined_type.GetPackage(); in GetOutputFilePath()
238 result += defined_type.GetName(); in GetOutputFilePath()
[all …]
Daidl_to_cpp_common.cpp52 string ClassName(const AidlDefinedType& defined_type, ClassNames type) { in ClassName() argument
53 string base_name = defined_type.GetName(); in ClassName()
72 return defined_type.GetName(); in ClassName()
76 std::string HeaderFile(const AidlDefinedType& defined_type, ClassNames class_type, in HeaderFile() argument
78 std::string file_path = defined_type.GetPackage(); in HeaderFile()
87 file_path += ClassName(defined_type, class_type); in HeaderFile()
93 void EnterNamespace(CodeWriter& out, const AidlDefinedType& defined_type) { in EnterNamespace() argument
94 const std::vector<std::string> packages = defined_type.GetSplitPackage(); in EnterNamespace()
99 void LeaveNamespace(CodeWriter& out, const AidlDefinedType& defined_type) { in LeaveNamespace() argument
100 const std::vector<std::string> packages = defined_type.GetSplitPackage(); in LeaveNamespace()
[all …]
Daidl_to_cpp_common.h44 string ClassName(const AidlDefinedType& defined_type, ClassNames type);
49 std::string HeaderFile(const AidlDefinedType& defined_type, ClassNames class_type,
52 void EnterNamespace(CodeWriter& out, const AidlDefinedType& defined_type);
53 void LeaveNamespace(CodeWriter& out, const AidlDefinedType& defined_type);
78 std::string TemplateDecl(const AidlParcelable& defined_type);
Dgenerate_aidl_mappings.cpp30 SignatureMap generate_mappings(const AidlDefinedType* defined_type, in generate_mappings() argument
32 const AidlInterface* interface = defined_type->AsInterface(); in generate_mappings()
Daidl_dumpapi.cpp153 static string GetApiDumpPathFor(const AidlDefinedType& defined_type, const Options& options) { in GetApiDumpPathFor() argument
154 string package_as_path = Join(Split(defined_type.GetPackage(), "."), OS_PATH_SEPARATOR); in GetApiDumpPathFor()
155 AIDL_FATAL_IF(options.OutputDir().empty() || options.OutputDir().back() != '/', defined_type); in GetApiDumpPathFor()
156 return options.OutputDir() + package_as_path + OS_PATH_SEPARATOR + defined_type.GetName() + in GetApiDumpPathFor()
Daidl_language.cpp495 defined_type_ = result.defined_type; in Resolve()
528 const auto defined_type = typenames.TryGetDefinedType(type_name); in CheckValid() local
530 defined_type != nullptr ? defined_type->AsParameterizable() : nullptr; in CheckValid()
607 const auto defined_type = typenames.TryGetDefinedType(GetName()); in CheckValid() local
608 if (defined_type != nullptr && defined_type->AsInterface() != nullptr) { in CheckValid()
623 const auto defined_type = typenames.TryGetDefinedType(GetName()); in CheckValid() local
624 if (defined_type != nullptr && defined_type->AsEnumDeclaration() != nullptr && !IsArray()) { in CheckValid()
642 if (auto defined_type = type.GetDefinedType(); defined_type) { in AidlConstantValueDecorator() local
643 auto enum_type = defined_type->AsEnumDeclaration(); in AidlConstantValueDecorator()
1110 const auto defined_type = typenames.TryGetDefinedType(GetName()); in LanguageSpecificCheckValid() local
[all …]
Daidl_to_rust.cpp69 if (auto defined_type = type.GetDefinedType(); defined_type) { in ConstantValueDecoratorInternal() local
70 auto enum_type = defined_type->AsEnumDeclaration(); in ConstantValueDecoratorInternal()
Daidl_const_expressions.cpp487 const AidlDefinedType* defined_type = type.GetDefinedType(); in ValueString() local
488 if (defined_type && !type.IsArray()) { in ValueString()
489 const AidlEnumDeclaration* enum_type = defined_type->AsEnumDeclaration(); in ValueString()
491 AIDL_ERROR(this) << "Invalid type (" << defined_type->GetCanonicalName() in ValueString()
751 const AidlDefinedType* defined_type; in Resolve() local
753 defined_type = ref_type_->GetDefinedType(); in Resolve()
755 defined_type = scope; in Resolve()
758 if (!defined_type) { in Resolve()
765 if (auto enum_decl = defined_type->AsEnumDeclaration(); enum_decl) { in Resolve()
772 for (const auto& c : defined_type->GetConstantDeclarations()) { in Resolve()
[all …]
Ddiagnostics.cpp182 const auto defined_type = v.GetType().GetDefinedType(); in CheckExplicitDefault() local
183 if (defined_type && defined_type->AsEnumDeclaration()) { in CheckExplicitDefault()
Daidl_to_ndk.cpp32 std::string NdkHeaderFile(const AidlDefinedType& defined_type, cpp::ClassNames name, in NdkHeaderFile() argument
35 return std::string("aidl") + seperator + cpp::HeaderFile(defined_type, name, use_os_sep); in NdkHeaderFile()
81 if (auto defined_type = type.GetDefinedType(); defined_type) { in ConstantValueDecorator() local
82 auto enum_type = defined_type->AsEnumDeclaration(); in ConstantValueDecorator()
Daidl_to_cpp.cpp206 if (auto defined_type = type.GetDefinedType(); defined_type) { in ConstantValueDecorator() local
207 auto enum_type = defined_type->AsEnumDeclaration(); in ConstantValueDecorator()
Daidl_to_ndk.h31 std::string NdkHeaderFile(const AidlDefinedType& defined_type, cpp::ClassNames name,
Daidl_typenames.h74 const AidlDefinedType* defined_type; member
Dgenerate_rust.cpp795 bool GenerateRust(const string& filename, const AidlDefinedType* defined_type, in GenerateRust() argument
798 if (const AidlStructuredParcelable* parcelable = defined_type->AsStructuredParcelable(); in GenerateRust()
803 if (const AidlUnionDecl* parcelable = defined_type->AsUnionDeclaration(); parcelable != nullptr) { in GenerateRust()
807 if (const AidlEnumDeclaration* enum_decl = defined_type->AsEnumDeclaration(); in GenerateRust()
812 if (const AidlInterface* interface = defined_type->AsInterface(); interface != nullptr) { in GenerateRust()
Dgenerate_cpp.cpp1565 const AidlDefinedType& defined_type) { in ValidateOutputFilePath() argument
1574 string canonical_name = defined_type.GetCanonicalName(); in ValidateOutputFilePath()
1578 AIDL_ERROR(defined_type) << "Output file is expected to be at " << expected << ", but is " in ValidateOutputFilePath()
1589 const AidlDefinedType& defined_type, const IoDelegate& io_delegate) { in GenerateCpp() argument
1590 if (!ValidateOutputFilePath(output_file, options, defined_type)) { in GenerateCpp()
1594 const AidlStructuredParcelable* parcelable = defined_type.AsStructuredParcelable(); in GenerateCpp()
1600 const AidlUnionDecl* union_decl = defined_type.AsUnionDeclaration(); in GenerateCpp()
1606 const AidlParcelable* parcelable_decl = defined_type.AsParcelable(); in GenerateCpp()
1611 const AidlEnumDeclaration* enum_decl = defined_type.AsEnumDeclaration(); in GenerateCpp()
1616 const AidlInterface* interface = defined_type.AsInterface(); in GenerateCpp()
[all …]
Dgenerate_java.cpp351 bool generate_java(const std::string& filename, const AidlDefinedType* defined_type, in generate_java() argument
354 if (const AidlStructuredParcelable* parcelable = defined_type->AsStructuredParcelable(); in generate_java()
359 if (const AidlEnumDeclaration* enum_decl = defined_type->AsEnumDeclaration(); in generate_java()
364 if (const AidlInterface* interface = defined_type->AsInterface(); interface != nullptr) { in generate_java()
368 if (const AidlUnionDecl* union_decl = defined_type->AsUnionDeclaration(); union_decl != nullptr) { in generate_java()
372 AIDL_FATAL(defined_type) << "Unrecognized type sent for Java generation."; in generate_java()
Daidl_to_java.cpp48 if (auto defined_type = type.GetDefinedType(); defined_type) { in ConstantValueDecorator() local
49 auto enum_type = defined_type->AsEnumDeclaration(); in ConstantValueDecorator()