Home
last modified time | relevance | path

Searched refs:tree (Results 1 – 25 of 102) sorted by relevance

12345

/frameworks/base/tools/aapt2/format/binary/
DXmlFlattener_test.cpp94 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::START_TAG)); in TEST_F()
95 EXPECT_THAT(tree.getElementNamespace(&len), IsNull()); in TEST_F()
96 EXPECT_THAT(tree.getElementName(&len), StrEq(u"View")); in TEST_F()
98 ASSERT_THAT(tree.getAttributeCount(), Eq(1u)); in TEST_F()
99 EXPECT_THAT(tree.getAttributeNamespace(0, &len), IsNull()); in TEST_F()
100 EXPECT_THAT(tree.getAttributeName(0, &len), StrEq(u"attr")); in TEST_F()
103 EXPECT_THAT(tree.indexOfAttribute(nullptr, 0, kAttr.data(), kAttr.size()), Eq(0)); in TEST_F()
105 ASSERT_THAT(tree.next(), Eq(android::ResXMLTree::START_TAG)); in TEST_F()
106 EXPECT_THAT(tree.getElementNamespace(&len), IsNull()); in TEST_F()
107 EXPECT_THAT(tree.getElementName(&len), StrEq(u"Layout")); in TEST_F()
[all …]
/frameworks/base/tools/aapt/
DAaptXml.cpp26 static String8 getStringAttributeAtIndex(const ResXMLTree& tree, ssize_t attrIndex, in getStringAttributeAtIndex() argument
29 if (tree.getAttributeValue(attrIndex, &value) < 0) { in getStringAttributeAtIndex()
44 const char16_t* str = tree.getAttributeStringValue(attrIndex, &len); in getStringAttributeAtIndex()
48 static int32_t getIntegerAttributeAtIndex(const ResXMLTree& tree, ssize_t attrIndex, in getIntegerAttributeAtIndex() argument
51 if (tree.getAttributeValue(attrIndex, &value) < 0) { in getIntegerAttributeAtIndex()
69 ssize_t indexOfAttribute(const ResXMLTree& tree, uint32_t attrRes) { in indexOfAttribute() argument
70 size_t attrCount = tree.getAttributeCount(); in indexOfAttribute()
72 if (tree.getAttributeNameResID(i) == attrRes) { in indexOfAttribute()
79 String8 getAttribute(const ResXMLTree& tree, const char* ns, in getAttribute() argument
81 ssize_t idx = tree.indexOfAttribute(ns, attr); in getAttribute()
[all …]
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, in getIntegerAttribute() argument
63 return getIntegerAttribute(tree, ns, attr, -1, outError); in getIntegerAttribute()
71 int32_t getIntegerAttribute(const android::ResXMLTree& tree, uint32_t attrRes,
79 inline int32_t getIntegerAttribute(const android::ResXMLTree& tree, uint32_t attrRes, in getIntegerAttribute() argument
81 return getIntegerAttribute(tree, attrRes, -1, outError); in getIntegerAttribute()
90 const android::ResXMLTree& tree, uint32_t attrRes, int32_t defValue = -1,
[all …]
DCommand.cpp217 ResXMLTree tree; in doList() local
218 tree.setTo(manifestAsset->getBuffer(true), in doList()
220 printXMLBlock(&tree); in doList()
232 static void printResolvedResourceAttribute(const ResTable& resTable, const ResXMLTree& tree, in printResolvedResourceAttribute() argument
236 AaptXml::getResolvedResourceAttribute(resTable, tree, attrRes, &value, outError); in printResolvedResourceAttribute()
242 String8 result = AaptXml::getResolvedAttribute(resTable, tree, attrRes, outError); in printResolvedResourceAttribute()
314 static void printCompatibleScreens(ResXMLTree& tree, String8* outError) { in printCompatibleScreens() argument
320 while ((code=tree.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in printCompatibleScreens()
332 const char16_t* ctag16 = tree.getElementName(&len); in printCompatibleScreens()
339 int32_t screenSize = AaptXml::getIntegerAttribute(tree, in printCompatibleScreens()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/util/src/test/java/com/google/protobuf/util/
DFieldMaskTreeTest.java41 FieldMaskTree tree = new FieldMaskTree(); in testAddFieldPath() local
42 assertEquals("", tree.toString()); in testAddFieldPath()
43 tree.addFieldPath(""); in testAddFieldPath()
44 assertEquals("", tree.toString()); in testAddFieldPath()
46 tree.addFieldPath("foo"); in testAddFieldPath()
47 assertEquals("foo", tree.toString()); in testAddFieldPath()
49 tree.addFieldPath("foo"); in testAddFieldPath()
50 assertEquals("foo", tree.toString()); in testAddFieldPath()
52 tree.addFieldPath("bar.baz"); in testAddFieldPath()
53 assertEquals("bar.baz,foo", tree.toString()); in testAddFieldPath()
[all …]
/frameworks/base/tools/aapt2/cmd/
DLink_test.cpp44 android::ResXMLTree tree; in TEST_F() local
50 AssertLoadXml(apk.get(), data.get(), &tree); in TEST_F()
53 EXPECT_THAT(tree.getAttributeValueStringID(0), Eq(-1)); in TEST_F()
72 android::ResXMLTree tree; in TEST_F() local
78 AssertLoadXml(apk.get(), data.get(), &tree); in TEST_F()
81 int32_t raw_index = tree.getAttributeValueStringID(0); in TEST_F()
83 EXPECT_THAT(util::GetString(tree.getStrings(), static_cast<size_t>(raw_index)), Eq("007")); in TEST_F()
DConvert_test.cpp55 android::ResXMLTree tree; in TEST_F() local
61 AssertLoadXml(apk.get(), data.get(), &tree); in TEST_F()
64 EXPECT_THAT(tree.getAttributeValueStringID(0), Eq(-1)); in TEST_F()
93 android::ResXMLTree tree; in TEST_F() local
99 AssertLoadXml(apk.get(), data.get(), &tree); in TEST_F()
102 int32_t raw_index = tree.getAttributeValueStringID(0); in TEST_F()
104 EXPECT_THAT(util::GetString(tree.getStrings(), static_cast<size_t>(raw_index)), Eq("007")); in TEST_F()
DDump.cpp328 android::ResXMLTree tree; in Dump() local
349 tree.setTo(data.data(), data.size(), /** copyData */ true); in Dump()
368 tree.setTo(data->data(), data->size(), /** copyData */ true); in Dump()
375 Debug::DumpResStringPool(&tree.getStrings(), GetPrinter()); in Dump()
/frameworks/base/tools/aapt2/
DDominatorTree_test.cpp43 std::string ToString(DominatorTree* tree) { in ToString() argument
46 tree->Accept(this); in ToString()
81 DominatorTree tree(configs); in TEST() local
88 EXPECT_EQ(expected, printer.ToString(&tree)); in TEST()
102 DominatorTree tree(configs); in TEST() local
110 EXPECT_EQ(expected, printer.ToString(&tree)); in TEST()
137 DominatorTree tree(configs); in TEST() local
151 EXPECT_EQ(expected, printer.ToString(&tree)); in TEST()
165 DominatorTree tree(configs); in TEST() local
173 EXPECT_EQ(expected, printer.ToString(&tree)); in TEST()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/
Dfield_mask_util.cc475 FieldMaskTree tree; in ToCanonicalForm() local
476 tree.MergeFromFieldMask(mask); in ToCanonicalForm()
478 tree.MergeToFieldMask(out); in ToCanonicalForm()
483 FieldMaskTree tree; in Union() local
484 tree.MergeFromFieldMask(mask1); in Union()
485 tree.MergeFromFieldMask(mask2); in Union()
487 tree.MergeToFieldMask(out); in Union()
492 FieldMaskTree tree, intersection; in Intersect() local
493 tree.MergeFromFieldMask(mask1); in Intersect()
495 tree.IntersectPath(mask2.paths(i), &intersection); in Intersect()
[all …]
/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/
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;
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.analysis.Frame;
/frameworks/base/core/jni/
Dandroid_graphics_drawable_VectorDrawable.cpp35 VectorDrawable::Tree* tree = new VectorDrawable::Tree(rootGroup); in createTree() local
36 return reinterpret_cast<jlong>(tree); in createTree()
42 VectorDrawable::Tree* tree = new VectorDrawable::Tree(treeToCopy, rootGroup); in createTreeFromCopy() local
43 return reinterpret_cast<jlong>(tree); in createTreeFromCopy()
95 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(treePtr); in setAllowCaching() local
96 tree->setAllowCaching(allowCaching); in setAllowCaching()
100 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(treePtr); in setAntiAlias() local
101 tree->setAntiAlias(aa); in setAntiAlias()
109 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(treePtr); in draw() local
114 return tree->draw(canvas, colorFilter, rect, needsMirroring, canReuseCache); in draw()
[all …]
Dandroid_graphics_drawable_AnimatedVectorDrawable.cpp102 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(vectorDrawablePtr); in setVectorDrawableTarget() local
104 set->setVectorDrawable(tree); in setVectorDrawableTarget()
143 VectorDrawable::Tree* tree = reinterpret_cast<VectorDrawable::Tree*>(nativePtr); in createRootAlphaPropertyHolder() local
144 RootAlphaPropertyValuesHolder* newHolder = new RootAlphaPropertyValuesHolder(tree, in createRootAlphaPropertyHolder()
/frameworks/base/tools/aapt2/tools/
Dpublic_attr_map.py26 tree = None variable
28 tree = ET.parse(f) variable
31 for node in tree.iter('public'):
/frameworks/base/services/core/java/com/android/server/pm/permission/
DBasePermission.java295 @NonNull PermissionInfo info, @NonNull BasePermission tree) { in addToTree() argument
299 || uid != tree.uid in addToTree()
300 || !perm.owner.equals(tree.perm.owner) in addToTree()
305 perm = new PackageParser.Permission(tree.perm.owner, info); in addToTree()
306 perm.info.packageName = tree.perm.info.packageName; in addToTree()
307 uid = tree.uid; in addToTree()
316 final BasePermission tree = findPermissionTree(permissionTrees, name); in updateDynamicPermission() local
317 if (tree != null && tree.perm != null) { in updateDynamicPermission()
318 sourcePackageSetting = tree.sourcePackageSetting; in updateDynamicPermission()
319 perm = new PackageParser.Permission(tree.perm.owner, in updateDynamicPermission()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DTextFormatTest.java1068 TextFormatParseInfoTree tree = treeBuilder.build(); in testParseInfoTreeBuilding() local
1071 assertLocation(tree, descriptor, "optional_int32", 0, 0, 0); in testParseInfoTreeBuilding()
1072 assertLocation(tree, descriptor, "optional_int64", 0, 1, 0); in testParseInfoTreeBuilding()
1073 assertLocation(tree, descriptor, "optional_double", 0, 2, 2); in testParseInfoTreeBuilding()
1075 assertLocation(tree, descriptor, "repeated_int32", 0, 3, 0); in testParseInfoTreeBuilding()
1076 assertLocation(tree, descriptor, "repeated_int32", 1, 4, 0); in testParseInfoTreeBuilding()
1078 assertLocation(tree, descriptor, "optional_nested_message", 0, 5, 0); in testParseInfoTreeBuilding()
1079 assertLocation(tree, descriptor, "repeated_nested_message", 0, 8, 0); in testParseInfoTreeBuilding()
1080 assertLocation(tree, descriptor, "repeated_nested_message", 1, 11, 0); in testParseInfoTreeBuilding()
1083 assertLocation(tree, descriptor, "repeated_int64", 0, -1, -1); in testParseInfoTreeBuilding()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dmap.h818 Tree* tree = static_cast<Tree*>(m_->table_[bucket_index_]); in SearchFrom() local
819 GOOGLE_DCHECK(!tree->empty()); in SearchFrom()
820 tree_it_ = tree->begin(); in SearchFrom()
844 Tree* tree = static_cast<Tree*>(m_->table_[bucket_index_]); variable
845 if (++tree_it_ == tree->end()) {
919 Tree* tree = static_cast<Tree*>(table_[b]); in clear() local
922 typename Tree::iterator tree_it = tree->begin(); in clear()
927 tree->erase(tree_it); in clear()
930 } while (tree_it != tree->end()); in clear()
931 DestroyTree(tree); in clear()
[all …]
Dtext_format_unittest.cc970 void ExpectLocation(TextFormat::ParseInfoTree* tree, in ExpectLocation() argument
973 TextFormat::ParseLocation location = tree->GetLocation( in ExpectLocation()
1021 TextFormat::ParseInfoTree tree; in TEST_F() local
1022 ExpectSuccessAndTree(stringData, message.get(), &tree); in TEST_F()
1025 ExpectLocation(&tree, d, "optional_int32", -1, 0, 0); in TEST_F()
1026 ExpectLocation(&tree, d, "optional_int64", -1, 1, 0); in TEST_F()
1027 ExpectLocation(&tree, d, "optional_double", -1, 2, 2); in TEST_F()
1029 ExpectLocation(&tree, d, "repeated_int32", 0, 3, 0); in TEST_F()
1030 ExpectLocation(&tree, d, "repeated_int32", 1, 4, 0); in TEST_F()
1032 ExpectLocation(&tree, d, "optional_nested_message", -1, 5, 0); in TEST_F()
[all …]
/frameworks/base/tools/aapt2/xml/
DXmlDom.cpp278 ResXMLTree tree; in Inflate() local
279 if (tree.setTo(data, len) != NO_ERROR) { in Inflate()
287 while ((code = tree.next()) != ResXMLParser::BAD_DOCUMENT && code != ResXMLParser::END_DOCUMENT) { in Inflate()
292 decl.line_number = tree.getLineNumber(); in Inflate()
295 const char16_t* str16 = tree.getNamespacePrefix(&len); in Inflate()
300 str16 = tree.getNamespaceUri(&len); in Inflate()
319 el->line_number = tree.getLineNumber(); in Inflate()
322 const char16_t* str16 = tree.getElementNamespace(&len); in Inflate()
327 str16 = tree.getElementName(&len); in Inflate()
333 CopyAttributes(el.get(), &tree, &xml_resource->string_pool); in Inflate()
[all …]
/frameworks/layoutlib/rename_font/
Dtest.py33 tree = etree.parse(ttx_path)
34 root = tree.getroot()
Dbuild_font_single.py93 tree = etree.parse(ttx_path)
94 root = tree.getroot()
97 tree.write(ttx_path, xml_declaration=True, encoding='utf-8')
Dbuild_font.py109 tree = etree.parse(ttx_path)
110 root = tree.getroot()
113 tree.write(ttx_path, xml_declaration=True, encoding='utf-8')
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Dwell_known_types.py413 tree = _FieldMaskTree(mask)
414 tree.ToFieldMask(self)
420 tree = _FieldMaskTree(mask1)
421 tree.MergeFromFieldMask(mask2)
422 tree.ToFieldMask(self)
428 tree = _FieldMaskTree(mask1)
431 tree.IntersectPath(path, intersection)
447 tree = _FieldMaskTree(self)
448 tree.MergeMessage(
/frameworks/base/tools/aapt2/optimize/
DResourceDeduper.cpp97 DominatorTree tree(entry->values); in DedupeEntry() local
99 tree.Accept(&remover); in DedupeEntry()

12345