/frameworks/base/tools/aapt/ |
H A D | AaptXml.h | 31 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 D | AaptXml.cpp | 26 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 D | Command.cpp | 234 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 D | Resource.cpp | 941 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 D | ResourceTable.cpp | 101 NOISY(ResXMLTree tree; 102 tree.setTo(target->getData(), target->getSize()); 103 printXMLBlock(&tree));
|
/frameworks/base/tools/layoutlib/rename_font/ |
H A D | test.py | 33 tree = etree.parse(ttx_path) 34 root = tree.getroot()
|
H A D | build_font_single.py | 93 tree = etree.parse(ttx_path) 94 root = tree.getroot() 97 tree.write(ttx_path, xml_declaration=True, encoding='utf-8')
|
H A D | build_font.py | 109 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 D | genheaders.py | 97 tree = etree.parse(regFilename) variable 101 reg.loadElementTree(tree)
|
H A D | reg.py | 479 # 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 D | PackageManagerService.java | 2445 + " 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 D | guide_toc.cs | 176 <li><a href="<?cs var:toroot ?>guide/topics/manifest/permission-tree-element.html"><permission-tree></a></li>
|
/frameworks/base/include/androidfw/ |
H A D | ResourceTypes.h | 541 * 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 D | PackageParser.java | 1275 // 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 D | ResourceTypes.cpp | 979 ResXMLParser::ResXMLParser(const ResXMLTree& tree) argument 980 : mTree(tree), mEventCode(BAD_DOCUMENT)
|