Home
last modified time | relevance | path

Searched refs:inferFromValue (Results 1 – 4 of 4) sorted by relevance

/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/
DResTypeTest.java18 assertThat(ResType.inferFromValue("#802C76AD")).isEqualTo(ResType.COLOR); in testInferFromValue()
20 assertThat(ResType.inferFromValue("true")).isEqualTo(ResType.BOOLEAN); in testInferFromValue()
21 assertThat(ResType.inferFromValue("false")).isEqualTo(ResType.BOOLEAN); in testInferFromValue()
23 assertThat(ResType.inferFromValue("10dp")).isEqualTo(ResType.DIMEN); in testInferFromValue()
24 assertThat(ResType.inferFromValue("10sp")).isEqualTo(ResType.DIMEN); in testInferFromValue()
25 assertThat(ResType.inferFromValue("10pt")).isEqualTo(ResType.DIMEN); in testInferFromValue()
26 assertThat(ResType.inferFromValue("10px")).isEqualTo(ResType.DIMEN); in testInferFromValue()
27 assertThat(ResType.inferFromValue("10in")).isEqualTo(ResType.DIMEN); in testInferFromValue()
29 assertThat(ResType.inferFromValue("10")).isEqualTo(ResType.INTEGER); in testInferFromValue()
31 assertThat(ResType.inferFromValue("10.9")).isEqualTo(ResType.FRACTION); in testInferFromValue()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DResType.java29 ResType itemResType = ResType.inferFromValue(itemString); in inferType()
46 public static ResType inferFromValue(String value) { in inferFromValue() method in ResType
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/
DAttributeSetBuilderImpl.java225 ResType resType = ResType.inferFromValue(attribute.value); in parseValue()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowLegacyAssetManager.java234 ResType resType = ResType.inferFromValue(attribute.value); in convertAndFill()