/external/glide/library/src/main/java/com/bumptech/glide/load/model/ |
H A D | ModelLoader.java | 1 package com.bumptech.glide.load.model; 3 import com.bumptech.glide.load.model.stream.StreamStringLoader; 8 * An interface for translating an arbitrarily complex data model into a concrete data type that can be used by an 9 * {@link DataFetcher} to obtain the data for an image represented by the model. 12 * 1. To translate a specific data model into something that can be used by a decoder to load a Bitmap. 14 * 2. To allow a data model to be combined with the dimensions of the view to fetch an image of a specific size. 24 * @param <T> The type of the model 32 * image represented by this model. The {@link DataFetcher} will not be used if 42 * @param model The model representin 48 getResourceFetcher(T model, int width, int height) argument [all...] |
H A D | ModelLoaderFactory.java | 1 package com.bumptech.glide.load.model; 6 * An interface for creating a {@link ModelLoader} for a given model type. Will be retained statically so should not 14 * Build a concrete ModelLoader for this model type.
|
H A D | NullEncoder.java | 1 package com.bumptech.glide.load.model;
|
H A D | ResourceLoader.java | 1 package com.bumptech.glide.load.model; 8 * A model loader for handling resources. Model must be a resource id in the package of the given context. 21 public DataFetcher<T> getResourceFetcher(Integer model, int width, int height) { argument 22 Uri uri = Uri.parse("android.resource://" + context.getPackageName() + "/" + model.toString());
|
H A D | StreamEncoder.java | 1 package com.bumptech.glide.load.model;
|
H A D | StringLoader.java | 1 package com.bumptech.glide.load.model; 9 * A model loader for handling certain string models. Handles paths, urls, and any uri string with a scheme handled by 20 public DataFetcher<T> getResourceFetcher(String model, int width, int height) { argument 21 Uri uri = Uri.parse(model); 25 uri = Uri.fromFile(new File(model));
|
H A D | UriLoader.java | 1 package com.bumptech.glide.load.model; 18 public final DataFetcher<T> getResourceFetcher(Uri model, int width, int height) { argument 19 final String scheme = model.getScheme(); 23 result = getLocalUriFetcher(context, model); 25 result = urlLoader.getResourceFetcher(new GlideUrl(model.toString()), width, height);
|
H A D | UrlLoader.java | 1 package com.bumptech.glide.load.model; 15 public DataFetcher<T> getResourceFetcher(URL model, int width, int height) { argument 16 return glideUrlLoader.getResourceFetcher(new GlideUrl(model), width, height);
|
/external/glide/library/src/main/java/com/bumptech/glide/load/model/file_descriptor/ |
H A D | FileDescriptorFileLoader.java | 1 package com.bumptech.glide.load.model.file_descriptor; 7 import com.bumptech.glide.load.model.FileLoader; 8 import com.bumptech.glide.load.model.GenericLoaderFactory; 9 import com.bumptech.glide.load.model.ModelLoader; 10 import com.bumptech.glide.load.model.ModelLoaderFactory;
|
H A D | FileDescriptorModelLoader.java | 1 package com.bumptech.glide.load.model.file_descriptor; 4 import com.bumptech.glide.load.model.ModelLoader; 11 * @param <T> The type of the model that will be translated into an {@link File}.
|
H A D | FileDescriptorResourceLoader.java | 1 package com.bumptech.glide.load.model.file_descriptor; 7 import com.bumptech.glide.load.model.GenericLoaderFactory; 8 import com.bumptech.glide.load.model.ModelLoader; 9 import com.bumptech.glide.load.model.ModelLoaderFactory; 10 import com.bumptech.glide.load.model.ResourceLoader;
|
H A D | FileDescriptorStringLoader.java | 1 package com.bumptech.glide.load.model.file_descriptor; 7 import com.bumptech.glide.load.model.GenericLoaderFactory; 8 import com.bumptech.glide.load.model.ModelLoader; 9 import com.bumptech.glide.load.model.ModelLoaderFactory; 10 import com.bumptech.glide.load.model.StringLoader;
|
H A D | FileDescriptorUriLoader.java | 1 package com.bumptech.glide.load.model.file_descriptor; 7 import com.bumptech.glide.load.model.GenericLoaderFactory; 8 import com.bumptech.glide.load.model.GlideUrl; 9 import com.bumptech.glide.load.model.ModelLoader; 10 import com.bumptech.glide.load.model.ModelLoaderFactory; 11 import com.bumptech.glide.load.model.UriLoader;
|
/external/glide/library/src/main/java/com/bumptech/glide/load/model/stream/ |
H A D | BaseGlideUrlLoader.java | 1 package com.bumptech.glide.load.model.stream; 5 import com.bumptech.glide.load.model.ModelCache; 6 import com.bumptech.glide.load.model.GlideUrl; 7 import com.bumptech.glide.load.model.ModelLoader; 13 * A base class for loading images over http/https. Can be subclassed for use with any model that can be translated 16 * @param <T> The type of the model 41 public DataFetcher<InputStream> getResourceFetcher(T model, int width, int height) { argument 44 result = modelCache.get(model, width, height); 48 String stringURL = getUrl(model, width, height); 52 modelCache.put(model, widt 67 getUrl(T model, int width, int height) argument [all...] |
H A D | MediaStoreStreamLoader.java | 1 package com.bumptech.glide.load.model.stream; 7 import com.bumptech.glide.load.model.ModelLoader; 28 public DataFetcher<InputStream> getResourceFetcher(Uri model, int width, int height) { argument 29 return new MediaStoreThumbFetcher(context, model, uriLoader.getResourceFetcher(model, width, height), width,
|
H A D | StreamByteArrayLoader.java | 1 package com.bumptech.glide.load.model.stream; 25 public DataFetcher<InputStream> getResourceFetcher(byte[] model, int width, int height) { argument 26 return new ByteArrayFetcher(model, id);
|
H A D | StreamFileLoader.java | 1 package com.bumptech.glide.load.model.stream; 6 import com.bumptech.glide.load.model.FileLoader; 7 import com.bumptech.glide.load.model.GenericLoaderFactory; 8 import com.bumptech.glide.load.model.ModelLoader; 9 import com.bumptech.glide.load.model.ModelLoaderFactory;
|
H A D | StreamModelLoader.java | 1 package com.bumptech.glide.load.model.stream; 3 import com.bumptech.glide.load.model.ModelLoader; 10 * @param <T> The type of the model that will be translated into an {@link InputStream}.
|
H A D | StreamResourceLoader.java | 1 package com.bumptech.glide.load.model.stream; 6 import com.bumptech.glide.load.model.GenericLoaderFactory; 7 import com.bumptech.glide.load.model.ModelLoader; 8 import com.bumptech.glide.load.model.ModelLoaderFactory; 9 import com.bumptech.glide.load.model.ResourceLoader;
|
H A D | StreamStringLoader.java | 1 package com.bumptech.glide.load.model.stream; 6 import com.bumptech.glide.load.model.GenericLoaderFactory; 7 import com.bumptech.glide.load.model.ModelLoader; 8 import com.bumptech.glide.load.model.ModelLoaderFactory; 9 import com.bumptech.glide.load.model.StringLoader;
|
H A D | StreamUriLoader.java | 1 package com.bumptech.glide.load.model.stream; 6 import com.bumptech.glide.load.model.GenericLoaderFactory; 7 import com.bumptech.glide.load.model.GlideUrl; 8 import com.bumptech.glide.load.model.ModelLoader; 9 import com.bumptech.glide.load.model.ModelLoaderFactory; 10 import com.bumptech.glide.load.model.UriLoader;
|
H A D | StreamUrlLoader.java | 1 package com.bumptech.glide.load.model.stream; 4 import com.bumptech.glide.load.model.GlideUrl; 5 import com.bumptech.glide.load.model.GenericLoaderFactory; 6 import com.bumptech.glide.load.model.ModelLoader; 7 import com.bumptech.glide.load.model.ModelLoaderFactory; 8 import com.bumptech.glide.load.model.UrlLoader;
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/ |
H A D | GifFrameModelLoader.java | 6 import com.bumptech.glide.load.model.ModelLoader; 11 public DataFetcher<GifDecoder> getResourceFetcher(GifDecoder model, int width, int height) { argument 12 return new GifFrameDataFetcher(model);
|
/external/glide/library/src/main/java/com/bumptech/glide/request/ |
H A D | GenericRequest.java | 14 import com.bumptech.glide.load.model.ModelLoader; 27 * @param <A> The type of the model that the resource will be loaded from. 40 private A model; field in class:GenericRequest 69 A model, 93 model, 122 model = null; 144 A model, 164 this.model = model; 186 if (model ! 67 obtain( LoadProvider<A, T, Z, R> loadProvider, A model, Context context, Priority priority, Target<R> target, float sizeMultiplier, Drawable placeholderDrawable, int placeholderResourceId, Drawable errorDrawable, int errorResourceId, RequestListener<A, R> requestListener, RequestCoordinator requestCoordinator, Engine engine, Transformation<Z> transformation, Class<R> transcodeClass, boolean isMemoryCacheable, GlideAnimationFactory<R> animationFactory, int overrideWidth, int overrideHeight, boolean cacheSource) argument 142 init( LoadProvider<A, T, Z, R> loadProvider, A model, Context context, Priority priority, Target<R> target, float sizeMultiplier, Drawable placeholderDrawable, int placeholderResourceId, Drawable errorDrawable, int errorResourceId, RequestListener<A, R> requestListener, RequestCoordinator requestCoordinator, Engine engine, Transformation<Z> transformation, Class<R> transcodeClass, boolean isMemoryCacheable, GlideAnimationFactory<R> animationFactory, int overrideWidth, int overrideHeight, boolean cacheSource) argument [all...] |
H A D | RequestListener.java | 8 * @param <T> The type of the model being loaded. 15 * for the given model in the given target. It is recommended to create a single instance per activity/fragment 19 * It is safe to reload this or a different model or change what is displayed in the target at this point. 23 * public void onException(Exception e, ModelType model, Target target) { 25 * Glide.load(model).into(target); 32 * Note - if you want to reload this or any other model after an exception, you will need to include all 37 * @param model The model we were trying to load when the exception occurred 42 public abstract boolean onException(Exception e, T model, Target target, boolean isFirstImage); argument 48 * @param model Th 58 onResourceReady(R resource, T model, Target target, boolean isFromMemoryCache, boolean isFirstResource) argument [all...] |