/frameworks/base/tools/aapt2/configuration/ |
D | ConfigurationParser.cpp | 100 std::string GetLabel(const Element* element, IDiagnostics* diag) { in GetLabel() argument 110 diag->Error(DiagMessage() << "No label found for element " << element->name); in GetLabel() 116 Maybe<int32_t> GetVersionCodeOrder(const Element* element, IDiagnostics* diag) { in GetVersionCodeOrder() argument 119 std::string label = GetLabel(element, diag); in GetVersionCodeOrder() 120 diag->Error(DiagMessage() << "No version-code-order found for element '" << element->name in GetVersionCodeOrder() 163 std::string* name, IDiagnostics* diag) { in ReplacePlaceholder() argument 170 diag->Error(DiagMessage() << "Missing placeholder for artifact: " << placeholder); in ReplacePlaceholder() 180 diag->Error(DiagMessage() << "Placeholder present but no value for artifact: " << placeholder); in ReplacePlaceholder() 188 diag->Error(DiagMessage() << "Placeholder present multiple times: " << placeholder); in ReplacePlaceholder() 199 xml::Element* element, IDiagnostics* diag)>; [all …]
|
D | ConfigurationParser.internal.h | 51 bool IsGroupValid(const Group<T>& group, const std::string& name, IDiagnostics* diag) { in IsGroupValid() argument 58 diag->Error(DiagMessage() << name << " have overlapping version-code-order attributes"); in IsGroupValid() 141 const android::StringPiece& apk_name, IDiagnostics* diag) const; 144 Maybe<std::string> Name(const android::StringPiece& apk_name, IDiagnostics* diag) const; 159 bool ValidateVersionCodeOrdering(IDiagnostics* diag) { in ValidateVersionCodeOrdering() 160 bool valid = IsGroupValid(abi_groups, "abi-groups", diag); in ValidateVersionCodeOrdering() 161 valid &= IsGroupValid(screen_density_groups, "screen-density-groups", diag); in ValidateVersionCodeOrdering() 162 valid &= IsGroupValid(locale_groups, "locale-groups", diag); in ValidateVersionCodeOrdering() 163 valid &= IsGroupValid(device_feature_groups, "device-feature-groups", diag); in ValidateVersionCodeOrdering() 164 valid &= IsGroupValid(gl_texture_groups, "gl-texture-groups", diag); in ValidateVersionCodeOrdering() [all …]
|
/frameworks/base/tools/aapt2/cmd/ |
D | Dump.h | 33 explicit DumpApkCommand(const std::string&& name, text::Printer* printer, IDiagnostics* diag) in DumpApkCommand() argument 34 : Command(name), printer_(printer), diag_(diag) { in DumpApkCommand() 92 explicit DumpAPCCommand(text::Printer* printer, IDiagnostics* diag) in DumpAPCCommand() argument 93 : Command("apc"), printer_(printer), diag_(diag) { in DumpAPCCommand() 124 explicit DumpBadgingCommand(text::Printer* printer, IDiagnostics* diag) in DumpBadgingCommand() argument 125 : DumpApkCommand("badging", printer, diag) { in DumpBadgingCommand() 141 explicit DumpConfigsCommand(text::Printer* printer, IDiagnostics* diag) in DumpConfigsCommand() argument 142 : DumpApkCommand("configurations", printer, diag) { in DumpConfigsCommand() 151 explicit DumpPackageNameCommand(text::Printer* printer, IDiagnostics* diag) in DumpPackageNameCommand() argument 152 : DumpApkCommand("packagename", printer, diag) { in DumpPackageNameCommand() [all …]
|
D | Compile_test.cpp | 46 StdErrDiagnostics& diag) { in TestCompile() argument 54 return CompileCommand(&diag).Execute(args, &std::cerr); in TestCompile() 58 StdErrDiagnostics diag; in TEST_F() local 67 ASSERT_EQ(TestCompile(path0, kResDir, /** legacy */ false, diag), 0); in TEST_F() 69 ASSERT_EQ(TestCompile(path0, kResDir, /** legacy */ true, diag), 0); in TEST_F() 75 ASSERT_EQ(TestCompile(path1, kResDir, /** legacy */ false, diag), 0); in TEST_F() 77 ASSERT_EQ(TestCompile(path1, kResDir, /** legacy */ true, diag), 0); in TEST_F() 83 ASSERT_EQ(TestCompile(path2, kResDir, /** legacy */ false, diag), 0); in TEST_F() 85 ASSERT_EQ(TestCompile(path2, kResDir, /** legacy */ true, diag), 0); in TEST_F() 92 ASSERT_NE(TestCompile(path3, kResDir, /** legacy */ false, diag), 0); in TEST_F() [all …]
|
D | Link_test.cpp | 36 StdErrDiagnostics diag; in TEST_F() local 39 compiled_files_dir, &diag)); in TEST_F() 47 ASSERT_TRUE(Link(link_args, compiled_files_dir, &diag)); in TEST_F() 51 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in TEST_F() 63 StdErrDiagnostics diag; in TEST_F() local 66 compiled_files_dir, &diag)); in TEST_F() 75 ASSERT_TRUE(Link(link_args, compiled_files_dir, &diag)); in TEST_F() 79 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in TEST_F() 93 StdErrDiagnostics diag; in TEST_F() local 112 ASSERT_TRUE(Link(link_args, &diag)); in TEST_F() [all …]
|
D | Convert_test.cpp | 31 StdErrDiagnostics diag; in TEST_F() local 34 compiled_files_dir, &diag)); in TEST_F() 44 ASSERT_TRUE(Link(link_args, compiled_files_dir, &diag)); in TEST_F() 56 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_convert_apk, &diag); in TEST_F() 68 StdErrDiagnostics diag; in TEST_F() local 71 compiled_files_dir, &diag)); in TEST_F() 81 ASSERT_TRUE(Link(link_args, compiled_files_dir, &diag)); in TEST_F() 94 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_convert_apk, &diag); in TEST_F() 108 StdErrDiagnostics diag; in TEST_F() local
|
D | Util.cpp | 38 Maybe<uint16_t> ParseTargetDensityParameter(const StringPiece& arg, IDiagnostics* diag) { in ParseTargetDensityParameter() argument 41 diag->Error(DiagMessage() << "invalid density '" << arg << "' for --preferred-density option"); in ParseTargetDensityParameter() 50 diag->Error(DiagMessage() << "invalid preferred density '" << arg << "'. " in ParseTargetDensityParameter() 57 bool ParseSplitParameter(const StringPiece& arg, IDiagnostics* diag, std::string* out_path, in ParseSplitParameter() argument 59 CHECK(diag != nullptr); in ParseSplitParameter() 71 diag->Error(DiagMessage() << "invalid split parameter '" << arg << "'"); in ParseSplitParameter() 72 diag->Note(DiagMessage() << "should be --split path/to/output.apk" << sSeparator in ParseSplitParameter() 82 diag->Error(DiagMessage() << "invalid config '" << config_str << "' in split parameter '" in ParseSplitParameter() 92 IDiagnostics* diag) { in ParseConfigFilterParameters() argument 101 diag->Error(DiagMessage() << "invalid config '" << config_str << "' for -c option"); in ParseConfigFilterParameters() [all …]
|
D | Util.h | 36 Maybe<uint16_t> ParseTargetDensityParameter(const android::StringPiece& arg, IDiagnostics* diag); 41 bool ParseSplitParameter(const android::StringPiece& arg, IDiagnostics* diag, std::string* out_path, 47 IDiagnostics* diag); 63 IDiagnostics* diag);
|
/frameworks/base/tools/aapt2/java/ |
D | ManifestClassGenerator.cpp | 33 static Maybe<std::string> ExtractJavaIdentifier(IDiagnostics* diag, const Source& source, in ExtractJavaIdentifier() argument 47 diag->Error(DiagMessage(source) << "empty symbol"); in ExtractJavaIdentifier() 52 diag->Error(DiagMessage(source) << "invalid Java identifier '" << result << "'"); in ExtractJavaIdentifier() 58 static bool WriteSymbol(const Source& source, IDiagnostics* diag, xml::Element* el, in WriteSymbol() argument 62 diag->Error(DiagMessage(source) << "<" << el->name << "> must define 'android:name'"); in WriteSymbol() 67 ExtractJavaIdentifier(diag, source.WithLine(el->line_number), attr->value); in WriteSymbol() 77 diag->Warn(DiagMessage(source.WithLine(el->line_number)) in WriteSymbol() 83 std::unique_ptr<ClassDefinition> GenerateManifestClass(IDiagnostics* diag, xml::XmlResource* res) { in GenerateManifestClass() argument 86 diag->Error(DiagMessage(res->file.source) << "no root tag defined"); in GenerateManifestClass() 91 diag->Error(DiagMessage(res->file.source) << "no <manifest> root tag defined"); in GenerateManifestClass() [all …]
|
/frameworks/base/tools/aapt2/link/ |
D | ManifestFixer.cpp | 33 static bool RequiredNameIsNotEmpty(xml::Element* el, SourcePathDiagnostics* diag) { in RequiredNameIsNotEmpty() argument 36 diag->Error(DiagMessage(el->line_number) in RequiredNameIsNotEmpty() 42 diag->Error(DiagMessage(el->line_number) in RequiredNameIsNotEmpty() 51 SourcePathDiagnostics* diag) { in NameIsJavaClassName() argument 63 diag->Error(DiagMessage(el->line_number) in NameIsJavaClassName() 71 static bool OptionalNameIsJavaClassName(xml::Element* el, SourcePathDiagnostics* diag) { in OptionalNameIsJavaClassName() argument 73 return NameIsJavaClassName(el, attr, diag); in OptionalNameIsJavaClassName() 78 static bool RequiredNameIsJavaClassName(xml::Element* el, SourcePathDiagnostics* diag) { in RequiredNameIsJavaClassName() argument 81 diag->Error(DiagMessage(el->line_number) in RequiredNameIsJavaClassName() 85 return NameIsJavaClassName(el, attr, diag); in RequiredNameIsJavaClassName() [all …]
|
D | ProductFilter.cpp | 26 const ResourceConfigValueIter end, IDiagnostics* diag) { in SelectProductToKeep() argument 35 diag->Error(DiagMessage(config_value->value->GetSource()) in SelectProductToKeep() 41 diag->Note( in SelectProductToKeep() 55 diag->Error(DiagMessage(config_value->value->GetSource()) in SelectProductToKeep() 61 diag->Note( in SelectProductToKeep() 73 diag->Error(DiagMessage() << "no default product defined for resource " in SelectProductToKeep()
|
D | NoDefaultResourceRemover.cpp | 80 IDiagnostics* diag = context->GetDiagnostics(); in Consume() local 81 diag->Warn(DiagMessage() << "removing resource " << name in Consume() 84 diag->Note(DiagMessage() << " did you forget to remove all definitions?"); in Consume() 87 diag->Note(DiagMessage(config_value->value->GetSource()) << "defined here"); in Consume()
|
/frameworks/base/tools/aapt2/ |
D | LoadedApk.cpp | 75 std::unique_ptr<LoadedApk> LoadedApk::LoadApkFromPath(const StringPiece& path, IDiagnostics* diag) { in LoadApkFromPath() argument 80 diag->Error(DiagMessage(path) << "failed opening zip: " << error); in LoadApkFromPath() 87 return LoadBinaryApkFromFileCollection(source, std::move(apk), diag); in LoadApkFromPath() 89 return LoadProtoApkFromFileCollection(source, std::move(apk), diag); in LoadApkFromPath() 91 diag->Error(DiagMessage(path) << "could not identify format of APK"); in LoadApkFromPath() 97 const Source& source, unique_ptr<io::IFileCollection> collection, IDiagnostics* diag) { in LoadProtoApkFromFileCollection() argument 105 diag->Error(DiagMessage(source) << "failed to open " << kProtoResourceTablePath); in LoadProtoApkFromFileCollection() 111 diag->Error(DiagMessage(source) << "failed to read " << kProtoResourceTablePath); in LoadProtoApkFromFileCollection() 118 diag->Error(DiagMessage(source) in LoadProtoApkFromFileCollection() 126 diag->Error(DiagMessage(source) << "failed to find " << kAndroidManifestPath); in LoadProtoApkFromFileCollection() [all …]
|
D | StringPool_test.cpp | 203 StdErrDiagnostics diag; in TEST() local 207 StringPool::FlattenUtf8(&buffer, pool, &diag); in TEST() 216 StdErrDiagnostics diag; in TEST() local 221 StringPool::FlattenUtf16(&buffer, pool, &diag); in TEST() 242 StdErrDiagnostics diag; in TEST() local 262 StringPool::FlattenUtf8(&buffers[0], pool, &diag); in TEST() 263 StringPool::FlattenUtf16(&buffers[1], pool, &diag); in TEST() 309 StdErrDiagnostics diag; in TEST() local 316 StringPool::FlattenUtf8(&buffer, pool, &diag); in TEST() 341 StdErrDiagnostics diag; in TEST() local [all …]
|
D | LoadedApk.h | 49 IDiagnostics* diag); 53 const Source& source, std::unique_ptr<io::IFileCollection> collection, IDiagnostics* diag); 57 const Source& source, std::unique_ptr<io::IFileCollection> collection, IDiagnostics* diag); 114 std::unique_ptr<xml::XmlResource> LoadXml(const std::string& file_path, IDiagnostics* diag) const;
|
/frameworks/base/tools/aapt2/xml/ |
D | XmlActionExecutor.cpp | 30 const XmlActionExecutorPolicy& policy, SourcePathDiagnostics* diag) { in wrapper_two() argument 31 return f(el, diag); in wrapper_two() 35 const XmlActionExecutorPolicy& policy, SourcePathDiagnostics* diag) { in wrapper_three() argument 36 return f(el, policy, diag); in wrapper_three() 63 SourcePathDiagnostics* diag, Element* el) const { in Execute() argument 66 error |= !action(el, policy, diag); in Execute() 75 error |= !iter->second.Execute(policy, bread_crumb, diag, child_el); in Execute() 90 diag->Warn(error_msg); in Execute() 93 diag->Error(error_msg); in Execute() 102 bool XmlActionExecutor::Execute(XmlActionExecutorPolicy policy, IDiagnostics* diag, in Execute() argument [all …]
|
D | XmlActionExecutor_test.cpp | 46 StdErrDiagnostics diag; in TEST() local 47 ASSERT_TRUE(executor.Execute(XmlActionExecutorPolicy::kNone, &diag, doc.get())); in TEST() 60 StdErrDiagnostics diag; in TEST() local 63 ASSERT_FALSE(executor.Execute(XmlActionExecutorPolicy::kAllowList, &diag, doc.get())); in TEST() 66 ASSERT_FALSE(executor.Execute(XmlActionExecutorPolicy::kAllowList, &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/base/tools/aapt2/optimize/ |
D | MultiApkGenerator.cpp | 161 IDiagnostics* diag = wrapped_context.GetDiagnostics(); in FromBaseApk() local 164 if (!UpdateManifest(artifact, &manifest, diag)) { in FromBaseApk() 165 diag->Error(DiagMessage() << "could not update AndroidManifest.xml for output artifact"); in FromBaseApk() 171 diag->Warn(DiagMessage() << "could not create out dir: " << out); in FromBaseApk() 176 diag->Note(DiagMessage() << "Generating split: " << out); in FromBaseApk() 179 std::unique_ptr<IArchiveWriter> writer = CreateZipFileArchiveWriter(diag, out); in FromBaseApk() 182 diag->Note(DiagMessage() << "Writing output: " << out); in FromBaseApk() 264 IDiagnostics* diag) { in UpdateManifest() argument 280 diag->Error(DiagMessage(manifest->file.source) << "root tag must be <manifest>"); in UpdateManifest() 287 diag->Error(DiagMessage(manifest->file.source) << "manifest must have a versionCode attribute"); in UpdateManifest() [all …]
|
/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()
|
/frameworks/base/tools/aapt2/test/ |
D | Fixture.cpp | 94 const android::StringPiece& out_dir, IDiagnostics* diag) { in CompileFile() argument 97 return CompileCommand(diag).Execute({path, "-o", out_dir, "-v"}, &std::cerr) == 0; in CompileFile() 100 bool CommandTestFixture::Link(const std::vector<std::string>& args, IDiagnostics* diag) { in Link() argument 112 return LinkCommand(diag).Execute(link_args, &std::cerr) == 0; in Link() 116 const android::StringPiece& flat_dir, IDiagnostics* diag) { in Link() argument 129 Maybe<std::vector<std::string>> compiled_files = file::FindFiles(flat_dir, diag); in Link() 137 return LinkCommand(diag).Execute(link_args, &std::cerr) == 0; in Link()
|
/frameworks/base/tools/aapt2/process/ |
D | SymbolTable_test.cpp | 82 StdErrDiagnostics diag; in TEST_F() local 91 static_lib_compiled_files_dir, &diag)); in TEST_F() 100 ASSERT_TRUE(Link(link_args, static_lib_compiled_files_dir, &diag)); in TEST_F() 110 app_compiled_files_dir, &diag)); in TEST_F() 119 ASSERT_TRUE(Link(link_args, app_compiled_files_dir, &diag)); in TEST_F()
|
/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 …]
|