Home
last modified time | relevance | path

Searched refs:AidlDefinedType (Results 1 – 23 of 23) sorted by relevance

/system/tools/aidl/
Daidl_typenames.h33 class AidlDefinedType; variable
59 bool AddPreprocessedType(unique_ptr<AidlDefinedType> type);
62 const AidlDefinedType* TryGetDefinedType(const string& type_name) const;
63 std::vector<AidlDefinedType*> AllDefinedTypes() const;
81 void IterateTypes(const std::function<void(const AidlDefinedType&)>& body) const;
85 DefinedImplResult(const AidlDefinedType* type, const bool from_preprocessed) in DefinedImplResult()
87 const AidlDefinedType* type;
91 map<string, const AidlDefinedType*> defined_types_;
92 map<string, unique_ptr<AidlDefinedType>> preprocessed_types_;
Daidl_typenames.cpp86 static bool HasValidNameComponents(const AidlDefinedType& defined) { in HasValidNameComponents()
139 bool AidlTypenames::AddPreprocessedType(unique_ptr<AidlDefinedType> type) { in AddPreprocessedType()
160 const AidlDefinedType* AidlTypenames::TryGetDefinedType(const string& type_name) const { in TryGetDefinedType()
194 std::vector<AidlDefinedType*> AidlTypenames::AllDefinedTypes() const { in AllDefinedTypes()
195 std::vector<AidlDefinedType*> res; in AllDefinedTypes()
212 const AidlDefinedType* defined_type = TryGetDefinedType(type_name); in ResolveTypename()
236 const AidlDefinedType* t = TryGetDefinedType(type.GetName()); in CanBeImmutable()
252 const AidlDefinedType* t = TryGetDefinedType(type.GetName()); in CanBeOutParameter()
276 void AidlTypenames::IterateTypes(const std::function<void(const AidlDefinedType&)>& body) const { in IterateTypes()
Daidl_to_cpp_common.h41 string ClassName(const AidlDefinedType& defined_type, ClassNames type);
46 std::string HeaderFile(const AidlDefinedType& defined_type, ClassNames class_type,
49 void EnterNamespace(CodeWriter& out, const AidlDefinedType& defined_type);
50 void LeaveNamespace(CodeWriter& out, const AidlDefinedType& defined_type);
Daidl_language.h636 class AidlDefinedType; variable
646 class AidlDefinedType : public AidlAnnotatable {
648 AidlDefinedType(const AidlLocation& location, const std::string& name,
650 virtual ~AidlDefinedType() = default;
653 AidlDefinedType(const AidlDefinedType&) = delete;
654 AidlDefinedType(AidlDefinedType&&) = delete;
655 AidlDefinedType& operator=(const AidlDefinedType&) = delete;
656 AidlDefinedType& operator=(AidlDefinedType&&) = delete;
681 const_cast<const AidlDefinedType*>(this)->AsStructuredParcelable()); in AsStructuredParcelable()
684 return const_cast<AidlParcelable*>(const_cast<const AidlDefinedType*>(this)->AsParcelable()); in AsParcelable()
[all …]
Daidl_to_ndk.h31 std::string NdkHeaderFile(const AidlDefinedType& defined_type, cpp::ClassNames name,
37 std::string NdkFullClassName(const AidlDefinedType& type, cpp::ClassNames name);
Dgenerate_aidl_mappings.h29 SignatureMap generate_mappings(const AidlDefinedType* iface, const AidlTypenames& typenames);
Daidl_to_cpp_common.cpp31 string ClassName(const AidlDefinedType& defined_type, ClassNames type) { in ClassName()
55 std::string HeaderFile(const AidlDefinedType& defined_type, ClassNames class_type, in HeaderFile()
72 void EnterNamespace(CodeWriter& out, const AidlDefinedType& defined_type) { in EnterNamespace()
78 void LeaveNamespace(CodeWriter& out, const AidlDefinedType& defined_type) { in LeaveNamespace()
Dgenerate_java.h30 bool generate_java(const std::string& filename, const AidlDefinedType* iface,
Dgenerate_aidl_mappings.cpp30 SignatureMap generate_mappings(const AidlDefinedType* defined_type, in generate_mappings()
Daidl_language.cpp710 AidlDefinedType::AidlDefinedType(const AidlLocation& location, const std::string& name, in AidlDefinedType() function in AidlDefinedType
719 bool AidlDefinedType::CheckValid(const AidlTypenames& typenames) const { in CheckValid()
727 bool AidlDefinedType::IsHidden() const { in IsHidden()
731 std::string AidlDefinedType::GetCanonicalName() const { in GetCanonicalName()
738 void AidlDefinedType::DumpHeader(CodeWriter* writer) const { in DumpHeader()
748 : AidlDefinedType(location, name, comments, package), in AidlParcelable()
789 if (!AidlDefinedType::CheckValid(typenames)) { in CheckValid()
981 : AidlDefinedType(location, name, comments, package), enumerators_(std::move(*enumerators)) {} in AidlEnumDeclaration()
1016 if (!AidlDefinedType::CheckValid(typenames)) { in CheckValid()
1062 : AidlDefinedType(location, name, comments, package) { in AidlInterface()
[all …]
Daidl_to_cpp.h65 void AddHeaders(const AidlDefinedType& parcelable, std::set<std::string>& headers);
Dgenerate_cpp.h33 const AidlDefinedType& parsed_doc, const IoDelegate& io_delegate);
Dgenerate_ndk.h30 const AidlDefinedType& defined_type, const IoDelegate& io_delegate);
Daidl_to_java.cpp271 const AidlDefinedType* t = c.typenames.TryGetDefinedType(contained_type); in WriteToParcelFor()
378 const AidlDefinedType* t = c.typenames.TryGetDefinedType(c.type.GetName()); in WriteToParcelFor()
499 const AidlDefinedType* t = c.typenames.TryGetDefinedType(contained_type); in CreateFromParcelFor()
613 const AidlDefinedType* t = c.typenames.TryGetDefinedType(c.type.GetName()); in CreateFromParcelFor()
689 const AidlDefinedType* t = c.typenames.TryGetDefinedType(contained_type); in ReadFromParcelFor()
760 const AidlDefinedType* t = c.typenames.TryGetDefinedType(c.type.GetName()); in ReadFromParcelFor()
793 const AidlDefinedType* t = c.typenames.TryGetDefinedType(name); in ToStringFor()
Daidl.cpp94 bool check_filename(const std::string& filename, const AidlDefinedType& defined_type) { in check_filename()
155 bool write_dep_file(const Options& options, const AidlDefinedType& defined_type, in write_dep_file()
220 string generate_outputFileName(const Options& options, const AidlDefinedType& defined_type) { in generate_outputFileName()
534 typenames->IterateTypes([&](const AidlDefinedType& type) { in load_and_validate_aidl()
693 typenames->IterateTypes([&](const AidlDefinedType& type) { in load_and_validate_aidl()
856 static string GetApiDumpPathFor(const AidlDefinedType& defined_type, const Options& options) { in GetApiDumpPathFor()
Daidl_checkapi.cpp327 std::vector<AidlDefinedType*> old_types = old_tns->AllDefinedTypes(); in check_api()
328 std::vector<AidlDefinedType*> new_types = new_tns->AllDefinedTypes(); in check_api()
330 map<string, AidlDefinedType*> new_map; in check_api()
Dgenerate_ndk.cpp126 const AidlDefinedType& defined_type, const IoDelegate& io_delegate) { in GenerateNdk()
154 void EnterNdkNamespace(CodeWriter& out, const AidlDefinedType& defined_type) { in EnterNdkNamespace()
158 void LeaveNdkNamespace(CodeWriter& out, const AidlDefinedType& defined_type) { in LeaveNdkNamespace()
174 const AidlDefinedType& defined_type) { in GenerateHeaderIncludes()
185 const AidlDefinedType* type = types.TryGetDefinedType(typespec.GetName()); in GenerateHeaderIncludes()
238 const AidlDefinedType& /*defined_type*/) { in GenerateSourceIncludes() argument
241 types.IterateTypes([&](const AidlDefinedType& a_defined_type) { in GenerateSourceIncludes()
Daidl_to_ndk.cpp31 std::string NdkHeaderFile(const AidlDefinedType& defined_type, cpp::ClassNames name, in NdkHeaderFile()
350 const AidlDefinedType* type = types.TryGetDefinedType(aidl_name); in GetTypeAspect()
385 std::string NdkFullClassName(const AidlDefinedType& type, cpp::ClassNames name) { in NdkFullClassName()
Daidl_language_y.yy94 AidlDefinedType* declaration;
99 std::vector<std::unique_ptr<AidlDefinedType>>* declarations;
247 { $$ = new std::vector<std::unique_ptr<AidlDefinedType>>();
Daidl_to_cpp.cpp322 void AddHeaders(const AidlDefinedType& definedType, std::set<std::string>& headers) { in AddHeaders()
Dgenerate_java.cpp75 bool generate_java(const std::string& filename, const AidlDefinedType* defined_type, in generate_java()
Dgenerate_cpp.cpp232 string BuildHeaderGuard(const AidlDefinedType& defined_type, ClassNames header_type) { in BuildHeaderGuard()
1417 const AidlDefinedType& defined_type, const IoDelegate& io_delegate) { in GenerateCpp()
Daidl_unittest.cpp155 AidlDefinedType* Parse(const string& path, const string& contents, AidlTypenames& typenames_, in Parse()
518 const AidlDefinedType* defined = Parse("a/IFoo.aidl", oneway_method, typenames_, GetLanguage()); in TEST_P()