Searched refs:tree (Results 1 - 25 of 75) 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
139 getIntegerAttribute(const ResXMLTree& tree, const char* ns, const char* attr, int32_t defValue, String8* outError) argument
148 getIntegerAttribute(const ResXMLTree& tree, uint32_t attrRes, int32_t defValue, String8* outError) argument
157 getResolvedIntegerAttribute(const ResTable& resTable, const ResXMLTree& tree, uint32_t attrRes, int32_t defValue, String8* outError) argument
179 getResolvedResourceAttribute(const ResTable& resTable, const ResXMLTree& tree, uint32_t attrRes, Res_value* outValue, String8* outError) argument
[all...]
H A DCommand.cpp217 ResXMLTree tree; local
218 tree.setTo(manifestAsset->getBuffer(true),
220 printXMLBlock(&tree);
232 static void printResolvedResourceAttribute(const ResTable& resTable, const ResXMLTree& tree, argument
236 AaptXml::getResolvedResourceAttribute(resTable, tree, attrRes, &value, outError);
242 String8 result = AaptXml::getResolvedAttribute(resTable, tree, attrRes, outError);
314 static void printCompatibleScreens(ResXMLTree& tree, String8* outError) { argument
320 while ((code=tree.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) {
332 const char16_t* ctag16 = tree.getElementName(&len);
339 int32_t screenSize = AaptXml::getIntegerAttribute(tree,
415 ResXMLTree tree; local
[all...]
/frameworks/base/tools/aapt2/format/binary/
H A DXmlFlattener_test.cpp86 android::ResXMLTree tree;
87 ASSERT_TRUE(Flatten(doc.get(), &tree));
88 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::START_NAMESPACE));
91 EXPECT_THAT(tree.getNamespacePrefix(&len), StrEq(u"test"));
92 EXPECT_THAT(tree.getNamespaceUri(&len), StrEq(u"http://com.test"));
94 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::START_TAG));
95 EXPECT_THAT(tree.getElementNamespace(&len), IsNull());
96 EXPECT_THAT(tree.getElementName(&len), StrEq(u"View"));
98 ASSERT_THAT(tree.getAttributeCount(), Eq(1u));
99 EXPECT_THAT(tree
300 android::ResXMLTree tree; local
368 android::ResXMLTree tree; local
455 android::ResXMLTree tree; local
478 android::ResXMLTree tree; local
499 android::ResXMLTree tree; local
519 android::ResXMLTree tree; local
[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/services/usb/java/com/android/server/usb/descriptors/tree/
H A DUsbDescriptorsTreeNode.java16 package com.android.server.usb.descriptors.tree;
23 * A shared super class for UsbDescriptor tree nodes.
H A DUsbDescriptorsEndpointNode.java16 package com.android.server.usb.descriptors.tree;
23 * Represents an endpoint in the descriptors tree.
32 * @param endpointDescriptor The Device Descriptor object wrapped by this tree node.
H A DUsbDescriptorsACInterfaceNode.java16 package com.android.server.usb.descriptors.tree;
23 * A tree node containing some sort-of Audio Class Descriptor.
32 * @param acInterface The Audio Class Inteface object wrapped by this tree node.
H A DUsbDescriptorsDeviceNode.java16 package com.android.server.usb.descriptors.tree;
25 * A class to contain THE device descriptor at the root of the tree.
36 * @param deviceDescriptor The Device Descriptor object wrapped by this tree node.
H A DUsbDescriptorsConfigNode.java16 package com.android.server.usb.descriptors.tree;
25 * Represents a configuration in the descriptors tree.
36 * @param configDescriptor The Config Descriptor object wrapped by this tree node.
/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/
H A DLockTargetState.java18 import org.objectweb.asm.tree.analysis.BasicValue;
H A DLockTargetStateAnalysis.java19 import org.objectweb.asm.tree.AbstractInsnNode;
20 import org.objectweb.asm.tree.MethodInsnNode;
21 import org.objectweb.asm.tree.analysis.AnalyzerException;
22 import org.objectweb.asm.tree.analysis.BasicInterpreter;
23 import org.objectweb.asm.tree.analysis.BasicValue;
H A DLockFindingClassVisitor.java24 import org.objectweb.asm.tree.AbstractInsnNode;
25 import org.objectweb.asm.tree.InsnList;
26 import org.objectweb.asm.tree.LabelNode;
27 import org.objectweb.asm.tree.MethodInsnNode;
28 import org.objectweb.asm.tree.MethodNode;
29 import org.objectweb.asm.tree.TryCatchBlockNode;
30 import org.objectweb.asm.tree.analysis.Analyzer;
31 import org.objectweb.asm.tree.analysis.AnalyzerException;
32 import org.objectweb.asm.tree.analysis.BasicValue;
33 import org.objectweb.asm.tree
[all...]
/frameworks/layoutlib/rename_font/
H A Dtest.py33 tree = etree.parse(ttx_path)
34 root = tree.getroot()
/frameworks/base/tools/aapt2/
H A DDominatorTree_test.cpp41 std::string ToString(DominatorTree* tree) { argument
44 tree->Accept(this);
79 DominatorTree tree(configs);
86 EXPECT_EQ(expected, printer.ToString(&tree));
100 DominatorTree tree(configs);
108 EXPECT_EQ(expected, printer.ToString(&tree));
135 DominatorTree tree(configs);
149 EXPECT_EQ(expected, printer.ToString(&tree));
163 DominatorTree tree(configs);
171 EXPECT_EQ(expected, printer.ToString(&tree));
[all...]
/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/services/core/java/com/android/server/pm/permission/
H A DBasePermission.java251 @NonNull PermissionInfo info, @NonNull BasePermission tree) {
255 || uid != tree.uid
256 || !perm.owner.equals(tree.perm.owner)
261 perm = new PackageParser.Permission(tree.perm.owner, info);
262 perm.info.packageName = tree.perm.info.packageName;
263 uid = tree.uid;
272 final BasePermission tree = findPermissionTree(permissionTrees, name);
273 if (tree != null && tree.perm != null) {
274 sourcePackageSetting = tree
250 addToTree(@rotectionLevel int protectionLevel, @NonNull PermissionInfo info, @NonNull BasePermission tree) argument
[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);
100 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(treePtr); local
101 tree->setAntiAlias(aa);
109 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(treePtr); local
114 return tree
122 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(treePtr); local
127 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(treePtr); local
132 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(treePtr); local
[all...]
/frameworks/base/tests/UiBench/
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/libs/hwui/pipeline/skia/
H A DSkiaRecordingCanvas.cpp127 VectorDrawable(VectorDrawableRoot* tree) argument
128 : mRoot(tree)
129 , mBounds(tree->stagingProperties()->getBounds()) {}
142 void SkiaRecordingCanvas::drawVectorDrawable(VectorDrawableRoot* tree) { argument
143 drawDrawable(mDisplayList->allocateDrawable<VectorDrawable>(tree));
144 mDisplayList->mVectorDrawables.push_back(tree);

Completed in 1926 milliseconds

123