/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 | 45 StdErrDiagnostics& diag) { in TestCompile() argument 53 return CompileCommand(&diag).Execute(args, &std::cerr); in TestCompile() 57 StdErrDiagnostics diag; in TEST_F() local 66 ASSERT_EQ(TestCompile(path0, kResDir, /** legacy */ false, diag), 0); in TEST_F() 68 ASSERT_EQ(TestCompile(path0, kResDir, /** legacy */ true, diag), 0); in TEST_F() 74 ASSERT_EQ(TestCompile(path1, kResDir, /** legacy */ false, diag), 0); in TEST_F() 76 ASSERT_EQ(TestCompile(path1, kResDir, /** legacy */ true, diag), 0); in TEST_F() 82 ASSERT_EQ(TestCompile(path2, kResDir, /** legacy */ false, diag), 0); in TEST_F() 84 ASSERT_EQ(TestCompile(path2, kResDir, /** legacy */ true, diag), 0); in TEST_F() 91 ASSERT_NE(TestCompile(path3, kResDir, /** legacy */ false, diag), 0); in TEST_F() [all …]
|
D | Link_test.cpp | 30 StdErrDiagnostics diag; in TEST_F() local 33 compiled_files_dir, &diag)); in TEST_F() 41 ASSERT_TRUE(Link(link_args, compiled_files_dir, &diag)); in TEST_F() 45 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in TEST_F() 57 StdErrDiagnostics diag; in TEST_F() local 60 compiled_files_dir, &diag)); in TEST_F() 69 ASSERT_TRUE(Link(link_args, compiled_files_dir, &diag)); in TEST_F() 73 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in TEST_F()
|
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/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/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/ |
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 | ResourceTable.cpp | 348 IDiagnostics* diag) { in AddResource() argument 351 (validate_resources_ ? ResolveValueCollision : IgnoreCollision), diag); in AddResource() 356 std::unique_ptr<Value> value, IDiagnostics* diag) { in AddResourceWithId() argument 359 (validate_resources_ ? ResolveValueCollision : IgnoreCollision), diag); in AddResourceWithId() 364 IDiagnostics* diag) { in AddResourceMangled() argument 366 (validate_resources_ ? ResolveValueCollision : IgnoreCollision), diag); in AddResourceMangled() 372 std::unique_ptr<Value> value, IDiagnostics* diag) { in AddResourceWithIdMangled() argument 374 (validate_resources_ ? ResolveValueCollision : IgnoreCollision), diag); in AddResourceWithIdMangled() 378 const Source& source, IDiagnostics* diag) { in ValidateName() argument 381 diag->Error(DiagMessage(source) << "resource '" << name << "' has invalid entry name '" in ValidateName() [all …]
|
D | ResourceTable.h | 241 IDiagnostics* diag); 246 IDiagnostics* diag); 252 IDiagnostics* diag); 257 IDiagnostics* diag); 261 bool SetVisibility(const ResourceNameRef& name, const Visibility& visibility, IDiagnostics* diag); 263 const ResourceId& res_id, IDiagnostics* diag); 265 const ResourceId& res_id, IDiagnostics* diag); 268 IDiagnostics *diag); 270 bool SetAllowNew(const ResourceNameRef& name, const AllowNew& allow_new, IDiagnostics* diag); 272 IDiagnostics* diag); [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() 308 StdErrDiagnostics diag; in TEST() local 315 StringPool::FlattenUtf8(&buffer, pool, &diag); in TEST() 339 StdErrDiagnostics diag; in TEST() local [all …]
|
/frameworks/base/tools/aapt2/xml/ |
D | XmlActionExecutor.cpp | 29 SourcePathDiagnostics* diag) { in wrapper_two() argument 30 return f(el, diag); in wrapper_two() 52 SourcePathDiagnostics* diag, Element* el) const { in Execute() argument 55 error |= !action(el, diag); in Execute() 64 error |= !iter->second.Execute(policy, bread_crumb, diag, child_el); in Execute() 79 diag->Warn(error_msg); in Execute() 82 diag->Error(error_msg); in Execute() 91 bool XmlActionExecutor::Execute(XmlActionExecutorPolicy policy, IDiagnostics* diag, in Execute() argument 93 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() 60 StdErrDiagnostics diag; in TEST() local 63 ASSERT_FALSE(executor.Execute(XmlActionExecutorPolicy::kWhitelist, &diag, doc.get())); in TEST() 66 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/base/tools/aapt2/optimize/ |
D | MultiApkGenerator.cpp | 157 IDiagnostics* diag = wrapped_context.GetDiagnostics(); in FromBaseApk() local 160 if (!UpdateManifest(artifact, &manifest, diag)) { in FromBaseApk() 161 diag->Error(DiagMessage() << "could not update AndroidManifest.xml for output artifact"); in FromBaseApk() 167 diag->Warn(DiagMessage() << "could not create out dir: " << out); in FromBaseApk() 172 diag->Note(DiagMessage() << "Generating split: " << out); in FromBaseApk() 175 std::unique_ptr<IArchiveWriter> writer = CreateZipFileArchiveWriter(diag, out); in FromBaseApk() 178 diag->Note(DiagMessage() << "Writing output: " << out); in FromBaseApk() 260 IDiagnostics* diag) { in UpdateManifest() argument 276 diag->Error(DiagMessage(manifest->file.source) << "root tag must be <manifest>"); in UpdateManifest() 283 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiScoreCardTest.java | 271 private void checkSerializationExample(String diag, WifiScoreCard.PerBssid perBssid) { in checkSerializationExample() argument 272 assertEquals(diag, 2, perBssid.lookupSignal(Event.SIGNAL_POLL, 5805).rssi.count); in checkSerializationExample() 273 assertEquals(diag, -55.0, perBssid.lookupSignal(Event.SIGNAL_POLL, 5805) in checkSerializationExample() 275 assertEquals(diag, -44.0, perBssid.lookupSignal(Event.SIGNAL_POLL, 5805) in checkSerializationExample() 277 assertEquals(diag, 384.0, perBssid.lookupSignal(Event.FIRST_POLL_AFTER_CONNECTION, 5805) in checkSerializationExample() 279 assertEquals(diag, 111.0, perBssid.lookupSignal(Event.IP_CONFIGURATION_SUCCESS, 5805) in checkSerializationExample() 281 assertEquals(diag, 0, perBssid.lookupSignal(Event.SIGNAL_POLL, 2412).rssi.count); in checkSerializationExample() 282 assertEquals(diag, -42.0, perBssid.lookupSignal(Event.SIGNAL_POLL, 2412) in checkSerializationExample() 284 assertEquals(diag, 4.0, perBssid.lookupSignal(Event.SIGNAL_POLL, 2412) in checkSerializationExample() 346 String diag = hexStringFromByteArray(serialized); in testDeserialization() local [all …]
|
/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 …]
|