Searched defs:tree (Results 1 - 8 of 8) sorted by relevance

/frameworks/base/tools/aapt/
H A DAaptXml.h31 ssize_t indexOfAttribute(const android::ResXMLTree& tree, uint32_t attrRes);
37 android::String8 getAttribute(const android::ResXMLTree& tree, const char* ns,
45 android::String8 getAttribute(const android::ResXMLTree& tree, uint32_t attrRes,
53 int32_t getIntegerAttribute(const android::ResXMLTree& tree, const char* ns,
61 inline int32_t getIntegerAttribute(const android::ResXMLTree& tree, const char* ns, argument
63 return getIntegerAttribute(tree, ns, attr, -1, outError);
71 int32_t getIntegerAttribute(const android::ResXMLTree& tree, uint32_t attrRes,
79 inline int32_t getIntegerAttribute(const android::ResXMLTree& tree, uint32_t attrRes, argument
81 return getIntegerAttribute(tree, attrRes, -1, outError);
90 const android::ResXMLTree& tree, uint32_
98 getResolvedIntegerAttribute(const android::ResTable& resTable, const android::ResXMLTree& tree, uint32_t attrRes, android::String8* outError) argument
[all...]
H A DAaptXml.cpp26 static String8 getStringAttributeAtIndex(const ResXMLTree& tree, ssize_t attrIndex, argument
29 if (tree.getAttributeValue(attrIndex, &value) < 0) {
44 const char16_t* str = tree.getAttributeStringValue(attrIndex, &len);
48 static int32_t getIntegerAttributeAtIndex(const ResXMLTree& tree, ssize_t attrIndex, argument
51 if (tree.getAttributeValue(attrIndex, &value) < 0) {
69 ssize_t indexOfAttribute(const ResXMLTree& tree, uint32_t attrRes) { argument
70 size_t attrCount = tree.getAttributeCount();
72 if (tree.getAttributeNameResID(i) == attrRes) {
79 String8 getAttribute(const ResXMLTree& tree, const char* ns, argument
81 ssize_t idx = tree
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 DCommand.cpp234 ResXMLTree tree; local
235 tree.setTo(manifestAsset->getBuffer(true),
237 printXMLBlock(&tree);
249 static void printResolvedResourceAttribute(const ResTable& resTable, const ResXMLTree& tree, argument
253 AaptXml::getResolvedResourceAttribute(resTable, tree, attrRes, &value, outError);
259 String8 result = AaptXml::getResolvedAttribute(resTable, tree, attrRes, outError);
327 static void printCompatibleScreens(ResXMLTree& tree, String8* outError) { argument
333 while ((code=tree.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) {
345 const char16_t* ctag16 = tree.getElementName(&len);
352 int32_t screenSize = AaptXml::getIntegerAttribute(tree,
406 ResXMLTree tree; local
[all...]
H A DResource.cpp950 static ssize_t extractPlatformBuildVersion(ResXMLTree& tree, Bundle* bundle) { argument
953 while ((code = tree.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) {
958 const char16_t* ctag16 = tree.getElementName(&len);
970 int32_t versionCode = AaptXml::getIntegerAttribute(tree, VERSION_CODE_ATTR, &error);
980 String8 versionName = AaptXml::getAttribute(tree, VERSION_NAME_ATTR, &error);
1003 ResXMLTree tree; local
1011 if (tree.setTo(asset->getBuffer(true), asset->getLength()) != NO_ERROR) {
1015 result = extractPlatformBuildVersion(tree, bundle);
2805 ResXMLTree tree; local
2830 err = parseXMLResource(assFile, &tree);
2909 ResXMLTree tree; local
[all...]
/frameworks/native/opengl/tools/glgen2/registry/
H A Dgenheaders.py97 tree = etree.parse(regFilename) variable
101 reg.loadElementTree(tree)
/frameworks/base/core/java/android/content/pm/
H A DPackageParser.java1286 // Only search the tree when the tag is directly below <manifest>
1485 } else if (tagName.equals("permission-tree")) {
2293 "<permission-tree>", sa,
2311 outError[0] = "<permission-tree> name has less than three segments: "
2319 perm.tree = true;
2321 if (!parseAllMetaData(res, parser, attrs, "<permission-tree>", perm,
2393 * Parse the {@code application} XML tree at the current parse location in a
2766 * Parse the {@code application} XML tree at the current parse location in a
4553 public boolean tree; field in class:PackageParser.Permission
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp979 ResXMLParser::ResXMLParser(const ResXMLTree& tree) argument
980 : mTree(tree), mEventCode(BAD_DOCUMENT)
/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageManagerService.java2473 + " is not allowed to add to permission tree "
2477 throw new SecurityException("No permission tree found for " + permName);
2516 int calculateCurrentPermissionFootprintLocked(BasePermission tree) { argument
2519 if (perm.uid == tree.uid) {
2526 void enforcePermissionCapLocked(PermissionInfo info, BasePermission tree) { argument
2529 if (tree.uid != Process.SYSTEM_UID) {
2530 final int curTreeSize = calculateCurrentPermissionFootprintLocked(tree);
2532 throw new SecurityException("Permission tree size cap exceeded");
2541 BasePermission tree = checkPermissionTreeLP(info.name);
2547 enforcePermissionCapLocked(info, tree);
[all...]

Completed in 758 milliseconds