/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 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 D | Command.cpp | 235 ResXMLTree tree; local 236 tree.setTo(manifestAsset->getBuffer(true), 238 printXMLBlock(&tree); 250 static void printResolvedResourceAttribute(const ResTable& resTable, const ResXMLTree& tree, argument 254 AaptXml::getResolvedResourceAttribute(resTable, tree, attrRes, &value, outError); 260 String8 result = AaptXml::getResolvedAttribute(resTable, tree, attrRes, outError); 328 static void printCompatibleScreens(ResXMLTree& tree, String8* outError) { argument 334 while ((code=tree.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { 346 const char16_t* ctag16 = tree.getElementName(&len); 353 int32_t screenSize = AaptXml::getIntegerAttribute(tree, 417 ResXMLTree tree; local [all...] |
H A D | Resource.cpp | 983 static ssize_t extractPlatformBuildVersion(ResXMLTree& tree, Bundle* bundle) { argument 986 while ((code = tree.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { 991 const char16_t* ctag16 = tree.getElementName(&len); 1003 int32_t versionCode = AaptXml::getIntegerAttribute(tree, VERSION_CODE_ATTR, &error); 1013 String8 versionName = AaptXml::getAttribute(tree, VERSION_NAME_ATTR, &error); 1047 ResXMLTree tree; local 1048 if (tree.setTo(asset->getBuffer(true), asset->getLength()) != NO_ERROR) { 1052 result = extractPlatformBuildVersion(tree, bundle); 2855 ResXMLTree tree; local 2881 err = parseXMLResource(assFile, &tree); 2985 ResXMLTree tree; local [all...] |
/frameworks/base/tools/aapt2/flatten/ |
H A D | XmlFlattener_test.cpp | 77 android::ResXMLTree tree; 78 ASSERT_TRUE(flatten(doc.get(), &tree)); 80 ASSERT_EQ(tree.next(), android::ResXMLTree::START_NAMESPACE); 83 const char16_t* namespacePrefix = tree.getNamespacePrefix(&len); 86 const char16_t* namespaceUri = tree.getNamespaceUri(&len); 89 ASSERT_EQ(tree.next(), android::ResXMLTree::START_TAG); 91 ASSERT_EQ(tree.getElementNamespace(&len), nullptr); 92 const char16_t* tagName = tree.getElementName(&len); 95 ASSERT_EQ(1u, tree.getAttributeCount()); 96 ASSERT_EQ(tree [all...] |
/frameworks/base/tools/aapt2/ |
H A D | public_attr_map.py | 26 tree = None variable 28 tree = ET.parse(f) variable 31 for node in tree.iter('public'):
|
/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/data-binding/extensions/library/ |
H A D | build.gradle | 158 FileTree tree = project.fileTree(dir: it.getFile()) 159 tree.include '**/*.class' 160 tree.exclude 'android/databinding/DataBindingComponent.*' 161 tree.exclude 'android/databinding/DataBinderMapper.*' 162 tree.copy {
|
/frameworks/data-binding/compilerCommon/src/main/xml-gen/android/databinding/parser/ |
H A D | XMLParserVisitor.java | 5 import org.antlr.v4.runtime.tree.ParseTreeVisitor; 8 * This interface defines a complete generic visitor for a parse tree produced 16 * Visit a parse tree produced by {@link XMLParser#content}. 17 * @param ctx the parse tree 23 * Visit a parse tree produced by {@link XMLParser#element}. 24 * @param ctx the parse tree 30 * Visit a parse tree produced by {@link XMLParser#prolog}. 31 * @param ctx the parse tree 37 * Visit a parse tree produced by {@link XMLParser#document}. 38 * @param ctx the parse tree [all...] |
H A D | XMLParserBaseListener.java | 7 import org.antlr.v4.runtime.tree.ErrorNode; 8 import org.antlr.v4.runtime.tree.TerminalNode;
|
H A D | XMLParserBaseVisitor.java | 5 import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
|
H A D | XMLParserListener.java | 5 import org.antlr.v4.runtime.tree.ParseTreeListener; 8 * This interface defines a complete listener for a parse tree produced by 13 * Enter a parse tree produced by {@link XMLParser#content}. 14 * @param ctx the parse tree 18 * Exit a parse tree produced by {@link XMLParser#content}. 19 * @param ctx the parse tree 24 * Enter a parse tree produced by {@link XMLParser#element}. 25 * @param ctx the parse tree 29 * Exit a parse tree produced by {@link XMLParser#element}. 30 * @param ctx the parse tree [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/ |
H A D | OMANode.java | 150 throw new IOException("Bad OMA tree");
|
H A D | MOTree.java | 58 * Build a Passpoint OMA-DM Management Object tree object. 59 * @param urn The URN for the tree. 60 * @param rev The DTD revision for the tree. 61 * @param root The OMA-DM tree root, in all practical cases the PerProviderSubscription 232 out.write("tree ".getBytes(StandardCharsets.UTF_8)); 240 StringBuilder tree = new StringBuilder(); 246 tree.append((char) octet); 252 if (!tree.toString().equals("tree")) { 253 throw new IOException("Not a tree [all...] |
/frameworks/base/core/jni/ |
H A D | android_graphics_drawable_VectorDrawable.cpp | 35 VectorDrawable::Tree* tree = new VectorDrawable::Tree(rootGroup); local 36 return reinterpret_cast<jlong>(tree); 42 VectorDrawable::Tree* tree = new VectorDrawable::Tree(treeToCopy, rootGroup); local 43 return reinterpret_cast<jlong>(tree); 95 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(treePtr); local 96 tree->setAllowCaching(allowCaching); 104 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(treePtr); local 109 return tree->draw(canvas, colorFilter, rect, needsMirroring, canReuseCache); 117 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(treePtr); local 118 tree 122 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(treePtr); local 127 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(treePtr); local [all...] |
H A D | android_graphics_drawable_AnimatedVectorDrawable.cpp | 101 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(vectorDrawablePtr); local 103 set->setVectorDrawable(tree); 142 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(nativePtr); local 143 RootAlphaPropertyValuesHolder* newHolder = new RootAlphaPropertyValuesHolder(tree,
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/ |
H A D | ExpressionParser.java | 27 import org.antlr.v4.runtime.tree.ErrorNode; 28 import org.antlr.v4.runtime.tree.ParseTreeListener; 29 import org.antlr.v4.runtime.tree.TerminalNode;
|
/frameworks/base/tests/UiBench/ |
H A D | Android.mk | 9 # use appcompat/support lib from the tree, so improvements/
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/omadm/ |
H A D | MOTree.java | 228 out.write("tree ".getBytes(StandardCharsets.UTF_8)); 236 StringBuilder tree = new StringBuilder(); 242 tree.append((char) octet); 248 if (!tree.toString().equals("tree")) { 249 throw new IOException("Not a tree: " + tree); 255 throw new IOException("Expected URN in tree definition");
|
/frameworks/base/tools/aapt2/xml/ |
H A D | XmlDom.cpp | 238 ResXMLTree tree; local 239 if (tree.setTo(data, dataLen) != NO_ERROR) { 244 while ((code = tree.next()) != ResXMLParser::BAD_DOCUMENT && 251 const char16_t* str16 = tree.getNamespacePrefix(&len); 256 str16 = tree.getNamespaceUri(&len); 267 const char16_t* str16 = tree.getElementNamespace(&len); 272 str16 = tree.getElementName(&len); 277 copyAttributes(node.get(), &tree); 286 const char16_t* str16 = tree.getText(&len); 306 newNode->lineNumber = tree [all...] |
/frameworks/base/libs/hwui/ |
H A D | PropertyValuesHolder.h | 150 RootAlphaPropertyValuesHolder(VectorDrawable::Tree* tree, float startValue, float endValue) argument 152 , mTree(tree) {
|
/frameworks/minikin/tests/ |
H A D | FontTestUtils.cpp | 17 #include <libxml/tree.h>
|
/frameworks/data-binding/compilerCommon/src/main/grammar-gen/android/databinding/parser/ |
H A D | BindingExpressionBaseListener.java | 7 import org.antlr.v4.runtime.tree.ErrorNode; 8 import org.antlr.v4.runtime.tree.TerminalNode;
|