Home
last modified time | relevance | path

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

12

/frameworks/base/tools/aapt2/
DResourceTable_test.cpp41 test::GetDiagnostics())); in TEST()
46 test::GetDiagnostics())); in TEST()
54 test::ValueBuilder<Id>().SetSource("test.xml", 21u).Build(), test::GetDiagnostics())); in TEST()
63 test::GetDiagnostics())); in TEST()
78 test::GetDiagnostics())); in TEST()
83 test::GetDiagnostics())); in TEST()
88 test::GetDiagnostics())); in TEST()
95 test::GetDiagnostics())); in TEST()
108 test::GetDiagnostics())); in TEST()
115 util::make_unique<Attribute>(), test::GetDiagnostics())); in TEST()
[all …]
DLoadedApk.cpp238 context->GetDiagnostics()->Note(DiagMessage() in WriteToArchive()
246 context->GetDiagnostics()->Note(DiagMessage() << "Filtered '" << path << "' from APK."); in WriteToArchive()
271 SerializeTableToPb(*split_table, &pb_table, context->GetDiagnostics()); in WriteToArchive()
284 context->GetDiagnostics()->Error(DiagMessage(path) << "flattening failed"); in WriteToArchive()
/frameworks/base/tools/aapt2/cmd/
DCompile.cpp152 context->GetDiagnostics()->Error(DiagMessage(path_data.source) in CompileTable()
168 ResourceParser res_parser(context->GetDiagnostics(), &table, path_data.source, path_data.config, in CompileTable()
199 context->GetDiagnostics()->Error(DiagMessage(output_path) << "failed to open"); in CompileTable()
210 SerializeTableToPb(table, &pb_table, context->GetDiagnostics()); in CompileTable()
212 context->GetDiagnostics()->Error(DiagMessage(output_path) << "failed to write"); in CompileTable()
218 context->GetDiagnostics()->Error(DiagMessage(output_path) << "failed to finish entry"); in CompileTable()
226 context->GetDiagnostics()->Error(DiagMessage() in CompileTable()
342 context->GetDiagnostics()->Error(DiagMessage(input_path) in IsValidFile()
345 context->GetDiagnostics()->Error(DiagMessage(input_path) << "file not found"); in IsValidFile()
347 context->GetDiagnostics()->Error(DiagMessage(input_path) in IsValidFile()
[all …]
DConvert.cpp99 context_->GetDiagnostics()->Error(DiagMessage(source_) in SerializeFile()
107 context_->GetDiagnostics()->Error(DiagMessage(source_) in SerializeFile()
115 context_->GetDiagnostics()->Error(DiagMessage(source_) in SerializeFile()
123 context_->GetDiagnostics()->Error(DiagMessage(source_) in SerializeFile()
131 context_->GetDiagnostics()->Error(DiagMessage(source_) in SerializeFile()
161 SerializeTableToPb(*table, &pb_table, context_->GetDiagnostics()); in SerializeTable()
170 context_->GetDiagnostics()->Error(DiagMessage(source_) in SerializeFile()
178 context_->GetDiagnostics()->Error(DiagMessage(source_) << "failed to parse binary XML: " in SerializeFile()
185 context_->GetDiagnostics()->Error(DiagMessage(source_) in SerializeFile()
193 context_->GetDiagnostics()->Error(DiagMessage(source_) in SerializeFile()
[all …]
DDump.cpp86 IDiagnostics* GetDiagnostics() override { in GetDiagnostics() function in aapt::__anon00f61fca0111::DumpContext
143 context.GetDiagnostics()->Error(DiagMessage(container) in Action()
152 context.GetDiagnostics()->Error(DiagMessage(container) in Action()
167 context.GetDiagnostics()->Error(DiagMessage(container) in Action()
176 context.GetDiagnostics()->Error(DiagMessage(container) in Action()
191 context.GetDiagnostics()->Error(DiagMessage(container) in Action()
200 context.GetDiagnostics()->Warn(DiagMessage(container) in Action()
225 GetDiagnostics()->Error(DiagMessage() << "Failed to retrieve resource table"); in Dump()
266 GetDiagnostics()->Error(DiagMessage() << "Failed to retrieve resource table"); in Dump()
272 StringPool::FlattenUtf8(&buffer, table->string_pool, GetDiagnostics()); in Dump()
[all …]
DLink.cpp95 IDiagnostics* GetDiagnostics() override { in GetDiagnostics() function in aapt::LinkContext
192 context_->GetDiagnostics()->Error(DiagMessage() << "Failed to rewrite " << name in FindByName()
198 context_->GetDiagnostics()->Note(DiagMessage() << "rewriting " << name << " (" << *id in FindByName()
219 context->GetDiagnostics()->Note(DiagMessage(path) << "writing to archive (keep_raw_values=" in FlattenXml()
432 context_->GetDiagnostics()->Note(DiagMessage() in LinkAndVersionXmlFile()
523 context_->GetDiagnostics()->Error(DiagMessage(file_ref->GetSource()) in Flatten()
539 context_->GetDiagnostics()->Error(DiagMessage(file->GetSource()) in Flatten()
547 context_->GetDiagnostics()->Error(DiagMessage(file->GetSource()) in Flatten()
555 context_->GetDiagnostics()->Error(DiagMessage(file->GetSource()) in Flatten()
563 context_->GetDiagnostics()->Error(DiagMessage(file->GetSource()) in Flatten()
[all …]
DOptimize.cpp72 IDiagnostics* GetDiagnostics() override { in GetDiagnostics() function in aapt::OptimizeContext
127 context_->GetDiagnostics()->Note(DiagMessage() << "Optimizing APK..."); in Run()
132 context_->GetDiagnostics()->Error(DiagMessage() << "failed filtering resources"); in Run()
144 context_->GetDiagnostics()->Error(DiagMessage() << "failed deduping resources"); in Run()
151 context_->GetDiagnostics()->Error(DiagMessage() << "failed shortening resource paths"); in Run()
157 context_->GetDiagnostics()->Error(DiagMessage() in Run()
180 context_->GetDiagnostics()->Note( in Run()
189 CreateZipFileArchiveWriter(context_->GetDiagnostics(), *path_iter); in Run()
214 CreateZipFileArchiveWriter(context_->GetDiagnostics(), options_.output_path.value()); in Run()
252 context_->GetDiagnostics()->Warn(DiagMessage(file_ref->GetSource()) in WriteSplitApk()
[all …]
DDump.h42 IDiagnostics* GetDiagnostics() { in GetDiagnostics() function
49 GetDiagnostics()->Error(DiagMessage() << "No AndroidManifest."); in GetPackageName()
55 GetDiagnostics()->Error(DiagMessage() << "No package name."); in GetPackageName()
132 return DumpManifest(apk, options_, GetPrinter(), GetDiagnostics()); in Dump()
169 return DumpManifest(apk, options, GetPrinter(), GetDiagnostics()); in Dump()
/frameworks/base/tools/aapt2/link/
DProductFilter_test.cpp35 context->GetDiagnostics())); in TEST()
39 context->GetDiagnostics())); in TEST()
44 context->GetDiagnostics())); in TEST()
48 context->GetDiagnostics())); in TEST()
71 context->GetDiagnostics())); in TEST()
76 context->GetDiagnostics())); in TEST()
97 context->GetDiagnostics())); in TEST()
102 context->GetDiagnostics())); in TEST()
107 context->GetDiagnostics())); in TEST()
121 context->GetDiagnostics())); in TEST()
[all …]
DReferenceLinker.cpp106 context_->GetDiagnostics()->Error(msg); in Visit()
115 context_->GetDiagnostics()->Error(msg); in Visit()
352 context->GetDiagnostics()->Error(error_msg); in LinkReference()
372 context->GetDiagnostics()->Error(DiagMessage(entry->visibility.source) in Consume()
380 context->GetDiagnostics()->Error(DiagMessage(entry->overlayable_item.value().source) in Consume()
DXmlReferenceLinker.cpp109 context_->GetDiagnostics()->Error(error_msg); in Visit()
127 context_->GetDiagnostics()->Error(msg); in Visit()
DResourceExcluder.cpp53 context->GetDiagnostics()->Note( in RemoveIfExcluded()
/frameworks/base/tools/aapt2/optimize/
DMultiApkGenerator.cpp68 IDiagnostics* GetDiagnostics() override { in GetDiagnostics() function in aapt::ContextWrapper
72 return context_->GetDiagnostics(); in GetDiagnostics()
101 util::make_unique<SourcePathDiagnostics>(Source{source}, context_->GetDiagnostics()); in SetSource()
142 context_->GetDiagnostics()->Note(DiagMessage(artifact.name) << "skipping artifact"); in FromBaseApk()
157 IDiagnostics* diag = wrapped_context.GetDiagnostics(); in FromBaseApk()
191 context_->GetDiagnostics()->Error( in FromBaseApk()
194 context_->GetDiagnostics()->Error(DiagMessage() << kept_artifacts.size() << " kept:"); in FromBaseApk()
196 context_->GetDiagnostics()->Error(DiagMessage() << " " << artifact); in FromBaseApk()
199 context_->GetDiagnostics()->Error(DiagMessage() << filtered_artifacts.size() << " filtered:"); in FromBaseApk()
201 context_->GetDiagnostics()->Error(DiagMessage() << " " << artifact); in FromBaseApk()
[all …]
DMultiApkGenerator.h61 IDiagnostics* GetDiagnostics() { in GetDiagnostics() function
62 return context_->GetDiagnostics(); in GetDiagnostics()
DResourceDeduper.cpp79 context_->GetDiagnostics()->Note( in VisitConfig()
83 context_->GetDiagnostics()->Note( in VisitConfig()
/frameworks/base/tools/aapt2/io/
DUtil.cpp33 context->GetDiagnostics()->Note(DiagMessage() << "writing " << out_path << " to archive"); in CopyInputStreamToArchive()
37 context->GetDiagnostics()->Error(DiagMessage() << "failed to write " << out_path in CopyInputStreamToArchive()
49 context->GetDiagnostics()->Error(DiagMessage(file->GetSource()) << "failed to open file"); in CopyFileToArchive()
66 context->GetDiagnostics()->Note(DiagMessage() << "writing " << out_path << " to archive"); in CopyProtoToArchive()
75 context->GetDiagnostics()->Error(DiagMessage() << "failed to write " << out_path in CopyProtoToArchive()
85 context->GetDiagnostics()->Error(DiagMessage() << "failed to write " << out_path in CopyProtoToArchive()
/frameworks/base/tools/aapt2/compile/
DInlineXmlFormatParser.cpp54 context_->GetDiagnostics()->Error(DiagMessage(src) << "missing 'name' attribute"); in Visit()
61 context_->GetDiagnostics()->Error(DiagMessage(src) << "invalid XML attribute '" << attr->value in Visit()
70 context_->GetDiagnostics()->Error(DiagMessage(src) in Visit()
142 context->GetDiagnostics()->Error(DiagMessage(child_source) in Consume()
147 context->GetDiagnostics()->Error(DiagMessage(child_source) in Consume()
163 context->GetDiagnostics()->Error(DiagMessage(new_doc->file.source) in Consume()
DIdAssigner.cpp71 AssignId(context->GetDiagnostics(), assigned_id, name, in Consume()
86 context->GetDiagnostics()->Error( in Consume()
106 context->GetDiagnostics()->Error( in Consume()
DPngCrunch.cpp149 SourcePathDiagnostics source_diag(source, context->GetDiagnostics()); in ReadPng()
493 context->GetDiagnostics()->Error(DiagMessage() << "failed to create libpng write png_struct"); in WritePng()
500 context->GetDiagnostics()->Error(DiagMessage() << "failed to create libpng write png_info"); in WritePng()
515 png_set_error_fn(write_ptr, (png_voidp)context->GetDiagnostics(), LogError, LogWarning); in WritePng()
583 context->GetDiagnostics()->Note(msg); in WritePng()
618 context->GetDiagnostics()->Note(msg); in WritePng()
DXmlIdCollector.cpp78 SourcePathDiagnostics source_diag(xmlRes->file.source, context->GetDiagnostics()); in Consume()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp57 context->GetDiagnostics())); in TEST()
66 {}, std::move(plural), context->GetDiagnostics())); in TEST()
75 context->GetDiagnostics())); in TEST()
80 test::BuildPrimitive(android::Res_value::TYPE_INT_DEC, 123u), context->GetDiagnostics())); in TEST()
83 test::BuildPrimitive(android::Res_value::TYPE_INT_DEC, 321u), context->GetDiagnostics())); in TEST()
93 util::make_unique<Reference>(expected_ref), context->GetDiagnostics())); in TEST()
100 overlayable_item, test::GetDiagnostics())); in TEST()
103 SerializeTableToPb(*table, &pb_table, context->GetDiagnostics()); in TEST()
328 SerializeTableToPb(*table, &pb_table, context->GetDiagnostics()); in TEST()
551 SerializeTableToPb(*table, &pb_table, context->GetDiagnostics()); in TEST()
/frameworks/base/tools/aapt2/process/
DIResourceTableConsumer.h47 virtual IDiagnostics* GetDiagnostics() = 0;
/frameworks/base/tools/aapt2/split/
DTableSplitter_test.cpp198 test::GetDiagnostics())); in TEST()
201 test::GetDiagnostics())); in TEST()
204 test::GetDiagnostics())); in TEST()
/frameworks/base/tools/aapt2/test/
DBuilders.cpp122 GetDiagnostics())); in AddValue()
133 CHECK(table_->SetVisibilityWithIdMangled(res_name, visibility, id, GetDiagnostics())); in SetSymbolState()
134 CHECK(table_->SetAllowNewMangled(res_name, AllowNew{}, GetDiagnostics())); in SetSymbolState()
142 CHECK(table_->SetOverlayable(res_name, overlayable, GetDiagnostics())); in SetOverlayable()
DCommon.cpp41 IDiagnostics* GetDiagnostics() { in GetDiagnostics() function

12