/system/tools/aidl/ |
D | generate_ndk.cpp | 39 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 …]
|
D | generate_ndk.h | 30 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 …]
|
D | aidl.cpp | 94 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 …]
|
D | aidl_to_cpp_common.h | 40 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);
|
D | aidl_to_cpp_common.cpp | 27 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()
|
D | generate_aidl_mappings.cpp | 30 SignatureMap generate_mappings(const AidlDefinedType* defined_type) { in generate_mappings() argument 31 const AidlInterface* interface = defined_type->AsInterface(); in generate_mappings()
|
D | aidl_typenames.cpp | 154 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()
|
D | generate_java.cpp | 74 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()
|
D | aidl_to_ndk.h | 31 std::string NdkHeaderFile(const AidlDefinedType& defined_type, cpp::ClassNames name,
|
D | type_namespace.h | 118 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()
|
D | type_cpp.cpp | 147 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()
|
D | generate_cpp.cpp | 209 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()
|
D | aidl_to_ndk.cpp | 31 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()
|