Home
last modified time | relevance | path

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

12

/frameworks/base/tools/aapt2/
DResourceTable_test.cpp42 test::GetDiagnostics())); in TEST()
46 test::GetDiagnostics())); in TEST()
56 test::GetDiagnostics())); in TEST()
66 test::GetDiagnostics())); in TEST()
81 test::GetDiagnostics())); in TEST()
87 test::GetDiagnostics())); in TEST()
93 test::GetDiagnostics())); in TEST()
102 test::GetDiagnostics())); in TEST()
115 test::GetDiagnostics())); in TEST()
124 test::GetDiagnostics())); in TEST()
[all …]
DLoadedApk.cpp238 context->GetDiagnostics()->Note(DiagMessage() in WriteToArchive()
246 context->GetDiagnostics()->Note(DiagMessage() << "Filtered '" << path << "' from APK."); in WriteToArchive()
276 SerializeTableToPb(*split_table, &pb_table, context->GetDiagnostics(), in WriteToArchive()
290 context->GetDiagnostics()->Error(DiagMessage(path) << "flattening failed"); in WriteToArchive()
/frameworks/base/tools/aapt2/cmd/
DDump.cpp86 IDiagnostics* GetDiagnostics() override { in GetDiagnostics() function in aapt::__anon06c516f60111::DumpContext
149 context.GetDiagnostics()->Error(DiagMessage(container) in Action()
158 context.GetDiagnostics()->Error(DiagMessage(container) in Action()
173 context.GetDiagnostics()->Error(DiagMessage(container) in Action()
182 context.GetDiagnostics()->Error(DiagMessage(container) in Action()
197 context.GetDiagnostics()->Error(DiagMessage(container) in Action()
206 context.GetDiagnostics()->Warn(DiagMessage(container) in Action()
231 GetDiagnostics()->Error(DiagMessage() << "Failed to retrieve resource table"); in Dump()
271 GetDiagnostics()->Error(DiagMessage() << "Failed to retrieve resource table"); in Dump()
277 StringPool::FlattenUtf8(&buffer, table->string_pool, GetDiagnostics()); in Dump()
[all …]
DCompile.cpp157 context->GetDiagnostics()->Error(DiagMessage(path_data.source) in CompileTable()
174 ResourceParser res_parser(context->GetDiagnostics(), &table, path_data.source, path_data.config, in CompileTable()
194 context->GetDiagnostics()->Error(DiagMessage(output_path) << "failed to open"); in CompileTable()
205 SerializeTableToPb(table, &pb_table, context->GetDiagnostics()); in CompileTable()
207 context->GetDiagnostics()->Error(DiagMessage(output_path) << "failed to write"); in CompileTable()
213 context->GetDiagnostics()->Error(DiagMessage(output_path) << "failed to finish entry"); in CompileTable()
221 context->GetDiagnostics()->Error(DiagMessage() in CompileTable()
337 context->GetDiagnostics()->Error(DiagMessage(input_path) in IsValidFile()
340 context->GetDiagnostics()->Error(DiagMessage(input_path) << "file not found"); in IsValidFile()
342 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 …]
DLink.cpp113 IDiagnostics* GetDiagnostics() override { in GetDiagnostics() function in aapt::LinkContext
219 context_->GetDiagnostics()->Error(DiagMessage() << "Failed to rewrite " << name in FindByName()
225 context_->GetDiagnostics()->Note(DiagMessage() << "rewriting " << name << " (" << *id in FindByName()
246 context->GetDiagnostics()->Note(DiagMessage(path) << "writing to archive (keep_raw_values=" in FlattenXml()
457 context_->GetDiagnostics()->Note(DiagMessage() in LinkAndVersionXmlFile()
548 context_->GetDiagnostics()->Error(DiagMessage(file_ref->GetSource()) in Flatten()
564 context_->GetDiagnostics()->Error(DiagMessage(file->GetSource()) in Flatten()
572 context_->GetDiagnostics()->Error(DiagMessage(file->GetSource()) in Flatten()
580 context_->GetDiagnostics()->Error(DiagMessage(file->GetSource()) in Flatten()
588 context_->GetDiagnostics()->Error(DiagMessage(file->GetSource()) in Flatten()
[all …]
DOptimize.cpp72 IDiagnostics* GetDiagnostics() override { in GetDiagnostics() function in aapt::OptimizeContext
133 context_->GetDiagnostics()->Note(DiagMessage() << "Optimizing APK..."); in Run()
138 context_->GetDiagnostics()->Error(DiagMessage() << "failed filtering resources"); in Run()
150 context_->GetDiagnostics()->Error(DiagMessage() << "failed deduping resources"); in Run()
157 context_->GetDiagnostics()->Error(DiagMessage() << "failed shortening resource paths"); in Run()
163 context_->GetDiagnostics()->Error(DiagMessage() in Run()
186 context_->GetDiagnostics()->Note( in Run()
195 CreateZipFileArchiveWriter(context_->GetDiagnostics(), *path_iter); in Run()
220 CreateZipFileArchiveWriter(context_->GetDiagnostics(), options_.output_path.value()); in Run()
258 context_->GetDiagnostics()->Warn(DiagMessage(file_ref->GetSource()) in WriteSplitApk()
[all …]
DDump.h45 IDiagnostics* GetDiagnostics() { in GetDiagnostics() function
52 GetDiagnostics()->Error(DiagMessage() << "No AndroidManifest."); in GetPackageName()
58 GetDiagnostics()->Error(DiagMessage() << "No package name."); in GetPackageName()
135 return DumpManifest(apk, options_, GetPrinter(), GetDiagnostics()); in Dump()
172 return DumpManifest(apk, options, GetPrinter(), GetDiagnostics()); in Dump()
/frameworks/base/tools/aapt2/link/
DProductFilter_test.cpp36 context->GetDiagnostics())); in TEST()
43 context->GetDiagnostics())); in TEST()
49 context->GetDiagnostics())); in TEST()
56 context->GetDiagnostics())); in TEST()
79 context->GetDiagnostics())); in TEST()
85 context->GetDiagnostics())); in TEST()
107 context->GetDiagnostics())); in TEST()
113 context->GetDiagnostics())); in TEST()
120 context->GetDiagnostics())); in TEST()
134 context->GetDiagnostics())); in TEST()
[all …]
DTableMerger.cpp74 context_->GetDiagnostics()->Warn(DiagMessage(src) << "ignoring package " << package->name); in MergeAndMangle()
100 context->GetDiagnostics()->Error( in MergeEntry()
117 context->GetDiagnostics()->Error(DiagMessage(src) << "cannot merge entry '" << src_entry->name in MergeEntry()
142 context->GetDiagnostics()->Error(DiagMessage(src_entry->overlayable_item.value().source) in MergeEntry()
145 context->GetDiagnostics()->Error(DiagMessage(dst_entry->overlayable_item.value().source) in MergeEntry()
157 context->GetDiagnostics()->Error(DiagMessage(src_entry->staged_id.value().source) in MergeEntry()
160 context->GetDiagnostics()->Error(DiagMessage(dst_entry->staged_id.value().source) in MergeEntry()
223 context->GetDiagnostics()->Error(DiagMessage(src_value->GetSource()) in MergeConfigValue()
226 context->GetDiagnostics()->Note(DiagMessage(dst_value->GetSource()) in MergeConfigValue()
260 context_->GetDiagnostics()->Error(DiagMessage(src) in DoMerge()
[all …]
DReferenceLinker.cpp85 context_->GetDiagnostics()->Error(DiagMessage(value->GetSource()) in TransformDerived()
138 context_->GetDiagnostics()->Error(msg); in TransformDerived()
142 context_->GetDiagnostics()->Error(DiagMessage(entry.key.GetSource()) in TransformDerived()
395 context->GetDiagnostics()->Error( in LinkReference()
424 macro_values[0]->config, *context->GetDiagnostics()); in LinkReference()
426 context->GetDiagnostics()->Error( in LinkReference()
453 context->GetDiagnostics()->Error(DiagMessage(reference.GetSource()) in LinkReference()
476 context->GetDiagnostics()->Error(DiagMessage(entry->visibility.source) in Consume()
484 context->GetDiagnostics()->Error(DiagMessage(entry->overlayable_item.value().source) in Consume()
DXmlReferenceLinker.cpp87 context_->GetDiagnostics()->Error(error_msg); in Visit()
105 context_->GetDiagnostics()->Error(msg); in Visit()
/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()
146 context_->GetDiagnostics()->Note(DiagMessage(artifact.name) << "skipping artifact"); in FromBaseApk()
161 IDiagnostics* diag = wrapped_context.GetDiagnostics(); in FromBaseApk()
195 context_->GetDiagnostics()->Error( in FromBaseApk()
198 context_->GetDiagnostics()->Error(DiagMessage() << kept_artifacts.size() << " kept:"); in FromBaseApk()
200 context_->GetDiagnostics()->Error(DiagMessage() << " " << artifact); in FromBaseApk()
203 context_->GetDiagnostics()->Error(DiagMessage() << filtered_artifacts.size() << " filtered:"); in FromBaseApk()
205 context_->GetDiagnostics()->Error(DiagMessage() << " " << artifact); in FromBaseApk()
[all …]
DMultiApkGenerator.h61 IDiagnostics* GetDiagnostics() { in GetDiagnostics() function
62 return context_->GetDiagnostics(); in GetDiagnostics()
DResourceDeduper.cpp80 context_->GetDiagnostics()->Note( in VisitConfig()
84 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_test.cpp155 context->GetDiagnostics())); in TEST_F()
167 context->GetDiagnostics())); in TEST_F()
176 context->GetDiagnostics())); in TEST_F()
181 context->GetDiagnostics())); in TEST_F()
DIdAssigner.cpp133 context->GetDiagnostics())) { in Consume()
140 context->GetDiagnostics())) { in Consume()
150 context->GetDiagnostics())) { in Consume()
167 context->GetDiagnostics())) { in Consume()
182 auto id = assigned_ids.NextId(name, context->GetDiagnostics()); 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()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp75 SerializeTableToPb(*table, &pb_table, context->GetDiagnostics()); in TEST()
116 context->GetDiagnostics())); in TEST()
127 context->GetDiagnostics())); in TEST()
137 context->GetDiagnostics())); in TEST()
145 context->GetDiagnostics())); in TEST()
152 context->GetDiagnostics())); in TEST()
163 context->GetDiagnostics())); in TEST()
173 context->GetDiagnostics())); in TEST()
176 SerializeTableToPb(*table, &pb_table, context->GetDiagnostics()); in TEST()
403 SerializeTableToPb(*table, &pb_table, context->GetDiagnostics()); in TEST()
[all …]
/frameworks/base/tools/aapt2/test/
DBuilders.cpp120 CHECK(table_->AddResource(builder.Build(), GetDiagnostics())); in AddValue()
135 CHECK(table_->AddResource(builder.Build(), GetDiagnostics())); in SetSymbolState()
145 GetDiagnostics())); in SetOverlayable()
150 CHECK(table_->AddResource(std::move(res), GetDiagnostics())); in Add()
DCommon.cpp41 IDiagnostics* GetDiagnostics() { in GetDiagnostics() function
/frameworks/base/tools/aapt2/split/
DTableSplitter_test.cpp200 test::GetDiagnostics())); in TEST()
206 test::GetDiagnostics())); in TEST()
212 test::GetDiagnostics())); in TEST()
/frameworks/base/tools/aapt2/process/
DIResourceTableConsumer.h48 virtual IDiagnostics* GetDiagnostics() = 0;

12