Searched refs:tree (Results 1 - 25 of 59) 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);
330 static void printCompatibleScreens(ResXMLTree& tree, String8* outError) { argument
336 while ((code=tree.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) {
348 const char16_t* ctag16 = tree.getElementName(&len);
355 int32_t screenSize = AaptXml::getIntegerAttribute(tree,
431 ResXMLTree tree; local
[all...]
/frameworks/base/tools/aapt2/flatten/
H A DXmlFlattener_test.cpp82 android::ResXMLTree tree;
83 ASSERT_TRUE(Flatten(doc.get(), &tree));
85 ASSERT_EQ(android::ResXMLTree::START_NAMESPACE, tree.next());
88 const char16_t* namespace_prefix = tree.getNamespacePrefix(&len);
91 const char16_t* namespace_uri = tree.getNamespaceUri(&len);
94 ASSERT_EQ(android::ResXMLTree::START_TAG, tree.next());
96 ASSERT_EQ(nullptr, tree.getElementNamespace(&len));
97 const char16_t* tag_name = tree.getElementName(&len);
100 ASSERT_EQ(1u, tree.getAttributeCount());
101 ASSERT_EQ(nullptr, tree
[all...]
/frameworks/base/tools/aapt2/tools/
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/aapt2/
H A DDominatorTree_test.cpp41 std::string ToString(DominatorTree* tree) { argument
44 tree->Accept(this);
81 DominatorTree tree(configs);
88 EXPECT_EQ(expected, printer.ToString(&tree));
105 DominatorTree tree(configs);
113 EXPECT_EQ(expected, printer.ToString(&tree));
146 DominatorTree tree(configs);
160 EXPECT_EQ(expected, printer.ToString(&tree));
/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/compilerCommon/src/main/xml-gen/android/databinding/parser/
H A DXMLParserVisitor.java3 import org.antlr.v4.runtime.tree.ParseTreeVisitor;
6 * This interface defines a complete generic visitor for a parse tree produced
14 * Visit a parse tree produced by {@link XMLParser#document}.
15 * @param ctx the parse tree
20 * Visit a parse tree produced by {@link XMLParser#prolog}.
21 * @param ctx the parse tree
26 * Visit a parse tree produced by {@link XMLParser#content}.
27 * @param ctx the parse tree
32 * Visit a parse tree produced by {@link XMLParser#element}.
33 * @param ctx the parse tree
[all...]
H A DXMLParserBaseListener.java5 import org.antlr.v4.runtime.tree.ErrorNode;
6 import org.antlr.v4.runtime.tree.TerminalNode;
H A DXMLParserBaseVisitor.java3 import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
H A DXMLParserListener.java3 import org.antlr.v4.runtime.tree.ParseTreeListener;
6 * This interface defines a complete listener for a parse tree produced by
11 * Enter a parse tree produced by {@link XMLParser#document}.
12 * @param ctx the parse tree
16 * Exit a parse tree produced by {@link XMLParser#document}.
17 * @param ctx the parse tree
21 * Enter a parse tree produced by {@link XMLParser#prolog}.
22 * @param ctx the parse tree
26 * Exit a parse tree produced by {@link XMLParser#prolog}.
27 * @param ctx the parse tree
[all...]
/frameworks/data-binding/extensions/library/
H A Dbuild.gradle160 FileTree tree = project.fileTree(dir: it.getFile())
161 tree.include '**/*.class'
162 tree.exclude 'android/databinding/DataBindingComponent.*'
163 tree.exclude 'android/databinding/DataBinderMapper.*'
164 tree.copy {
/frameworks/base/tests/TouchLatency/
H A DAndroid.mk11 # use appcompat/support lib from the tree, so improvements/
/frameworks/base/tools/aapt2/optimize/
H A DResourceDeduper.cpp31 * Based on the dominator tree, we can remove a value of an entry if:
94 DominatorTree tree(entry->values);
96 tree.Accept(&remover);
/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.cpp102 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(vectorDrawablePtr); local
104 set->setVectorDrawable(tree);
143 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(nativePtr); local
144 RootAlphaPropertyValuesHolder* newHolder = new RootAlphaPropertyValuesHolder(tree,
/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaRecordingCanvas.cpp122 VectorDrawable(VectorDrawableRoot* tree) : mRoot(tree) {} argument
151 void SkiaRecordingCanvas::drawVectorDrawable(VectorDrawableRoot* tree) { argument
152 drawDrawable(mDisplayList->allocateDrawable<VectorDrawable>(tree));
153 mDisplayList->mVectorDrawables.push_back(tree);
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/
H A DExpressionParser.java26 import org.antlr.v4.runtime.tree.ErrorNode;
27 import org.antlr.v4.runtime.tree.ParseTreeListener;
28 import org.antlr.v4.runtime.tree.TerminalNode;
/frameworks/base/tests/UiBench/
H A DAndroid.mk11 # 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.cpp272 ResXMLTree tree; local
273 if (tree.setTo(data, data_len) != NO_ERROR) {
278 while ((code = tree.next()) != ResXMLParser::BAD_DOCUMENT &&
285 const char16_t* str16 = tree.getNamespacePrefix(&len);
290 str16 = tree.getNamespaceUri(&len);
301 const char16_t* str16 = tree.getElementNamespace(&len);
306 str16 = tree.getElementName(&len);
311 CopyAttributes(node.get(), &tree, &string_pool);
320 const char16_t* str16 = tree.getText(&len);
340 new_node->line_number = tree
[all...]
/frameworks/base/libs/hwui/
H A DPropertyValuesHolder.h150 RootAlphaPropertyValuesHolder(VectorDrawable::Tree* tree, float startValue, float endValue) argument
152 , mTree(tree) {
/frameworks/data-binding/compilerCommon/src/main/grammar-gen/android/databinding/parser/
H A DBindingExpressionVisitor.java3 import org.antlr.v4.runtime.tree.ParseTreeVisitor;
6 * This interface defines a complete generic visitor for a parse tree produced
14 * Visit a parse tree produced by the {@code RootExpr}
16 * @param ctx the parse tree
21 * Visit a parse tree produced by the {@code RootLambda}
23 * @param ctx the parse tree
28 * Visit a parse tree produced by {@link BindingExpressionParser#defaults}.
29 * @param ctx the parse tree
34 * Visit a parse tree produced by {@link BindingExpressionParser#constantValue}.
35 * @param ctx the parse tree
[all...]

Completed in 370 milliseconds

123