/frameworks/base/tools/aapt/ |
H A D | AaptXml.h | 38 const char* attr, android::String8* outError = NULL); 46 android::String8* outError = NULL); 54 const char* attr, int32_t defValue = -1, android::String8* outError = NULL); 62 const char* attr, android::String8* outError) { 63 return getIntegerAttribute(tree, ns, attr, -1, outError); 72 int32_t defValue = -1, android::String8* outError = NULL); 80 android::String8* outError) { 81 return getIntegerAttribute(tree, attrRes, -1, outError); 91 android::String8* outError = NULL); 100 android::String8* outError) { 61 getIntegerAttribute(const android::ResXMLTree& tree, const char* ns, const char* attr, android::String8* outError) argument 79 getIntegerAttribute(const android::ResXMLTree& tree, uint32_t attrRes, android::String8* outError) argument 98 getResolvedIntegerAttribute(const android::ResTable& resTable, const android::ResXMLTree& tree, uint32_t attrRes, android::String8* outError) argument [all...] |
H A D | AaptXml.cpp | 27 String8* outError) { 30 if (outError != NULL) { 31 *outError = "could not find attribute at index"; 37 if (outError != NULL) { 38 *outError = "attribute is not a string value"; 49 int32_t defValue, String8* outError) { 52 if (outError != NULL) { 53 *outError = "could not find attribute at index"; 60 if (outError != NULL) { 61 *outError 26 getStringAttributeAtIndex(const ResXMLTree& tree, ssize_t attrIndex, String8* outError) argument 48 getIntegerAttributeAtIndex(const ResXMLTree& tree, ssize_t attrIndex, int32_t defValue, String8* outError) argument 79 getAttribute(const ResXMLTree& tree, const char* ns, const char* attr, String8* outError) argument 88 getAttribute(const ResXMLTree& tree, uint32_t attrRes, String8* outError) argument 96 getResolvedAttribute(const ResTable& resTable, const ResXMLTree& tree, uint32_t attrRes, String8* outError) argument 123 getIntegerAttribute(const ResXMLTree& tree, const char* ns, const char* attr, int32_t defValue, String8* outError) argument 132 getIntegerAttribute(const ResXMLTree& tree, uint32_t attrRes, int32_t defValue, String8* outError) argument 141 getResolvedIntegerAttribute(const ResTable& resTable, const ResXMLTree& tree, uint32_t attrRes, int32_t defValue, String8* outError) argument 163 getResolvedResourceAttribute(const ResTable& resTable, const ResXMLTree& tree, uint32_t attrRes, Res_value* outValue, String8* outError) argument [all...] |
H A D | Images.cpp | 185 static int tick_type(png_bytep p, bool transparent, const char** outError) argument 202 *outError = "Frame pixels must be either solid or transparent (not intermediate alphas)"; 206 *outError = "Ticks in transparent frame must be black or red"; 212 *outError = "White frame must be a solid color (no alpha)"; 225 *outError = "Ticks in white frame must be black or red"; 239 int32_t* outLeft, int32_t* outRight, const char** outError, 248 if (TICK_TYPE_TICK == tick_type(row+i*4, transparent, outError)) { 259 *outError = "Can't have more than one marked region along edge"; 263 } else if (*outError == NULL) { 278 *outError 237 get_horizontal_ticks( png_bytep row, int width, bool transparent, bool required, int32_t* outLeft, int32_t* outRight, const char** outError, uint8_t* outDivs, bool multipleAllowed) argument 286 get_vertical_ticks( png_bytepp rows, int offset, int height, bool transparent, bool required, int32_t* outTop, int32_t* outBottom, const char** outError, uint8_t* outDivs, bool multipleAllowed) argument 335 get_horizontal_layout_bounds_ticks( png_bytep row, int width, bool transparent, bool , int32_t* outLeft, int32_t* outRight, const char** outError) argument 373 get_vertical_layout_bounds_ticks( png_bytepp rows, int offset, int height, bool transparent, bool , int32_t* outTop, int32_t* outBottom, const char** outError) argument [all...] |
H A D | Command.cpp | 251 uint32_t attrRes, String8 attrLabel, String8* outError) 254 AaptXml::getResolvedResourceAttribute(resTable, tree, attrRes, &value, outError); 255 if (*outError != "") { 256 *outError = "error print resolved resource attribute"; 260 String8 result = AaptXml::getResolvedAttribute(resTable, tree, attrRes, outError); 328 static void printCompatibleScreens(ResXMLTree& tree, String8* outError) { argument 348 *outError = "failed to get XML element name (bad string pool)"; 403 String8 *outError = NULL) 407 if (outError != NULL) *outError 250 printResolvedResourceAttribute(const ResTable& resTable, const ResXMLTree& tree, uint32_t attrRes, String8 attrLabel, String8* outError) argument [all...] |
/frameworks/base/tools/aapt2/ |
H A D | Flags.cpp | 114 std::ostream* outError) { 123 usage(command, outError); 133 *outError << flag.name << " missing argument.\n\n"; 134 usage(command, outError); 148 *outError << "unknown option '" << arg << "'.\n\n"; 149 usage(command, outError); 156 *outError << "missing required flag " << flag.name << "\n\n"; 157 usage(command, outError); 113 parse(const StringPiece& command, const std::vector<StringPiece>& args, std::ostream* outError) argument
|
H A D | ResourceUtils.cpp | 188 Maybe<Reference> parseStyleParentReference(const StringPiece16& str, std::string* outError) { argument 220 *outError = err.str(); 228 *outError = err.str(); 322 static uint32_t parseHex(char16_t c, bool* outError) { argument 330 *outError = true;
|
/frameworks/base/tools/aapt2/io/ |
H A D | ZipArchive.cpp | 77 std::string* outError) { 91 if (outError) *outError = ErrorCodeString(result); 98 if (outError) *outError = ErrorCodeString(result); 117 if (outError) *outError = ErrorCodeString(result); 76 create(const StringPiece& path, std::string* outError) argument
|
/frameworks/base/tools/aapt2/link/ |
H A D | ReferenceLinker.cpp | 196 CallSite* callSite, std::string* outError) { 199 if (outError) *outError = "not found"; 204 if (outError) *outError = "is private"; 212 CallSite* callSite, std::string* outError) { 215 outError); 221 if (outError) *outError = "is not an attribute"; 231 std::string* outError) { 194 resolveSymbolCheckVisibility( const Reference& reference, NameMangler* nameMangler, SymbolTable* symbols, CallSite* callSite, std::string* outError) argument 210 resolveAttributeCheckVisibility( const Reference& reference, NameMangler* nameMangler, SymbolTable* symbols, CallSite* callSite, std::string* outError) argument 227 compileXmlAttribute(const Reference& reference, NameMangler* nameMangler, SymbolTable* symbols, CallSite* callSite, std::string* outError) argument [all...] |
H A D | Link.cpp | 837 std::string* outError) { 839 input, outError); 836 loadStaticLibrary(const std::string& input, std::string* outError) argument
|
/frameworks/base/tools/aapt2/util/ |
H A D | Files.cpp | 68 std::vector<std::string> listFiles(const StringPiece& root, std::string* outError) { argument 71 if (outError) { 74 *outError = errorStr.str(); 166 Maybe<android::FileMap> mmapPath(const StringPiece& path, std::string* outError) { argument 169 if (outError) *outError = strerror(errno); 177 if (outError) *outError = strerror(errno); 188 if (outError) *outError 194 appendArgsFromFile(const StringPiece& path, std::vector<std::string>* outArgList, std::string* outError) argument [all...] |
/frameworks/base/tools/aapt2/compile/ |
H A D | Compile.cpp | 62 std::string* outError) { 65 if (outError) *outError = "bad resource path"; 78 if (outError) { 81 *outError = errStr.str(); 61 extractResourcePathData(const std::string& path, std::string* outError) argument
|
H A D | Png.cpp | 607 static TickType tickType(png_bytep p, bool transparent, const char** outError) { argument 623 *outError = "Frame pixels must be either solid or transparent " 629 *outError = "Ticks in transparent frame must be black or red"; 635 *outError = "White frame must be a solid color (no alpha)"; 648 *outError = "Ticks in white frame must be black or red"; 661 int32_t* outLeft, int32_t* outRight, const char** outError, 668 if (tickType(row+i*4, transparent, outError) == TickType::kTick) { 679 *outError = "Can't have more than one marked region along edge"; 683 } else if (!*outError) { 698 *outError 660 getHorizontalTicks(png_bytep row, int width, bool transparent, bool required, int32_t* outLeft, int32_t* outRight, const char** outError, uint8_t* outDivs, bool multipleAllowed) argument 705 getVerticalTicks(png_bytepp rows, int offset, int height, bool transparent, bool required, int32_t* outTop, int32_t* outBottom, const char** outError, uint8_t* outDivs, bool multipleAllowed) argument 750 getHorizontalLayoutBoundsTicks(png_bytep row, int width, bool transparent, bool , int32_t* outLeft, int32_t* outRight, const char** outError) argument 783 getVerticalLayoutBoundsTicks(png_bytepp rows, int offset, int height, bool transparent, bool , int32_t* outTop, int32_t* outBottom, const char** outError) argument 940 do9Patch(PngInfo* image, std::string* outError) argument [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ProcessStatsService.java | 394 String[] outError) { 407 outError[0] = "inconsistent separators (can't mix ',' with '+')"; 420 outError[0] = "invalid word \"" + str + "\""; 393 parseStateList(String[] states, int mult, String arg, boolean[] outSep, String[] outError) argument
|
/frameworks/base/core/java/android/content/pm/ |
H A D | PackageParser.java | 129 // TODO: switch outError users to PackageParserException 269 final String[] outError; field in class:PackageParser.ParsePackageItemArgs 282 outError = _outError; 931 final String[] outError = new String[1]; 932 final Package pkg = parseBaseApk(res, parser, flags, outError); 935 apkPath + " (at " + parser.getPositionDescription() + "): " + outError[0]); 974 final String[] outError = new String[1]; 975 pkg = parseSplitApk(pkg, res, parser, flags, splitIndex, outError); 978 apkPath + " (at " + parser.getPositionDescription() + "): " + outError[0]); 999 int splitIndex, String[] outError) throw 998 parseSplitApk(Package pkg, Resources res, XmlResourceParser parser, int flags, int splitIndex, String[] outError) argument 1522 parseBaseApkChild(Package parentPkg, Resources res, XmlResourceParser parser, int flags, String[] outError) argument 1598 parseBaseApk(Resources res, XmlResourceParser parser, int flags, String[] outError) argument 1659 parseBaseApkCommon(Package pkg, Set<String> acceptedTags, Resources res, XmlResourceParser parser, int flags, String[] outError) argument 2271 buildClassName(String pkg, CharSequence clsSeq, String[] outError) argument 2295 buildCompoundName(String pkg, CharSequence procSeq, String type, String[] outError) argument 2323 buildProcessName(String pkg, String defProc, CharSequence procSeq, int flags, String[] separateProcesses, String[] outError) argument 2343 buildTaskAffinityName(String pkg, String defProc, CharSequence procSeq, String[] outError) argument 2354 parseKeySets(Package owner, Resources res, XmlResourceParser parser, String[] outError) argument 2499 parsePermissionGroup(Package owner, int flags, Resources res, XmlResourceParser parser, String[] outError) argument 2543 parsePermission(Package owner, Resources res, XmlResourceParser parser, String[] outError) argument 2612 parsePermissionTree(Package owner, Resources res, XmlResourceParser parser, String[] outError) argument 2660 parseInstrumentation(Package owner, Resources res, XmlResourceParser parser, String[] outError) argument 2727 parseBaseApplication(Package owner, Resources res, XmlResourceParser parser, int flags, String[] outError) argument 3204 parseSplitApplication(Package owner, Resources res, XmlResourceParser parser, int flags, int splitIndex, String[] outError) argument 3335 parsePackageItemInfo(Package owner, PackageItemInfo outInfo, String[] outError, String tag, TypedArray sa, int nameRes, int labelRes, int iconRes, int logoRes, int bannerRes) argument 3376 parseActivity(Package owner, Resources res, XmlResourceParser parser, int flags, String[] outError, boolean receiver, boolean hardwareAccelerated) argument 3734 parseActivityAlias(Package owner, Resources res, XmlResourceParser parser, int flags, String[] outError) argument 3904 parseProvider(Package owner, Resources res, XmlResourceParser parser, int flags, String[] outError) argument 4041 parseProviderTags(Resources res, XmlResourceParser parser, Provider outInfo, String[] outError) argument 4223 parseService(Package owner, Resources res, XmlResourceParser parser, int flags, String[] outError) argument 4358 parseAllMetaData(Resources res, XmlResourceParser parser, String tag, Component<?> outInfo, String[] outError) argument 4390 parseMetaData(Resources res, XmlResourceParser parser, Bundle data, String[] outError) argument 4533 parseIntent(Resources res, XmlResourceParser parser, boolean allowGlobs, boolean allowAutoVerify, IntentInfo outInfo, String[] outError) argument [all...] |
/frameworks/base/libs/androidfw/ |
H A D | ResourceTypes.cpp | 4781 static uint32_t get_hex(char c, bool* outError) argument 4790 *outError = true;
|