/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 GenerateParcelHeader(CodeWriter& out, const AidlTypenames& types, [all …]
|
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, 55 std::unique_ptr<Document> BuildParcelHeader(const AidlTypenames& typenames, 58 std::unique_ptr<Document> BuildParcelSource(const AidlTypenames& typenames, 62 std::unique_ptr<Document> BuildEnumHeader(const AidlTypenames& typenames,
|
D | aidl_to_cpp.h | 31 const AidlTypenames& types; 40 std::string CppNameOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames); 42 bool IsNonCopyableType(const AidlTypeSpecifier& type, const AidlTypenames& typenames); 46 std::string ParcelReadMethodOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames); 50 std::string ParcelReadCastOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames, 55 std::string ParcelWriteMethodOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames); 59 std::string ParcelWriteCastOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames, 62 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::MainDocument() const { in MainDocument() 139 bool AidlTypenames::AddPreprocessedType(unique_ptr<AidlDefinedType> type) { in AddPreprocessedType() 151 bool AidlTypenames::IsBuiltinTypename(const string& type_name) { in IsBuiltinTypename() 156 bool AidlTypenames::IsPrimitiveTypename(const string& type_name) { in IsPrimitiveTypename() 160 const AidlDefinedType* AidlTypenames::TryGetDefinedType(const string& type_name) const { in TryGetDefinedType() 164 AidlTypenames::DefinedImplResult AidlTypenames::TryGetDefinedTypeImpl( in TryGetDefinedTypeImpl() 194 std::vector<AidlDefinedType*> AidlTypenames::AllDefinedTypes() const { in AllDefinedTypes() 204 AidlTypenames::ResolvedTypename AidlTypenames::ResolveTypename(const string& type_name) const { in ResolveTypename() [all …]
|
D | aidl_to_cpp.cpp | 37 std::string RawParcelMethod(const AidlTypeSpecifier& raw_type, const AidlTypenames& typenames, in RawParcelMethod() 84 CHECK(AidlTypenames::IsBuiltinTypename(aidl_name)); in RawParcelMethod() 93 CHECK(AidlTypenames::IsBuiltinTypename(aidl_name)); in RawParcelMethod() 107 CHECK(!AidlTypenames::IsBuiltinTypename(aidl_name)); in RawParcelMethod() 138 const AidlTypenames& typenames) { in WrapIfNullable() 141 if (raw_type.IsNullable() && !AidlTypenames::IsPrimitiveTypename(type.GetName()) && in WrapIfNullable() 148 std::string GetCppName(const AidlTypeSpecifier& raw_type, const AidlTypenames& typenames) { in GetCppName() 170 CHECK(AidlTypenames::IsBuiltinTypename(aidl_name)); in GetCppName() 211 std::string CppNameOf(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in CppNameOf() 222 bool IsNonCopyableType(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in IsNonCopyableType() [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);
|
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); 46 const AidlTypenames& types; 58 const AidlTypenames& types, const AidlMethod& method, 84 std::string NdkMethodDecl(const AidlTypenames& types, const AidlMethod& method,
|
D | parser.h | 62 AidlTypenames& typenames); 97 android::aidl::AidlTypenames& typenames); 101 AidlTypenames& typenames_;
|
D | aidl.h | 82 const IoDelegate& io_delegate, AidlTypenames* typenames, 86 AidlTypenames* typenames);
|
D | parser.cpp | 30 AidlTypenames& typenames) { in Parse() 64 android::aidl::AidlTypenames& typenames) in Parser()
|
D | aidl_language.h | 32 using android::aidl::AidlTypenames; 120 class AidlTypenames; variable 242 const AidlTypeSpecifier* BackingType(const AidlTypenames& typenames) const; 246 virtual bool CheckValid(const AidlTypenames&) const; 302 bool Resolve(const AidlTypenames& typenames); 305 bool CheckValid(const AidlTypenames& typenames) const override; 306 bool LanguageSpecificCheckValid(const AidlTypenames& typenames, Options::Language lang) const; 350 bool CheckValid(const AidlTypenames& typenames) const; 554 bool CheckValid(const AidlTypenames& typenames) const; 676 bool CheckValid(const AidlTypenames& typenames) const override; [all …]
|
D | generate_ndk.cpp | 41 const AidlTypenames& types, const AidlInterface& defined_type, in GenerateNdkInterface() 66 const AidlTypenames& types, const AidlStructuredParcelable& defined_type, in GenerateNdkParcel() 99 const AidlTypenames& types, const AidlEnumDeclaration& defined_type, in GenerateNdkEnumDeclaration() 125 void GenerateNdk(const string& output_file, const Options& options, const AidlTypenames& types, in GenerateNdk() 173 static void GenerateHeaderIncludes(CodeWriter& out, const AidlTypenames& types, in GenerateHeaderIncludes() 237 static void GenerateSourceIncludes(CodeWriter& out, const AidlTypenames& types, in GenerateSourceIncludes() 307 void GenerateSource(CodeWriter& out, const AidlTypenames& types, const AidlInterface& defined_type, in GenerateSource() 324 static void GenerateClientMethodDefinition(CodeWriter& out, const AidlTypenames& types, in GenerateClientMethodDefinition() 450 static void GenerateServerCaseDefinition(CodeWriter& out, const AidlTypenames& types, in GenerateServerCaseDefinition() 521 void GenerateClassSource(CodeWriter& out, const AidlTypenames& types, in GenerateClassSource() [all …]
|
D | aidl_language.cpp | 285 const AidlTypeSpecifier* AidlAnnotatable::BackingType(const AidlTypenames& typenames) const { in BackingType() 325 bool AidlAnnotatable::CheckValid(const AidlTypenames&) const { in CheckValid() 407 bool AidlTypeSpecifier::Resolve(const AidlTypenames& typenames) { in Resolve() 409 AidlTypenames::ResolvedTypename result = typenames.ResolveTypename(unresolved_name_); in Resolve() 425 bool AidlTypeSpecifier::CheckValid(const AidlTypenames& typenames) const { in CheckValid() 436 return AidlTypenames::IsPrimitiveTypename(type_ptr->GetName()); in CheckValid() 505 if (AidlTypenames::IsPrimitiveTypename(GetName()) && !IsArray()) { in CheckValid() 538 bool AidlVariableDeclaration::CheckValid(const AidlTypenames& typenames) const { in CheckValid() 635 bool AidlConstantDeclaration::CheckValid(const AidlTypenames& typenames) const { in CheckValid() 719 bool AidlDefinedType::CheckValid(const AidlTypenames& typenames) const { in CheckValid() [all …]
|
D | aidl_to_java.cpp | 50 const string& JavaNameOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames, in JavaNameOf() 103 CHECK(AidlTypenames::IsBuiltinTypename(backing_type_name)); in JavaNameOf() 108 if (boxing && AidlTypenames::IsPrimitiveTypename(aidl_name)) { in JavaNameOf() 114 CHECK(AidlTypenames::IsBuiltinTypename(aidl_name)); in JavaNameOf() 124 const AidlTypeSpecifier& aidl, const AidlTypenames& typenames, bool instantiable, in JavaSignatureOfInternal() 145 string AidlBackingTypeName(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in AidlBackingTypeName() 161 string JavaSignatureOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames) { in JavaSignatureOf() 165 string InstantiableJavaSignatureOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames) { in InstantiableJavaSignatureOf() 169 string DefaultJavaValueOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames) { in DefaultJavaValueOf() 179 CHECK(AidlTypenames::IsBuiltinTypename(name)); in DefaultJavaValueOf() [all …]
|
D | aidl_typenames.h | 53 class AidlTypenames final { 55 AidlTypenames() = default;
|
D | generate_cpp.cpp | 96 ArgList BuildArgList(const AidlTypenames& typenames, const AidlMethod& method, bool for_declaration, in BuildArgList() 118 const bool isPrimitive = AidlTypenames::IsPrimitiveTypename(a->GetType().GetName()); in BuildArgList() 158 unique_ptr<Declaration> BuildMethodDecl(const AidlMethod& method, const AidlTypenames& typenames, in BuildMethodDecl() 173 unique_ptr<Declaration> BuildMetaMethodDecl(const AidlMethod& method, const AidlTypenames&, in BuildMetaMethodDecl() argument 225 const AidlTypenames& typenamespaces) { in DeclareLocalVariable() 251 unique_ptr<Declaration> DefineClientTransaction(const AidlTypenames& typenames, in DefineClientTransaction() 417 unique_ptr<Declaration> DefineClientMetaTransaction(const AidlTypenames& /* typenames */, in DefineClientMetaTransaction() argument 478 unique_ptr<Document> BuildClientSource(const AidlTypenames& typenames, in BuildClientSource() 529 bool HandleServerTransaction(const AidlTypenames& typenames, const AidlInterface& interface, in HandleServerTransaction() 642 bool HandleServerMetaTransaction(const AidlTypenames&, const AidlInterface& interface, in HandleServerMetaTransaction() argument [all …]
|
D | generate_aidl_mappings.h | 29 SignatureMap generate_mappings(const AidlDefinedType* iface, const AidlTypenames& typenames);
|
D | aidl_to_ndk.cpp | 179 NdkNameOf(AidlTypenames(), enum_decl.GetBackingType(), StorageMode::STACK); in EnumDeclarationTypeInfo() 318 static TypeInfo::Aspect GetTypeAspect(const AidlTypenames& types, const AidlTypeSpecifier& aidl) { in GetTypeAspect() 345 if (AidlTypenames::IsBuiltinTypename(aidl_name)) { in GetTypeAspect() 394 std::string NdkNameOf(const AidlTypenames& types, const AidlTypeSpecifier& aidl, StorageMode mode) { in NdkNameOf() 424 const AidlTypenames& types, const AidlMethod& method, in NdkArgList() 444 std::string NdkMethodDecl(const AidlTypenames& types, const AidlMethod& method, in NdkMethodDecl()
|
D | aidl.cpp | 353 AidlTypenames* typenames) { in parse_preprocessed_file() 385 if (AidlTypenames::IsBuiltinTypename(class_name)) { in parse_preprocessed_file() 413 const IoDelegate& io_delegate, AidlTypenames* typenames, in load_and_validate_aidl() 454 if (!AidlTypenames::IsBuiltinTypename(import->GetNeededClass())) { in load_and_validate_aidl() 466 if (!AidlTypenames::IsBuiltinTypename(type->GetName())) { in load_and_validate_aidl() 757 AidlTypenames typenames; in compile_aidl() 815 AidlTypenames typenames; in dump_mappings() 841 AidlTypenames typenames; in preprocess_aidl() 865 AidlTypenames typenames; in dump_api()
|
D | generate_java.cpp | 41 const AidlTypenames& typenames, const IoDelegate& io_delegate, in generate_java_interface() 55 const AidlTypenames& typenames, const IoDelegate& io_delegate) { in generate_java_parcel() 69 const AidlTypenames& typenames, const IoDelegate& io_delegate) { in generate_java_enum_declaration() 76 const AidlTypenames& typenames, const IoDelegate& io_delegate, in generate_java() 97 const AidlStructuredParcelable* parcel, const AidlTypenames& typenames) { in generate_parcel_class() 360 const AidlTypenames& typenames) { in generate_enum()
|
D | generate_aidl_mappings.cpp | 31 const AidlTypenames& typenames) { in generate_mappings()
|
D | generate_java_binder.cpp | 51 std::shared_ptr<Variable> Get(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in Get() 353 static void generate_new_array(const AidlTypeSpecifier& type, const AidlTypenames& typenames, in generate_new_array() 372 bool is_return_value, const AidlTypenames& typenames) { in generate_write_to_parcel() 401 const AidlTypenames& typenames) { in generate_interface_method() 423 const AidlTypenames& typenames, in generate_stub_code() 532 std::shared_ptr<StubClass> stubClass, const AidlTypenames& typenames, in generate_stub_case() 545 const AidlTypenames& typenames, const Options& options) { in generate_stub_case_outline() 581 bool oneway, std::shared_ptr<ProxyClass> proxyClass, const AidlTypenames& typenames, in generate_proxy_method() 745 const AidlTypenames& typenames, const Options& options) { in generate_methods() 973 const AidlTypenames& typenames) { in generate_default_impl_method() [all …]
|
D | aidl_checkapi.cpp | 300 static Result<AidlTypenames> load_from_dir(const Options& options, const IoDelegate& io_delegate, in load_from_dir() 302 AidlTypenames typenames; in load_from_dir()
|
D | aidl_unittest.cpp | 155 AidlDefinedType* Parse(const string& path, const string& contents, AidlTypenames& typenames_, in Parse() 197 AidlTypenames typenames_; 1016 AidlTypenames tn1; in TEST_P() 1024 AidlTypenames tn2; in TEST_P() 1046 AidlTypenames tn1; in TEST_P() 1055 AidlTypenames tn2; in TEST_P()
|