/frameworks/base/tools/aapt2/configuration/ |
D | ConfigurationParser.cpp | 82 std::string GetLabel(const Element* element, IDiagnostics* diag) { in GetLabel() argument 92 diag->Error(DiagMessage() << "No label found for element " << element->name); in GetLabel() 120 std::string* name, IDiagnostics* diag) { in ReplacePlaceholder() argument 124 diag->Error(DiagMessage() << "Missing placeholder for artifact: " << placeholder); in ReplacePlaceholder() 134 diag->Error(DiagMessage() << "Placeholder present but no value for artifact: " << placeholder); in ReplacePlaceholder() 139 Maybe<std::string> Artifact::ToArtifactName(const std::string& format, IDiagnostics* diag) const { in ToArtifactName() 142 if (!ReplacePlaceholder("{abi}", abi_group, &result, diag)) { in ToArtifactName() 146 if (!ReplacePlaceholder("{density}", screen_density_group, &result, diag)) { in ToArtifactName() 150 if (!ReplacePlaceholder("{locale}", locale_group, &result, diag)) { in ToArtifactName() 154 if (!ReplacePlaceholder("{sdk}", android_sdk_group, &result, diag)) { in ToArtifactName() [all …]
|
/frameworks/base/tools/aapt2/link/ |
D | ManifestFixer.cpp | 34 SourcePathDiagnostics* diag) { in NameIsJavaClassName() argument 46 diag->Error(DiagMessage(el->line_number) in NameIsJavaClassName() 54 static bool OptionalNameIsJavaClassName(xml::Element* el, SourcePathDiagnostics* diag) { in OptionalNameIsJavaClassName() argument 56 return NameIsJavaClassName(el, attr, diag); in OptionalNameIsJavaClassName() 61 static bool RequiredNameIsJavaClassName(xml::Element* el, SourcePathDiagnostics* diag) { in RequiredNameIsJavaClassName() argument 63 return NameIsJavaClassName(el, attr, diag); in RequiredNameIsJavaClassName() 65 diag->Error(DiagMessage(el->line_number) in RequiredNameIsJavaClassName() 70 static bool RequiredNameIsJavaPackage(xml::Element* el, SourcePathDiagnostics* diag) { in RequiredNameIsJavaPackage() argument 74 diag->Error(DiagMessage(el->line_number) in RequiredNameIsJavaPackage() 80 return [=](xml::Element* el, SourcePathDiagnostics* diag) -> bool { in RequiredAndroidAttribute() argument [all …]
|
D | ProductFilter.cpp | 25 const ResourceConfigValueIter end, IDiagnostics* diag) { in SelectProductToKeep() argument 34 diag->Error(DiagMessage(config_value->value->GetSource()) in SelectProductToKeep() 40 diag->Note( in SelectProductToKeep() 54 diag->Error(DiagMessage(config_value->value->GetSource()) in SelectProductToKeep() 60 diag->Note( in SelectProductToKeep() 72 diag->Error(DiagMessage() << "no default product defined for resource " in SelectProductToKeep()
|
/frameworks/base/tools/aapt2/java/ |
D | ManifestClassGenerator.cpp | 31 static Maybe<StringPiece> ExtractJavaIdentifier(IDiagnostics* diag, in ExtractJavaIdentifier() argument 45 diag->Error(DiagMessage(source) << "empty symbol"); in ExtractJavaIdentifier() 51 diag->Error(DiagMessage(source) << "invalid character '" in ExtractJavaIdentifier() 58 diag->Error(DiagMessage(source) << "symbol can not start with a digit"); in ExtractJavaIdentifier() 65 static bool WriteSymbol(const Source& source, IDiagnostics* diag, in WriteSymbol() argument 69 diag->Error(DiagMessage(source) << "<" << el->name in WriteSymbol() 75 diag, source.WithLine(el->line_number), attr->value); in WriteSymbol() 85 diag->Warn(DiagMessage(source.WithLine(el->line_number)) in WriteSymbol() 91 std::unique_ptr<ClassDefinition> GenerateManifestClass(IDiagnostics* diag, in GenerateManifestClass() argument 95 diag->Error(DiagMessage(res->file.source) << "no root tag defined"); in GenerateManifestClass() [all …]
|
/frameworks/base/tools/aapt2/ |
D | ResourceTable.cpp | 305 IDiagnostics* diag) { in AddResource() argument 307 ResolveValueCollision, diag); in AddResource() 315 IDiagnostics* diag) { in AddResource() argument 317 ResolveValueCollision, diag); in AddResource() 324 IDiagnostics* diag) { in AddFileReference() argument 325 return AddFileReferenceImpl(name, config, source, path, nullptr, ValidateName, diag); in AddFileReference() 331 IDiagnostics* diag) { in AddFileReferenceAllowMangled() argument 332 return AddFileReferenceImpl(name, config, source, path, file, SkipValidateName, diag); in AddFileReferenceAllowMangled() 338 NameValidator name_validator, IDiagnostics* diag) { in AddFileReferenceImpl() argument 344 name_validator, ResolveValueCollision, diag); in AddFileReferenceImpl() [all …]
|
D | ResourceTable.h | 199 IDiagnostics* diag); 203 std::unique_ptr<Value> value, IDiagnostics* diag); 206 const Source& source, const android::StringPiece& path, IDiagnostics* diag); 210 io::IFile* file, IDiagnostics* diag); 221 IDiagnostics* diag); 225 std::unique_ptr<Value> value, IDiagnostics* diag); 228 const Symbol& symbol, IDiagnostics* diag); 231 const Symbol& symbol, IDiagnostics* diag); 288 const CollisionResolverFunc& conflict_resolver, IDiagnostics* diag); 292 NameValidator name_validator, IDiagnostics* diag); [all …]
|
/frameworks/base/tools/aapt2/cmd/ |
D | Util.cpp | 35 Maybe<uint16_t> ParseTargetDensityParameter(const StringPiece& arg, IDiagnostics* diag) { in ParseTargetDensityParameter() argument 38 diag->Error(DiagMessage() << "invalid density '" << arg << "' for --preferred-density option"); in ParseTargetDensityParameter() 47 diag->Error(DiagMessage() << "invalid preferred density '" << arg << "'. " in ParseTargetDensityParameter() 54 bool ParseSplitParameter(const StringPiece& arg, IDiagnostics* diag, std::string* out_path, in ParseSplitParameter() argument 56 CHECK(diag != nullptr); in ParseSplitParameter() 68 diag->Error(DiagMessage() << "invalid split parameter '" << arg << "'"); in ParseSplitParameter() 69 diag->Note(DiagMessage() << "should be --split path/to/output.apk" << sSeparator in ParseSplitParameter() 78 diag->Error(DiagMessage() << "invalid config '" << config_str << "' in split parameter '" in ParseSplitParameter() 88 IDiagnostics* diag) { in ParseConfigFilterParameters() argument 97 diag->Error(DiagMessage() << "invalid config '" << config_str << "' for -c option"); in ParseConfigFilterParameters() [all …]
|
D | Util.h | 34 Maybe<uint16_t> ParseTargetDensityParameter(const android::StringPiece& arg, IDiagnostics* diag); 39 bool ParseSplitParameter(const android::StringPiece& arg, IDiagnostics* diag, std::string* out_path, 45 IDiagnostics* diag); 60 Maybe<AppInfo> ExtractAppInfoFromBinaryManifest(xml::XmlResource* xml_res, IDiagnostics* diag);
|
/frameworks/base/tools/aapt2/xml/ |
D | XmlActionExecutor.cpp | 27 SourcePathDiagnostics* diag) { in wrapper_two() argument 28 return f(el, diag); in wrapper_two() 49 bool XmlNodeAction::Execute(XmlActionExecutorPolicy policy, SourcePathDiagnostics* diag, in Execute() argument 53 error |= !action(el, diag); in Execute() 60 error |= !iter->second.Execute(policy, diag, child_el); in Execute() 69 diag->Error(error_msg); in Execute() 77 bool XmlActionExecutor::Execute(XmlActionExecutorPolicy policy, IDiagnostics* diag, in Execute() argument 79 SourcePathDiagnostics source_diag(doc->file.source, diag); in Execute()
|
D | XmlActionExecutor_test.cpp | 46 StdErrDiagnostics diag; in TEST() local 47 ASSERT_TRUE(executor.Execute(XmlActionExecutorPolicy::kNone, &diag, doc.get())); in TEST() 61 StdErrDiagnostics diag; in TEST() local 62 ASSERT_FALSE(executor.Execute(XmlActionExecutorPolicy::kWhitelist, &diag, doc.get())); in TEST()
|
/frameworks/compile/mclinker/lib/LD/ |
D | StaticResolver.cpp | 73 fatal(diag::fail_sym_resolution) << __FILE__ << __LINE__ in resolve() 98 ignore(diag::mark_dynamic_defined) << old->name(); in resolve() 111 ignore(diag::comm_refer_to_define) << old->name(); in resolve() 121 ignore(diag::redefine_common) << old->name(); in resolve() 142 ignore(diag::indirect_refer_to_common) << old->name(); in resolve() 147 fatal(diag::indirect_refer_to_inexist) << pNew.name(); in resolve() 181 error(diag::multiple_absolute_definitions) in resolve() 188 error(diag::multiple_definitions) << demangleName(pNew.name()); in resolve() 193 fatal(diag::indirect_refer_to_inexist) << old->name(); in resolve() 203 error(diag::undefined_situation) << action << old->name() in resolve()
|
D | DiagnosticInfos.cpp | 44 { diag::ENUM, CLASS, STR_SIZE(ADDRDESC, uint16_t), ADDRDESC } \ 63 { diag::ENUM, CLASS, STR_SIZE(LOCDESC, uint16_t), LOCDESC } \ 123 case diag::multiple_definitions: { in process() 129 case diag::undefined_reference: in process() 130 case diag::undefined_reference_text: { in process() 153 case diag::debug_print_gc_sections: { in process()
|
D | ELFObjectReader.cpp | 168 fatal(diag::err_cannot_read_section) << (*section)->name(); in readSections() 177 fatal(diag::err_cannot_read_section) << (*section)->name(); in readSections() 209 fatal(diag::err_cannot_read_section) << (*section)->name(); in readSections() 219 fatal(diag::err_cannot_read_section) << (*section)->name(); in readSections() 238 fatal(diag::err_cannot_read_section) << (*section)->name(); in readSections() 247 fatal(diag::err_cannot_read_target_section) << (*section)->name(); in readSections() 265 warning(diag::warn_illegal_input_section) in readSections() 281 note(diag::note_has_no_symtab) << pInput.name() << pInput.path() in readSymbols() 288 fatal(diag::fatal_cannot_read_strtab) << pInput.name() << pInput.path() in readSymbols()
|
/frameworks/compile/mclinker/lib/MC/ |
D | Attribute.cpp | 21 error(diag::err_unsupported_whole_archive); in isLegal() 25 error(diag::err_unsupported_as_needed); in isLegal() 29 error(diag::err_unsupported_add_needed); in isLegal() 33 error(diag::err_unsupported_Bdynamic); in isLegal() 37 warning(diag::err_enable_as_needed_on_static_system); in isLegal() 42 warning(diag::err_mix_static_as_needed); in isLegal()
|
D | CommandAction.cpp | 70 fatal(diag::err_cannot_find_namespec) << namespec(); in activate() 100 fatal(diag::fatal_forbid_nest_group); in activate() 254 fatal(diag::err_cannot_find_scriptfile) << "linker script" in activate() 258 fatal(diag::err_cannot_find_scriptfile) << "version script" in activate() 262 fatal(diag::err_cannot_find_scriptfile) << "dynamic list" in activate()
|
/frameworks/compile/mclinker/lib/Target/ARM/ |
D | ARMELFAttributeData.cpp | 163 error(diag::error_unknown_cpu_arch) << pInput.name(); in merge() 271 warning(diag::warn_mismatch_cpu_arch_profile) in merge() 283 warning(diag::warn_mismatch_cpu_arch_profile) in merge() 298 warning(diag::error_mismatch_mpextension_use) << pInput.name(); in merge() 321 warning(diag::warn_mismatch_enum_size) in merge() 335 warning(diag::warn_mismatch_fp16_format) << pInput.name(); in merge() 366 warning(diag::warn_unrecognized_virtualization_use) in merge() 378 warning(diag::warn_mismatch_abi_wmmx_args) << pInput.name(); in merge() 390 warning(diag::warn_mismatch_pcs_config) << pInput.name(); in merge() 402 warning(diag::warn_mismatch_r9_use) << pInput.name(); in merge() [all …]
|
/frameworks/compile/mclinker/lib/Fragment/ |
D | Relocation.cpp | 105 error(diag::result_overflow) << pRelocator.getName(type()) in apply() 110 error(diag::result_badreloc) << pRelocator.getName(type()) in apply() 115 fatal(diag::unsupported_relocation) << type() in apply() 120 fatal(diag::unknown_relocation) << type() << symInfo()->name(); in apply()
|
/frameworks/base/tools/aapt2/util/ |
D | Files.h | 88 explicit FileFilter(IDiagnostics* diag) : diag_(diag) {} in FileFilter() argument 116 Maybe<std::vector<std::string>> FindFiles(const android::StringPiece& path, IDiagnostics* diag,
|
/frameworks/av/media/libstagefright/id3/ |
D | Android.bp | 15 diag: { 48 diag: {
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/ |
D | Android.bp | 46 diag: { 94 diag: { 122 diag: {
|
/frameworks/compile/mclinker/lib/Target/Mips/ |
D | MipsAbiFlags.cpp | 54 error(diag::error_Mips_abiflags_invalid_size) << pInput.name(); in fillBySection() 60 error(diag::error_Mips_abiflags_invalid_size) << pInput.name(); in fillBySection() 68 error(diag::error_Mips_abiflags_invalid_version) << int(data->version) in fillBySection() 214 warning(diag::warn_Mips_isa_incompatible) << pInput.name(); in isCompatible() 218 warning(diag::warn_Mips_isa_ext_incompatible) << pInput.name(); in isCompatible() 222 warning(diag::warn_Mips_ases_incompatible) << pInput.name(); in isCompatible() 294 warning(diag::warn_Mips_fp_abi_incompatible) << oldAbiName << newAbiName in merge()
|
/frameworks/base/tools/aapt2/test/ |
D | Common.cpp | 40 static DummyDiagnosticsImpl diag; in GetDiagnostics() local 41 return &diag; in GetDiagnostics()
|
/frameworks/base/tools/aapt2/flatten/ |
D | Archive.h | 73 std::unique_ptr<IArchiveWriter> CreateDirectoryArchiveWriter(IDiagnostics* diag, 76 std::unique_ptr<IArchiveWriter> CreateZipFileArchiveWriter(IDiagnostics* diag,
|
D | Archive.cpp | 244 std::unique_ptr<IArchiveWriter> CreateDirectoryArchiveWriter(IDiagnostics* diag, in CreateDirectoryArchiveWriter() argument 248 diag->Error(DiagMessage(path) << writer->GetError()); in CreateDirectoryArchiveWriter() 254 std::unique_ptr<IArchiveWriter> CreateZipFileArchiveWriter(IDiagnostics* diag, in CreateZipFileArchiveWriter() argument 258 diag->Error(DiagMessage(path) << writer->GetError()); in CreateZipFileArchiveWriter()
|
/frameworks/base/tools/aapt2/compile/ |
D | Png.cpp | 101 IDiagnostics* diag = in logWarning() local 103 diag->Warn(DiagMessage() << warningMessage); in logWarning() 106 static bool readPng(IDiagnostics* diag, png_structp readPtr, png_infop infoPtr, in readPng() argument 109 diag->Error(DiagMessage() << "failed reading png"); in readPng() 247 static void analyze_image(IDiagnostics* diag, const PngInfo& imageInfo, in analyze_image() argument 385 diag->Note(DiagMessage() << "forcing image to gray (max deviation = " in analyze_image() 433 static bool writePng(IDiagnostics* diag, png_structp writePtr, in writePng() argument 436 diag->Error(DiagMessage() << "failed to write png"); in writePng() 465 diag->Note(DiagMessage() << "writing image: w = " << info->width in writePng() 474 analyze_image(diag, *info, grayScaleTolerance, rgbPalette, alphaPalette, in writePng() [all …]
|