Searched refs:getAttributeIntValue (Results 1 – 3 of 3) sorted by relevance
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/ |
D | AttributeSetBuilderTest.java | 185 assertThat(roboAttributeSet.getAttributeIntValue(APP_NS, "sugarinessPercent", 0)) in getAttributeIntValue_shouldReturnValueFromAttribute() 195 assertThat(roboAttributeSet.getAttributeIntValue(APP_NS, "sugarinessPercent", 0)) in getAttributeIntValue_shouldReturnHexValueFromAttribute() 205 assertThat(roboAttributeSet.getAttributeIntValue(APP_NS, "numColumns", 0)) in getAttributeIntValue_whenTypeAllowsIntOrEnum_withInt_shouldReturnInt() 214 assertThat(roboAttributeSet.getAttributeIntValue(APP_NS, "sugarinessPercent", 42)) in getAttributeIntValue_shouldReturnValueFromAttributeWhenNotInAttributeSet() 223 assertThat(roboAttributeSet.getAttributeIntValue(APP_NS, "itemType", 24)) in getAttributeIntValue_shouldReturnEnumValuesForEnumAttributesWhenNotInAttributeSet() 233 assertThat(roboAttributeSet.getAttributeIntValue(APP_NS, "itemType", 24)) in getAttributeIntValue_shouldReturnEnumValuesForEnumAttributesInAttributeSet() 240 assertThat(roboAttributeSet2.getAttributeIntValue(APP_NS, "itemType", 24)) in getAttributeIntValue_shouldReturnEnumValuesForEnumAttributesInAttributeSet() 276 assertThat(roboAttributeSet.getAttributeIntValue(APP_NS, "scrollBars", 24)) in getAttributeIntValue_shouldReturnFlagValuesForFlagAttributesInAttributeSet()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/ |
D | XmlResourceParserImplTest.java | 605 assertThat(parser.getAttributeIntValue(RES_AUTO_NS, "bar", 0)).isEqualTo(-12); in testGetAttributeIntValue_StringStringInt() 606 assertThat(parser.getAttributeIntValue(RES_AUTO_NS, "foo", 0)).isEqualTo(0); in testGetAttributeIntValue_StringStringInt() 613 assertThat(parser.getAttributeIntValue(0, 0)).isEqualTo(-12); in testGetAttributeIntValue_IntInt() 615 assertThat(parser.getAttributeIntValue(attributeIndexOutOfIndex(), 0)).isEqualTo(0); in testGetAttributeIntValue_IntInt() 618 assertThat(parser.getAttributeIntValue(0, 0)).isEqualTo(0); in testGetAttributeIntValue_IntInt()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/ |
D | XmlResourceParserImpl.java | 639 public int getAttributeIntValue(String namespace, String attribute, int defaultValue) { in getAttributeIntValue() method in XmlResourceParserImpl 645 int value = getAttributeIntValue(namespace, attribute, defaultValue); in getAttributeUnsignedIntValue() 705 public int getAttributeIntValue(int idx, int defaultValue) { in getAttributeIntValue() method in XmlResourceParserImpl 717 int value = getAttributeIntValue(idx, defaultValue); in getAttributeUnsignedIntValue()
|