Home
last modified time | relevance | path

Searched refs:stringResourceLoader (Results 1 – 9 of 9) sorted by relevance

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/res/
DStringResourceLoaderTest.java12 private StringResourceLoader stringResourceLoader; field in StringResourceLoaderTest
17 stringResourceLoader = new StringResourceLoader(resourceExtractor); in setUp()
18 new DocumentLoader(stringResourceLoader).loadResourceXmlDir(resourceFile("res", "values")); in setUp()
23 assertThat(stringResourceLoader.getValue(R.string.hello), equalTo("Hello")); in testStringsAreResolved()
24 assertThat(stringResourceLoader.getValue(R.string.howdy), equalTo("Howdy")); in testStringsAreResolved()
29 assertThat(stringResourceLoader.getValue(R.string.some_html), equalTo("Hello, world")); in testHtmlTagsAreRemovedFromStrings()
34 assertThat(stringResourceLoader.getValue(R.string.greeting), equalTo("Howdy")); in shouldResolveStringReferences()
DStringArrayResourceLoaderTest.java26 StringResourceLoader stringResourceLoader = new StringResourceLoader(resourceExtractor); in setUp() local
27 new DocumentLoader(stringResourceLoader).loadResourceXmlDir(resourceXmlDir); in setUp()
28 new DocumentLoader(stringResourceLoader).loadSystemResourceXmlDir(systemResourceXmlDir); in setUp()
30 …stringArrayResourceLoader = new StringArrayResourceLoader(resourceExtractor, stringResourceLoader); in setUp()
DPluralResourceLoaderTest.java19 StringResourceLoader stringResourceLoader = new StringResourceLoader(resourceExtractor); in setUp() local
20 pluralResourceLoader = new PluralResourceLoader(resourceExtractor, stringResourceLoader); in setUp()
22 new DocumentLoader(stringResourceLoader).loadResourceXmlDir(resourceFile("res", "values")); in setUp()
DPreferenceLoaderTest.java37 StringResourceLoader stringResourceLoader = new StringResourceLoader(resourceExtractor); in setUp() local
38 new DocumentLoader(stringResourceLoader).loadResourceXmlDir(resourceFile("res", "values")); in setUp()
59 StringResourceLoader stringResourceLoader = new StringResourceLoader(resourceExtractor); in shouldThrowI18nExceptionOnPrefsWithBareStrings() local
60 new DocumentLoader(stringResourceLoader).loadResourceXmlDir(resourceFile("res", "values")); in shouldThrowI18nExceptionOnPrefsWithBareStrings()
DMenuLoaderTest.java41 StringResourceLoader stringResourceLoader = new StringResourceLoader(resourceExtractor); in setUp() local
42 new DocumentLoader(stringResourceLoader).loadResourceXmlDir(resourceFile("res", "values")); in setUp()
43 … new DocumentLoader(stringResourceLoader).loadSystemResourceXmlDir(getSystemResourceDir("values")); in setUp()
DViewLoaderTest.java43 StringResourceLoader stringResourceLoader = new StringResourceLoader(resourceExtractor); in setUp() local
44 new DocumentLoader(stringResourceLoader).loadResourceXmlDir(resourceFile("res", "values")); in setUp()
45 … new DocumentLoader(stringResourceLoader).loadSystemResourceXmlDir(getSystemResourceDir("values")); in setUp()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/
DStringArrayResourceLoader.java17 private StringResourceLoader stringResourceLoader; field in StringArrayResourceLoader
19 …rayResourceLoader(ResourceExtractor resourceExtractor, StringResourceLoader stringResourceLoader) { in StringArrayResourceLoader() argument
21 this.stringResourceLoader = stringResourceLoader; in StringArrayResourceLoader()
38 arrayValues.add(stringResourceLoader.getValue(value , isSystem)); in processNode()
DPluralResourceLoader.java17 private StringResourceLoader stringResourceLoader; field in PluralResourceLoader
19 …ralResourceLoader(ResourceExtractor resourceExtractor, StringResourceLoader stringResourceLoader) { in PluralResourceLoader() argument
21 this.stringResourceLoader = stringResourceLoader; in PluralResourceLoader()
46 rules.add(new Plural(quantity, stringResourceLoader.getValue(value, isSystem))); in processNode()
DResourceLoader.java62 private final StringResourceLoader stringResourceLoader; field in ResourceLoader
93 stringResourceLoader = new StringResourceLoader( resourceExtractor ); in ResourceLoader()
94 pluralResourceLoader = new PluralResourceLoader( resourceExtractor, stringResourceLoader ); in ResourceLoader()
95 …ringArrayResourceLoader = new StringArrayResourceLoader( resourceExtractor, stringResourceLoader ); in ResourceLoader()
172 DocumentLoader stringResourceDocumentLoader = new DocumentLoader( this.stringResourceLoader ); in loadStringResources()
370 protected ResourceLoader( StringResourceLoader stringResourceLoader ) { in ResourceLoader() argument
372 this.stringResourceLoader = stringResourceLoader; in ResourceLoader()
407 return stringResourceLoader.getValue( id ); in getStringValue()