Searched refs:tree (Results 1 - 15 of 15) 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 uint16_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);
326 static void printCompatibleScreens(ResXMLTree& tree, String8* outError) { argument
332 while ((code=tree.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) {
344 const char16_t* ctag16 = tree.getElementName(&len);
351 int32_t screenSize = AaptXml::getIntegerAttribute(tree,
405 ResXMLTree tree; local
[all...]
H A DResource.cpp941 static ssize_t extractPlatformBuildVersion(ResXMLTree& tree, Bundle* bundle) { argument
944 while ((code = tree.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) {
949 const char16_t* ctag16 = tree.getElementName(&len);
961 int32_t versionCode = AaptXml::getIntegerAttribute(tree, VERSION_CODE_ATTR, &error);
971 String8 versionName = AaptXml::getAttribute(tree, VERSION_NAME_ATTR, &error);
994 ResXMLTree tree; local
1002 if (tree.setTo(asset->getBuffer(true), asset->getLength()) != NO_ERROR) {
1006 result = extractPlatformBuildVersion(tree, bundle);
2723 ResXMLTree tree; local
2748 err = parseXMLResource(assFile, &tree);
2827 ResXMLTree tree; local
[all...]
H A DResourceTable.cpp101 NOISY(ResXMLTree tree;
102 tree.setTo(target->getData(), target->getSize());
103 printXMLBlock(&tree));
/frameworks/base/tools/layoutlib/rename_font/
H A Dtest.py33 tree = etree.parse(ttx_path)
34 root = tree.getroot()
H A Dbuild_font_single.py93 tree = etree.parse(ttx_path)
94 root = tree.getroot()
97 tree.write(ttx_path, xml_declaration=True, encoding='utf-8')
H A Dbuild_font.py109 tree = etree.parse(ttx_path)
110 root = tree.getroot()
113 tree.write(ttx_path, xml_declaration=True, encoding='utf-8')
/frameworks/native/opengl/tools/glgen2/registry/
H A Dgenheaders.py97 tree = etree.parse(regFilename) variable
101 reg.loadElementTree(tree)
H A Dreg.py479 # Done by walking the tree for <proto> element by element.
498 # a <param> node without the tags. No tree walking required
644 # tree - ElementTree containing the root <registry>
678 self.tree = None
691 def loadElementTree(self, tree):
693 self.tree = tree
697 self.tree = etree.parse(file)
739 self.reg = self.tree.getroot()
832 # write(etree.tostring(self.tree
[all...]
/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageManagerService.java2445 + " is not allowed to add to permission tree "
2449 throw new SecurityException("No permission tree found for " + permName);
2488 int calculateCurrentPermissionFootprintLocked(BasePermission tree) { argument
2491 if (perm.uid == tree.uid) {
2498 void enforcePermissionCapLocked(PermissionInfo info, BasePermission tree) { argument
2501 if (tree.uid != Process.SYSTEM_UID) {
2502 final int curTreeSize = calculateCurrentPermissionFootprintLocked(tree);
2504 throw new SecurityException("Permission tree size cap exceeded");
2513 BasePermission tree = checkPermissionTreeLP(info.name);
2519 enforcePermissionCapLocked(info, tree);
[all...]
/frameworks/base/docs/html/guide/
H A Dguide_toc.cs176 <li><a href="<?cs var:toroot ?>guide/topics/manifest/permission-tree-element.html">&lt;permission-tree&gt;</a></li>
/frameworks/base/include/androidfw/
H A DResourceTypes.h541 * XML tree header. This appears at the front of an XML tree,
553 * Basic XML tree node. A single item in the XML document. Extended info
568 * Extended XML tree node for CDATA tags -- includes the CDATA string.
581 * Extended XML tree node for namespace start/end nodes.
594 * Extended XML tree node for element start/end nodes.
608 * Extended XML tree node for start tags -- includes attribute
662 ResXMLParser(const ResXMLTree& tree);
/frameworks/base/core/java/android/content/pm/
H A DPackageParser.java1275 // Only search the tree when the tag is directly below <manifest>
1472 } else if (tagName.equals("permission-tree")) {
2280 "<permission-tree>", sa,
2298 outError[0] = "<permission-tree> name has less than three segments: "
2306 perm.tree = true;
2308 if (!parseAllMetaData(res, parser, attrs, "<permission-tree>", perm,
2380 * Parse the {@code application} XML tree at the current parse location in a
2753 * Parse the {@code application} XML tree at the current parse location in a
4530 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)

Completed in 440 milliseconds