HomeSort by relevance Sort by last modified time
    Searched refs:resourceLoader (Results 1 - 25 of 46) sorted by null

1 2

  /external/robolectric/src/test/java/com/xtremelabs/robolectric/res/
ResourceLoaderTest.java 24 assertTrue(ResourceLoader.isLayoutDirectory(File.separator + "layout"));
29 ResourceLoader resourceLoader = new ResourceLoader(10, R.class, resourceFile("res"), resourceFile("assets"));
30 String stringValue = resourceLoader.getStringValue(android.R.string.copy);
33 ViewLoader.ViewNode node = resourceLoader.getLayoutViewNode("android:layout/simple_spinner_item");
39 ResourceLoader resourceLoader = new ResourceLoader(10, R.class, resourceFile("res"), resourceFile("assets"));
40 String stringValue = resourceLoader.getStringValue(R.string.copy)
    [all...]
IntegerResourceLoaderTest.java 14 protected IntegerResourceLoader resourceLoader;
22 resourceLoader = new IntegerResourceLoader( extractor );
23 DocumentLoader documentLoader = new DocumentLoader(resourceLoader);
30 assertThat( resourceLoader.getValue( R.integer.test_integer1 ), equalTo( 2000 ) );
31 assertThat( resourceLoader.getValue( R.integer.test_integer2 ), equalTo( 9 ) );
32 assertThat( resourceLoader.getValue( R.integer.test_large_hex), equalTo( 0xFFFF0000 ) );
MenuResourceLoaderTest.java 23 ResourceLoader resourceLoader = new ResourceLoader(10, R.class, resourceFile("res"), resourceFile("menu"));
25 resourceLoader.inflateMenu(Robolectric.application, R.menu.test_withchilds, testMenu);
31 ResourceLoader resourceLoader = new ResourceLoader(10, R.class, resourceFile("res"), resourceFile("menu"));
33 resourceLoader.inflateMenu(Robolectric.application, R.menu.test_withchilds, testMenu);
DrawableResourceLoaderTest.java 29 protected DrawableResourceLoader resourceLoader;
37 resourceLoader = new DrawableResourceLoader(extractor, resourceFile("res"));
38 DocumentLoader documentLoader = new DocumentLoader(resourceLoader);
46 assertTrue("drawable/rainbow", resourceLoader.documents.containsKey("drawable/rainbow"));
47 assertEquals("documents.size", 116, resourceLoader.documents.size());
52 assertTrue(resourceLoader.isXml(R.drawable.rainbow));
57 assertTrue(resourceLoader.isXml(android.R.drawable.ic_popup_sync));
62 boolean result = resourceLoader.isXml(R.drawable.l0_red);
73 int[] result = resourceLoader.getDrawableIds(R.drawable.rainbow);
81 int[] result = resourceLoader.getDrawableIds(android.R.drawable.ic_popup_sync)
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowAssetManager.java 6 import com.xtremelabs.robolectric.res.ResourceLoader;
18 static AssetManager bind(AssetManager assetManager, ResourceLoader resourceLoader) {
20 if (shadowAssetManager.resourceLoader != null) throw new RuntimeException("ResourceLoader already set!");
21 shadowAssetManager.resourceLoader = resourceLoader;
25 private ResourceLoader resourceLoader;
29 File file = new File(resourceLoader.getAssetsBase(), path)
    [all...]
ShadowResources.java 19 import com.xtremelabs.robolectric.res.ResourceLoader;
40 static Resources bind(Resources resources, ResourceLoader resourceLoader) {
42 if (shadowResources.resourceLoader != null) throw new RuntimeException("ResourceLoader already set!");
43 shadowResources.resourceLoader = resourceLoader;
49 private ResourceLoader resourceLoader;
55 ResourceExtractor resourceExtractor = resourceLoader.getResourceExtractor()
    [all...]
  /external/jsilver/src/com/google/clearsilver/jsilver/data/
DataFactory.java 20 import com.google.clearsilver.jsilver.resourceloader.ResourceLoader;
37 void loadData(final String dataFileName, ResourceLoader resourceLoader, Data output)
43 Data loadData(String dataFileName, ResourceLoader resourceLoader) throws IOException;
HDFDataFactory.java 20 import com.google.clearsilver.jsilver.resourceloader.ResourceLoader;
52 public void loadData(final String dataFileName, ResourceLoader resourceLoader, Data output)
54 Reader reader = resourceLoader.open(dataFileName);
64 }, resourceLoader, dataFileName, ignoreAttributes);
66 resourceLoader.close(reader);
71 public Data loadData(String dataFileName, ResourceLoader resourceLoader) throws IOException {
73 loadData(dataFileName, resourceLoader, result)
    [all...]
Parser.java 19 import com.google.clearsilver.jsilver.resourceloader.ResourceLoader;
50 * @param resourceLoader ResourceLoader to use to read in included files.
56 void parse(Reader reader, Data output, ErrorHandler errorHandler, ResourceLoader resourceLoader,
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/matchers/
ImageViewHasDrawableMatcher.java 4 import com.xtremelabs.robolectric.res.ResourceLoader;
26 ResourceLoader resourceLoader = ResourceLoader.getFrom(actualImageView.getContext());
29 String actualName = nameOrUnset(resourceLoader, actualResourceId);
30 String expectedName = nameOrUnset(resourceLoader, expectedResourceId);
35 private String nameOrUnset(ResourceLoader resourceLoader, int resourceId) {
36 return resourceId == 0 ? "unset" : resourceLoader.getNameForId(resourceId);
  /external/jsilver/src/com/google/clearsilver/jsilver/template/
Template.java 21 import com.google.clearsilver.jsilver.resourceloader.ResourceLoader;
35 * @param resourceLoader ResourceLoader to use instead of the default template one when loading
38 void render(Data data, Appendable out, ResourceLoader resourceLoader) throws IOException;
52 * @param resourceLoader ResourceLoader to load files.
54 RenderingContext createRenderingContext(Data data, Appendable out, ResourceLoader resourceLoader);
    [all...]
TemplateLoader.java 20 import com.google.clearsilver.jsilver.resourceloader.ResourceLoader;
35 * @param resourceLoader the ResourceLoader object to use to load any files needed to satisfy this
39 Template load(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode);
DefaultRenderingContext.java 28 import com.google.clearsilver.jsilver.resourceloader.ResourceLoader;
45 private final ResourceLoader resourceLoader;
65 public DefaultRenderingContext(DataContext dataContext, ResourceLoader resourceLoader,
68 this.resourceLoader = resourceLoader;
204 public ResourceLoader getResourceLoader() {
205 return resourceLoader;
    [all...]
  /external/jsilver/src/com/google/clearsilver/jsilver/compatibility/
ClearsilverRenderer.java 23 import com.google.clearsilver.jsilver.resourceloader.ResourceLoader;
40 private final ResourceLoader defaultResourceLoader;
45 public ClearsilverRenderer(ClearsilverFactory factory, ResourceLoader resourceLoader) {
47 this.defaultResourceLoader = resourceLoader;
54 public ClearsilverRenderer(ResourceLoader resourceLoader) {
55 this(new JniClearsilverFactory(), resourceLoader);
60 final ResourceLoader resourceLoader) throws IOException, JSilverException
    [all...]
  /external/jsilver/src/com/google/clearsilver/jsilver/interpreter/
TemplateFactory.java 20 import com.google.clearsilver.jsilver.resourceloader.ResourceLoader;
26 * This interface always expects to take a ResourceLoader object from the caller. This helps
35 * @param resourceLoader use this ResourceLoader to locate the named template file and any
39 TemplateSyntaxTree find(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode);
InterpretedMacro.java 22 import com.google.clearsilver.jsilver.resourceloader.ResourceLoader;
72 public void render(Data data, Appendable out, ResourceLoader resourceLoader) throws IOException {
73 render(createRenderingContext(data, out, resourceLoader));
78 ResourceLoader resourceLoader) {
79 return owningTemplate.createRenderingContext(data, out, resourceLoader);
InterpretedTemplate.java 25 import com.google.clearsilver.jsilver.resourceloader.ResourceLoader;
58 public void render(Data data, Appendable out, ResourceLoader resourceLoader) throws IOException {
59 render(createRenderingContext(data, out, resourceLoader));
73 ResourceLoader resourceLoader) {
75 return new DefaultRenderingContext(dataContext, resourceLoader, out, functionExecutor,
InterpretedTemplateLoader.java 22 import com.google.clearsilver.jsilver.resourceloader.ResourceLoader;
51 public Template load(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode) {
53 resourceLoader, escapeMode), templateName, globalFunctionExecutor, autoEscapeOptions,
LoadingTemplateFactory.java 21 import com.google.clearsilver.jsilver.resourceloader.ResourceLoader;
36 public TemplateSyntaxTree find(String templateName, ResourceLoader resourceLoader,
39 Reader reader = resourceLoader.openOrFail(templateName);
OptimizingTemplateFactory.java 20 import com.google.clearsilver.jsilver.resourceloader.ResourceLoader;
65 public TemplateSyntaxTree find(String templateName, ResourceLoader resourceLoader,
67 TemplateSyntaxTree result = wrapped.find(templateName, resourceLoader, escapeMode);
  /external/jsilver/src/com/google/clearsilver/jsilver/
TemplateRenderer.java 21 import com.google.clearsilver.jsilver.resourceloader.ResourceLoader;
39 * @param resourceLoader ResourceLoader to use when reading in included files.
41 void render(String templateName, Data data, Appendable output, ResourceLoader resourceLoader)
45 * Same as {@link #render(String, Data, Appendable, ResourceLoader)}, except it uses the default
46 * ResourceLoader passed in to the JSilver constructor.
65 * @param resourceLoader ResourceLoader to use when reading in included files
    [all...]
  /external/jsilver/src/com/google/clearsilver/jsilver/compiler/
BaseCompiledTemplate.java 28 import com.google.clearsilver.jsilver.resourceloader.ResourceLoader;
74 public void render(Data data, Appendable out, ResourceLoader resourceLoader) throws IOException {
76 render(createRenderingContext(data, out, resourceLoader));
81 ResourceLoader resourceLoader) {
83 return new DefaultRenderingContext(dataContext, resourceLoader, out, functionExecutor,
255 public void render(Data data, Appendable out, ResourceLoader resourceLoader) throws IOException
    [all...]
  /external/jsilver/src/com/google/clearsilver/jsilver/adaptor/
JHdf.java 45 private ResourceLoaderAdaptor resourceLoader;
53 this.resourceLoader = new ResourceLoaderAdaptor(this, loadPathCache, null);
70 return resourceLoader;
83 dataFactory.loadData(filename, resourceLoader, data);
89 return resourceLoader.getCSFileLoader();
94 this.resourceLoader = new ResourceLoaderAdaptor(this, loadPathCache, fileLoader);
117 }, resourceLoader, null, options.getIgnoreAttributes());
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/
RobolectricTestRunner.java 35 import com.xtremelabs.robolectric.res.ResourceLoader;
44 * Installs a {@link RobolectricClassLoader} and {@link com.xtremelabs.robolectric.res.ResourceLoader} in order to
63 private static Map<RobolectricConfig, ResourceLoader> resourceLoaderForRootAndDirectory = new HashMap<RobolectricConfig, ResourceLoader>();
394 ResourceLoader resourceLoader = createResourceLoader(robolectricConfig );
399 resourceLoader.setLayoutQualifierSearchPath();
405 Robolectric.application = ShadowApplication.bind(createApplication(), resourceLoader);
435 * if these methods are invoked by application code. Additionally, Robolectric's ResourceLoader
560 private ResourceLoader createResourceLoader(final RobolectricConfig robolectricConfig)
    [all...]
  /external/jsilver/src/com/google/clearsilver/jsilver/precompiler/
PrecompiledTemplateLoader.java 23 import com.google.clearsilver.jsilver.resourceloader.ResourceLoader;
104 public Template load(String templateName, ResourceLoader resourceLoader, EscapeMode escapeMode) {
105 Object key = resourceLoader.getKey(templateName);
111 return nextLoader.load(templateName, resourceLoader, escapeMode);

Completed in 181 milliseconds

1 2