Searched refs:diag (Results 1 - 25 of 93) sorted by relevance

1234

/frameworks/base/tools/aapt2/java/
H A DManifestClassGenerator.h29 std::unique_ptr<ClassDefinition> generateManifestClass(IDiagnostics* diag, xml::XmlResource* res);
H A DManifestClassGenerator.cpp28 static Maybe<StringPiece16> extractJavaIdentifier(IDiagnostics* diag, const Source& source, argument
41 diag->error(DiagMessage(source) << "empty symbol");
47 diag->error(DiagMessage(source)
54 diag->error(DiagMessage(source) << "symbol can not start with a digit");
61 static bool writeSymbol(const Source& source, IDiagnostics* diag, xml::Element* el, argument
65 diag->error(DiagMessage(source) << "<" << el->name << "> must define 'android:name'");
69 Maybe<StringPiece16> result = extractJavaIdentifier(diag, source.withLine(el->lineNumber),
83 std::unique_ptr<ClassDefinition> generateManifestClass(IDiagnostics* diag, xml::XmlResource* res) { argument
86 diag->error(DiagMessage(res->file.source) << "no root tag defined");
91 diag
[all...]
/frameworks/base/tools/aapt2/compile/
H A DPng.h35 Png(IDiagnostics* diag) : mDiag(diag) { argument
/frameworks/base/tools/aapt2/xml/
H A DXmlActionExecutor.cpp27 SourcePathDiagnostics* diag) {
28 return f(el, diag);
51 bool XmlNodeAction::execute(XmlActionExecutorPolicy policy, SourcePathDiagnostics* diag, argument
55 error |= !action(el, diag);
63 error |= !iter->second.execute(policy, diag, childEl);
73 diag->error(errorMsg);
80 bool XmlActionExecutor::execute(XmlActionExecutorPolicy policy, IDiagnostics* diag, argument
82 SourcePathDiagnostics sourceDiag(doc->file.source, diag);
26 wrapperTwo(XmlNodeAction::ActionFuncWithDiag& f, Element* el, SourcePathDiagnostics* diag) argument
H A DXmlActionExecutor_test.cpp42 StdErrDiagnostics diag; local
43 ASSERT_TRUE(executor.execute(XmlActionExecutorPolicy::None, &diag, doc.get()));
57 StdErrDiagnostics diag; local
58 ASSERT_FALSE(executor.execute(XmlActionExecutorPolicy::Whitelist, &diag, doc.get()));
H A DXmlActionExecutor.h71 bool execute(XmlActionExecutorPolicy policy, SourcePathDiagnostics* diag, Element* el) const;
97 bool execute(XmlActionExecutorPolicy policy, IDiagnostics* diag, XmlResource* doc) const;
/frameworks/base/tools/aapt2/flatten/
H A DArchive.cpp35 bool open(IDiagnostics* diag, const StringPiece& outDir) { argument
39 diag->error(DiagMessage() << "directory " << mOutDir << " does not exist");
42 diag->error(DiagMessage() << mOutDir << " is not a directory");
99 bool open(IDiagnostics* diag, const StringPiece& path) { argument
102 diag->error(DiagMessage() << "failed to open " << path << ": " << strerror(errno));
165 std::unique_ptr<IArchiveWriter> createDirectoryArchiveWriter(IDiagnostics* diag, argument
169 if (!writer->open(diag, path)) {
175 std::unique_ptr<IArchiveWriter> createZipFileArchiveWriter(IDiagnostics* diag, argument
178 if (!writer->open(diag, path)) {
H A DArchive.h58 std::unique_ptr<IArchiveWriter> createDirectoryArchiveWriter(IDiagnostics* diag,
61 std::unique_ptr<IArchiveWriter> createZipFileArchiveWriter(IDiagnostics* diag,
/frameworks/base/tools/aapt2/link/
H A DProductFilter.cpp25 IDiagnostics* diag) {
34 diag->error(DiagMessage(configValue->value->getSource())
39 diag->note(DiagMessage(previouslySelectedConfigValue->value->getSource())
52 diag->error(DiagMessage(configValue->value->getSource())
56 diag->note(DiagMessage(previouslyDefaultConfigValue->value->getSource())
67 diag->error(DiagMessage() << "no default product defined for resource " << name);
22 selectProductToKeep(const ResourceNameRef& name, const ResourceConfigValueIter begin, const ResourceConfigValueIter end, IDiagnostics* diag) argument
H A DManifestFixer.cpp29 SourcePathDiagnostics* diag) {
46 diag->error(DiagMessage(el->lineNumber)
54 static bool optionalNameIsJavaClassName(xml::Element* el, SourcePathDiagnostics* diag) { argument
56 return nameIsJavaClassName(el, attr, diag);
61 static bool requiredNameIsJavaClassName(xml::Element* el, SourcePathDiagnostics* diag) { argument
63 return nameIsJavaClassName(el, attr, diag);
65 diag->error(DiagMessage(el->lineNumber)
70 static bool verifyManifest(xml::Element* el, SourcePathDiagnostics* diag) { argument
73 diag->error(DiagMessage(el->lineNumber) << "<manifest> tag is missing 'package' attribute");
76 diag
28 nameIsJavaClassName(xml::Element* el, xml::Attribute* attr, SourcePathDiagnostics* diag) argument
88 buildRules(xml::XmlActionExecutor* executor, IDiagnostics* diag) argument
[all...]
H A DManifestFixer.h50 bool buildRules(xml::XmlActionExecutor* executor, IDiagnostics* diag);
H A DProductFilter.h37 IDiagnostics* diag);
/frameworks/compile/mclinker/lib/LD/
H A DDiagnosticInfos.cpp44 { diag::ENUM, CLASS, STR_SIZE(ADDRDESC, uint16_t), ADDRDESC } \
63 { diag::ENUM, CLASS, STR_SIZE(LOCDESC, uint16_t), LOCDESC } \
123 case diag::multiple_definitions: {
129 case diag::undefined_reference:
130 case diag::undefined_reference_text: {
153 case diag::debug_print_gc_sections: {
H A DStaticResolver.cpp73 fatal(diag::fail_sym_resolution) << __FILE__ << __LINE__
98 ignore(diag::mark_dynamic_defined) << old->name();
111 ignore(diag::comm_refer_to_define) << old->name();
121 ignore(diag::redefine_common) << old->name();
142 ignore(diag::indirect_refer_to_common) << old->name();
147 fatal(diag::indirect_refer_to_inexist) << pNew.name();
181 error(diag::multiple_absolute_definitions)
188 error(diag::multiple_definitions) << demangleName(pNew.name());
193 fatal(diag::indirect_refer_to_inexist) << old->name();
203 error(diag
[all...]
H A DRelocationFactory.cpp37 fatal(diag::reloc_factory_has_not_config);
63 fatal(diag::unsupported_bitclass) << m_pConfig->targets().triple().str()
H A DELFObjectReader.cpp168 fatal(diag::err_cannot_read_section) << (*section)->name();
177 fatal(diag::err_cannot_read_section) << (*section)->name();
209 fatal(diag::err_cannot_read_section) << (*section)->name();
219 fatal(diag::err_cannot_read_section) << (*section)->name();
238 fatal(diag::err_cannot_read_section) << (*section)->name();
247 fatal(diag::err_cannot_read_target_section) << (*section)->name();
265 warning(diag::warn_illegal_input_section)
281 note(diag::note_has_no_symtab) << pInput.name() << pInput.path()
288 fatal(diag::fatal_cannot_read_strtab) << pInput.name() << pInput.path()
H A DRelocator.cpp70 fatal(diag::undefined_reference) << reloc_sym << pInput.path() << sect_name
95 fatal(diag::undefined_reference_text) << reloc_sym << pInput.path()
/frameworks/compile/mclinker/lib/MC/
H A DAttribute.cpp21 error(diag::err_unsupported_whole_archive);
25 error(diag::err_unsupported_as_needed);
29 error(diag::err_unsupported_add_needed);
33 error(diag::err_unsupported_Bdynamic);
37 warning(diag::err_enable_as_needed_on_static_system);
42 warning(diag::err_mix_static_as_needed);
/frameworks/base/tools/aapt2/
H A DResourceTable.cpp260 IDiagnostics* diag) {
262 resolveValueCollision, diag);
270 IDiagnostics* diag) {
272 resolveValueCollision, diag);
279 IDiagnostics* diag) {
280 return addFileReferenceImpl(name, config, source, path, nullptr, kValidNameChars, diag);
288 IDiagnostics* diag) {
289 return addFileReferenceImpl(name, config, source, path, file, kValidNameMangledChars, diag);
298 IDiagnostics* diag) {
304 kValidNameChars, resolveValueCollision, diag);
256 addResource(const ResourceNameRef& name, const ConfigDescription& config, const StringPiece& product, std::unique_ptr<Value> value, IDiagnostics* diag) argument
265 addResource(const ResourceNameRef& name, const ResourceId resId, const ConfigDescription& config, const StringPiece& product, std::unique_ptr<Value> value, IDiagnostics* diag) argument
275 addFileReference(const ResourceNameRef& name, const ConfigDescription& config, const Source& source, const StringPiece16& path, IDiagnostics* diag) argument
283 addFileReferenceAllowMangled(const ResourceNameRef& name, const ConfigDescription& config, const Source& source, const StringPiece16& path, io::IFile* file, IDiagnostics* diag) argument
292 addFileReferenceImpl(const ResourceNameRef& name, const ConfigDescription& config, const Source& source, const StringPiece16& path, io::IFile* file, const char16_t* validChars, IDiagnostics* diag) argument
307 addResourceAllowMangled(const ResourceNameRef& name, const ConfigDescription& config, const StringPiece& product, std::unique_ptr<Value> value, IDiagnostics* diag) argument
316 addResourceAllowMangled(const ResourceNameRef& name, const ResourceId id, const ConfigDescription& config, const StringPiece& product, std::unique_ptr<Value> value, IDiagnostics* diag) argument
326 addResourceImpl(const ResourceNameRef& name, const ResourceId resId, const ConfigDescription& config, const StringPiece& product, std::unique_ptr<Value> value, const char16_t* validChars, std::function<int(Value*,Value*)> conflictResolver, IDiagnostics* diag) argument
418 setSymbolState(const ResourceNameRef& name, const ResourceId resId, const Symbol& symbol, IDiagnostics* diag) argument
423 setSymbolStateAllowMangled(const ResourceNameRef& name, const ResourceId resId, const Symbol& symbol, IDiagnostics* diag) argument
429 setSymbolStateImpl(const ResourceNameRef& name, const ResourceId resId, const Symbol& symbol, const char16_t* validChars, IDiagnostics* diag) argument
[all...]
H A DResourceTable.h196 IDiagnostics* diag);
203 IDiagnostics* diag);
209 IDiagnostics* diag);
216 IDiagnostics* diag);
227 IDiagnostics* diag);
234 IDiagnostics* diag);
239 IDiagnostics* diag);
244 IDiagnostics* diag);
290 IDiagnostics* diag);
299 IDiagnostics* diag);
[all...]
/frameworks/compile/mclinker/include/mcld/LD/
H A DDiagnosticInfos.h16 namespace diag { namespace in namespace:mcld
31 } // namespace diag
/frameworks/compile/mclinker/lib/Fragment/
H A DRelocation.cpp105 error(diag::result_overflow) << pRelocator.getName(type())
110 error(diag::result_badreloc) << pRelocator.getName(type())
115 fatal(diag::unsupported_relocation) << type()
120 fatal(diag::unknown_relocation) << type() << symInfo()->name();
/frameworks/base/tools/aapt2/proto/
H A DProtoSerialize.h34 IDiagnostics* diag);
39 IDiagnostics* diag);
/frameworks/base/tools/aapt2/util/
H A DFiles.h112 FileFilter(IDiagnostics* diag) : mDiag(diag) { argument
/frameworks/compile/mclinker/lib/Support/
H A DMemoryArea.cpp28 fatal(diag::fatal_cannot_read_input) << pFilename.str();

Completed in 2364 milliseconds

1234