Lines Matching refs:tree

1071 static ssize_t extractPlatformBuildVersion(const ResTable& table, ResXMLTree& tree, Bundle* bundle)…  in extractPlatformBuildVersion()  argument
1079 while ((code = tree.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in extractPlatformBuildVersion()
1084 const char16_t* ctag16 = tree.getElementName(&len); in extractPlatformBuildVersion()
1096 int32_t versionCode = AaptXml::getIntegerAttribute(tree, VERSION_CODE_ATTR, &error); in extractPlatformBuildVersion()
1110 String8 versionName = AaptXml::getAttribute(tree, VERSION_NAME_ATTR, &error); in extractPlatformBuildVersion()
1149 ResXMLTree tree; in extractPlatformBuildVersion() local
1150 if (tree.setTo(asset->getBuffer(true), asset->getLength()) != NO_ERROR) { in extractPlatformBuildVersion()
1154 result = extractPlatformBuildVersion(assets.getResources(true), tree, bundle); in extractPlatformBuildVersion()
3005 ResXMLTree tree; in writeProguardForAndroidManifest() local
3031 err = parseXMLResource(assFile, &tree); in writeProguardForAndroidManifest()
3036 tree.restart(); in writeProguardForAndroidManifest()
3038 while ((code=tree.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in writeProguardForAndroidManifest()
3050 String8 tag(tree.getElementName(&len)); in writeProguardForAndroidManifest()
3058 pkg = AaptXml::getAttribute(tree, NULL, "package"); in writeProguardForAndroidManifest()
3064 String8 agent = AaptXml::getAttribute(tree, in writeProguardForAndroidManifest()
3069 assFile->getPrintableSource(), tree.getLineNumber()); in writeProguardForAndroidManifest()
3073 defaultProcess = AaptXml::getAttribute(tree, in writeProguardForAndroidManifest()
3089 String8 componentProcess = AaptXml::getAttribute(tree, in writeProguardForAndroidManifest()
3103 String8 name = AaptXml::getAttribute(tree, in writeProguardForAndroidManifest()
3114 assFile->getPrintableSource(), tree.getLineNumber()); in writeProguardForAndroidManifest()
3135 ResXMLTree tree; in writeProguardForXml() local
3139 err = parseXMLResource(layoutFile, &tree); in writeProguardForXml()
3144 tree.restart(); in writeProguardForXml()
3148 while ((code=tree.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in writeProguardForXml()
3152 String8 tag(tree.getElementName(&len)); in writeProguardForXml()
3166 while ((code=tree.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in writeProguardForXml()
3170 String8 tag(tree.getElementName(&len)); in writeProguardForXml()
3175 layoutFile->getPrintableSource(), tree.getLineNumber()); in writeProguardForXml()
3183 ssize_t attrIndex = tree.indexOfAttribute(nsAttr.ns, nsAttr.attr); in writeProguardForXml()
3191 … String8(tree.getAttributeStringValue(attrIndex, &len)), NULL, in writeProguardForXml()
3192 layoutFile->getPrintableSource(), tree.getLineNumber()); in writeProguardForXml()
3197 ssize_t attrIndex = tree.indexOfAttribute(RESOURCES_ANDROID_NAMESPACE, "onClick"); in writeProguardForXml()
3201 String8(tree.getAttributeStringValue(attrIndex, &len)), NULL, in writeProguardForXml()
3202 layoutFile->getPrintableSource(), tree.getLineNumber()); in writeProguardForXml()