Searched defs:model (Results 101 - 125 of 561) sorted by last modified time

1234567891011>>

/external/glide/library/src/main/java/com/bumptech/glide/load/model/
H A DModelLoader.java1 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 DModelLoaderFactory.java1 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 DNullEncoder.java1 package com.bumptech.glide.load.model;
H A DResourceLoader.java1 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 DStreamEncoder.java1 package com.bumptech.glide.load.model;
H A DStringLoader.java1 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 DUriLoader.java1 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 DUrlLoader.java1 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 DFileDescriptorFileLoader.java1 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 DFileDescriptorModelLoader.java1 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 DFileDescriptorResourceLoader.java1 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 DFileDescriptorStringLoader.java1 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 DFileDescriptorUriLoader.java1 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 DBaseGlideUrlLoader.java1 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 DMediaStoreStreamLoader.java1 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 DStreamByteArrayLoader.java1 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 DStreamFileLoader.java1 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 DStreamModelLoader.java1 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 DStreamResourceLoader.java1 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 DStreamStringLoader.java1 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 DStreamUriLoader.java1 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 DStreamUrlLoader.java1 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 DGifFrameModelLoader.java6 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 DGenericRequest.java14 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 DRequestListener.java8 * @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...]

Completed in 1476 milliseconds

1234567891011>>