Home
last modified time | relevance | path

Searched refs:AttributeResource (Results 1 – 18 of 18) sorted by relevance

/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DStyleData.java14 private final Map<ResName, AttributeResource> items = new LinkedHashMap<>();
16 …public StyleData(String packageName, String name, String parent, List<AttributeResource> attribute… in StyleData()
21 for (AttributeResource attributeResource : attributeResources) { in StyleData()
34 private void add(ResName attrName, AttributeResource attribute) { in add()
39 @Override public AttributeResource getAttrValue(ResName resName) { in getAttrValue()
40 AttributeResource attributeResource = items.get(resName); in getAttrValue()
49 … attributeResource = new AttributeResource(resName, attributeResource.value, resName.packageName); in getAttrValue()
66 for (AttributeResource attributeResource : items.values()) { in visit()
72 void visit(AttributeResource attributeResource); in visit()
DStyleResolver.java26 @Override public AttributeResource getAttrValue(ResName resName) { in getAttrValue()
28 AttributeResource value = style.getAttrValue(resName); in getAttrValue()
42 AttributeResource value = style.getAttrValue(resName); in getAttrValue()
48 AttributeResource value = theme.getAttrValue(resName); in getAttrValue()
121 AttributeResource value = parentStyle.getAttrValue(styleRef); in dereferenceResName()
129 AttributeResource value = theme.getAttrValue(styleRef); in dereferenceResName()
140 private ResName dereferenceAttr(AttributeResource attr) { in dereferenceAttr()
DThemeStyleSet.java13 @Override public AttributeResource getAttrValue(ResName attrName) { in getAttrValue()
14 AttributeResource attribute = null; in getAttrValue()
17 AttributeResource overlayedAttribute = overlayedStyle.style.getAttrValue(attrName); in getAttrValue()
DAttributeResource.java6 public class AttributeResource { class
21 …public AttributeResource(@Nonnull ResName resName, @Nonnull String value, @Nonnull String contextP… in AttributeResource() method in AttributeResource
25 …public AttributeResource(@Nonnull ResName resName, @Nonnull String value, @Nonnull String contextP… in AttributeResource() method in AttributeResource
DResType.java31 if (AttributeResource.isStyleReference(itemString)) { in inferType()
35 } else if (AttributeResource.isResourceReference(itemString)) { in inferType()
DStaxStyleLoader.java11 private List<AttributeResource> attributeResources;
34 …attributeResources.add(new AttributeResource(attrResName, buf.toString(), xmlContext.getPackageNam… in StaxStyleLoader()
DStyle.java4 AttributeResource getAttrValue(ResName resName); in getAttrValue()
DEmptyStyle.java5 public AttributeResource getAttrValue(ResName resName) { in getAttrValue()
DResName.java96 if (AttributeResource.isNull(possiblyQualifiedResourceName)) { in qualifyResName()
/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/
DStyleDataTest.java20 new AttributeResource(myLibSearchViewStyle, "lib_value", "library.resource") in getAttrValue_willFindLibraryResourcesWithSameName()
32 new AttributeResource(androidSearchViewStyle, "android_value", "android") in getAttrValue_willNotFindFrameworkResourcesWithSameName()
44 new AttributeResource(myLibSearchViewStyle, "lib_value", "library.resource"), in getAttrValue_willChooseBetweenAmbiguousAttributes()
45 new AttributeResource(androidSearchViewStyle, "android_value", "android") in getAttrValue_willChooseBetweenAmbiguousAttributes()
58 new AttributeResource(myLibSearchViewStyle, "\n lib_value ", "library.resource") in getAttrValue_willReturnTrimmedAttributeValues()
DThemeStyleSetTest.java44 private StyleData createStyle(String styleName, AttributeResource... attributeResources) { in createStyle()
48 private AttributeResource createAttribute(String attrName, String value) { in createAttribute()
49 return new AttributeResource(attrName(attrName), value, "package"); in createAttribute()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/
DXmlResourceParserImpl.java3 import static org.robolectric.res.AttributeResource.ANDROID_RES_NS_PREFIX;
4 import static org.robolectric.res.AttributeResource.RES_AUTO_NS_URI;
14 import org.robolectric.res.AttributeResource;
263 && element.hasAttributeNS(AttributeResource.RES_AUTO_NS_URI, name)) { in getAttribute()
264 return element.getAttributeNS(AttributeResource.RES_AUTO_NS_URI, name).trim(); in getAttribute()
283 return AttributeResource.RES_AUTO_NS_URI; in maybeReplaceNamespace()
324 if (AttributeResource.isResourceReference(value)) { in qualify()
326 } else if (AttributeResource.isStyleReference(value)) { in qualify()
632 if (attr != null && attr.startsWith("@") && !AttributeResource.isNull(attr)) { in getAttributeResourceValue()
754 … (!AttributeResource.isResourceReference(attr) && !AttributeResource.isStyleReference(attr))) { in getStyleAttribute()
[all …]
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/
DAttributeSetBuilderImpl.java27 import org.robolectric.res.AttributeResource;
74 void parseValue(Integer attrId, ResName attrResName, AttributeResource attribute, in parseValue()
129 public void parseValue(Integer attrId, ResName attrResName, AttributeResource attribute, in parseValue()
134 private void arscParse(Integer attrId, ResName attrResName, AttributeResource attribute, in arscParse()
196 public void parseValue(Integer attrId, ResName attrResName, AttributeResource attribute, in parseValue()
300 if (value == null || AttributeResource.isNull(value)) { in build()
303 } else if (AttributeResource.isResourceReference(value)) { in build()
304 ResName resRef = AttributeResource.getResourceReference(value, packageName, null); in build()
316 } else if (AttributeResource.isStyleReference(value)) { in build()
317 ResName resRef = AttributeResource.getStyleReference(value, packageName, "attr"); in build()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowLegacyAssetManager.java64 import org.robolectric.res.AttributeResource;
139 …private void convertAndFill(AttributeResource attribute, TypedValue outValue, ResTable_config conf… in convertAndFill()
192 …attribute = new AttributeResource(attribute.resName, dereferencedRef.asString(), resName.packageNa… in convertAndFill()
361 AttributeResource attrValue = themeStyleSet.getAttrValue(resName); in getThemeValue()
791 ResName refResName = AttributeResource.getResourceReference(reference, in getTypedArray()
811 final ResName attrResName = AttributeResource.getStyleReference(reference, in getTypedArray()
1050 if (AttributeResource.isNull(s) || AttributeResource.isEmpty(s)) { in resolveResource()
1065 if (AttributeResource.isNull(s) || AttributeResource.isEmpty(s)) { in resolveResourceValue()
1100 AttributeResource defStyleAttribute = themeStyleSet.getAttrValue(defStyleName); in buildTypedValue()
1103AttributeResource other = themeStyleSet.getAttrValue(defStyleAttribute.getStyleReference()); in buildTypedValue()
[all …]
DLegacyManifestParser.java65 import org.robolectric.res.AttributeResource;
428 AttributeResource.getResourceReference(descriptionRef, owner.packageName, "string"); in createPermissionInfo()
435 if (AttributeResource.isResourceReference(labelRefOrString)) { in createPermissionInfo()
437 AttributeResource.getResourceReference(labelRefOrString, owner.packageName, "string"); in createPermissionInfo()
458 AttributeResource.getResourceReference(descriptionRef, owner.packageName, "string"); in createPermissionGroupInfo()
465 if (AttributeResource.isResourceReference(labelRefOrString)) { in createPermissionGroupInfo()
467 AttributeResource.getResourceReference(labelRefOrString, owner.packageName, "string"); in createPermissionGroupInfo()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DAttributeSetBuilderTest.java6 import static org.robolectric.res.AttributeResource.ANDROID_NS;
7 import static org.robolectric.res.AttributeResource.ANDROID_RES_NS_PREFIX;
8 import static org.robolectric.res.AttributeResource.RES_AUTO_NS_URI;
16 import org.robolectric.res.AttributeResource;
50 .addAttribute(android.R.attr.text, AttributeResource.NULL_VALUE) in getSystemAttributeResourceValue_shouldReturnDefaultValueForNullResourceId()
90 .addAttribute(android.R.attr.text, AttributeResource.NULL_VALUE) in getAttributeResourceValue_shouldReturnDefaultValueWhenAttributeIsNull()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowTypedArrayTest.java16 import org.robolectric.res.AttributeResource;
153 .addAttribute(R.attr.responses, AttributeResource.NULL_VALUE) in hasValue_withNullValue()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/
DResourceTestUtil.java54 public void visit(AttributeResource attributeResource) { in stringify()