Home
last modified time | relevance | path

Searched refs:getAttributeResourceValue (Results 1 – 8 of 8) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DAttributeSetBuilderTest.java33 assertThat(roboAttributeSet.getAttributeResourceValue(ANDROID_NS, "text", 0)) in getAttributeResourceValue_shouldReturnTheResourceValue()
43 assertThat(roboAttributeSet.getAttributeResourceValue(ANDROID_NS, "text", 0)) in getAttributeResourceValueWithLeadingWhitespace_shouldReturnTheResourceValue()
53 …assertThat(roboAttributeSet.getAttributeResourceValue(ANDROID_RES_NS_PREFIX + "com.some.namespace"… in getSystemAttributeResourceValue_shouldReturnDefaultValueForNullResourceId()
63 …assertThat(roboAttributeSet.getAttributeResourceValue(ANDROID_RES_NS_PREFIX + "com.some.other.name… in getSystemAttributeResourceValue_shouldReturnDefaultValueForNonMatchingNamespaceId()
73 assertThat(roboAttributeSet.getAttributeResourceValue(ANDROID_NS, "id", 0)) in shouldCopeWithDefiningLocalIds()
83 assertThat(roboAttributeSet.getAttributeResourceValue(APP_NS, "message", 0)) in getAttributeResourceValue_withNamespace_shouldReturnTheResourceValue()
93 assertThat(roboAttributeSet.getAttributeResourceValue(APP_NS, "message", -1)) in getAttributeResourceValue_shouldReturnDefaultValueWhenAttributeIsNull()
102 assertThat(roboAttributeSet.getAttributeResourceValue(APP_NS, "message", -1)) in getAttributeResourceValue_shouldReturnDefaultValueWhenNotInAttributeSet()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DCustomView.java18 attributeResourceValue = attrs.getAttributeResourceValue(ROBOLECTRIC_RES_URI, "message", -1); in CustomView()
19 namespacedResourceValue = attrs.getAttributeResourceValue(FAKE_URI, "message", -1); in CustomView()
DXmlResourceParserImplTest.java583 assertThat(parser.getAttributeResourceValue(0, 42)).isEqualTo(R.layout.main); in testGetAttributeResourceValueIntInt()
591 assertThat(parser.getAttributeResourceValue(RES_AUTO_NS, "bar", 42)).isEqualTo(R.layout.main); in testGetAttributeResourceValueStringStringInt()
592 assertThat(parser.getAttributeResourceValue(RES_AUTO_NS, "foo", 42)).isEqualTo(42); in testGetAttributeResourceValueStringStringInt()
598 assertThat(parser.getAttributeResourceValue(RES_AUTO_NS, "bar", 42)).isEqualTo(42); in testGetAttributeResourceValueWhenNotAResource()
/external/replicaisland/src/com/replica/replicaisland/
DLevelTree.java122 final int value = parser.getAttributeResourceValue(i, -1); in loadLevelTree()
149 final int value = parser.getAttributeResourceValue(i, -1); in loadLevelTree()
161 final int value = parser.getAttributeResourceValue(i, -1); in loadLevelTree()
174 final int value = parser.getAttributeResourceValue(i, -1); in loadLevelTree()
DConversationUtils.java62 final int value = parser.getAttributeResourceValue(i, -1); in loadDialog()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/
DXmlResourceParserImpl.java630 public int getAttributeResourceValue(String namespace, String attribute, int defaultValue) { in getAttributeResourceValue() method in XmlResourceParserImpl
693 public int getAttributeResourceValue(int idx, int defaultValue) { in getAttributeResourceValue() method in XmlResourceParserImpl
747 return getAttributeResourceValue(null, "id", defaultValue); in getIdAttributeResourceValue()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DXmlPullParserTest.java166 parser.getAttributeValue(i), parser.getAttributeResourceValue(i, -1)); in format()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowLegacyAssetManager.java1243 referenceResId = attributeSet.getAttributeResourceValue(i, -1); in findAttributeValue()