Home
last modified time | relevance | path

Searched refs:DiagMessage (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/base/libs/androidfw/include/androidfw/
DIDiagnostics.h39 struct DiagMessage { struct
41 DiagMessage() = default;
43 explicit DiagMessage(android::StringPiece src) : source_(src) { in DiagMessage() function
46 explicit DiagMessage(const Source& src) : source_(src) { in DiagMessage() function
49 explicit DiagMessage(size_t line) : source_(Source().WithLine(line)) { in DiagMessage() function
53 DiagMessage& operator<<(const T& value) {
68 inline DiagMessage& DiagMessage::operator<<(const ::std::u16string& value) { argument
80 virtual void Error(const DiagMessage& message) { in Error()
85 virtual void Warn(const DiagMessage& message) { in Warn()
90 virtual void Note(const DiagMessage& message) { in Note()
/frameworks/base/tools/aapt2/cmd/
DDump.cpp141 diag_->Error(android::DiagMessage() << "No dump container specified"); in Action()
149 context.GetDiagnostics()->Error(android::DiagMessage(container) in Action()
158 context.GetDiagnostics()->Error(android::DiagMessage(container) in Action()
173 context.GetDiagnostics()->Error(android::DiagMessage(container) in Action()
182 context.GetDiagnostics()->Error(android::DiagMessage(container) in Action()
197 context.GetDiagnostics()->Error(android::DiagMessage(container) in Action()
206 context.GetDiagnostics()->Warn(android::DiagMessage(container) in Action()
231 GetDiagnostics()->Error(android::DiagMessage() << "Failed to retrieve resource table"); in Dump()
271 GetDiagnostics()->Error(android::DiagMessage() << "Failed to retrieve resource table"); in Dump()
294 GetDiagnostics()->Error(android::DiagMessage() << "Failed to retrieve resource table"); in Dump()
[all …]
DCompile.cpp162 context->GetDiagnostics()->Error(android::DiagMessage(path_data.source) in CompileTable()
188 context->GetDiagnostics()->Error(android::DiagMessage(path_data.source) in CompileTable()
221 context->GetDiagnostics()->Error(android::DiagMessage(output_path) << "failed to open"); in CompileTable()
234 context->GetDiagnostics()->Error(android::DiagMessage(output_path) << "failed to write"); in CompileTable()
240 context->GetDiagnostics()->Error(android::DiagMessage(output_path) << "failed to finish entry"); in CompileTable()
248 context->GetDiagnostics()->Error(android::DiagMessage() in CompileTable()
316 diag->Error(android::DiagMessage(output_path) << "failed to open file"); in WriteHeaderAndDataToWriter()
330 diag->Error(android::DiagMessage(output_path) << "failed to write entry data"); in WriteHeaderAndDataToWriter()
336 diag->Error(android::DiagMessage(output_path) << "failed to finish writing data"); in WriteHeaderAndDataToWriter()
354 diag->Error(android::DiagMessage(output_path) << "failed to write entry data"); in FlattenXmlToOutStream()
[all …]
DLink.cpp222 context_->GetDiagnostics()->Error(android::DiagMessage() in FindByName()
229 context_->GetDiagnostics()->Note(android::DiagMessage() in FindByName()
251 context->GetDiagnostics()->Note(android::DiagMessage(path) in FlattenXml()
290 diag->Error(android::DiagMessage(path) << "failed to load XML file: " << fin.GetError()); in LoadXml()
462 context_->GetDiagnostics()->Note(android::DiagMessage() in LinkAndVersionXmlFile()
553 context_->GetDiagnostics()->Error(android::DiagMessage(file_ref->GetSource()) in Flatten()
569 context_->GetDiagnostics()->Error(android::DiagMessage(file->GetSource()) in Flatten()
577 context_->GetDiagnostics()->Error(android::DiagMessage(file->GetSource()) in Flatten()
585 context_->GetDiagnostics()->Error(android::DiagMessage(file->GetSource()) in Flatten()
593 context_->GetDiagnostics()->Error(android::DiagMessage(file->GetSource()) in Flatten()
[all …]
DConvert.cpp103 context_->GetDiagnostics()->Error(android::DiagMessage(source_) in SerializeFile()
111 context_->GetDiagnostics()->Error(android::DiagMessage(source_) in SerializeFile()
119 context_->GetDiagnostics()->Error(android::DiagMessage(source_) in SerializeFile()
127 context_->GetDiagnostics()->Error(android::DiagMessage(source_) in SerializeFile()
135 context_->GetDiagnostics()->Error(android::DiagMessage(source_) in SerializeFile()
175 context_->GetDiagnostics()->Error(android::DiagMessage(source_) in SerializeFile()
183 context_->GetDiagnostics()->Error(android::DiagMessage(source_) in SerializeFile()
190 context_->GetDiagnostics()->Error(android::DiagMessage(source_) in SerializeFile()
198 context_->GetDiagnostics()->Error(android::DiagMessage(source_) in SerializeFile()
279 context->GetDiagnostics()->Error(android::DiagMessage(apk->GetSource()) in Convert()
[all …]
DUtil.cpp40 diag->Error(android::DiagMessage() in ParseTargetDensityParameter()
50 diag->Error(android::DiagMessage() << "invalid preferred density '" << arg << "'. " in ParseTargetDensityParameter()
71 diag->Error(android::DiagMessage() << "invalid split parameter '" << arg << "'"); in ParseSplitParameter()
72 diag->Note(android::DiagMessage() << "should be --split path/to/output.apk" << sSeparator in ParseSplitParameter()
82 diag->Error(android::DiagMessage() in ParseSplitParameter()
101 diag->Error(android::DiagMessage() in ParseConfigFilterParameters()
107 diag->Warn(android::DiagMessage() << "ignoring density '" << config << "' for -c option"); in ParseConfigFilterParameters()
129 diag->Error(android::DiagMessage() in ParseFeatureFlagsParameter()
137 diag->Error(android::DiagMessage() << "No name given for one or more flags in: " << arg); in ParseFeatureFlagsParameter()
147 diag->Error(android::DiagMessage() << "Invalid value for feature flag '" << flag_and_value in ParseFeatureFlagsParameter()
[all …]
DOptimize.cpp137 context_->GetDiagnostics()->Note(android::DiagMessage() << "Optimizing APK..."); in Run()
142 context_->GetDiagnostics()->Error(android::DiagMessage() << "failed filtering resources"); in Run()
154 context_->GetDiagnostics()->Error(android::DiagMessage() << "failed deduping resources"); in Run()
161 context_->GetDiagnostics()->Error(android::DiagMessage() in Run()
168 context_->GetDiagnostics()->Error(android::DiagMessage() in Run()
177 context_->GetDiagnostics()->Error(android::DiagMessage() in Run()
200 context_->GetDiagnostics()->Note(android::DiagMessage(*path_iter) in Run()
273 context_->GetDiagnostics()->Warn(android::DiagMessage(file_ref->GetSource()) in WriteSplitApk()
322 context->GetDiagnostics()->Error(android::DiagMessage(path) << "failed reading config file"); in ExtractConfig()
339 context->GetDiagnostics()->Error(android::DiagMessage() in ExtractAppDataFromManifest()
[all …]
/frameworks/base/tools/aapt2/
DLoadedApk.cpp81 diag->Error(android::DiagMessage(path) << "failed opening zip: " << error); in LoadApkFromPath()
92 diag->Error(android::DiagMessage(path) << "could not identify format of APK"); in LoadApkFromPath()
107 diag->Error(android::DiagMessage(source) << "failed to open " << kProtoResourceTablePath); in LoadProtoApkFromFileCollection()
113 diag->Error(android::DiagMessage(source) << "failed to read " << kProtoResourceTablePath); in LoadProtoApkFromFileCollection()
120 diag->Error(android::DiagMessage(source) in LoadProtoApkFromFileCollection()
128 diag->Error(android::DiagMessage(source) << "failed to find " << kAndroidManifestPath); in LoadProtoApkFromFileCollection()
134 diag->Error(android::DiagMessage(source) << "failed to open " << kAndroidManifestPath); in LoadProtoApkFromFileCollection()
141 diag->Error(android::DiagMessage(source) << "failed to read proto " << kAndroidManifestPath); in LoadProtoApkFromFileCollection()
148 diag->Error(android::DiagMessage(source) in LoadProtoApkFromFileCollection()
166 diag->Error(android::DiagMessage(source) << "failed to open " << kApkResourceTablePath); in LoadBinaryApkFromFileCollection()
[all …]
DResourceParser.cpp308 diag_->Error(android::DiagMessage(source_.WithLine(parser->line_number())) in FlattenXmlSubtree()
323 diag_->Warn(android::DiagMessage(source_.WithLine(parser->line_number())) in FlattenXmlSubtree()
383 diag_->Error(android::DiagMessage(source_.WithLine(parser->line_number())) in FlattenXmlSubtree()
406 diag_->Error(android::DiagMessage(source_.WithLine(parser->line_number())) in Parse()
416 diag_->Error(android::DiagMessage(source_.WithLine(parser->line_number())) in Parse()
438 diag_->Error(android::DiagMessage(source_.WithLine(parser->line_number())) in ParseResources()
487 diag_->Error(android::DiagMessage(source_) in ParseResources()
564 diag_->Error(android::DiagMessage(source_.WithLine(parser->line_number())) in ParseResource()
575 diag_->Error(android::DiagMessage(out_resource->source) in ParseResource()
587 diag_->Error(android::DiagMessage(source_.WithLine(parser->line_number())) in ParseResource()
[all …]
/frameworks/base/tools/aapt2/optimize/
DMultiApkGenerator.cpp146 context_->GetDiagnostics()->Note(android::DiagMessage(artifact.name) in FromBaseApk()
166 diag->Error(android::DiagMessage() in FromBaseApk()
173 diag->Warn(android::DiagMessage() << "could not create out dir: " << out); in FromBaseApk()
178 diag->Note(android::DiagMessage() << "Generating split: " << out); in FromBaseApk()
184 diag->Note(android::DiagMessage() << "Writing output: " << out); in FromBaseApk()
198 ->Error(android::DiagMessage() in FromBaseApk()
201 context_->GetDiagnostics()->Error(android::DiagMessage() << kept_artifacts.size() << " kept:"); in FromBaseApk()
203 context_->GetDiagnostics()->Error(android::DiagMessage() << " " << artifact); in FromBaseApk()
206 context_->GetDiagnostics()->Error(android::DiagMessage() in FromBaseApk()
209 context_->GetDiagnostics()->Error(android::DiagMessage() << " " << artifact); in FromBaseApk()
[all …]
DVersionCollapser.cpp107 context->GetDiagnostics()->Note(android::DiagMessage() in CollapseVersions()
137 context->GetDiagnostics()->Note(android::DiagMessage() in CollapseVersions()
164 context->GetDiagnostics()->Note(android::DiagMessage() in Consume()
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.cpp99 diag_->Error(android::DiagMessage(source_) << "corrupt resources.arsc: " << parser.error()); in Parse()
104 diag_->Error(android::DiagMessage(source_) << StringPrintf( in Parse()
115 diag_->Warn(android::DiagMessage(source_) in Parse()
118 diag_->Warn(android::DiagMessage(source_) in Parse()
125 diag_->Error(android::DiagMessage(source_) << "didn't find " << staged_entries_to_remove_.size() in Parse()
137 diag_->Error(android::DiagMessage(source_) << "corrupt ResTable_header chunk"); in ParseTable()
150 diag_->Error(android::DiagMessage(source_) in ParseTable()
158 diag_->Warn(android::DiagMessage(source_) << "unexpected string pool in ResTable"); in ParseTable()
169 diag_->Warn(android::DiagMessage(source_) in ParseTable()
177 diag_->Error(android::DiagMessage(source_) << "corrupt resource table: " << parser.error()); in ParseTable()
[all …]
/frameworks/base/tools/aapt2/configuration/
DConfigurationParser.cpp103 diag->Error(android::DiagMessage() << "No label found for element " << element->name); in GetLabel()
113 diag->Error(android::DiagMessage() << "No version-code-order found for element '" in GetVersionCodeOrder()
163 diag->Error(android::DiagMessage() << "Missing placeholder for artifact: " << placeholder); in ReplacePlaceholder()
173 diag->Error(android::DiagMessage() in ReplacePlaceholder()
182 diag->Error(android::DiagMessage() << "Placeholder present multiple times: " << placeholder); in ReplacePlaceholder()
209 diag->Error(android::DiagMessage() in ToOutputArtifact()
219 diag->Error(android::DiagMessage() << "Could not determine split APK artifact name"); in ToOutputArtifact()
230 src_diag.Error(android::DiagMessage() in ToOutputArtifact()
236 src_diag.Error(android::DiagMessage() in ToOutputArtifact()
243 src_diag.Error(android::DiagMessage() << "Could not lookup required screen densities: " in ToOutputArtifact()
[all …]
/frameworks/base/tools/aapt2/link/
DManifestFixer.cpp77 diag->Error(android::DiagMessage(data_el->line_number) in VerifyDeeplinkPathAttribute()
89 diag->Error(android::DiagMessage(data_el->line_number) in VerifyDeeplinkPathAttribute()
124 diag->Error(android::DiagMessage(el->line_number) in RequiredNameIsNotEmpty()
130 diag->Error(android::DiagMessage(el->line_number) in RequiredNameIsNotEmpty()
151 diag->Error(android::DiagMessage(el->line_number) << "attribute 'android:name' in <" << el->name in NameIsJavaClassName()
168 diag->Error(android::DiagMessage(el->line_number) in RequiredNameIsJavaClassName()
178 diag->Error(android::DiagMessage(el->line_number) in RequiredNameIsJavaPackage()
184 diag->Error(android::DiagMessage(el->line_number) << "attribute 'android:name' in <" << el->name in RequiredNameIsJavaPackage()
194 diag->Error(android::DiagMessage(el->line_number) in RequiredAndroidAttribute()
208 diag->Error(android::DiagMessage(el->line_number) in RequiredOneAndroidAttribute()
[all …]
DTableMerger.cpp75 context_->GetDiagnostics()->Warn(android::DiagMessage(src) in MergeAndMangle()
101 context->GetDiagnostics()->Error(android::DiagMessage(src) in MergeEntry()
119 context->GetDiagnostics()->Error(android::DiagMessage(src) in MergeEntry()
146 android::DiagMessage(src_entry->overlayable_item.value().source) in MergeEntry()
149 android::DiagMessage(dst_entry->overlayable_item.value().source) in MergeEntry()
161 context->GetDiagnostics()->Error(android::DiagMessage(src_entry->staged_id.value().source) in MergeEntry()
164 context->GetDiagnostics()->Error(android::DiagMessage(dst_entry->staged_id.value().source) in MergeEntry()
224 context->GetDiagnostics()->Error(android::DiagMessage(src_value->GetSource()) in MergeConfigValue()
227 context->GetDiagnostics()->Note(android::DiagMessage(dst_value->GetSource()) in MergeConfigValue()
261 context_->GetDiagnostics()->Error(android::DiagMessage(src) in DoMerge()
[all …]
DNoDefaultResourceRemover.cpp81 diag->Warn(android::DiagMessage() in Consume()
84 diag->Note(android::DiagMessage() << " did you forget to remove all definitions?"); in Consume()
87 diag->Note(android::DiagMessage(config_value->value->GetSource()) << "defined here"); in Consume()
DReferenceLinker.cpp84 context_->GetDiagnostics()->Error(android::DiagMessage(value->GetSource()) in TransformDerived()
132 android::DiagMessage msg(entry.key.GetSource()); in TransformDerived()
141 context_->GetDiagnostics()->Error(android::DiagMessage(entry.key.GetSource()) in TransformDerived()
344 android::DiagMessage* out_msg) { in WriteAttributeName()
393 android::DiagMessage(reference.GetSource()) in LinkReference()
424 android::DiagMessage(reference.GetSource()) in LinkReference()
450 context->GetDiagnostics()->Error(android::DiagMessage(reference.GetSource()) in LinkReference()
473 context->GetDiagnostics()->Error(android::DiagMessage(entry->visibility.source) in Consume()
481 android::DiagMessage(entry->overlayable_item.value().source) in Consume()
/frameworks/base/tools/aapt2/io/
DUtil.cpp34 context->GetDiagnostics()->Note(android::DiagMessage() in CopyInputStreamToArchive()
39 context->GetDiagnostics()->Error(android::DiagMessage() in CopyInputStreamToArchive()
52 context->GetDiagnostics()->Error(android::DiagMessage(file->GetSource()) in CopyFileToArchive()
70 context->GetDiagnostics()->Note(android::DiagMessage() in CopyProtoToArchive()
80 context->GetDiagnostics()->Error(android::DiagMessage() in CopyProtoToArchive()
90 context->GetDiagnostics()->Error(android::DiagMessage() << "failed to write " << out_path in CopyProtoToArchive()
/frameworks/base/tools/aapt2/java/
DManifestClassGenerator.cpp46 diag->Error(android::DiagMessage(source) << "empty symbol"); in ExtractJavaIdentifier()
51 diag->Error(android::DiagMessage(source) << "invalid Java identifier '" << result << "'"); in ExtractJavaIdentifier()
61 diag->Error(android::DiagMessage(source) << "<" << el->name << "> must define 'android:name'"); in WriteSymbol()
76 diag->Warn(android::DiagMessage(source.WithLine(el->line_number)) in WriteSymbol()
86 diag->Error(android::DiagMessage(res->file.source) << "no root tag defined"); in GenerateManifestClass()
91 diag->Error(android::DiagMessage(res->file.source) << "no <manifest> root tag defined"); in GenerateManifestClass()
/frameworks/base/tools/aapt2/compile/
DInlineXmlFormatParser.cpp54 context_->GetDiagnostics()->Error(android::DiagMessage(src) << "missing 'name' attribute"); in Visit()
61 context_->GetDiagnostics()->Error(android::DiagMessage(src) in Visit()
70 context_->GetDiagnostics()->Error(android::DiagMessage(src) in Visit()
142 context->GetDiagnostics()->Error(android::DiagMessage(child_source) in Consume()
147 context->GetDiagnostics()->Error(android::DiagMessage(child_source) in Consume()
163 context->GetDiagnostics()->Error(android::DiagMessage(new_doc->file.source) in Consume()
DIdAssigner.cpp277 diag->Error(android::DiagMessage() in ReserveId()
295 diag->Error(android::DiagMessage() in ReserveId()
302 diag->Error(android::DiagMessage() << staged_type_overlap_error); in ReserveId()
313 diag->Error(android::DiagMessage() in ReserveId()
324 android::DiagMessage() in ReserveId()
329 diag->Error(android::DiagMessage() << staged_type_overlap_error); in ReserveId()
336 diag->Error(android::DiagMessage() << "can't assign ID " << id << " to resource " << name in ReserveId()
366 diag->Error(android::DiagMessage() << "can't assign resource ID to resource " << name in NextId()
/frameworks/base/tools/aapt2/process/
DProductFilter.cpp37 diag->Error(android::DiagMessage(config_value->value->GetSource()) in SelectProductToKeep()
42 diag->Note(android::DiagMessage(previously_selected_config_value->value->GetSource()) in SelectProductToKeep()
55 diag->Error(android::DiagMessage(config_value->value->GetSource()) in SelectProductToKeep()
59 diag->Note(android::DiagMessage(previously_default_config_value->value->GetSource()) in SelectProductToKeep()
77 diag->Error(android::DiagMessage() << "no default product defined for resource " << name); in SelectProductToKeep()
/frameworks/base/libs/androidfw/
DPngCrunch.cpp70 diag->Warn(android::DiagMessage() << warning_msg); in LogWarning()
76 diag->Error(android::DiagMessage() << error_msg); in LogError()
152 diag->Error(android::DiagMessage() << "failed to read PNG signature: " << in->GetError()); in ReadPng()
154 diag->Error(android::DiagMessage() << "not enough data for PNG signature"); in ReadPng()
160 diag->Error(android::DiagMessage() << "file signature does not match PNG signature"); in ReadPng()
172 diag->Error(android::DiagMessage() << "failed to create libpng read png_struct"); in ReadPng()
179 diag->Error(android::DiagMessage() << "failed to create libpng read png_info"); in ReadPng()
251 diag->Error(android::DiagMessage() in ReadPng()
482 diag->Error(android::DiagMessage() << "failed to create libpng write png_struct"); in WritePng()
489 diag->Error(android::DiagMessage() << "failed to create libpng write png_info"); in WritePng()
[all …]
DPng.cpp98 diag->Warn(DiagMessage() << warningMessage); in logWarning()
103 diag->Error(DiagMessage() << "failed reading png"); in readPng()
372 diag->Note(DiagMessage() << "forcing image to gray (max deviation = " << maxGrayDeviation in analyze_image()
422 diag->Error(DiagMessage() << "failed to write png"); in writePng()
450 diag->Note(DiagMessage() << "writing image: w = " << info->width << ", h = " << info->height); in writePng()
471 diag->Note(DiagMessage() << "has " << paletteEntries << " colors" in writePng()
476 diag->Note(DiagMessage() << "is opaque gray, using PNG_COLOR_TYPE_GRAY"); in writePng()
479 diag->Note(DiagMessage() << "is gray + alpha, using PNG_COLOR_TYPE_GRAY_ALPHA"); in writePng()
482 diag->Note(DiagMessage() << "is opaque RGB, using PNG_COLOR_TYPE_RGB"); in writePng()
485 diag->Note(DiagMessage() << "is RGB + alpha, using PNG_COLOR_TYPE_RGB_ALPHA"); in writePng()
[all …]
/frameworks/base/tools/aapt2/xml/
DXmlActionExecutor.cpp56 static void PrintElementToDiagMessage(const Element* el, android::DiagMessage* msg) { in PrintElementToDiagMessage()
83 android::DiagMessage error_msg(child_el->line_number); in Execute()
111 source_diag.Error(android::DiagMessage() << "no root XML tag found"); in Execute()
126 android::DiagMessage error_msg(el->line_number); in Execute()

12