Home
last modified time | relevance | path

Searched refs:out_error (Results 1 – 15 of 15) sorted by relevance

/aosp12/frameworks/base/tools/aapt2/format/proto/
H A DProtoDeserialize.h39 std::string* out_error);
45 std::string* out_error);
48 std::string* out_error);
51 std::string* out_error);
54 android::ConfigDescription* out_config, std::string* out_error);
58 ResourceTable* out_table, std::string* out_error);
61 ResourceFile* out_file, std::string* out_error);
H A DProtoDeserialize.cpp69 std::string* out_error) { in DeserializeConfigFromPb() argument
78 *out_error = error.str(); in DeserializeConfigFromPb()
411 *out_error = "unknown overlayable policy"; in DeserializeOverlayableItemFromPb()
436 *out_error = error.str(); in DeserializePackageFromPb()
489 *out_error = in DeserializePackageFromPb()
560 *out_error = "invalid source pool"; in DeserializeTableFromPb()
577 out_error)) { in DeserializeTableFromPb()
603 *out_error = error.str(); in DeserializeCompiledFileFromPb()
615 *out_error = error.str(); in DeserializeCompiledFileFromPb()
624 *out_error = error.str(); in DeserializeCompiledFileFromPb()
[all …]
/aosp12/frameworks/base/tools/aapt2/cmd/
H A DCommand.cpp181 int Command::Execute(const std::vector<StringPiece>& args, std::ostream* out_error) { in Execute() argument
194 std::vector<StringPiece>(args.begin() + 1, args.end()), out_error); in Execute()
201 std::vector<StringPiece>(args.begin() + 1, args.end()), out_error); in Execute()
211 Usage(out_error); in Execute()
221 *out_error << flag.name << " missing argument.\n\n"; in Execute()
222 Usage(out_error); in Execute()
236 *out_error << "unknown option '" << arg << "'.\n\n"; in Execute()
237 Usage(out_error); in Execute()
244 *out_error << "missing required flag " << flag.name << "\n\n"; in Execute()
245 Usage(out_error); in Execute()
H A DUtil.cpp249 std::string* out_error) { in ExtractCompiledString() argument
256 *out_error = "compiled value is an empty string"; in ExtractCompiledString()
260 *out_error = "compiled value is not a string"; in ExtractCompiledString()
268 *out_error = "value is an empty string"; in ExtractCompiledString()
281 *out_error = "compiled value is not an integer"; in ExtractCompiledInt()
292 *out_error = error_msg.str(); in ExtractCompiledInt()
296 static Maybe<int> ExtractSdkVersion(const xml::Attribute& attr, std::string* out_error) { in ExtractSdkVersion() argument
304 *out_error = "compiled value is not an integer or string"; in ExtractSdkVersion()
315 *out_error = "compiled string value is not a valid SDK version"; in ExtractSdkVersion()
318 *out_error = "compiled value is not an integer or string"; in ExtractSdkVersion()
[all …]
H A DCompile.cpp80 std::string* out_error, in ExtractResourcePathData() argument
84 if (out_error) *out_error = "bad resource path"; in ExtractResourcePathData()
97 if (out_error) { in ExtractResourcePathData()
100 *out_error = err_str.str(); in ExtractResourcePathData()
/aosp12/frameworks/base/tools/aapt2/util/
H A DFiles.cpp215 if (out_error) { in MmapPath()
216 *out_error = SystemErrorCodeToString(errno); in MmapPath()
223 if (out_error) { in MmapPath()
224 *out_error = SystemErrorCodeToString(errno); in MmapPath()
236 if (out_error) { in MmapPath()
237 *out_error = SystemErrorCodeToString(errno); in MmapPath()
245 std::string* out_error) { in AppendArgsFromFile() argument
248 if (out_error) { in AppendArgsFromFile()
249 *out_error = "failed to read argument-list file"; in AppendArgsFromFile()
264 std::string* out_error) { in AppendSetArgsFromFile() argument
[all …]
H A DFiles.h84 Maybe<android::FileMap> MmapPath(const std::string& path, std::string* out_error);
88 std::string* out_error);
92 std::unordered_set<std::string>* out_argset, std::string* out_error);
H A DUtil.h169 std::string* out_str, std::string* out_error);
/aosp12/frameworks/base/tools/aapt2/io/
H A DZipArchive.cpp96 const StringPiece& path, std::string* out_error) { in Create() argument
112 if (out_error) *out_error = ErrorCodeString(result); in Create()
119 if (out_error) *out_error = ErrorCodeString(result); in Create()
141 if (out_error) *out_error = ErrorCodeString(result); in Create()
/aosp12/frameworks/base/tools/aapt2/link/
H A DReferenceLinker.cpp295 std::string* out_error) { in ResolveSymbolCheckVisibility() argument
298 if (out_error) *out_error = "not found"; in ResolveSymbolCheckVisibility()
303 if (out_error) *out_error = "is private"; in ResolveSymbolCheckVisibility()
311 SymbolTable* symbols, std::string* out_error) { in ResolveAttributeCheckVisibility() argument
313 ResolveSymbolCheckVisibility(reference, callsite, context, symbols, out_error); in ResolveAttributeCheckVisibility()
319 if (out_error) *out_error = "is not an attribute"; in ResolveAttributeCheckVisibility()
329 std::string* out_error) { in CompileXmlAttribute() argument
331 ResolveAttributeCheckVisibility(reference, callsite, context, symbols, out_error); in CompileXmlAttribute()
337 if (out_error) *out_error = "is not an attribute"; in CompileXmlAttribute()
H A DReferenceLinker.h88 std::string* out_error);
96 std::string* out_error);
104 std::string* out_error);
/aosp12/frameworks/base/tools/aapt2/
H A DResourceUtils.cpp255 std::string* out_error) { in ParseStyleParentReference() argument
287 *out_error = err.str(); in ParseStyleParentReference()
295 *out_error = err.str(); in ParseStyleParentReference()
423 static uint32_t ParseHex(char c, bool* out_error) { in ParseHex() argument
431 *out_error = true; in ParseHex()
H A DResourceUtils.h119 Maybe<Reference> ParseStyleParentReference(const android::StringPiece& str, std::string* out_error);
/aosp12/frameworks/base/tools/aapt2/xml/
H A DXmlDom.cpp267 std::unique_ptr<XmlResource> Inflate(const void* data, size_t len, std::string* out_error) { in Inflate() argument
280 if (out_error != nullptr) { in Inflate()
281 *out_error = "failed to initialize ResXMLTree"; in Inflate()
H A DXmlDom.h165 std::string* out_error = nullptr);