Home
last modified time | relevance | path

Searched refs:CHAR_SEQUENCE (Results 1 – 12 of 12) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DConverterTest.java32 …final TypedResource<String> resource = new TypedResource<>(" 100 ", ResType.CHAR_SEQUENCE, xmlCont… in fromCharSequence_asInt_shouldHandleSpacesInString()
33 assertThat(Converter.getConverter(ResType.CHAR_SEQUENCE).asInt(resource)).isEqualTo(100); in fromCharSequence_asInt_shouldHandleSpacesInString()
38 …esource<String> resource = new TypedResource<>(" Robolectric ", ResType.CHAR_SEQUENCE, xmlContext); in fromCharSequence_asCharSequence_shouldHandleSpacesInString()
39 …assertThat(Converter.getConverter(ResType.CHAR_SEQUENCE).asCharSequence(resource)).isEqualTo("Robo… in fromCharSequence_asCharSequence_shouldHandleSpacesInString()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DResourceTableFactory.java137 … .addHandler("plurals", new StaxPluralsLoader(resourceTable, "plurals", ResType.CHAR_SEQUENCE))
138 … .addHandler("string", new StaxValueLoader(resourceTable, "string", ResType.CHAR_SEQUENCE))
139 …andler("item[@type='string']", new StaxValueLoader(resourceTable, "string", ResType.CHAR_SEQUENCE))
140 …", new StaxArrayLoader(resourceTable, "array", ResType.CHAR_SEQUENCE_ARRAY, ResType.CHAR_SEQUENCE))
142 .addHandler("id", new StaxValueLoader(resourceTable, "id", ResType.CHAR_SEQUENCE))
143 … .addHandler("item[@type='id']", new StaxValueLoader(resourceTable, "id", ResType.CHAR_SEQUENCE))
DResType.java19 CHAR_SEQUENCE, enumConstant
30 if (itemResType == ResType.CHAR_SEQUENCE) { in inferType()
65 return CHAR_SEQUENCE; in inferFromValue()
DStaxValueLoader.java13 if (resType == ResType.CHAR_SEQUENCE) { in StaxValueLoader()
32 if (resType == ResType.CHAR_SEQUENCE) { in onEnd()
/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/
DStaxValueLoaderTest.java33 .addHandler("string", new StaxValueLoader(resourceTable, "string", ResType.CHAR_SEQUENCE)) in ignoresXliffTags()
47 …andler("item[@type='string']", new StaxValueLoader(resourceTable, "string", ResType.CHAR_SEQUENCE)) in ignoresBTags()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/
DResBundleTest.java174 … TypedResource firstValue = new TypedResource<>("first_value", ResType.CHAR_SEQUENCE, xmlContext); in shouldNotOverwriteValuesWithMatchingQualifiers()
175 …TypedResource secondValue = new TypedResource<>("second_value", ResType.CHAR_SEQUENCE, xmlContext); in shouldNotOverwriteValuesWithMatchingQualifiers()
200 return new TypedResource<>(str, ResType.CHAR_SEQUENCE, mockXmlContext); in createStringTypedResource()
DStaxPluralsLoaderTest.java20 …uralsLoader pluralsLoader = new StaxPluralsLoader(resourceTable, "plurals", ResType.CHAR_SEQUENCE); in setUp()
DResourceParserTest.java60 assertThat(value.getResType()).isEqualTo(ResType.CHAR_SEQUENCE); in shouldLoadIdResourcesDefinedByItemTag()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DConverter.java50 case CHAR_SEQUENCE: in getConverter()
DShadowResourcesImpl.java96 …new TypedResource<>(plural.getString(), ResType.CHAR_SEQUENCE, pluralRules.getXmlContext()), shado… in getQuantityString()
DShadowResources.java123 … new TypedResource<>(plural.getString(), ResType.CHAR_SEQUENCE, pluralRules.getXmlContext()), in getQuantityString()
DShadowAssetManager.java710 } else if (resType == ResType.CHAR_SEQUENCE || resType == ResType.DRAWABLE) { in getResourceType()