Home
last modified time | relevance | path

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

/system/tools/aidl/
Daidl.h49 int compile_aidl(const Options& options, const IoDelegate& io_delegate);
50 bool preprocess_aidl(const Options& options, const IoDelegate& io_delegate);
51 bool dump_api(const Options& options, const IoDelegate& io_delegate);
52 bool dump_mappings(const Options& options, const IoDelegate& io_delegate);
59 const IoDelegate& io_delegate, TypeNamespace* types,
63 bool parse_preprocessed_file(const IoDelegate& io_delegate, const std::string& filename,
Dmain.cpp43 android::aidl::IoDelegate io_delegate; in main() local
46 return android::aidl::compile_aidl(options, io_delegate); in main()
48 return android::aidl::preprocess_aidl(options, io_delegate) ? 0 : 1; in main()
50 return android::aidl::dump_api(options, io_delegate) ? 0 : 1; in main()
52 return android::aidl::check_api(options, io_delegate) ? 0 : 1; in main()
54 return android::aidl::dump_mappings(options, io_delegate) ? 0 : 1; in main()
Daidl.cpp212 const vector<string>& imports, const IoDelegate& io_delegate, in write_dep_file() argument
223 CodeWriterPtr writer = io_delegate.GetCodeWriter(dep_file_name); in write_dep_file()
406 bool parse_preprocessed_file(const IoDelegate& io_delegate, const string& filename, in parse_preprocessed_file() argument
409 unique_ptr<LineReader> line_reader = io_delegate.GetLineReader(filename); in parse_preprocessed_file()
472 const IoDelegate& io_delegate, TypeNamespace* types, in load_and_validate_aidl() argument
483 Parser::Parse(input_file_name, io_delegate, types->typenames_); in load_and_validate_aidl()
493 if (!parse_preprocessed_file(io_delegate, s, types, types->typenames_)) { in load_and_validate_aidl()
503 ImportResolver import_resolver{io_delegate, input_file_name, options.ImportDirs(), in load_and_validate_aidl()
546 Parser::Parse(import_path, io_delegate, types->typenames_); in load_and_validate_aidl()
564 Parser::Parse(imported_file, io_delegate, types->typenames_); in load_and_validate_aidl()
[all …]
Dgenerate_java.cpp40 JavaTypeNamespace* types, const IoDelegate& io_delegate, in generate_java_interface() argument
47 CodeWriterPtr code_writer = io_delegate.GetCodeWriter(filename); in generate_java_interface()
54 AidlTypenames& typenames, const IoDelegate& io_delegate) { in generate_java_parcel() argument
60 CodeWriterPtr code_writer = io_delegate.GetCodeWriter(filename); in generate_java_parcel()
66 bool generate_java_parcel_declaration(const std::string& filename, const IoDelegate& io_delegate) { in generate_java_parcel_declaration() argument
67 CodeWriterPtr code_writer = io_delegate.GetCodeWriter(filename); in generate_java_parcel_declaration()
75 JavaTypeNamespace* types, const IoDelegate& io_delegate, in generate_java() argument
79 return generate_java_parcel(filename, parcelable, types->typenames_, io_delegate); in generate_java()
84 return generate_java_parcel_declaration(filename, io_delegate); in generate_java()
89 return generate_java_interface(filename, interface, types, io_delegate, options); in generate_java()
Dmain_cpp.cpp42 android::aidl::IoDelegate io_delegate; in main() local
43 return android::aidl::compile_aidl(options, io_delegate); in main()
Dgenerate_ndk.cpp40 const IoDelegate& io_delegate) { in GenerateNdkInterface() argument
42 unique_ptr<CodeWriter> i_writer(io_delegate.GetCodeWriter(i_header)); in GenerateNdkInterface()
48 unique_ptr<CodeWriter> bp_writer(io_delegate.GetCodeWriter(bp_header)); in GenerateNdkInterface()
54 unique_ptr<CodeWriter> bn_writer(io_delegate.GetCodeWriter(bn_header)); in GenerateNdkInterface()
58 unique_ptr<CodeWriter> source_writer = io_delegate.GetCodeWriter(output_file); in GenerateNdkInterface()
65 const IoDelegate& io_delegate) { in GenerateNdkParcel() argument
68 unique_ptr<CodeWriter> header_writer(io_delegate.GetCodeWriter(header_path)); in GenerateNdkParcel()
74 unique_ptr<CodeWriter> bp_writer(io_delegate.GetCodeWriter(bp_header)); in GenerateNdkParcel()
80 unique_ptr<CodeWriter> bn_writer(io_delegate.GetCodeWriter(bn_header)); in GenerateNdkParcel()
84 unique_ptr<CodeWriter> source_writer = io_delegate.GetCodeWriter(output_file); in GenerateNdkParcel()
[all …]
Dimport_resolver.cpp36 ImportResolver::ImportResolver(const IoDelegate& io_delegate, const string& input_file_name, in ImportResolver() argument
38 : io_delegate_(io_delegate), input_file_name_(input_file_name), input_files_(input_files) { in ImportResolver()
Dgenerate_cpp.cpp1115 const IoDelegate& io_delegate, ClassNames header_type) { in WriteHeader() argument
1137 unique_ptr<CodeWriter> code_writer(io_delegate.GetCodeWriter(header_path)); in WriteHeader()
1142 io_delegate.RemovePath(header_path); in WriteHeader()
1154 const IoDelegate& io_delegate) { in GenerateCppInterface() argument
1163 if (!WriteHeader(options, types, interface, io_delegate, in GenerateCppInterface()
1165 !WriteHeader(options, types, interface, io_delegate, in GenerateCppInterface()
1167 !WriteHeader(options, types, interface, io_delegate, in GenerateCppInterface()
1172 unique_ptr<CodeWriter> writer = io_delegate.GetCodeWriter(output_file); in GenerateCppInterface()
1179 io_delegate.RemovePath(output_file); in GenerateCppInterface()
1187 const IoDelegate& io_delegate) { in GenerateCppParcel() argument
[all …]
Daidl_apicheck.cpp178 bool check_api(const Options& options, const IoDelegate& io_delegate) { in check_api() argument
187 vector<string> old_files = io_delegate.ListFiles(old_dir); in check_api()
194 if (internals::load_and_validate_aidl(file, options, io_delegate, &old_ns, &types, in check_api()
206 vector<string> new_files = io_delegate.ListFiles(new_dir); in check_api()
213 if (internals::load_and_validate_aidl(file, options, io_delegate, &new_ns, &types, in check_api()
Daidl_apicheck.h25 bool check_api(const Options& options, const IoDelegate& io_delegate);
Dgenerate_java.h32 java::JavaTypeNamespace* types, const IoDelegate& io_delegate,
Dimport_resolver.h32 ImportResolver(const IoDelegate& io_delegate, const std::string& input_file_name,
Dgenerate_cpp.h34 const AidlDefinedType& parsed_doc, const IoDelegate& io_delegate);
Dgenerate_ndk.h30 const AidlDefinedType& defined_type, const IoDelegate& io_delegate);
DAndroid.bp63 "io_delegate.cpp",
Daidl_language.cpp809 const android::aidl::IoDelegate& io_delegate, in Parse() argument
812 unique_ptr<string> raw_buffer = io_delegate.GetFileContents(filename); in Parse()
Daidl_language.h651 const android::aidl::IoDelegate& io_delegate,