OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:StringArrayResourceLoader
(Results
1 - 3
of
3
) sorted by null
/external/robolectric/src/main/java/com/xtremelabs/robolectric/res/
StringArrayResourceLoader.java
15
public class
StringArrayResourceLoader
extends XpathResourceXmlLoader {
19
public
StringArrayResourceLoader
(ResourceExtractor resourceExtractor, StringResourceLoader stringResourceLoader) {
ResourceLoader.java
64
private final
StringArrayResourceLoader
stringArrayResourceLoader
;
95
stringArrayResourceLoader
= new
StringArrayResourceLoader
( resourceExtractor, stringResourceLoader );
182
DocumentLoader valueResourceLoader = new DocumentLoader(
stringArrayResourceLoader
, colorResourceLoader,
375
stringArrayResourceLoader
= null;
519
return
stringArrayResourceLoader
.getArrayValue( id );
/external/robolectric/src/test/java/com/xtremelabs/robolectric/res/
StringArrayResourceLoaderTest.java
16
private
StringArrayResourceLoader
stringArrayResourceLoader
;
30
stringArrayResourceLoader
= new
StringArrayResourceLoader
(resourceExtractor, stringResourceLoader);
31
new DocumentLoader(
stringArrayResourceLoader
).loadResourceXmlDir(resourceXmlDir);
32
new DocumentLoader(
stringArrayResourceLoader
).loadSystemResourceXmlDir(systemResourceXmlDir);
37
assertThat(Arrays.asList(
stringArrayResourceLoader
.getArrayValue(R.array.items)), hasItems("foo", "bar"));
42
assertThat(Arrays.asList(
stringArrayResourceLoader
.getArrayValue(R.array.greetings)), hasItems("hola", "Hello"));
47
assertThat(Arrays.asList(
stringArrayResourceLoader
.getArrayValue(android.R.array.emailAddressTypes)), hasItems("Home", "Work", "Other", "Custom"));
48
assertThat(Arrays.asList(
stringArrayResourceLoader
.getArrayValue(R.array.emailAddressTypes)), hasItems("Doggy", "Catty"))
[
all
...]
Completed in 2967 milliseconds