/system/tools/aidl/ |
D | generate_ndk.h | 29 void GenerateNdk(const string& output_file, const Options& options, const AidlTypenames& types, 33 void GenerateSource(CodeWriter& out, const AidlTypenames& types, const AidlInterface& defined_type, 35 void GenerateClassSource(CodeWriter& out, const AidlTypenames& types, 37 void GenerateClientSource(CodeWriter& out, const AidlTypenames& types, 39 void GenerateServerSource(CodeWriter& out, const AidlTypenames& types, 41 void GenerateInterfaceSource(CodeWriter& out, const AidlTypenames& types, 43 void GenerateClientHeader(CodeWriter& out, const AidlTypenames& types, 45 void GenerateServerHeader(CodeWriter& out, const AidlTypenames& types, 47 void GenerateInterfaceHeader(CodeWriter& out, const AidlTypenames& types, 50 void GenerateEnumHeader(CodeWriter& out, const AidlTypenames& types,
|
D | generate_cpp.h | 32 bool GenerateCpp(const string& output_file, const Options& options, const AidlTypenames& typenames, 36 std::unique_ptr<Document> BuildClientSource(const AidlTypenames& typenames, 39 std::unique_ptr<Document> BuildServerSource(const AidlTypenames& typenames, 42 std::unique_ptr<Document> BuildInterfaceSource(const AidlTypenames& typenames, 45 std::unique_ptr<Document> BuildClientHeader(const AidlTypenames& typenames, 48 std::unique_ptr<Document> BuildServerHeader(const AidlTypenames& typenames, 51 std::unique_ptr<Document> BuildInterfaceHeader(const AidlTypenames& typenames, 54 std::unique_ptr<Document> BuildEnumHeader(const AidlTypenames& typenames,
|
D | aidl_to_cpp.h | 31 const AidlTypenames& types; 39 std::string CppNameOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames); 41 bool IsNonCopyableType(const AidlTypeSpecifier& type, const AidlTypenames& typenames); 45 std::string ParcelReadMethodOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames); 49 std::string ParcelReadCastOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames, 54 std::string ParcelWriteMethodOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames); 58 std::string ParcelWriteCastOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames, 61 void AddHeaders(const AidlTypeSpecifier& type, const AidlTypenames& typenames,
|
D | aidl_typenames.cpp | 105 bool AidlTypenames::IsIgnorableImport(const string& import) const { in IsIgnorableImport() 118 bool AidlTypenames::AddDocument(std::unique_ptr<AidlDocument> doc) { in AddDocument() 134 const AidlDocument* AidlTypenames::GetDocumentFor(const AidlDefinedType* type) const { in GetDocumentFor() 145 const AidlDocument& AidlTypenames::MainDocument() const { in MainDocument() 150 bool AidlTypenames::AddPreprocessedType(unique_ptr<AidlDefinedType> type) { in AddPreprocessedType() 162 bool AidlTypenames::IsBuiltinTypename(const string& type_name) { in IsBuiltinTypename() 167 bool AidlTypenames::IsPrimitiveTypename(const string& type_name) { in IsPrimitiveTypename() 171 bool AidlTypenames::IsParcelable(const string& type_name) const { in IsParcelable() 181 const AidlDefinedType* AidlTypenames::TryGetDefinedType(const string& type_name) const { in TryGetDefinedType() 185 AidlTypenames::DefinedImplResult AidlTypenames::TryGetDefinedTypeImpl( in TryGetDefinedTypeImpl() [all …]
|
D | generate_java.h | 31 const AidlTypenames& typenames, const IoDelegate& io_delegate, 35 const AidlInterface* iface, const AidlTypenames& typenames, const Options& options); 38 const AidlStructuredParcelable* parcel, const AidlTypenames& typenames); 41 const AidlTypenames& typenames); 43 void generate_union(CodeWriter& out, const AidlUnionDecl* decl, const AidlTypenames& typenames);
|
D | aidl_to_rust.h | 62 std::string RustNameOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames, 65 StorageMode ArgumentStorageMode(const AidlArgument& arg, const AidlTypenames& typenames); 67 ReferenceMode ArgumentReferenceMode(const AidlArgument& arg, const AidlTypenames& typenames); 71 bool TypeIsInterface(const AidlTypeSpecifier& type, const AidlTypenames& typenames); 73 bool TypeHasDefault(const AidlTypeSpecifier& type, const AidlTypenames& typenames);
|
D | aidl_to_cpp.cpp | 38 std::string RawParcelMethod(const AidlTypeSpecifier& type, const AidlTypenames& typenames, in RawParcelMethod() 90 AIDL_FATAL_IF(!AidlTypenames::IsBuiltinTypename(element_name), type); in RawParcelMethod() 106 AIDL_FATAL_IF(!AidlTypenames::IsBuiltinTypename(type_name), type); in RawParcelMethod() 120 AIDL_FATAL_IF(AidlTypenames::IsBuiltinTypename(type.GetName()), type); in RawParcelMethod() 145 const AidlTypenames& typenames) { in WrapIfNullable() 148 if (raw_type.IsNullable() && !AidlTypenames::IsPrimitiveTypename(type.GetName()) && in WrapIfNullable() 155 std::string GetCppName(const AidlTypeSpecifier& raw_type, const AidlTypenames& typenames) { in GetCppName() 176 AIDL_FATAL_IF(!AidlTypenames::IsBuiltinTypename(aidl_name), raw_type); in GetCppName() 219 std::string CppNameOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in CppNameOf() 237 bool IsNonCopyableType(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in IsNonCopyableType() [all …]
|
D | aidl_to_java.h | 46 string JavaSignatureOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames); 50 string InstantiableJavaSignatureOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames); 53 string DefaultJavaValueOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames); 59 const AidlTypenames& typenames;
|
D | aidl_to_ndk.h | 41 std::string NdkNameOf(const AidlTypenames& types, const AidlTypeSpecifier& aidl, StorageMode mode); 47 size_t NdkAlignmentOf(const AidlTypenames& types, const AidlTypeSpecifier& aidl); 52 const AidlTypenames& types; 64 const AidlTypenames& types, const AidlMethod& method, 90 std::string NdkMethodDecl(const AidlTypenames& types, const AidlMethod& method,
|
D | aidl_to_rust.cpp | 89 std::string GetRustName(const AidlTypeSpecifier& type, const AidlTypenames& typenames, in GetRustName() 111 AIDL_FATAL_IF(!AidlTypenames::IsBuiltinTypename(element_type_name), type); in GetRustName() 153 std::string RustNameOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames, in RustNameOf() 202 StorageMode ArgumentStorageMode(const AidlArgument& arg, const AidlTypenames& typenames) { in ArgumentStorageMode() 211 const bool isPrimitive = AidlTypenames::IsPrimitiveTypename(typeName); in ArgumentStorageMode() 221 ReferenceMode ArgumentReferenceMode(const AidlArgument& arg, const AidlTypenames& typenames) { in ArgumentReferenceMode() 269 bool TypeIsInterface(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in TypeIsInterface() 274 bool TypeHasDefault(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in TypeHasDefault()
|
D | generate_rust.cpp | 60 string BuildArg(const AidlArgument& arg, const AidlTypenames& typenames) { in BuildArg() 68 string BuildMethod(const AidlMethod& method, const AidlTypenames& typenames) { in BuildMethod() 80 const AidlTypenames& typenames, const Options& options, in GenerateClientMethod() 201 const AidlTypenames& typenames) { in GenerateServerTransaction() 276 const AidlTypenames& typenames) { in GenerateServerItems() 330 const AidlTypenames& typenames) { in GenerateConstantDeclarations() 352 const AidlTypenames& typenames, const IoDelegate& io_delegate, in GenerateRustInterface() 506 const AidlTypenames& typenames) { in GenerateParcelBody() 542 const AidlTypenames& typenames) { in GenerateParcelSerializeBody() 560 const AidlTypenames& typenames) { in GenerateParcelDeserializeBody() [all …]
|
D | aidl.h | 82 const IoDelegate& io_delegate, AidlTypenames* typenames, 86 AidlTypenames* typenames);
|
D | generate_ndk.cpp | 41 void GenerateParcelHeader(CodeWriter& out, const AidlTypenames& types, 43 void GenerateParcelSource(CodeWriter& out, const AidlTypenames& types, 45 void GenerateParcelHeader(CodeWriter& out, const AidlTypenames& types, 47 void GenerateParcelSource(CodeWriter& out, const AidlTypenames& types, 54 const AidlTypenames& types, const AidlInterface& defined_type, in GenerateNdkInterface() 80 const AidlTypenames& types, const ParcelableType& defined_type, in GenerateNdkParcel() 118 const AidlTypenames& types, const AidlEnumDeclaration& defined_type, in GenerateNdkEnumDeclaration() 144 void GenerateNdk(const string& output_file, const Options& options, const AidlTypenames& types, in GenerateNdk() 198 static void GenerateHeaderIncludes(CodeWriter& out, const AidlTypenames& types, in GenerateHeaderIncludes() 294 static void GenerateSourceIncludes(CodeWriter& out, const AidlTypenames& types, in GenerateSourceIncludes() [all …]
|
D | parser.cpp | 30 AidlTypenames& typenames) { in Parse() 66 ConstantReferenceResolver(const AidlDefinedType* scope, const AidlTypenames& typenames, in ConstantReferenceResolver() 130 const AidlTypenames& typenames_; 156 android::aidl::AidlTypenames& typenames) in Parser()
|
D | parser.h | 70 AidlTypenames& typenames); 114 android::aidl::AidlTypenames& typenames); 118 AidlTypenames& typenames_;
|
D | generate_cpp.cpp | 101 ArgList BuildArgList(const AidlTypenames& typenames, const AidlMethod& method, bool for_declaration, in BuildArgList() 123 const bool isPrimitive = AidlTypenames::IsPrimitiveTypename(a->GetType().GetName()); in BuildArgList() 163 unique_ptr<Declaration> BuildMethodDecl(const AidlMethod& method, const AidlTypenames& typenames, in BuildMethodDecl() 179 unique_ptr<Declaration> BuildMetaMethodDecl(const AidlMethod& method, const AidlTypenames&, in BuildMetaMethodDecl() argument 230 unique_ptr<Declaration> DefineClientTransaction(const AidlTypenames& typenames, in DefineClientTransaction() 406 unique_ptr<Declaration> DefineClientMetaTransaction(const AidlTypenames& /* typenames */, in DefineClientMetaTransaction() argument 467 unique_ptr<Document> BuildClientSource(const AidlTypenames& typenames, in BuildClientSource() 517 void BuildConstantDefinitions(const AidlDefinedType& type, const AidlTypenames& typenames, in BuildConstantDefinitions() 536 void BuildConstantDeclarations(const AidlDefinedType& type, const AidlTypenames& typenames, in BuildConstantDeclarations() 583 bool HandleServerTransaction(const AidlTypenames& typenames, const AidlInterface& interface, in HandleServerTransaction() [all …]
|
D | aidl_language.cpp | 414 bool AidlAnnotatable::CheckValid(const AidlTypenames&) const { in CheckValid() 489 bool AidlTypeSpecifier::Resolve(const AidlTypenames& typenames) { in Resolve() 491 AidlTypenames::ResolvedTypename result = typenames.ResolveTypename(unresolved_name_); in Resolve() 504 bool AidlTypeSpecifier::CheckValid(const AidlTypenames& typenames) const { in CheckValid() 522 AidlTypenames::IsPrimitiveTypename(type_ptr->GetName())); in CheckValid() 548 if (AidlTypenames::IsBuiltinTypename(contained_type_name)) { in CheckValid() 619 if (AidlTypenames::IsPrimitiveTypename(GetName()) && !IsArray()) { in CheckValid() 676 bool AidlVariableDeclaration::CheckValid(const AidlTypenames& typenames) const { in CheckValid() 784 bool AidlArgument::CheckValid(const AidlTypenames& typenames) const { in CheckValid() 830 bool AidlConstantDeclaration::CheckValid(const AidlTypenames& typenames) const { in CheckValid() [all …]
|
D | aidl_language.h | 36 using android::aidl::AidlTypenames; 341 bool CheckValid(const AidlTypenames&) const; 405 bool Resolve(const AidlTypenames& typenames); 407 bool CheckValid(const AidlTypenames& typenames) const; 408 bool LanguageSpecificCheckValid(const AidlTypenames& typenames, Options::Language lang) const; 495 bool CheckValid(const AidlTypenames& typenames) const; 541 bool CheckValid(const AidlTypenames& typenames) const; 783 bool CheckValid(const AidlTypenames& typenames) const; 919 virtual bool CheckValid(const AidlTypenames& typenames) const; 920 virtual bool LanguageSpecificCheckValid(const AidlTypenames& typenames, [all …]
|
D | generate_java.cpp | 97 bool CanDescribeContents(const AidlTypeSpecifier& type, const AidlTypenames& types, in CanDescribeContents() 138 const AidlTypenames& types) { in GenerateParcelableDescribeContents() 159 const AidlTypenames& types) { in GenerateParcelableDescribeContents() 186 const AidlTypenames& typenames) { in GenerateToString() 209 const AidlTypenames& typenames) { in GenerateToString() 233 const AidlTypenames&) { in GenerateEqualsAndHashCode() argument 263 const AidlTypenames&) { in GenerateEqualsAndHashCode() argument 309 const AidlTypenames& typenames, const IoDelegate& io_delegate, in generate_java_interface() 323 const AidlTypenames& typenames, const IoDelegate& io_delegate) { in generate_java_parcel() 337 const AidlTypenames& typenames, const IoDelegate& io_delegate) { in generate_java_enum_declaration() [all …]
|
D | generate_rust.h | 30 const AidlTypenames& typenames, const IoDelegate& io_delegate,
|
D | aidl_typenames.h | 57 class AidlTypenames final { 59 AidlTypenames() = default;
|
D | generate_aidl_mappings.h | 29 SignatureMap generate_mappings(const AidlDefinedType* iface, const AidlTypenames& typenames);
|
D | aidl_to_ndk.cpp | 152 const AidlTypenames& types) { in ParcelableTypeInfo() 199 NdkNameOf(AidlTypenames(), enum_decl.GetBackingType(), StorageMode::STACK); in EnumDeclarationTypeInfo() 351 static TypeInfo::Aspect GetTypeAspect(const AidlTypenames& types, const AidlTypeSpecifier& aidl) { in GetTypeAspect() 375 if (AidlTypenames::IsBuiltinTypename(aidl_name)) { in GetTypeAspect() 424 std::string NdkNameOf(const AidlTypenames& types, const AidlTypeSpecifier& aidl, StorageMode mode) { in NdkNameOf() 443 size_t NdkAlignmentOf(const AidlTypenames& types, const AidlTypeSpecifier& aidl) { in NdkAlignmentOf() 474 const AidlTypenames& types, const AidlMethod& method, in NdkArgList() 494 std::string NdkMethodDecl(const AidlTypenames& types, const AidlMethod& method, in NdkMethodDecl()
|
D | aidl_to_java.cpp | 56 const string& JavaNameOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames, in JavaNameOf() 109 AIDL_FATAL_IF(!AidlTypenames::IsBuiltinTypename(backing_type_name), enum_decl); in JavaNameOf() 118 if (boxing && AidlTypenames::IsPrimitiveTypename(aidl_name)) { in JavaNameOf() 124 AIDL_FATAL_IF(!AidlTypenames::IsBuiltinTypename(aidl_name), aidl); in JavaNameOf() 134 const AidlTypeSpecifier& aidl, const AidlTypenames& typenames, bool instantiable, in JavaSignatureOfInternal() 155 string AidlBackingTypeName(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in AidlBackingTypeName() 171 string JavaSignatureOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames) { in JavaSignatureOf() 175 string InstantiableJavaSignatureOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames) { in InstantiableJavaSignatureOf() 179 string DefaultJavaValueOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames) { in DefaultJavaValueOf() 189 AIDL_FATAL_IF(!AidlTypenames::IsBuiltinTypename(name), aidl); in DefaultJavaValueOf() [all …]
|
D | diagnostics_unittest.cpp | 28 using android::aidl::AidlTypenames; 59 AidlTypenames typenames;
|