Java 类com.bumptech.glide.provider.FixedLoadProvider 实例源码

项目:saarang-iosched    文件:GenericTranscodeRequest.java   
private static <A, T, Z, R> LoadProvider<A, T, Z, R> build(Glide glide, ModelLoader<A, T> modelLoader,
        Class<T> dataClass, Class<Z> resourceClass, ResourceTranscoder<Z, R> transcoder) {
    if (transcoder == null) {
        transcoder = UnitTranscoder.get();
    }
    return new FixedLoadProvider<A, T, Z, R>(modelLoader, transcoder,
            glide.buildDataProvider(dataClass, resourceClass));
}
项目:saarang-iosched    文件:DrawableTypeRequest.java   
private static <A, Z, R> FixedLoadProvider<A, ImageVideoWrapper, Z, R> buildProvider(Glide glide,
        ModelLoader<A, InputStream> streamModelLoader,
        ModelLoader<A, ParcelFileDescriptor> fileDescriptorModelLoader, Class<Z> resourceClass,
        Class<R> transcodedClass,
        ResourceTranscoder<Z, R> transcoder) {
        return streamModelLoader == null && fileDescriptorModelLoader == null ? null :
                new FixedLoadProvider<A, ImageVideoWrapper, Z, R>(
                        new ImageVideoModelLoader<A>(streamModelLoader, fileDescriptorModelLoader),
                        transcoder != null ? transcoder : glide.buildTranscoder(resourceClass, transcodedClass),
                        glide.buildDataProvider(ImageVideoWrapper.class, resourceClass));
}
项目:saarang-iosched    文件:BitmapTypeRequest.java   
private static <A, R> FixedLoadProvider<A, ImageVideoWrapper, Bitmap, R> buildProvider(Glide glide,
        ModelLoader<A, InputStream> streamModelLoader,
        ModelLoader<A, ParcelFileDescriptor> fileDescriptorModelLoader,
        Class<R> transcodedClass,
        ResourceTranscoder<Bitmap, R> transcoder) {
        return streamModelLoader == null && fileDescriptorModelLoader == null ? null :
                new FixedLoadProvider<A, ImageVideoWrapper, Bitmap, R>(
                        new ImageVideoModelLoader<A>(streamModelLoader, fileDescriptorModelLoader),
                        transcoder != null ? transcoder : glide.buildTranscoder(Bitmap.class, transcodedClass),
                        glide.buildDataProvider(ImageVideoWrapper.class, Bitmap.class));
}
项目:AppDevFestSudeste2015    文件:GenericTranscodeRequest.java   
private static <A, T, Z, R> LoadProvider<A, T, Z, R> build(Glide glide, ModelLoader<A, T> modelLoader,
        Class<T> dataClass, Class<Z> resourceClass, ResourceTranscoder<Z, R> transcoder) {
    if (transcoder == null) {
        transcoder = UnitTranscoder.get();
    }
    return new FixedLoadProvider<A, T, Z, R>(modelLoader, transcoder,
            glide.buildDataProvider(dataClass, resourceClass));
}
项目:AppDevFestSudeste2015    文件:DrawableTypeRequest.java   
private static <A, Z, R> FixedLoadProvider<A, ImageVideoWrapper, Z, R> buildProvider(Glide glide,
        ModelLoader<A, InputStream> streamModelLoader,
        ModelLoader<A, ParcelFileDescriptor> fileDescriptorModelLoader, Class<Z> resourceClass,
        Class<R> transcodedClass,
        ResourceTranscoder<Z, R> transcoder) {
        return streamModelLoader == null && fileDescriptorModelLoader == null ? null :
                new FixedLoadProvider<A, ImageVideoWrapper, Z, R>(
                        new ImageVideoModelLoader<A>(streamModelLoader, fileDescriptorModelLoader),
                        transcoder != null ? transcoder : glide.buildTranscoder(resourceClass, transcodedClass),
                        glide.buildDataProvider(ImageVideoWrapper.class, resourceClass));
}
项目:AppDevFestSudeste2015    文件:BitmapTypeRequest.java   
private static <A, R> FixedLoadProvider<A, ImageVideoWrapper, Bitmap, R> buildProvider(Glide glide,
        ModelLoader<A, InputStream> streamModelLoader,
        ModelLoader<A, ParcelFileDescriptor> fileDescriptorModelLoader,
        Class<R> transcodedClass,
        ResourceTranscoder<Bitmap, R> transcoder) {
        return streamModelLoader == null && fileDescriptorModelLoader == null ? null :
                new FixedLoadProvider<A, ImageVideoWrapper, Bitmap, R>(
                        new ImageVideoModelLoader<A>(streamModelLoader, fileDescriptorModelLoader),
                        transcoder != null ? transcoder : glide.buildTranscoder(Bitmap.class, transcodedClass),
                        glide.buildDataProvider(ImageVideoWrapper.class, Bitmap.class));
}
项目:devfestnorte-app    文件:GenericTranscodeRequest.java   
private static <A, T, Z, R> LoadProvider<A, T, Z, R> build(Glide glide, ModelLoader<A, T> modelLoader,
        Class<T> dataClass, Class<Z> resourceClass, ResourceTranscoder<Z, R> transcoder) {
    if (transcoder == null) {
        transcoder = UnitTranscoder.get();
    }
    return new FixedLoadProvider<A, T, Z, R>(modelLoader, transcoder,
            glide.buildDataProvider(dataClass, resourceClass));
}
项目:devfestnorte-app    文件:DrawableTypeRequest.java   
private static <A, Z, R> FixedLoadProvider<A, ImageVideoWrapper, Z, R> buildProvider(Glide glide,
        ModelLoader<A, InputStream> streamModelLoader,
        ModelLoader<A, ParcelFileDescriptor> fileDescriptorModelLoader, Class<Z> resourceClass,
        Class<R> transcodedClass,
        ResourceTranscoder<Z, R> transcoder) {
        return streamModelLoader == null && fileDescriptorModelLoader == null ? null :
                new FixedLoadProvider<A, ImageVideoWrapper, Z, R>(
                        new ImageVideoModelLoader<A>(streamModelLoader, fileDescriptorModelLoader),
                        transcoder != null ? transcoder : glide.buildTranscoder(resourceClass, transcodedClass),
                        glide.buildDataProvider(ImageVideoWrapper.class, resourceClass));
}
项目:devfestnorte-app    文件:BitmapTypeRequest.java   
private static <A, R> FixedLoadProvider<A, ImageVideoWrapper, Bitmap, R> buildProvider(Glide glide,
        ModelLoader<A, InputStream> streamModelLoader,
        ModelLoader<A, ParcelFileDescriptor> fileDescriptorModelLoader,
        Class<R> transcodedClass,
        ResourceTranscoder<Bitmap, R> transcoder) {
        return streamModelLoader == null && fileDescriptorModelLoader == null ? null :
                new FixedLoadProvider<A, ImageVideoWrapper, Bitmap, R>(
                        new ImageVideoModelLoader<A>(streamModelLoader, fileDescriptorModelLoader),
                        transcoder != null ? transcoder : glide.buildTranscoder(Bitmap.class, transcodedClass),
                        glide.buildDataProvider(ImageVideoWrapper.class, Bitmap.class));
}
项目:saarang-iosched    文件:GenericTranscodeRequest.java   
private static <A, T, Z, R> LoadProvider<A, T, Z, R> build(Glide glide, ModelLoader<A, T> modelLoader,
        Class<T> dataClass, Class<Z> resourceClass, ResourceTranscoder<Z, R> transcoder) {
    if (transcoder == null) {
        transcoder = UnitTranscoder.get();
    }
    return new FixedLoadProvider<A, T, Z, R>(modelLoader, transcoder,
            glide.buildDataProvider(dataClass, resourceClass));
}
项目:saarang-iosched    文件:DrawableTypeRequest.java   
private static <A, Z, R> FixedLoadProvider<A, ImageVideoWrapper, Z, R> buildProvider(Glide glide,
        ModelLoader<A, InputStream> streamModelLoader,
        ModelLoader<A, ParcelFileDescriptor> fileDescriptorModelLoader, Class<Z> resourceClass,
        Class<R> transcodedClass,
        ResourceTranscoder<Z, R> transcoder) {
        return streamModelLoader == null && fileDescriptorModelLoader == null ? null :
                new FixedLoadProvider<A, ImageVideoWrapper, Z, R>(
                        new ImageVideoModelLoader<A>(streamModelLoader, fileDescriptorModelLoader),
                        transcoder != null ? transcoder : glide.buildTranscoder(resourceClass, transcodedClass),
                        glide.buildDataProvider(ImageVideoWrapper.class, resourceClass));
}
项目:saarang-iosched    文件:BitmapTypeRequest.java   
private static <A, R> FixedLoadProvider<A, ImageVideoWrapper, Bitmap, R> buildProvider(Glide glide,
        ModelLoader<A, InputStream> streamModelLoader,
        ModelLoader<A, ParcelFileDescriptor> fileDescriptorModelLoader,
        Class<R> transcodedClass,
        ResourceTranscoder<Bitmap, R> transcoder) {
        return streamModelLoader == null && fileDescriptorModelLoader == null ? null :
                new FixedLoadProvider<A, ImageVideoWrapper, Bitmap, R>(
                        new ImageVideoModelLoader<A>(streamModelLoader, fileDescriptorModelLoader),
                        transcoder != null ? transcoder : glide.buildTranscoder(Bitmap.class, transcodedClass),
                        glide.buildDataProvider(ImageVideoWrapper.class, Bitmap.class));
}