Searched refs:tree (Results 1 - 25 of 61) sorted by relevance

123

/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 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 DCommand.cpp235 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 DResource.cpp978 static ssize_t extractPlatformBuildVersion(ResXMLTree& tree, Bundle* bundle) { argument
981 while ((code = tree.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) {
986 const char16_t* ctag16 = tree.getElementName(&len);
998 int32_t versionCode = AaptXml::getIntegerAttribute(tree, VERSION_CODE_ATTR, &error);
1008 String8 versionName = AaptXml::getAttribute(tree, VERSION_NAME_ATTR, &error);
1031 ResXMLTree tree; local
1039 if (tree.setTo(asset->getBuffer(true), asset->getLength()) != NO_ERROR) {
1043 result = extractPlatformBuildVersion(tree, bundle);
2841 ResXMLTree tree; local
2867 err = parseXMLResource(assFile, &tree);
2971 ResXMLTree tree; local
[all...]
/frameworks/base/tools/aapt2/flatten/
H A DXmlFlattener_test.cpp77 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 Dpublic_attr_map.py26 tree = None variable
28 tree = ET.parse(f) variable
31 for node in tree.iter('public'):
/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/data-binding/extensions/library/
H A Dbuild.gradle158 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 DXMLParserVisitor.java5 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 DXMLParserBaseListener.java7 import org.antlr.v4.runtime.tree.ErrorNode;
8 import org.antlr.v4.runtime.tree.TerminalNode;
H A DXMLParserBaseVisitor.java5 import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
H A DXMLParserListener.java5 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 DOMANode.java150 throw new IOException("Bad OMA tree");
H A DMOTree.java58 * 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 Dandroid_graphics_drawable_VectorDrawable.cpp35 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 Dandroid_graphics_drawable_AnimatedVectorDrawable.cpp134 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(nativePtr); local
135 RootAlphaPropertyValuesHolder* newHolder = new RootAlphaPropertyValuesHolder(tree,
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/
H A DExpressionParser.java27 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/libs/hwui/
H A DPropertyValuesHolder.h110 RootAlphaPropertyValuesHolder(VectorDrawable::Tree* tree, float startValue, float endValue) argument
111 : mTree(tree)
/frameworks/base/tests/UiBench/
H A DAndroid.mk9 # use appcompat/support lib from the tree, so improvements/
/frameworks/base/packages/Osu/src/com/android/hotspot2/omadm/
H A DMOTree.java228 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 DXmlDom.cpp238 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/minikin/tests/
H A DFontTestUtils.cpp17 #include <libxml/tree.h>
/frameworks/data-binding/compilerCommon/src/main/grammar-gen/android/databinding/parser/
H A DBindingExpressionBaseListener.java7 import org.antlr.v4.runtime.tree.ErrorNode;
8 import org.antlr.v4.runtime.tree.TerminalNode;

Completed in 8899 milliseconds

123