Searched defs:diag (Results 1 - 25 of 28) sorted by relevance

12

/frameworks/base/tools/aapt2/xml/
H A DXmlActionExecutor_test.cpp44 StdErrDiagnostics diag; local
46 executor.Execute(XmlActionExecutorPolicy::kNone, &diag, doc.get()));
60 StdErrDiagnostics diag; local
62 executor.Execute(XmlActionExecutorPolicy::kWhitelist, &diag, doc.get()));
H A DXmlActionExecutor.cpp27 SourcePathDiagnostics* diag) {
28 return f(el, diag);
49 bool XmlNodeAction::Execute(XmlActionExecutorPolicy policy, SourcePathDiagnostics* diag, argument
53 error |= !action(el, diag);
60 error |= !iter->second.Execute(policy, diag, child_el);
69 diag->Error(error_msg);
77 bool XmlActionExecutor::Execute(XmlActionExecutorPolicy policy, IDiagnostics* diag, argument
79 SourcePathDiagnostics source_diag(doc->file.source, diag);
26 wrapper_two(XmlNodeAction::ActionFuncWithDiag& f, Element* el, SourcePathDiagnostics* diag) argument
H A DXmlDom.cpp192 std::unique_ptr<XmlResource> Inflate(std::istream* in, IDiagnostics* diag, const Source& source) { argument
208 diag->Error(DiagMessage(source) << strerror(errno));
214 diag->Error(DiagMessage(source.WithLine(XML_GetCurrentLineNumber(parser)))
261 std::unique_ptr<XmlResource> Inflate(const void* data, size_t data_len, IDiagnostics* diag, argument
/frameworks/compile/mclinker/include/mcld/LD/
H A DDiagnosticInfos.h16 namespace diag { namespace in namespace:mcld
31 } // namespace diag
/frameworks/base/tools/aapt2/compile/
H A DPng.h46 explicit Png(IDiagnostics* diag) : mDiag(diag) {} argument
H A DIdAssigner.cpp34 static bool AssignId(IDiagnostics* diag, const ResourceId& id, argument
50 diag->Error(DiagMessage() << "can't assign ID " << id << " to resource "
H A DPngCrunch.cpp68 IDiagnostics* diag = (IDiagnostics*)png_get_error_ptr(png_ptr); local
69 diag->Warn(DiagMessage() << warning_msg);
74 IDiagnostics* diag = (IDiagnostics*)png_get_error_ptr(png_ptr); local
75 diag->Error(DiagMessage() << error_msg);
/frameworks/base/tools/aapt2/java/
H A DJavaClassGenerator_test.cpp136 StdErrDiagnostics diag; local
H A DManifestClassGenerator.cpp31 static Maybe<StringPiece> ExtractJavaIdentifier(IDiagnostics* diag, argument
45 diag->Error(DiagMessage(source) << "empty symbol");
51 diag->Error(DiagMessage(source) << "invalid character '"
58 diag->Error(DiagMessage(source) << "symbol can not start with a digit");
65 static bool WriteSymbol(const Source& source, IDiagnostics* diag, argument
69 diag->Error(DiagMessage(source) << "<" << el->name
75 diag, source.WithLine(el->line_number), attr->value);
88 std::unique_ptr<ClassDefinition> GenerateManifestClass(IDiagnostics* diag, argument
92 diag->Error(DiagMessage(res->file.source) << "no root tag defined");
97 diag
[all...]
/frameworks/base/tools/aapt2/link/
H A DManifestFixer.cpp34 SourcePathDiagnostics* diag) {
46 diag->Error(DiagMessage(el->line_number)
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->line_number)
70 static bool RequiredNameIsJavaPackage(xml::Element* el, SourcePathDiagnostics* diag) { argument
74 diag->Error(DiagMessage(el->line_number)
80 return [=](xml::Element* el, SourcePathDiagnostics* diag)
33 NameIsJavaClassName(xml::Element* el, xml::Attribute* attr, SourcePathDiagnostics* diag) argument
[all...]
H A DProductFilter.cpp25 const ResourceConfigValueIter end, IDiagnostics* diag) {
34 diag->Error(DiagMessage(config_value->value->GetSource())
40 diag->Note(
54 diag->Error(DiagMessage(config_value->value->GetSource())
60 diag->Note(
72 diag->Error(DiagMessage() << "no default product defined for resource "
23 SelectProductToKeep( const ResourceNameRef& name, const ResourceConfigValueIter begin, const ResourceConfigValueIter end, IDiagnostics* diag) argument
/frameworks/base/tools/aapt2/test/
H A DCommon.cpp40 static DummyDiagnosticsImpl diag; local
41 return &diag;
H A DBuilders.h256 StdErrDiagnostics diag; local
258 xml::Inflate(&in, &diag, Source("test.xml"));
/frameworks/base/tools/aapt2/util/
H A DFiles.h105 explicit FileFilter(IDiagnostics* diag) : diag_(diag) {} argument
137 Maybe<std::vector<std::string>> FindFiles(const android::StringPiece& path, IDiagnostics* diag,
H A DFiles.cpp268 Maybe<std::vector<std::string>> FindFiles(const android::StringPiece& path, IDiagnostics* diag, argument
273 diag->Error(DiagMessage() << android::base::SystemErrorCodeToString(errno));
306 Maybe<std::vector<std::string>> subfiles = FindFiles(full_subdir, diag, filter);
/frameworks/base/tools/aapt2/
H A DDiagnostics.h130 SourcePathDiagnostics(const Source& src, IDiagnostics* diag) argument
131 : source_(src), diag_(diag) {}
H A DResourceTable.cpp304 IDiagnostics* diag) {
306 ResolveValueCollision, diag);
314 IDiagnostics* diag) {
316 ResolveValueCollision, diag);
323 IDiagnostics* diag) {
324 return AddFileReferenceImpl(name, config, source, path, nullptr, ValidateName, diag);
330 IDiagnostics* diag) {
331 return AddFileReferenceImpl(name, config, source, path, file, SkipValidateName, diag);
337 NameValidator name_validator, IDiagnostics* diag) {
343 name_validator, ResolveValueCollision, diag);
300 AddResource(const ResourceNameRef& name, const ConfigDescription& config, const StringPiece& product, std::unique_ptr<Value> value, IDiagnostics* diag) argument
309 AddResource(const ResourceNameRef& name, const ResourceId& res_id, const ConfigDescription& config, const StringPiece& product, std::unique_ptr<Value> value, IDiagnostics* diag) argument
319 AddFileReference(const ResourceNameRef& name, const ConfigDescription& config, const Source& source, const StringPiece& path, IDiagnostics* diag) argument
327 AddFileReferenceAllowMangled( const ResourceNameRef& name, const ConfigDescription& config, const Source& source, const StringPiece& path, io::IFile* file, IDiagnostics* diag) argument
334 AddFileReferenceImpl(const ResourceNameRef& name, const ConfigDescription& config, const Source& source, const StringPiece& path, io::IFile* file, NameValidator name_validator, IDiagnostics* diag) argument
346 AddResourceAllowMangled(const ResourceNameRef& name, const ConfigDescription& config, const StringPiece& product, std::unique_ptr<Value> value, IDiagnostics* diag) argument
355 AddResourceAllowMangled(const ResourceNameRef& name, const ResourceId& id, const ConfigDescription& config, const StringPiece& product, std::unique_ptr<Value> value, IDiagnostics* diag) argument
365 AddResourceImpl(const ResourceNameRef& name, const ResourceId& res_id, const ConfigDescription& config, const StringPiece& product, std::unique_ptr<Value> value, NameValidator name_validator, const CollisionResolverFunc& conflictResolver, IDiagnostics* diag) argument
443 SetSymbolState(const ResourceNameRef& name, const ResourceId& res_id, const Symbol& symbol, IDiagnostics* diag) argument
448 SetSymbolStateAllowMangled(const ResourceNameRef& name, const ResourceId& res_id, const Symbol& symbol, IDiagnostics* diag) argument
455 SetSymbolStateImpl(const ResourceNameRef& name, const ResourceId& res_id, const Symbol& symbol, NameValidator name_validator, IDiagnostics* diag) argument
[all...]
H A DResourceParser.cpp102 static bool AddResourcesToTable(ResourceTable* table, IDiagnostics* diag, ParsedResource* res) { argument
115 if (!table->SetSymbolState(res->name, res->id, symbol, diag)) {
126 diag)) {
133 error |= !AddResourcesToTable(table, diag, &child);
141 ResourceParser::ResourceParser(IDiagnostics* diag, ResourceTable* table, argument
145 : diag_(diag),
/frameworks/base/tools/aapt2/flatten/
H A DArchive.cpp242 std::unique_ptr<IArchiveWriter> CreateDirectoryArchiveWriter(IDiagnostics* diag, argument
246 diag->Error(DiagMessage(path) << writer->GetError());
252 std::unique_ptr<IArchiveWriter> CreateZipFileArchiveWriter(IDiagnostics* diag, argument
256 diag->Error(DiagMessage(path) << writer->GetError());
/frameworks/base/tools/aapt2/cmd/
H A DUtil.cpp35 Maybe<uint16_t> ParseTargetDensityParameter(const StringPiece& arg, IDiagnostics* diag) { argument
38 diag->Error(DiagMessage() << "invalid density '" << arg << "' for --preferred-density option");
47 diag->Error(DiagMessage() << "invalid preferred density '" << arg << "'. "
54 bool ParseSplitParameter(const StringPiece& arg, IDiagnostics* diag, std::string* out_path, argument
56 CHECK(diag != nullptr);
68 diag->Error(DiagMessage() << "invalid split parameter '" << arg << "'");
69 diag->Note(DiagMessage() << "should be --split path/to/output.apk" << sSeparator
79 diag->Error(DiagMessage() << "invalid config '" << config_str << "' in split parameter '"
89 IDiagnostics* diag) {
98 diag
88 ParseConfigFilterParameters(const std::vector<std::string>& args, IDiagnostics* diag) argument
278 ExtractAppInfoFromBinaryManifest(xml::XmlResource* xml_res, IDiagnostics* diag) argument
[all...]
H A DCompile.cpp276 IDiagnostics* diag) {
279 diag->Error(DiagMessage(output_path) << "failed to open file");
299 diag->Error(DiagMessage(output_path) << "failed to write data");
305 diag->Error(DiagMessage(output_path) << "failed to finish writing data");
313 IDiagnostics* diag) {
316 diag->Error(DiagMessage(output_path) << "failed to open file");
336 diag->Error(DiagMessage(output_path) << "failed to write data");
342 diag->Error(DiagMessage(output_path) << "failed to finish writing data");
274 WriteHeaderAndBufferToWriter(const StringPiece& output_path, const ResourceFile& file, const BigBuffer& buffer, IArchiveWriter* writer, IDiagnostics* diag) argument
311 WriteHeaderAndMmapToWriter(const StringPiece& output_path, const ResourceFile& file, const android::FileMap& map, IArchiveWriter* writer, IDiagnostics* diag) argument
/frameworks/native/opengl/tools/glgen2/registry/
H A Dgenheaders.py44 diagFilename = 'diag.txt'
546 diag = open(diagFilename, 'w') variable
562 diagFile=diag)
/frameworks/base/tools/aapt2/proto/
H A DTableProtoDeserializer.cpp61 const Source& source, IDiagnostics* diag)
66 diag_(diag) {}
392 IDiagnostics* diag) {
401 diag->Error(DiagMessage(source) << "no string pool found");
409 diag->Error(DiagMessage(source) << "invalid string pool");
418 diag->Error(DiagMessage(source) << "invalid source pool");
428 diag->Error(DiagMessage(source) << "invalid symbol pool");
434 &symbol_pool, source, diag);
444 const pb::CompiledFile& pb_file, const Source& source, IDiagnostics* diag) {
451 diag
58 PackagePbDeserializer(const android::ResStringPool* valuePool, const android::ResStringPool* sourcePool, const android::ResStringPool* symbolPool, const Source& source, IDiagnostics* diag) argument
390 DeserializeTableFromPb( const pb::ResourceTable& pb_table, const Source& source, IDiagnostics* diag) argument
443 DeserializeCompiledFileFromPb( const pb::CompiledFile& pb_file, const Source& source, IDiagnostics* diag) argument
[all...]
/frameworks/native/libs/math/include/math/
H A DTMatHelpers.h287 // diag. this handles matrices of matrices
289 CONSTEXPR typename MATRIX::col_type PURE diag(const MATRIX& m) { function in namespace:android::details::matrix
290 static_assert(MATRIX::NUM_COLS == MATRIX::NUM_ROWS, "diag only defined for square matrices");
/frameworks/native/services/sensorservice/
H A DFusion.cpp132 static mat<TYPE, 3, 3> crossMatrix(const vec<TYPE, 3>& p, OTHER_TYPE diag) { argument
134 r[0][0] = diag;
135 r[1][1] = diag;
136 r[2][2] = diag;

Completed in 236 milliseconds

12