/frameworks/base/tools/aapt/ |
H A 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, 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 D | AaptXml.cpp | 26 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 D | Command.cpp | 217 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/tools/ |
H A D | public_attr_map.py | 26 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 D | UsbDescriptorsACInterfaceNode.java | 16 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 D | UsbDescriptorsConfigNode.java | 16 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.
|
H A D | UsbDescriptorsDeviceNode.java | 16 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 D | UsbDescriptorsEndpointNode.java | 16 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 D | UsbDescriptorsTreeNode.java | 16 package com.android.server.usb.descriptors.tree; 23 * A shared super class for UsbDescriptor tree nodes.
|
H A D | UsbDescriptorsInterfaceNode.java | 16 package com.android.server.usb.descriptors.tree; 25 * Represents an interface in the descriptors tree. 37 * @param interfaceDescriptor The Interface Descriptor object wrapped by this tree node.
|
H A D | UsbDescriptorsTree.java | 16 package com.android.server.usb.descriptors.tree; 30 * The general layout of the tree looks like this, though no guarentee about 47 * A class which builds a tree representation from the results of a (linear) 60 * Adds THE device descriptor as the root of the tree. 67 * Adds A config descriptor to the tree. 75 * Adds AN interface descriptor to the current configuration in the tree. 83 * Adds an endpoint descriptor to the current interface in the tree. 90 * Adds an audio-class interface descriptor to the current interface in the tree. 97 * Parses the linear descriptor list contained in the parser argument, into a tree 140 * Generate a report of the descriptors tree [all...] |
/frameworks/base/tools/aapt2/format/binary/ |
H A D | XmlFlattener_test.cpp | 86 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/ |
H A D | DominatorTree_test.cpp | 41 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/base/libs/hwui/ |
H A D | PropertyValuesHolder.h | 151 RootAlphaPropertyValuesHolder(VectorDrawable::Tree* tree, float startValue, float endValue) argument 152 : PropertyValuesHolderImpl(startValue, endValue), mTree(tree) {
|
H A D | RecordedOp.h | 331 VectorDrawableOp(VectorDrawable::Tree* tree, BASE_PARAMS_PAINTLESS) argument 332 : SUPER_PAINTLESS(VectorDrawableOp), vectorDrawable(tree) {}
|
H A D | RecordingCanvas.cpp | 424 void RecordingCanvas::drawVectorDrawable(VectorDrawableRoot* tree) { argument 425 mDisplayList->ref(tree); 426 mDisplayList->vectorDrawables.push_back(tree); 428 tree, Rect(tree->stagingProperties()->getBounds()),
|
H A D | VectorDrawable.h | 69 /* A VectorDrawable is composed of a tree of nodes. 82 * Render Thread. A generation id is used to keep track of changes in the vector drawable tree. 84 * change in the tree. 503 // Copy properties from the tree and use the give node as the root node 544 explicit TreeProperties(Tree* tree) : mTree(tree) {} argument
|
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | SkiaRecordingCanvas.cpp | 127 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);
|
/frameworks/native/opengl/tools/glgen2/registry/ |
H A D | genheaders.py | 97 tree = etree.parse(regFilename) variable 101 reg.loadElementTree(tree)
|
/frameworks/base/core/jni/ |
H A D | android_graphics_drawable_AnimatedVectorDrawable.cpp | 102 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,
|
H A D | android_graphics_drawable_VectorDrawable.cpp | 35 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/services/core/java/com/android/server/pm/permission/ |
H A D | BasePermission.java | 251 @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...] |
H A D | PermissionManagerService.java | 495 if (p.tree) { 613 final BasePermission tree = mSettings.enforcePermissionTree(info.name, callingUid); 621 enforcePermissionCapLocked(info, tree); 622 bp = new BasePermission(info.name, tree.getSourcePackageName(), 628 changed = bp.addToTree(fixedLevel, info, tree); 644 final BasePermission tree = mSettings.enforcePermissionTree(permName, callingUid); 1724 // NOTE: With this approach, we also don't need to tree trees differently than 1771 Slog.i(TAG, "Removing old permission tree: " + bp.getName() 1815 Slog.i(TAG, "Removing old permission tree: " + bp.getName() 1840 Slog.w(TAG, "Removing dangling permission tree 1983 calculateCurrentPermissionFootprintLocked(BasePermission tree) argument 1991 enforcePermissionCapLocked(PermissionInfo info, BasePermission tree) argument [all...] |
/frameworks/base/tools/aapt2/xml/ |
H A D | XmlDom.cpp | 276 ResXMLTree tree; local 277 if (tree.setTo(data, len) != NO_ERROR) { 285 while ((code = tree.next()) != ResXMLParser::BAD_DOCUMENT && code != ResXMLParser::END_DOCUMENT) { 290 decl.line_number = tree.getLineNumber(); 293 const char16_t* str16 = tree.getNamespacePrefix(&len); 298 str16 = tree.getNamespaceUri(&len); 317 el->line_number = tree.getLineNumber(); 320 const char16_t* str16 = tree.getElementNamespace(&len); 325 str16 = tree.getElementName(&len); 331 CopyAttributes(el.get(), &tree, [all...] |
/frameworks/base/libs/hwui/renderthread/ |
H A D | CanvasContext.cpp | 588 // buildLayer() will leave the tree in an unknown state, so we must stop drawing 700 proto::RenderNode tree; local 702 mRootRenderNode->copyTo(&tree); 703 std::string data = tree.SerializeAsString();
|