Lines Matching refs:tree

217             ResXMLTree tree;  in doList()  local
218 tree.setTo(manifestAsset->getBuffer(true), in doList()
220 printXMLBlock(&tree); in doList()
232 static void printResolvedResourceAttribute(const ResTable& resTable, const ResXMLTree& tree, in printResolvedResourceAttribute() argument
236 AaptXml::getResolvedResourceAttribute(resTable, tree, attrRes, &value, outError); in printResolvedResourceAttribute()
242 String8 result = AaptXml::getResolvedAttribute(resTable, tree, attrRes, outError); in printResolvedResourceAttribute()
314 static void printCompatibleScreens(ResXMLTree& tree, String8* outError) { in printCompatibleScreens() argument
320 while ((code=tree.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in printCompatibleScreens()
332 const char16_t* ctag16 = tree.getElementName(&len); in printCompatibleScreens()
339 int32_t screenSize = AaptXml::getIntegerAttribute(tree, in printCompatibleScreens()
341 int32_t screenDensity = AaptXml::getIntegerAttribute(tree, in printCompatibleScreens()
415 ResXMLTree tree; in getNfcAidCategories() local
416 tree.setTo(aidAsset->getBuffer(true), aidAsset->getLength()); in getNfcAidCategories()
421 while ((code=tree.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in getNfcAidCategories()
424 const char16_t* ctag16 = tree.getElementName(&len); in getNfcAidCategories()
437 const char16_t* ctag16 = tree.getElementName(&len); in getNfcAidCategories()
450 String8 category = AaptXml::getAttribute(tree, CATEGORY_ATTR, &error); in getNfcAidCategories()
811 ResXMLTree tree(dynamicRefTable); in doDump() local
818 if (tree.setTo(asset->getBuffer(true), in doDump()
823 tree.restart(); in doDump()
824 printXMLBlock(&tree); in doDump()
825 tree.uninit(); in doDump()
844 ResXMLTree tree(dynamicRefTable); in doDump() local
845 if (tree.setTo(asset->getBuffer(true), in doDump()
850 printStringPool(&tree.getStrings()); in doDump()
862 ResXMLTree tree(dynamicRefTable); in doDump() local
863 if (tree.setTo(asset->getBuffer(true), in doDump()
868 tree.restart(); in doDump()
874 while ((code=tree.next()) != ResXMLTree::END_DOCUMENT && in doDump()
884 const char16_t* ctag16 = tree.getElementName(&len); in doDump()
886 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
894 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
898 String8 pkg = AaptXml::getAttribute(tree, NULL, "package", NULL); in doDump()
903 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error); in doDump()
905 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
911 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
919 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error); in doDump()
921 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
927 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
932 AaptXml::getIntegerAttribute(tree, REQUIRED_ATTR, 1) == 0, in doDump()
933 AaptXml::getIntegerAttribute(tree, MAX_SDK_VERSION_ATTR)); in doDump()
936 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error); in doDump()
938 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
944 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
950 AaptXml::getIntegerAttribute(tree, MAX_SDK_VERSION_ATTR)); in doDump()
1092 while ((code=tree.next()) != ResXMLTree::END_DOCUMENT && in doDump()
1205 const char16_t* ctag16 = tree.getElementName(&len); in doDump()
1207 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1215 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1219 pkg = AaptXml::getAttribute(tree, NULL, "package", NULL); in doDump()
1222 int32_t versionCode = AaptXml::getIntegerAttribute(tree, VERSION_CODE_ATTR, in doDump()
1225 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1235 String8 versionName = AaptXml::getResolvedAttribute(res, tree, in doDump()
1238 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1246 String8 splitName = AaptXml::getAttribute(tree, NULL, "split"); in doDump()
1252 String8 platformBuildVersionName = AaptXml::getAttribute(tree, NULL, in doDump()
1258 String8 platformBuildVersionCode = AaptXml::getAttribute(tree, NULL, in doDump()
1264 int32_t compileSdkVersion = AaptXml::getIntegerAttribute(tree, in doDump()
1267 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1276 String8 compileSdkVersionCodename = AaptXml::getResolvedAttribute(res, tree, in doDump()
1285 int32_t installLocation = AaptXml::getResolvedIntegerAttribute(res, tree, in doDump()
1288 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1322 String8 llabel = AaptXml::getResolvedAttribute(res, tree, LABEL_ATTR, in doDump()
1344 String8 icon = AaptXml::getResolvedAttribute(res, tree, ICON_ATTR, in doDump()
1353 String8 icon = AaptXml::getResolvedAttribute(res, tree, ICON_ATTR, &error); in doDump()
1355 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1359 int32_t testOnly = AaptXml::getIntegerAttribute(tree, TEST_ONLY_ATTR, 0, in doDump()
1362 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1368 String8 banner = AaptXml::getResolvedAttribute(res, tree, BANNER_ATTR, in doDump()
1371 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1387 int32_t isGame = AaptXml::getResolvedIntegerAttribute(res, tree, in doDump()
1390 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1398 int32_t debuggable = AaptXml::getResolvedIntegerAttribute(res, tree, in doDump()
1401 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1412 int32_t multiArchIndex = tree.indexOfAttribute(RESOURCES_ANDROID_NAMESPACE, in doDump()
1416 if (tree.getAttributeValue(multiArchIndex, &value) != NO_ERROR) { in doDump()
1424 int32_t code = AaptXml::getIntegerAttribute(tree, MIN_SDK_VERSION_ATTR, in doDump()
1428 String8 name = AaptXml::getResolvedAttribute(res, tree, in doDump()
1431 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1443 code = AaptXml::getIntegerAttribute(tree, MAX_SDK_VERSION_ATTR); in doDump()
1447 code = AaptXml::getIntegerAttribute(tree, TARGET_SDK_VERSION_ATTR, &error); in doDump()
1450 String8 name = AaptXml::getResolvedAttribute(res, tree, in doDump()
1453 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1468 int32_t reqTouchScreen = AaptXml::getIntegerAttribute(tree, in doDump()
1470 int32_t reqKeyboardType = AaptXml::getIntegerAttribute(tree, in doDump()
1472 int32_t reqHardKeyboard = AaptXml::getIntegerAttribute(tree, in doDump()
1474 int32_t reqNavigation = AaptXml::getIntegerAttribute(tree, in doDump()
1476 int32_t reqFiveWayNav = AaptXml::getIntegerAttribute(tree, in doDump()
1498 smallScreen = AaptXml::getIntegerAttribute(tree, in doDump()
1500 normalScreen = AaptXml::getIntegerAttribute(tree, in doDump()
1502 largeScreen = AaptXml::getIntegerAttribute(tree, in doDump()
1504 xlargeScreen = AaptXml::getIntegerAttribute(tree, in doDump()
1506 anyDensity = AaptXml::getIntegerAttribute(tree, in doDump()
1508 requiresSmallestWidthDp = AaptXml::getIntegerAttribute(tree, in doDump()
1510 compatibleWidthLimitDp = AaptXml::getIntegerAttribute(tree, in doDump()
1512 largestWidthLimitDp = AaptXml::getIntegerAttribute(tree, in doDump()
1517 group.label = AaptXml::getResolvedAttribute(res, tree, LABEL_ATTR, &error); in doDump()
1519 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1526 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error); in doDump()
1531 int32_t req = AaptXml::getIntegerAttribute(tree, REQUIRED_ATTR, 1, in doDump()
1534 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1540 int32_t version = AaptXml::getIntegerAttribute(tree, androidSchema, in doDump()
1543 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1554 int vers = AaptXml::getIntegerAttribute(tree, in doDump()
1563 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error); in doDump()
1565 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1571 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1579 AaptXml::getIntegerAttribute(tree, MAX_SDK_VERSION_ATTR, -1); in doDump()
1580 const String8 requiredFeature = AaptXml::getAttribute(tree, in doDump()
1582 const String8 requiredNotFeature = AaptXml::getAttribute(tree, in doDump()
1603 AaptXml::getIntegerAttribute(tree, REQUIRED_ATTR, 1) == 0, in doDump()
1607 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error); in doDump()
1609 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1615 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1623 name, AaptXml::getIntegerAttribute(tree, MAX_SDK_VERSION_ATTR)); in doDump()
1626 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error); in doDump()
1631 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1636 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error); in doDump()
1641 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1646 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error); in doDump()
1651 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1656 printCompatibleScreens(tree, &error); in doDump()
1658 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1664 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error); in doDump()
1666 String8 publicKey = AaptXml::getAttribute(tree, PUBLIC_KEY_ATTR, in doDump()
1694 activityName = AaptXml::getAttribute(tree, NAME_ATTR, &error); in doDump()
1696 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1702 activityLabel = AaptXml::getResolvedAttribute(res, tree, LABEL_ATTR, in doDump()
1705 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1711 activityIcon = AaptXml::getResolvedAttribute(res, tree, ICON_ATTR, in doDump()
1714 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1720 activityBanner = AaptXml::getResolvedAttribute(res, tree, BANNER_ATTR, in doDump()
1723 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1729 int32_t orien = AaptXml::getResolvedIntegerAttribute(res, tree, in doDump()
1749 String8 libraryName = AaptXml::getAttribute(tree, NAME_ATTR, &error); in doDump()
1751 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1756 int req = AaptXml::getIntegerAttribute(tree, in doDump()
1763 receiverName = AaptXml::getAttribute(tree, NAME_ATTR, &error); in doDump()
1766 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1772 String8 permission = AaptXml::getAttribute(tree, PERMISSION_ATTR, in doDump()
1779 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1786 serviceName = AaptXml::getAttribute(tree, NAME_ATTR, &error); in doDump()
1789 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1795 String8 permission = AaptXml::getAttribute(tree, PERMISSION_ATTR, in doDump()
1816 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1823 bool exported = AaptXml::getResolvedIntegerAttribute(res, tree, in doDump()
1826 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1833 res, tree, GRANT_URI_PERMISSIONS_ATTR, &error); in doDump()
1835 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1841 String8 permission = AaptXml::getResolvedAttribute(res, tree, in doDump()
1844 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1854 String8 metaDataName = AaptXml::getResolvedAttribute(res, tree, in doDump()
1857 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1864 printResolvedResourceAttribute(res, tree, VALUE_ATTR, String8("value"), in doDump()
1869 printResolvedResourceAttribute(res, tree, RESOURCE_ATTR, in doDump()
1872 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1881 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error); in doDump()
1885 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1895 String8 name = AaptXml::getResolvedAttribute(res, tree, NAME_ATTR, &error); in doDump()
1900 tree, androidSchema.string(), "version", 0, &error); in doDump()
1904 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1914 int vers = AaptXml::getIntegerAttribute(tree, GL_ES_VERSION_ATTR, in doDump()
1943 String8 name = AaptXml::getAttribute(tree, NAME_ATTR, &error); in doDump()
1945 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1959 String8 xmlPath = AaptXml::getResolvedAttribute(res, tree, in doDump()
1962 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1972 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
1992 action = AaptXml::getAttribute(tree, NAME_ATTR, &error); in doDump()
1994 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()
2048 String8 category = AaptXml::getAttribute(tree, NAME_ATTR, &error); in doDump()
2050 SourcePos(manifestFile, tree.getLineNumber()).error( in doDump()