Home
last modified time | relevance | path

Searched refs:typenames (Results 1 – 19 of 19) sorted by relevance

/system/tools/aidl/
Daidl_to_cpp.cpp37 std::string RawParcelMethod(const AidlTypeSpecifier& raw_type, const AidlTypenames& typenames, in RawParcelMethod() argument
74 if (auto enum_decl = typenames.GetEnumDeclaration(raw_type); enum_decl != nullptr) { in RawParcelMethod()
78 return RawParcelMethod(enum_decl->GetBackingType(), typenames, readMethod); in RawParcelMethod()
108 auto definedType = typenames.TryGetDefinedType(type.GetName()); in RawParcelMethod()
138 const AidlTypenames& typenames) { in WrapIfNullable() argument
142 type.GetName() != "IBinder" && typenames.GetEnumDeclaration(type) == nullptr) { in WrapIfNullable()
148 std::string GetCppName(const AidlTypeSpecifier& raw_type, const AidlTypenames& typenames) { in GetCppName() argument
175 return WrapIfNullable("::std::string", raw_type, typenames); in GetCppName()
177 return WrapIfNullable(m[aidl_name], raw_type, typenames); in GetCppName()
179 auto definedType = typenames.TryGetDefinedType(type.GetName()); in GetCppName()
[all …]
Dgenerate_cpp.h32 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,
Daidl_to_cpp.h40 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,
Dgenerate_cpp.cpp96 ArgList BuildArgList(const AidlTypenames& typenames, const AidlMethod& method, bool for_declaration, in BuildArgList() argument
106 const bool nonCopyable = IsNonCopyableType(a->GetType(), typenames); in BuildArgList()
110 literal = CppNameOf(a->GetType(), typenames); in BuildArgList()
115 const auto definedType = typenames.TryGetDefinedType(a->GetType().GetName()); in BuildArgList()
145 literal = CppNameOf(method.GetType(), typenames) + "*"; in BuildArgList()
158 unique_ptr<Declaration> BuildMethodDecl(const AidlMethod& method, const AidlTypenames& typenames, in BuildMethodDecl() argument
170 BuildArgList(typenames, method, true /* for method decl */), modifiers}}; in BuildMethodDecl()
251 unique_ptr<Declaration> DefineClientTransaction(const AidlTypenames& typenames, in DefineClientTransaction() argument
258 ArgList{BuildArgList(typenames, method, true /* for method decl */)}}}; in DefineClientTransaction()
299 const string& method = ParcelWriteMethodOf(a->GetType(), typenames); in DefineClientTransaction()
[all …]
Dgenerate_java.h31 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);
Daidl.cpp353 AidlTypenames* typenames) { in parse_preprocessed_file() argument
389 typenames->AddPreprocessedType(unique_ptr<AidlParcelable>(doc)); in parse_preprocessed_file()
394 typenames->AddPreprocessedType(unique_ptr<AidlStructuredParcelable>(doc)); in parse_preprocessed_file()
398 typenames->AddPreprocessedType(unique_ptr<AidlInterface>(doc)); in parse_preprocessed_file()
413 const IoDelegate& io_delegate, AidlTypenames* typenames, in load_and_validate_aidl() argument
422 std::unique_ptr<Parser> main_parser = Parser::Parse(input_file_name, io_delegate, *typenames); in load_and_validate_aidl()
439 if (!parse_preprocessed_file(io_delegate, s, typenames)) { in load_and_validate_aidl()
474 if (typenames->IsIgnorableImport(import)) { in load_and_validate_aidl()
482 if (typenames->ResolveTypename(import).is_resolved) { in load_and_validate_aidl()
501 std::unique_ptr<Parser> import_parser = Parser::Parse(import_path, io_delegate, *typenames); in load_and_validate_aidl()
[all …]
Dgenerate_java.cpp41 const AidlTypenames& typenames, const IoDelegate& io_delegate, in generate_java_interface() argument
43 auto cl = generate_binder_interface_class(iface, typenames, options); in generate_java_interface()
55 const AidlTypenames& typenames, const IoDelegate& io_delegate) { in generate_java_parcel() argument
56 auto cl = generate_parcel_class(parcel, typenames); in generate_java_parcel()
69 const AidlTypenames& typenames, const IoDelegate& io_delegate) { in generate_java_enum_declaration() argument
71 generate_enum(code_writer, enum_decl, typenames); in generate_java_enum_declaration()
76 const AidlTypenames& typenames, const IoDelegate& io_delegate, in generate_java() argument
80 return generate_java_parcel(filename, parcelable, typenames, io_delegate); in generate_java()
85 return generate_java_enum_declaration(filename, enum_decl, typenames, io_delegate); in generate_java()
89 return generate_java_interface(filename, interface, typenames, io_delegate, options); in generate_java()
[all …]
Daidl_to_java.h46 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; member
Daidl_to_java.cpp50 const string& JavaNameOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames, in JavaNameOf() argument
99 if (const AidlEnumDeclaration* enum_decl = typenames.GetEnumDeclaration(aidl); in JavaNameOf()
124 const AidlTypeSpecifier& aidl, const AidlTypenames& typenames, bool instantiable, in JavaSignatureOfInternal() argument
126 string ret = JavaNameOf(aidl, typenames, instantiable, boxing && !aidl.IsArray()); in JavaSignatureOfInternal()
131 JavaSignatureOfInternal(*ta, typenames, false, false, true /* boxing */)); in JavaSignatureOfInternal()
145 string AidlBackingTypeName(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in AidlBackingTypeName() argument
147 if (const AidlEnumDeclaration* enum_decl = typenames.GetEnumDeclaration(type); in AidlBackingTypeName()
161 string JavaSignatureOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames) { in JavaSignatureOf() argument
162 return JavaSignatureOfInternal(aidl, typenames, false, false); in JavaSignatureOf()
165 string InstantiableJavaSignatureOf(const AidlTypeSpecifier& aidl, const AidlTypenames& typenames) { in InstantiableJavaSignatureOf() argument
[all …]
Dparser.cpp30 AidlTypenames& typenames) { in Parse() argument
42 std::unique_ptr<Parser> parser(new Parser(filename, *raw_buffer, typenames)); in Parse()
64 android::aidl::AidlTypenames& typenames) in Parser() argument
65 : filename_(filename), typenames_(typenames) { in Parser()
Dgenerate_aidl_mappings.cpp31 const AidlTypenames& typenames) { in generate_mappings() argument
43 signature << java::JavaSignatureOf(arg->GetType(), typenames) << ","; in generate_mappings()
46 signature << java::JavaSignatureOf(method->GetType(), typenames); in generate_mappings()
Dgenerate_java_binder.cpp51 std::shared_ptr<Variable> Get(const AidlTypeSpecifier& type, const AidlTypenames& typenames) { in Get() argument
52 auto v = std::make_shared<Variable>(JavaSignatureOf(type, typenames), in Get()
353 static void generate_new_array(const AidlTypeSpecifier& type, const AidlTypenames& typenames, in generate_new_array() argument
365 v, std::make_shared<NewArrayExpression>(InstantiableJavaSignatureOf(type, typenames), len))); in generate_new_array()
372 bool is_return_value, const AidlTypenames& typenames) { in generate_write_to_parcel() argument
377 .typenames = typenames, in generate_write_to_parcel()
401 const AidlTypenames& typenames) { in generate_interface_method() argument
405 decl->returnType = JavaSignatureOf(method.GetType(), typenames); in generate_interface_method()
410 … auto var = std::make_shared<Variable>(JavaSignatureOf(arg->GetType(), typenames), arg->GetName()); in generate_interface_method()
423 const AidlTypenames& typenames, in generate_stub_code() argument
[all …]
Daidl_language.cpp285 const AidlTypeSpecifier* AidlAnnotatable::BackingType(const AidlTypenames& typenames) const { in BackingType()
299 type_specifier->Resolve(typenames); in BackingType()
407 bool AidlTypeSpecifier::Resolve(const AidlTypenames& typenames) { in Resolve() argument
409 AidlTypenames::ResolvedTypename result = typenames.ResolveTypename(unresolved_name_); in Resolve()
425 bool AidlTypeSpecifier::CheckValid(const AidlTypenames& typenames) const { in CheckValid()
426 if (!AidlAnnotatable::CheckValid(typenames)) { in CheckValid()
442 const auto defined_type = typenames.TryGetDefinedType(type_name); in CheckValid()
497 const auto defined_type = typenames.TryGetDefinedType(GetName()); in CheckValid()
509 const auto defined_type = typenames.TryGetDefinedType(GetName()); in CheckValid()
538 bool AidlVariableDeclaration::CheckValid(const AidlTypenames& typenames) const { in CheckValid()
[all …]
Daidl.h82 const IoDelegate& io_delegate, AidlTypenames* typenames,
86 AidlTypenames* typenames);
Dparser.h62 AidlTypenames& typenames);
97 android::aidl::AidlTypenames& typenames);
Dgenerate_aidl_mappings.h29 SignatureMap generate_mappings(const AidlDefinedType* iface, const AidlTypenames& typenames);
Daidl_language.h242 const AidlTypeSpecifier* BackingType(const AidlTypenames& typenames) 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;
677 virtual bool LanguageSpecificCheckValid(const AidlTypenames& typenames,
734 bool CheckValid(const AidlTypenames& typenames) const override;
735 bool LanguageSpecificCheckValid(const AidlTypenames& typenames,
[all …]
Daidl_checkapi.cpp302 AidlTypenames typenames; in load_from_dir() local
305 if (internals::load_and_validate_aidl(file, options, io_delegate, &typenames, in load_from_dir()
311 return typenames; in load_from_dir()
Dgenerate_ndk.cpp1020 std::string GenerateEnumToString(const AidlTypenames& typenames, in GenerateEnumToString() argument
1040 << NdkNameOf(typenames, enum_decl.GetBackingType(), StorageMode::STACK) << ">(val));\n"; in GenerateEnumToString()