/frameworks/base/tools/aapt2/format/binary/ |
D | XmlFlattener_test.cpp | 94 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/ |
D | AaptXml.cpp | 26 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 …]
|
D | Command.cpp | 217 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 …]
|
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, 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 …]
|
D | Resource.cpp | 1071 static ssize_t extractPlatformBuildVersion(const ResTable& table, ResXMLTree& tree, Bundle* bundle)… in extractPlatformBuildVersion() argument 1079 while ((code = tree.next()) != ResXMLTree::END_DOCUMENT && code != ResXMLTree::BAD_DOCUMENT) { in extractPlatformBuildVersion() 1084 const char16_t* ctag16 = tree.getElementName(&len); in extractPlatformBuildVersion() 1096 int32_t versionCode = AaptXml::getIntegerAttribute(tree, VERSION_CODE_ATTR, &error); in extractPlatformBuildVersion() 1110 String8 versionName = AaptXml::getAttribute(tree, VERSION_NAME_ATTR, &error); in extractPlatformBuildVersion() 1149 ResXMLTree tree; in extractPlatformBuildVersion() local 1150 if (tree.setTo(asset->getBuffer(true), asset->getLength()) != NO_ERROR) { in extractPlatformBuildVersion() 1154 result = extractPlatformBuildVersion(assets.getResources(true), tree, bundle); in extractPlatformBuildVersion() 3005 ResXMLTree tree; in writeProguardForAndroidManifest() local 3031 err = parseXMLResource(assFile, &tree); in writeProguardForAndroidManifest() [all …]
|
/frameworks/base/tools/aapt2/cmd/ |
D | Link_test.cpp | 44 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()
|
D | Convert_test.cpp | 55 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()
|
D | Dump.cpp | 328 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/ |
D | DominatorTree_test.cpp | 43 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/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/ |
D | LockTargetStateAnalysis.java | 19 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;
|
D | LockFindingClassVisitor.java | 24 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;
|
D | LockTargetState.java | 18 import org.objectweb.asm.tree.analysis.BasicValue;
|
/frameworks/base/core/jni/ |
D | android_graphics_drawable_VectorDrawable.cpp | 35 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 …]
|
D | android_graphics_drawable_AnimatedVectorDrawable.cpp | 102 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/services/core/java/com/android/server/pm/permission/ |
D | BasePermission.java | 298 @NonNull PermissionInfo info, @NonNull BasePermission tree) { in addToTree() argument 302 || uid != tree.uid in addToTree() 303 || !perm.owner.equals(tree.perm.owner) in addToTree() 308 perm = new PackageParser.Permission(tree.perm.owner, info); in addToTree() 309 perm.info.packageName = tree.perm.info.packageName; in addToTree() 310 uid = tree.uid; in addToTree() 319 final BasePermission tree = findPermissionTree(permissionTrees, name); in updateDynamicPermission() local 320 if (tree != null && tree.perm != null) { in updateDynamicPermission() 321 sourcePackageSetting = tree.sourcePackageSetting; in updateDynamicPermission() 322 perm = new PackageParser.Permission(tree.perm.owner, in updateDynamicPermission() [all …]
|
/frameworks/base/tools/aapt2/tools/ |
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/aapt2/xml/ |
D | XmlDom.cpp | 278 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() 321 el->line_number = tree.getLineNumber(); in Inflate() 324 const char16_t* str16 = tree.getElementNamespace(&len); in Inflate() 329 str16 = tree.getElementName(&len); in Inflate() 335 CopyAttributes(el.get(), &tree, &xml_resource->string_pool); in Inflate() [all …]
|
/frameworks/layoutlib/rename_font/ |
D | test.py | 33 tree = etree.parse(ttx_path) 34 root = tree.getroot()
|
D | build_font_single.py | 97 tree = etree.parse(ttx_path) 98 root = tree.getroot() 101 tree.write(ttx_path, xml_declaration=True, encoding='utf-8')
|
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/base/tools/aapt2/optimize/ |
D | ResourceDeduper.cpp | 97 DominatorTree tree(entry->values); in DedupeEntry() local 99 tree.Accept(&remover); in DedupeEntry()
|
/frameworks/base/tools/locked_region_code_injection/ |
D | Android.bp | 8 "asm-tree-6.0",
|
/frameworks/opt/setupwizard/library/ |
D | rules.gradle | 5 * This allows the dependencies to be configured so that for builds in the Android tree, the 56 // For builds in the Android tree we want to build the dependencies from source
|
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/tree/ |
D | UsbDescriptorsTreeNode.java | 16 package com.android.server.usb.descriptors.tree;
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaRecordingCanvas.cpp | 153 void SkiaRecordingCanvas::drawVectorDrawable(VectorDrawableRoot* tree) { in drawVectorDrawable() argument 154 mRecorder.drawVectorDrawable(tree); in drawVectorDrawable() 157 mDisplayList->appendVD(tree, mat); in drawVectorDrawable()
|