OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:pluralResourceLoader
(Results
1 - 2
of
2
) sorted by null
/external/robolectric/src/test/java/com/xtremelabs/robolectric/res/
PluralResourceLoaderTest.java
12
private
PluralResourceLoader
pluralResourceLoader
;
20
pluralResourceLoader
= new
PluralResourceLoader
(resourceExtractor, stringResourceLoader);
23
new DocumentLoader(
pluralResourceLoader
).loadResourceXmlDir(resourceFile("res", "values"));
28
assertThat(
pluralResourceLoader
.getValue(R.plurals.beer, 0), equalTo("Howdy"));
29
assertThat(
pluralResourceLoader
.getValue(R.plurals.beer, 1), equalTo("One beer"));
30
assertThat(
pluralResourceLoader
.getValue(R.plurals.beer, 2), equalTo("Two beers"));
31
assertThat(
pluralResourceLoader
.getValue(R.plurals.beer, 3), equalTo("%d beers, yay!"));
/external/robolectric/src/main/java/com/xtremelabs/robolectric/res/
ResourceLoader.java
63
private final
PluralResourceLoader
pluralResourceLoader
;
94
pluralResourceLoader
= new
PluralResourceLoader
( resourceExtractor, stringResourceLoader );
177
DocumentLoader stringResourceDocumentLoader = new DocumentLoader( this.
pluralResourceLoader
);
373
pluralResourceLoader
= null;
412
return
pluralResourceLoader
.getValue( id, quantity );
Completed in 99 milliseconds