/external/robolectric/src/main/java/com/xtremelabs/robolectric/res/ |
XmlLoader.java | 8 protected ResourceExtractor resourceExtractor; 11 public XmlLoader(ResourceExtractor resourceExtractor) { 12 this.resourceExtractor = resourceExtractor;
|
DimenResourceLoader.java | 11 public DimenResourceLoader(ResourceExtractor resourceExtractor) { 12 super(resourceExtractor, "/resources/dimen"); 16 return dimenResolver.getValue(resourceExtractor.getResourceName(resourceId)); 20 return getValue(resourceExtractor.getResourceId(resourceName, isSystem));
|
StringResourceLoader.java | 8 public StringResourceLoader(ResourceExtractor resourceExtractor) { 9 super(resourceExtractor, "/resources/string"); 13 return stringResolver.getValue(resourceExtractor.getResourceName(resourceId)); 17 return getValue(resourceExtractor.getResourceId(resourceName, isSystem));
|
RawResourceLoader.java | 10 private ResourceExtractor resourceExtractor; 13 public RawResourceLoader(ResourceExtractor resourceExtractor, File resourceDir) { 14 this.resourceExtractor = resourceExtractor; 19 String resourceFileName = resourceExtractor.getResourceName(resourceId);
|
IntegerResourceLoader.java | 9 public IntegerResourceLoader( ResourceExtractor resourceExtractor ) { 10 super( resourceExtractor, "integer" ); 15 String resourceName = resourceExtractor.getResourceName(resourceId); 28 Integer resourceId = resourceExtractor.getResourceId(resourceName, isSystem);
|
ColorResourceLoader.java | 27 public ColorResourceLoader(ResourceExtractor resourceExtractor) { 28 super(resourceExtractor, "/resources/color"); 32 String resourceName = resourceExtractor.getResourceName(colorId);
|
StringArrayResourceLoader.java | 19 public StringArrayResourceLoader(ResourceExtractor resourceExtractor, StringResourceLoader stringResourceLoader) { 20 super(resourceExtractor, "/resources/string-array"); 25 String resourceName = resourceExtractor.getResourceName(resourceId);
|
XTagXmlResourceLoader.java | 32 public XTagXmlResourceLoader( ResourceExtractor resourceExtractor, String tag ) { 33 super( resourceExtractor );
|
XpathResourceXmlLoader.java | 16 public XpathResourceXmlLoader(ResourceExtractor resourceExtractor, String expression) { 17 super(resourceExtractor);
|
ResourceLoader.java | 58 private final ResourceExtractor resourceExtractor; 87 resourceExtractor = new ResourceExtractor(); 89 resourceExtractor.addLocalRClass( rClass ); 91 resourceExtractor.addSystemRClass( R.class ); 93 stringResourceLoader = new StringResourceLoader( resourceExtractor ); 94 pluralResourceLoader = new PluralResourceLoader( resourceExtractor, stringResourceLoader ); 95 stringArrayResourceLoader = new StringArrayResourceLoader( resourceExtractor, stringResourceLoader ); 96 colorResourceLoader = new ColorResourceLoader( resourceExtractor ); [all...] |
PluralResourceLoader.java | 19 public PluralResourceLoader(ResourceExtractor resourceExtractor, StringResourceLoader stringResourceLoader) { 20 super(resourceExtractor, "/resources/plurals"); 25 String name = resourceExtractor.getResourceName(resourceId);
|
DrawableResourceLoader.java | 50 public DrawableResourceLoader(ResourceExtractor extractor, File resourceDirectory) { 62 return documents.containsKey(resourceExtractor.getResourceName(resourceId)); 71 Document xmlDoc = documents.get(resourceExtractor.getResourceName(resId)); 134 String resourceName = resourceExtractor.getResourceName(resourceId); 147 drawableIds[i] = resourceExtractor.getResourceId(drawableName.getNodeValue()); 156 Document document = documents.get(resourceExtractor.getResourceName(resourceId)); 168 int resId = resourceExtractor.getResourceId(drawableName.getNodeValue());
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/res/ |
ResourceExtractorTest.java | 12 private ResourceExtractor resourceExtractor; 16 resourceExtractor = new ResourceExtractor(); 17 resourceExtractor.addLocalRClass(R.class); 18 resourceExtractor.addSystemRClass(android.R.class); 23 assertThat(resourceExtractor.getLocalResourceId("id/textStyle"), equalTo(R.id.textStyle)); 24 assertThat(resourceExtractor.getLocalResourceId("styleable/TitleBar_textStyle"), CoreMatchers.<Object>nullValue()); 29 assertThat(resourceExtractor.getResourceId("android:id/text1"), equalTo(android.R.id.text1)); 34 assertThat(resourceExtractor.getLocalResourceId("@null"), equalTo(0)) [all...] |
PreferenceLoaderTest.java | 35 ResourceExtractor resourceExtractor = new ResourceExtractor(); 36 resourceExtractor.addLocalRClass(R.class); 37 StringResourceLoader stringResourceLoader = new StringResourceLoader(resourceExtractor); 39 prefLoader = new PreferenceLoader(resourceExtractor); 57 ResourceExtractor resourceExtractor = new ResourceExtractor(); 58 resourceExtractor.addLocalRClass(R.class) [all...] |
PluralResourceLoaderTest.java | 16 ResourceExtractor resourceExtractor = new ResourceExtractor(); 17 resourceExtractor.addLocalRClass(R.class); 19 StringResourceLoader stringResourceLoader = new StringResourceLoader(resourceExtractor); 20 pluralResourceLoader = new PluralResourceLoader(resourceExtractor, stringResourceLoader);
|
StringArrayResourceLoaderTest.java | 19 ResourceExtractor resourceExtractor = new ResourceExtractor(); 20 resourceExtractor.addLocalRClass(R.class); 21 resourceExtractor.addSystemRClass(android.R.class); 26 StringResourceLoader stringResourceLoader = new StringResourceLoader(resourceExtractor); 30 stringArrayResourceLoader = new StringArrayResourceLoader(resourceExtractor, stringResourceLoader);
|
TestAttributeSetTest.java | 22 private ResourceExtractor resourceExtractor; 28 resourceExtractor = new ResourceExtractor(); 29 resourceExtractor.addLocalRClass(R.class); 30 resourceExtractor.addSystemRClass(android.R.class); 36 TestAttributeSet testAttributeSet = new TestAttributeSet(attributes, resourceExtractor, null, null, false); 43 TestAttributeSet testAttributeSet = new TestAttributeSet(attributes, resourceExtractor, null, null, false); 50 TestAttributeSet testAttributeSet = new TestAttributeSet(attributes, resourceExtractor, null, null, false); 58 TestAttributeSet testAttributeSet = new TestAttributeSet(attributes, resourceExtractor, null, null, true) [all...] |
AttrResourceLoaderTest.java | 21 ResourceExtractor resourceExtractor = new ResourceExtractor(); 22 resourceExtractor.addLocalRClass(R.class); 23 resourceExtractor.addSystemRClass(android.R.class); 24 attrResourceLoader = new AttrResourceLoader(resourceExtractor);
|
DimenResourceLoaderTest.java | 18 ResourceExtractor resourceExtractor = new ResourceExtractor(); 19 resourceExtractor.addLocalRClass(R.class); 20 dimenResourceLoader = new DimenResourceLoader(resourceExtractor);
|
RawResourceLoaderTest.java | 26 ResourceExtractor resourceExtractor = new ResourceExtractor(); 27 resourceExtractor.addLocalRClass(R.class); 28 rawResourceLoader = new RawResourceLoader(resourceExtractor, resourceFile("res"));
|
StringResourceLoaderTest.java | 15 ResourceExtractor resourceExtractor = new ResourceExtractor(); 16 resourceExtractor.addLocalRClass(R.class); 17 stringResourceLoader = new StringResourceLoader(resourceExtractor);
|
MenuLoaderTest.java | 37 ResourceExtractor resourceExtractor = new ResourceExtractor(); 38 resourceExtractor.addLocalRClass(R.class); 39 resourceExtractor.addSystemRClass(android.R.class); 41 StringResourceLoader stringResourceLoader = new StringResourceLoader(resourceExtractor); 45 menuLoader = new MenuLoader(resourceExtractor, new AttrResourceLoader(resourceExtractor));
|
ColorResourceLoaderTest.java | 17 ResourceExtractor resourceExtractor = new ResourceExtractor(); 18 resourceExtractor.addLocalRClass(R.class); 19 resourceExtractor.addSystemRClass(android.R.class); 20 colorResourceLoader = new ColorResourceLoader(resourceExtractor);
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
BrowserStartupController.java | 269 ResourceExtractor resourceExtractor = ResourceExtractor.get(mContext); 270 resourceExtractor.startExtractingResources(); 281 resourceExtractor.waitForCompletion(); 292 ResourceExtractor resourceExtractor = ResourceExtractor.get(mContext); 293 resourceExtractor.startExtractingResources(); 294 resourceExtractor.waitForCompletion() [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/util/ |
TestAttributeSet.java | 6 import com.xtremelabs.robolectric.res.ResourceExtractor; 13 private ResourceExtractor resourceExtractor; 32 public TestAttributeSet(Map<String, String> attributes, ResourceExtractor resourceExtractor, 35 this.resourceExtractor = resourceExtractor; 43 this.resourceExtractor = new ResourceExtractor(); 44 this.attrResourceLoader = new AttrResourceLoader(this.resourceExtractor); [all...] |