Home
last modified time | relevance | path

Searched refs:io_delegate (Results 1 – 16 of 16) sorted by relevance

/system/tools/aidl/
Daidl.h48 int compile_aidl(const Options& options, const IoDelegate& io_delegate);
49 bool preprocess_aidl(const Options& options, const IoDelegate& io_delegate);
50 bool dump_api(const Options& options, const IoDelegate& io_delegate);
51 bool dump_mappings(const Options& options, const IoDelegate& io_delegate);
79 const IoDelegate& io_delegate, AidlTypenames* typenames,
83 bool parse_preprocessed_file(const IoDelegate& io_delegate, const std::string& filename,
Dmain.cpp34 android::aidl::IoDelegate io_delegate; in process_options() local
37 return android::aidl::compile_aidl(options, io_delegate); in process_options()
39 return android::aidl::preprocess_aidl(options, io_delegate) ? 0 : 1; in process_options()
41 return android::aidl::dump_api(options, io_delegate) ? 0 : 1; in process_options()
43 return android::aidl::check_api(options, io_delegate) ? 0 : 1; in process_options()
45 return android::aidl::dump_mappings(options, io_delegate) ? 0 : 1; in process_options()
Daidl.cpp154 const vector<string>& imports, const IoDelegate& io_delegate, in write_dep_file() argument
165 CodeWriterPtr writer = io_delegate.GetCodeWriter(dep_file_name); in write_dep_file()
350 bool parse_preprocessed_file(const IoDelegate& io_delegate, const string& filename, in parse_preprocessed_file() argument
353 unique_ptr<LineReader> line_reader = io_delegate.GetLineReader(filename); in parse_preprocessed_file()
413 const IoDelegate& io_delegate, AidlTypenames* typenames, in load_and_validate_aidl() argument
423 std::unique_ptr<Parser> main_parser = Parser::Parse(input_file_name, io_delegate, *typenames); in load_and_validate_aidl()
440 if (!parse_preprocessed_file(io_delegate, s, typenames)) { in load_and_validate_aidl()
450 ImportResolver import_resolver{io_delegate, input_file_name, options.ImportDirs(), in load_and_validate_aidl()
502 std::unique_ptr<Parser> import_parser = Parser::Parse(import_path, io_delegate, *typenames); in load_and_validate_aidl()
516 std::unique_ptr<Parser> import_parser = Parser::Parse(imported_file, io_delegate, *typenames); in load_and_validate_aidl()
[all …]
Dgenerate_java.cpp41 const AidlTypenames& typenames, const IoDelegate& io_delegate, in generate_java_interface() argument
48 CodeWriterPtr code_writer = io_delegate.GetCodeWriter(filename); in generate_java_interface()
55 const AidlTypenames& typenames, const IoDelegate& io_delegate) { in generate_java_parcel() argument
61 CodeWriterPtr code_writer = io_delegate.GetCodeWriter(filename); in generate_java_parcel()
69 const AidlTypenames& typenames, const IoDelegate& io_delegate) { in generate_java_enum_declaration() argument
70 CodeWriterPtr code_writer = io_delegate.GetCodeWriter(filename); 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()
Dgenerate_ndk.cpp43 const IoDelegate& io_delegate) { in GenerateNdkInterface() argument
45 unique_ptr<CodeWriter> i_writer(io_delegate.GetCodeWriter(i_header)); in GenerateNdkInterface()
51 unique_ptr<CodeWriter> bp_writer(io_delegate.GetCodeWriter(bp_header)); in GenerateNdkInterface()
57 unique_ptr<CodeWriter> bn_writer(io_delegate.GetCodeWriter(bn_header)); in GenerateNdkInterface()
61 unique_ptr<CodeWriter> source_writer = io_delegate.GetCodeWriter(output_file); in GenerateNdkInterface()
68 const IoDelegate& io_delegate) { in GenerateNdkParcel() argument
71 unique_ptr<CodeWriter> header_writer(io_delegate.GetCodeWriter(header_path)); in GenerateNdkParcel()
77 unique_ptr<CodeWriter> bp_writer(io_delegate.GetCodeWriter(bp_header)); in GenerateNdkParcel()
83 unique_ptr<CodeWriter> bn_writer(io_delegate.GetCodeWriter(bn_header)); in GenerateNdkParcel()
87 unique_ptr<CodeWriter> source_writer = io_delegate.GetCodeWriter(output_file); in GenerateNdkParcel()
[all …]
Dgenerate_cpp.cpp1263 const AidlInterface& interface, const IoDelegate& io_delegate, in WriteHeader() argument
1286 unique_ptr<CodeWriter> code_writer(io_delegate.GetCodeWriter(header_path)); in WriteHeader()
1291 io_delegate.RemovePath(header_path); in WriteHeader()
1303 const IoDelegate& io_delegate) { in GenerateCppInterface() argument
1312 if (!WriteHeader(options, typenames, interface, io_delegate, ClassNames::INTERFACE) || in GenerateCppInterface()
1313 !WriteHeader(options, typenames, interface, io_delegate, ClassNames::CLIENT) || in GenerateCppInterface()
1314 !WriteHeader(options, typenames, interface, io_delegate, ClassNames::SERVER)) { in GenerateCppInterface()
1318 unique_ptr<CodeWriter> writer = io_delegate.GetCodeWriter(output_file); in GenerateCppInterface()
1325 io_delegate.RemovePath(output_file); in GenerateCppInterface()
1333 const IoDelegate& io_delegate) { in GenerateCppParcel() argument
[all …]
Dimport_resolver.cpp38 ImportResolver::ImportResolver(const IoDelegate& io_delegate, const string& input_file_name, in ImportResolver() argument
40 : io_delegate_(io_delegate), input_file_name_(input_file_name), input_files_(input_files) { in ImportResolver()
Daidl_checkapi.h25 bool check_api(const Options& options, const IoDelegate& io_delegate);
Daidl_checkapi.cpp248 bool check_api(const Options& options, const IoDelegate& io_delegate) { in check_api() argument
255 vector<string> old_files = io_delegate.ListFiles(old_dir); in check_api()
264 if (internals::load_and_validate_aidl(file, options, io_delegate, &old_tns, &types, in check_api()
275 vector<string> new_files = io_delegate.ListFiles(new_dir); in check_api()
284 if (internals::load_and_validate_aidl(file, options, io_delegate, &new_tns, &types, in check_api()
Dimport_resolver.h32 ImportResolver(const IoDelegate& io_delegate, const std::string& input_file_name,
Dgenerate_java.h31 const AidlTypenames& typenames, const IoDelegate& io_delegate,
Dgenerate_cpp.h33 const AidlDefinedType& parsed_doc, const IoDelegate& io_delegate);
Dgenerate_ndk.h30 const AidlDefinedType& defined_type, const IoDelegate& io_delegate);
DAndroid.bp73 "io_delegate.cpp",
Daidl_language.cpp1126 const android::aidl::IoDelegate& io_delegate, in Parse() argument
1129 unique_ptr<string> raw_buffer = io_delegate.GetFileContents(filename); in Parse()
Daidl_language.h858 const android::aidl::IoDelegate& io_delegate,