Home
last modified time | relevance | path

Searched refs:GetDiagnostics (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/base/tools/aapt2/
DResourceTable_test.cpp35 test::GetDiagnostics())); in TEST()
40 test::GetDiagnostics())); in TEST()
48 test::ValueBuilder<Id>().SetSource("test.xml", 21u).Build(), test::GetDiagnostics())); in TEST()
57 test::GetDiagnostics())); in TEST()
72 test::GetDiagnostics())); in TEST()
77 test::GetDiagnostics())); in TEST()
82 test::GetDiagnostics())); in TEST()
89 test::GetDiagnostics())); in TEST()
103 util::make_unique<Attribute>(true), test::GetDiagnostics())); in TEST()
111 util::make_unique<Attribute>(false), test::GetDiagnostics())); in TEST()
[all …]
DLoadedApk.cpp34 context->GetDiagnostics()->Error(DiagMessage(source) << error); in LoadApkFromPath()
40 context->GetDiagnostics()->Error(DiagMessage(source) << "no resources.arsc found"); in LoadApkFromPath()
46 context->GetDiagnostics()->Error(DiagMessage(source) << "could not open resources.arsc"); in LoadApkFromPath()
86 context->GetDiagnostics()->Note(DiagMessage() in WriteToArchive()
/frameworks/base/tools/aapt2/cmd/
DCompile.cpp148 context->GetDiagnostics()->Error(DiagMessage() in LoadInputFilesFromDir()
167 context->GetDiagnostics()->Error(DiagMessage() in LoadInputFilesFromDir()
183 context->GetDiagnostics()->Error(DiagMessage() << err_str); in LoadInputFilesFromDir()
200 context->GetDiagnostics()->Error(DiagMessage(path_data.source) in CompileTable()
215 ResourceParser res_parser(context->GetDiagnostics(), &table, path_data.source, path_data.config, in CompileTable()
249 context->GetDiagnostics()->Error(DiagMessage(output_path) << "failed to open"); in CompileTable()
262 context->GetDiagnostics()->Error(DiagMessage(output_path) << "failed to write"); in CompileTable()
268 context->GetDiagnostics()->Error(DiagMessage(output_path) << "failed to finish entry"); in CompileTable()
363 context->GetDiagnostics()->Error(DiagMessage(output_path) << "failed to write data"); in FlattenXmlToOutStream()
373 context->GetDiagnostics()->Error(DiagMessage(input_path) in IsValidFile()
[all …]
DDump.cpp37 DeserializeCompiledFileFromPb(pb_file, source, context->GetDiagnostics()); in DumpCompiledFile()
39 context->GetDiagnostics()->Warn(DiagMessage() << "failed to read compiled file"); in DumpCompiledFile()
58 context->GetDiagnostics()->Error(DiagMessage(file_path) in TryDumpFile()
65 context->GetDiagnostics()->Error(DiagMessage(file_path) << "invalid resources.arsc.flat"); in TryDumpFile()
69 table = DeserializeTableFromPb(pb_table, Source(file_path), context->GetDiagnostics()); in TryDumpFile()
80 context->GetDiagnostics()->Error(DiagMessage(file_path) in TryDumpFile()
98 context->GetDiagnostics()->Error(DiagMessage(file_path) << err); in TryDumpFile()
107 table = DeserializeTableFromPb(pb_table, Source(file_path), context->GetDiagnostics()); in TryDumpFile()
122 context->GetDiagnostics()->Warn(DiagMessage() << "failed to read compiled file"); in TryDumpFile()
128 context->GetDiagnostics()->Warn(DiagMessage() << "failed to read meta data"); in TryDumpFile()
[all …]
DLink.cpp134 IDiagnostics* GetDiagnostics() override { in GetDiagnostics() function in aapt::LinkContext
229 context_->GetDiagnostics()->Error(DiagMessage() << "Failed to rewrite " << name in FindByName()
235 context_->GetDiagnostics()->Note(DiagMessage() << "rewriting " << name << " (" << *id in FindByName()
262 context->GetDiagnostics()->Note(DiagMessage(path) << "writing to archive (keep_raw_values=" in FlattenXml()
460 context_->GetDiagnostics()->Note(DiagMessage() << "linking " << src.path); in LinkAndVersionXmlFile()
526 context_->GetDiagnostics()->Error(DiagMessage(file_ref->GetSource()) in Flatten()
542 context_->GetDiagnostics()->Error(DiagMessage(file->GetSource()) in Flatten()
548 context_->GetDiagnostics(), file->GetSource()); in Flatten()
582 context_->GetDiagnostics()->Note(DiagMessage(doc->file.source) in Flatten()
591 context_->GetDiagnostics()); in Flatten()
[all …]
DOptimize.cpp70 IDiagnostics* GetDiagnostics() override { in GetDiagnostics() function in aapt::OptimizeContext
125 context_->GetDiagnostics()->Note(DiagMessage() << "Optimizing APK..."); in Run()
135 context_->GetDiagnostics()->Error(DiagMessage() << "failed deduping resources"); in Run()
156 context_->GetDiagnostics()->Note( in Run()
165 CreateZipFileArchiveWriter(context_->GetDiagnostics(), *path_iter); in Run()
179 CreateZipFileArchiveWriter(context_->GetDiagnostics(), options_.output_path); in Run()
216 context_->GetDiagnostics()->Warn(DiagMessage(file_ref->GetSource()) in WriteSplitApk()
261 context->GetDiagnostics()->Error(DiagMessage(apk->GetSource()) in ExtractAppDataFromManifest()
268 context->GetDiagnostics()->Error(DiagMessage(manifest_file->GetSource()) in ExtractAppDataFromManifest()
274 data->data(), data->size(), context->GetDiagnostics(), manifest_file->GetSource()); in ExtractAppDataFromManifest()
[all …]
/frameworks/base/tools/aapt2/unflatten/
DBinaryResourceParser.cpp94 context_->GetDiagnostics()->Error(DiagMessage(source_) in Parse()
100 context_->GetDiagnostics()->Error(DiagMessage(source_) in Parse()
112 context_->GetDiagnostics()->Warn( in Parse()
115 context_->GetDiagnostics()->Warn( in Parse()
131 context_->GetDiagnostics()->Error(DiagMessage(source_) in ParseTable()
145 context_->GetDiagnostics()->Error( in ParseTable()
155 context_->GetDiagnostics()->Warn( in ParseTable()
167 context_->GetDiagnostics()->Warn( in ParseTable()
176 context_->GetDiagnostics()->Error( in ParseTable()
188 context_->GetDiagnostics()->Error(DiagMessage(source_) << "corrupt ResTable_package chunk"); in ParsePackage()
[all …]
/frameworks/base/tools/aapt2/link/
DProductFilter_test.cpp33 context->GetDiagnostics())); in TEST()
37 context->GetDiagnostics())); in TEST()
42 context->GetDiagnostics())); in TEST()
46 context->GetDiagnostics())); in TEST()
69 context->GetDiagnostics())); in TEST()
74 context->GetDiagnostics())); in TEST()
95 context->GetDiagnostics())); in TEST()
100 context->GetDiagnostics())); in TEST()
105 context->GetDiagnostics())); in TEST()
119 context->GetDiagnostics())); in TEST()
[all …]
DTableMerger.cpp71 context_->GetDiagnostics()->Error(DiagMessage(src) in MergeImpl()
104 context_->GetDiagnostics()->Warn(DiagMessage(src) << "ignoring package " in MergeAndMangle()
118 context_->GetDiagnostics()->Error( in MergeAndMangle()
150 context->GetDiagnostics()->Error(DiagMessage(src) in MergeType()
174 context->GetDiagnostics()->Error( in MergeEntry()
233 context->GetDiagnostics()->Error(DiagMessage(src_value->GetSource()) in MergeConfigValue()
236 context->GetDiagnostics()->Note(DiagMessage(dst_value->GetSource()) in MergeConfigValue()
273 context_->GetDiagnostics()->Error(DiagMessage(src) in DoMerge()
276 context_->GetDiagnostics()->Note(DiagMessage(src) << "define an <add-resource> tag or use " in DoMerge()
DReferenceLinker.cpp124 context_->GetDiagnostics()->Error(msg); in Visit()
133 context_->GetDiagnostics()->Error(msg); in Visit()
322 context->GetDiagnostics()->Error(error_msg); in LinkReference()
336 context->GetDiagnostics()->Error( in Consume()
DXmlReferenceLinker.cpp114 context_->GetDiagnostics()->Error(DiagMessage(source) << "attribute '" in Visit()
138 context_->GetDiagnostics()->Error(msg); in Visit()
DManifestFixer.cpp385 context->GetDiagnostics()->Error(DiagMessage(doc->file.source) in Consume()
401 if (!BuildRules(&executor, context->GetDiagnostics())) { in Consume()
405 if (!executor.Execute(xml::XmlActionExecutorPolicy::kWhitelist, context->GetDiagnostics(), doc)) { in Consume()
DProductFilter.cpp101 name, start_range_iter, iter, context->GetDiagnostics()); in Consume()
/frameworks/base/tools/aapt2/io/
DUtil.cpp27 context->GetDiagnostics()->Note(DiagMessage() << "writing " << out_path << " to archive"); in CopyInputStreamToArchive()
31 context->GetDiagnostics()->Error(DiagMessage() << "failed to write " << out_path in CopyInputStreamToArchive()
42 context->GetDiagnostics()->Error(DiagMessage(file->GetSource()) << "failed to open file"); in CopyFileToArchive()
52 context->GetDiagnostics()->Note(DiagMessage() << "writing " << out_path << " to archive"); in CopyProtoToArchive()
61 context->GetDiagnostics()->Error(DiagMessage() << "failed to write " << out_path in CopyProtoToArchive()
71 context->GetDiagnostics()->Error(DiagMessage() << "failed to write " << out_path in CopyProtoToArchive()
/frameworks/base/tools/aapt2/compile/
DInlineXmlFormatParser.cpp60 context_->GetDiagnostics()->Error(DiagMessage(src) in Visit()
68 context_->GetDiagnostics()->Error( in Visit()
84 context_->GetDiagnostics()->Error(DiagMessage(src) in Visit()
155 context->GetDiagnostics()->Error( in Consume()
161 context->GetDiagnostics()->Error( in Consume()
180 context->GetDiagnostics()->Error( in Consume()
DPngCrunch.cpp150 context->GetDiagnostics()->Error(DiagMessage() in ReadPng()
156 context->GetDiagnostics()->Error(DiagMessage() in ReadPng()
169 context->GetDiagnostics()->Error(DiagMessage() << "failed to create libpng read png_struct"); in ReadPng()
176 context->GetDiagnostics()->Error(DiagMessage() << "failed to create libpng read png_info"); in ReadPng()
182 SourcePathDiagnostics source_diag(source, context->GetDiagnostics()); in ReadPng()
487 context->GetDiagnostics()->Error(DiagMessage() << "failed to create libpng write png_struct"); in WritePng()
494 context->GetDiagnostics()->Error(DiagMessage() << "failed to create libpng write png_info"); in WritePng()
509 png_set_error_fn(write_ptr, (png_voidp)context->GetDiagnostics(), LogError, LogWarning); in WritePng()
577 context->GetDiagnostics()->Note(msg); in WritePng()
612 context->GetDiagnostics()->Note(msg); in WritePng()
DIdAssigner.cpp71 AssignId(context->GetDiagnostics(), assigned_id, name, in Consume()
86 context->GetDiagnostics()->Error( in Consume()
106 context->GetDiagnostics()->Error( in Consume()
/frameworks/base/tools/aapt2/proto/
DTableProtoSerializer_test.cpp42 public_symbol, context->GetDiagnostics())); in TEST()
53 context->GetDiagnostics())); in TEST()
60 context->GetDiagnostics())); in TEST()
65 context->GetDiagnostics())); in TEST()
77 context->GetDiagnostics())); in TEST()
83 *pb_table, Source{"test"}, context->GetDiagnostics()); in TEST()
161 new_pb_file, Source("test"), context->GetDiagnostics()); in TEST()
182 context->GetDiagnostics()); in TEST()
/frameworks/base/tools/aapt2/optimize/
DResourceDeduper.cpp76 context_->GetDiagnostics()->Note( in VisitConfig()
80 context_->GetDiagnostics()->Note( in VisitConfig()
/frameworks/base/tools/aapt2/split/
DTableSplitter_test.cpp196 test::GetDiagnostics())); in TEST()
199 test::GetDiagnostics())); in TEST()
202 test::GetDiagnostics())); in TEST()
/frameworks/base/tools/aapt2/process/
DIResourceTableConsumer.h47 virtual IDiagnostics* GetDiagnostics() = 0;
/frameworks/base/tools/aapt2/test/
DCommon.cpp39 IDiagnostics* GetDiagnostics() { in GetDiagnostics() function
DBuilders.h114 GetDiagnostics())); in AddValue()
124 CHECK(table_->SetSymbolStateAllowMangled(res_name, id, symbol, GetDiagnostics()));
DCommon.h49 IDiagnostics* GetDiagnostics();
/frameworks/base/tools/aapt2/java/
DManifestClassGenerator_test.cpp27 GenerateManifestClass(context->GetDiagnostics(), res); in GetManifestClassText()

12