Home
last modified time | relevance | path

Searched refs:attribute (Results 1 – 25 of 64) sorted by relevance

123

/sdk/attribute_stats/src/
DAnalyzer.java255 Node attribute = attributes.item(i); in countAttributes() local
256 String name = attribute.getNodeName(); in countAttributes()
297 Node attribute = attributes.item(i); in countLayoutAttributes() local
298 String name = attribute.getNodeName(); in countLayoutAttributes()
432 percentage, usage.attribute); in processUageMap()
444 String name = usage.attribute; in processUageMap()
567 String attribute = usage.attribute; in listAdvanced() local
568 int index = attribute.indexOf(':'); in listAdvanced()
569 if (index == -1 || attribute.startsWith("android:")) { in listAdvanced()
570 Usage merged = mergedUsages.get(attribute); in listAdvanced()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/
DDeletionHandler.java98 private static String getId(@NonNull IAttribute attribute) { in getId() argument
99 if (attribute.getName().startsWith(ATTR_LAYOUT_RESOURCE_PREFIX) in getId()
100 && ANDROID_URI.equals(attribute.getUri()) in getId()
101 && !attribute.getName().startsWith(ATTR_LAYOUT_MARGIN)) { in getId()
102 String id = attribute.getValue(); in getId()
136 for (IAttribute attribute : child.getLiveAttributes()) { in updateConstraints()
137 String id = getId(attribute); in updateConstraints()
144 String name = attribute.getName(); in updateConstraints()
169 for (IAttribute attribute : deleted.getLiveAttributes()) { in transfer()
170 String name = attribute.getName(); in transfer()
[all …]
DDependencyGraph.java93 for (IAttribute attribute : view.node.getLiveAttributes()) { in DependencyGraph()
94 String name = attribute.getName(); in DependencyGraph()
97 String value = attribute.getValue(); in DependencyGraph()
131 IDragAttribute attribute = element.getAttribute(ANDROID_URI, ATTR_ID); in getView() local
132 if (attribute != null) { in getView()
133 String id = attribute.getValue(); in getView()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/
DUiElementPullParser.java262 Node attribute = getAttribute(i); in getAttributeName() local
263 if (attribute != null) { in getAttributeName()
264 return attribute.getLocalName(); in getAttributeName()
284 Node attribute = getAttribute(i); in getAttributeNamespace() local
285 if (attribute != null) { in getAttributeNamespace()
286 return attribute.getNamespaceURI(); in getAttributeNamespace()
307 Node attribute = getAttribute(i); in getAttributePrefix() local
308 if (attribute != null) { in getAttributePrefix()
309 return attribute.getPrefix(); in getAttributePrefix()
328 Node attribute = getAttribute(i); in getAttributeValue() local
[all …]
DWidgetPullParser.java108 for (String[] attribute : mAttributes) { in getAttributeValue()
109 if (name.equals(attribute[0])) { in getAttributeValue()
110 return attribute[1]; in getAttributeValue()
DContextPullParser.java107 String attribute = getAttributeName(i); in getViewCookie() local
108 if (attribute.equals(ATTR_IGNORE)) { in getViewCookie()
114 map.put(attribute, getAttributeValue(i)); in getViewCookie()
DExplodedRenderingHelper.java385 String attribute) { in getMatchingNode() argument
389 String value = getAttribute(node, attribute, null); in getMatchingNode()
413 Node attribute = attributes.getNamedItemNS(SdkConstants.NS_RESOURCES, name); in getAttribute() local
414 if (attribute != null) { in getAttribute()
415 return attribute.getNodeValue(); in getAttribute()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DUnwrapRefactoring.java191 for (Attr attribute : declarations) { in computeChanges()
192 if (attribute instanceof IndexedRegion) { in computeChanges()
193 setAttribute(rootEdit, newRoot, attribute.getNamespaceURI(), in computeChanges()
194 attribute.getPrefix(), attribute.getLocalName(), attribute.getValue()); in computeChanges()
203 for (Attr attribute : layoutAttributes) { in computeChanges()
204 String name = attribute.getLocalName(); in computeChanges()
206 && ANDROID_URI.equals(attribute.getNamespaceURI())) { in computeChanges()
DUseCompoundDrawableRefactoring.java255 Attr attribute = (Attr) attributes.item(i); in computeChanges() local
256 String name = attribute.getLocalName(); in computeChanges()
258 && ANDROID_URI.equals(attribute.getNamespaceURI()) in computeChanges()
262 newTextElement.setAttribute(attribute.getName(), attribute.getValue()); in computeChanges()
269 for (Attr attribute : layoutAttributes) { in computeChanges()
270 String name = attribute.getLocalName(); in computeChanges()
272 && ANDROID_URI.equals(attribute.getNamespaceURI())) { in computeChanges()
276 newTextElement.setAttribute(attribute.getName(), attribute.getValue()); in computeChanges()
325 for (Attr attribute : declarations) { in computeChanges()
326 if (attribute instanceof IndexedRegion) { in computeChanges()
[all …]
DExtractStyleRefactoring.java260 Attr attribute = (Attr) attributeMap.item(i); in getAvailableAttributes() local
262 String name = attribute.getLocalName(); in getAvailableAttributes()
276 String namespace = attribute.getNamespaceURI(); in getAvailableAttributes()
282 IndexedRegion region = getRegion(attribute); in getAvailableAttributes()
286 withinSelection.add(attribute); in getAvailableAttributes()
289 withinSelection.add(attribute); in getAvailableAttributes()
297 list.add(attribute); in getAvailableAttributes()
356 for (Attr attribute : mChosenAttributes) { in computeChanges()
357 List<Attr> list = mAvailableAttributes.get(attribute.getLocalName()); in computeChanges()
359 if (mRemoveAll || attr.getValue().equals(attribute.getValue())) { in computeChanges()
[all …]
DChangeLayoutRefactoring.java308 String attribute = nameValue[0]; in computeChanges() local
312 if (attribute.startsWith(SdkConstants.ANDROID_NS_NAME_PREFIX)) { in computeChanges()
315 attribute = attribute.substring(SdkConstants.ANDROID_NS_NAME_PREFIX.length()); in computeChanges()
318 prefix, attribute, value); in computeChanges()
525 for (AttributeDescriptor attribute : layoutAttributes) { in removeUndefinedAttrs()
526 defined.add(attribute.getXmlLocalName()); in removeUndefinedAttrs()
536 for (Attr attribute : attributes) { in removeUndefinedAttrs()
537 String name = attribute.getLocalName(); in removeUndefinedAttrs()
541 removeAttribute(rootEdit, child, attribute.getNamespaceURI(), name); in removeUndefinedAttrs()
549 attribute.getLocalName()); in removeUndefinedAttrs()
[all …]
DWrapInRefactoring.java241 for (Attr attribute : declarations) { in computeChanges()
242 if (attribute instanceof IndexedRegion) { in computeChanges()
244 IndexedRegion region = (IndexedRegion) attribute; in computeChanges()
334 for (Attr attribute : layoutAttributes) { in computeChanges()
335 String name = attribute.getLocalName(); in computeChanges()
337 && ANDROID_URI.equals(attribute.getNamespaceURI())) { in computeChanges()
342 if (attribute instanceof IndexedRegion) { in computeChanges()
343 IndexedRegion region = (IndexedRegion) attribute; in computeChanges()
DChangeViewRefactoring.java231 for (AttributeDescriptor attribute : layoutAttributes) { in removeUndefinedAttrs()
232 defined.add(attribute.getXmlLocalName()); in removeUndefinedAttrs()
236 for (Attr attribute : attributes) { in removeUndefinedAttrs()
237 String name = attribute.getLocalName(); in removeUndefinedAttrs()
240 removeAttribute(rootEdit, element, attribute.getNamespaceURI(), name); in removeUndefinedAttrs()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/
DObsoleteLayoutParamsFix.java58 Attr attribute = (Attr) attributes.item(i); in apply() local
59 if (attribute instanceof IndexedRegion) { in apply()
60 IndexedRegion region = (IndexedRegion) attribute; in apply()
62 element.removeAttribute(attribute.getName()); in apply()
DConvertToDpFix.java65 Attr attribute = (Attr) attributes.item(i); in apply() local
66 String value = attribute.getValue(); in apply()
75 attribute.setNodeValue(newValue); in apply()
DSetPropertyFix.java80 String attribute = prefix != null ? prefix + ':' + localAttribute : localAttribute; in apply() local
85 element.setAttribute(attribute, proposal); in apply()
98 offset += attribute.length() + 2; in apply()
DAddSuppressAttribute.java109 String attribute; in apply() local
112 attribute = ATTR_TARGET_API; in apply()
115 attribute = ATTR_IGNORE; in apply()
118 AdtUtils.setToolsAttribute(mEditor, mElement, mDescription, attribute, value, in apply()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/
DHyperlinks.java236 Attr attribute = context.getAttribute(); in isAttributeValueLink() local
237 if (attribute == null) { in isAttributeValueLink()
246 String value = attribute.getValue(); in isAttributeValueLink()
251 return !ATTR_ID.equals(attribute.getLocalName()); in isAttributeValueLink()
278 Attr attribute = context.getAttribute(); in isActivity() local
280 if (NODE_ACTIVITY.equals(tagName) && ATTRIBUTE_NAME.equals(attribute.getLocalName()) in isActivity()
281 && ANDROID_URI.equals(attribute.getNamespaceURI())) { in isActivity()
292 Attr attribute = context.getAttribute(); in isManifestName() local
293 if (attribute != null && ATTRIBUTE_NAME.equals(attribute.getLocalName()) in isManifestName()
294 && ANDROID_URI.equals(attribute.getNamespaceURI())) { in isManifestName()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
DPropertySettingNodeHandler.java31 PropertySettingNodeHandler(String namespaceUri, String attribute, String value) { in PropertySettingNodeHandler() argument
34 mAttribute = attribute; in PropertySettingNodeHandler()
DPropertyCallback.java49 String uri, String attribute) { in PropertyCallback() argument
54 mAttribute = attribute; in PropertyCallback()
DBaseViewRule.java306 private String inputAttributeValue(final INode node, final String attribute) { in addContextMenuActions()
307 String oldValue = node.getStringAttr(ANDROID_URI, attribute); in addContextMenuActions()
309 IAttributeInfo attributeInfo = node.getAttributeInfo(ANDROID_URI, attribute); in addContextMenuActions()
328 String message = String.format("New %1$s Value:", attribute); in addContextMenuActions()
549 for (String attribute : attributes) { in addCommonPropertyActions()
552 if (ATTR_TEXT.equals(attribute) || ATTR_ID.equals(attribute)) { in addCommonPropertyActions()
556 Prop property = properties.get(attribute); in addCommonPropertyActions()
562 actions.add(createPropertyAction(property, attribute, title, in addCommonPropertyActions()
593 for (String attribute : sRecent) { in addRecentPropertyActions()
594 Prop property = properties.get(attribute); in addRecentPropertyActions()
[all …]
/sdk/eclipse/sites/external/web/
Dsite.xsl33 <xsl:attribute name="class">dark-row</xsl:attribute>
36 <xsl:attribute name="class">light-row</xsl:attribute>
105 <xsl:attribute name="class">dark-row</xsl:attribute>
108 <xsl:attribute name="class">light-row</xsl:attribute>
160 <xsl:attribute name="class">dark-row</xsl:attribute>
163 <xsl:attribute name="class">light-row</xsl:attribute>
/sdk/eclipse/sites/internal/web/
Dsite.xsl33 <xsl:attribute name="class">dark-row</xsl:attribute>
36 <xsl:attribute name="class">light-row</xsl:attribute>
105 <xsl:attribute name="class">dark-row</xsl:attribute>
108 <xsl:attribute name="class">light-row</xsl:attribute>
160 <xsl:attribute name="class">dark-row</xsl:attribute>
163 <xsl:attribute name="class">light-row</xsl:attribute>
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/uimodel/
DUiElementNode.java654 for (UiAttributeNode attribute : getAllUiAttributes()) { in hasError()
655 if (attribute.hasError()) { in hasError()
1666 Attr attribute = (Attr) attributes.item(i); in commitDirtyAttributesToXml() local
1668 attribute.getPrefix(), attribute.getLocalName(), in commitDirtyAttributesToXml()
1670 move.add(attribute); in commitDirtyAttributesToXml()
1674 for (Attr attribute : move) { in commitDirtyAttributesToXml()
1675 if (attribute.getNamespaceURI() != null) { in commitDirtyAttributesToXml()
1676 attributes.removeNamedItemNS(attribute.getNamespaceURI(), in commitDirtyAttributesToXml()
1677 attribute.getLocalName()); in commitDirtyAttributesToXml()
1679 attributes.removeNamedItem(attribute.getName()); in commitDirtyAttributesToXml()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/core/
DRefactoringUtil.java183 public static boolean isManifestClassAttribute(@NonNull Attr attribute) { in isManifestClassAttribute() argument
185 attribute.getOwnerElement().getTagName(), in isManifestClassAttribute()
186 attribute.getNamespaceURI(), in isManifestClassAttribute()
187 attribute.getLocalName()); in isManifestClassAttribute()

123