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

1 2

  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/
GifBitmapProvider.java 7 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
10 private final BitmapPool bitmapPool;
12 public GifBitmapProvider(BitmapPool bitmapPool) {
13 this.bitmapPool = bitmapPool;
18 return bitmapPool.getDirty(width, height, config);
23 if (!bitmapPool.put(bitmap)) {
GifFrameResourceDecoder.java 8 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
12 private final BitmapPool bitmapPool;
14 public GifFrameResourceDecoder(BitmapPool bitmapPool) {
15 this.bitmapPool = bitmapPool;
21 return BitmapResource.obtain(bitmap, bitmapPool);
GifDrawableTransformation.java 7 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
16 private final BitmapPool bitmapPool;
18 public GifDrawableTransformation(Transformation<Bitmap> wrapped, BitmapPool bitmapPool) {
20 this.bitmapPool = bitmapPool;
32 Resource<Bitmap> bitmapResource = new BitmapResource(firstFrame, bitmapPool);
GifResourceEncoder.java 13 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
29 private final BitmapPool bitmapPool;
32 public GifResourceEncoder(BitmapPool bitmapPool) {
33 this(bitmapPool, FACTORY);
37 GifResourceEncoder(BitmapPool bitmapPool, Factory factory) {
38 this.bitmapPool = bitmapPool;
    [all...]
GifResourceDecoder.java 13 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
33 private final BitmapPool bitmapPool;
41 public GifResourceDecoder(Context context, BitmapPool bitmapPool) {
42 this(context, bitmapPool, PARSER_POOL, DECODER_POOL);
46 GifResourceDecoder(Context context, BitmapPool bitmapPool, GifHeaderParserPool parserPool,
49 this.bitmapPool = bitmapPool;
    [all...]
GifDrawable.java 19 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
59 * @param bitmapPool A {@link com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool} that can be used to return
70 public GifDrawable(Context context, GifDecoder.BitmapProvider bitmapProvider, BitmapPool bitmapPool,
74 bitmapProvider, bitmapPool, firstFrame));
90 GifDrawable(GifDecoder decoder, GifFrameManager frameManager, Bitmap firstFrame, BitmapPool bitmapPool) {
94 state.bitmapPool = bitmapPool;
    [all...]
GifDrawableLoadProvider.java 8 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
26 public GifDrawableLoadProvider(Context context, BitmapPool bitmapPool) {
27 decoder = new GifResourceDecoder(context, bitmapPool);
29 encoder = new GifResourceEncoder(bitmapPool);
  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
BitmapResource.java 6 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
14 private final BitmapPool bitmapPool;
21 * @param bitmapPool A non-null {@link com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool}.
23 public static BitmapResource obtain(Bitmap bitmap, BitmapPool bitmapPool) {
27 return new BitmapResource(bitmap, bitmapPool);
31 public BitmapResource(Bitmap bitmap, BitmapPool bitmapPool) {
    [all...]
BitmapDrawableResource.java 5 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
15 * {@link com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool} when the resource is recycled.
19 private final BitmapPool bitmapPool;
21 public BitmapDrawableResource(BitmapDrawable drawable, BitmapPool bitmapPool) {
23 this.bitmapPool = bitmapPool;
33 bitmapPool.put(drawable.getBitmap());
GlideBitmapDrawableResource.java 3 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
11 private final BitmapPool bitmapPool;
13 public GlideBitmapDrawableResource(GlideBitmapDrawable drawable, BitmapPool bitmapPool) {
15 this.bitmapPool = bitmapPool;
25 bitmapPool.put(drawable.getBitmap());
FileDescriptorBitmapDecoder.java 11 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
21 private final BitmapPool bitmapPool;
32 public FileDescriptorBitmapDecoder(BitmapPool bitmapPool, DecodeFormat decodeFormat) {
33 this(new VideoBitmapDecoder(), bitmapPool, decodeFormat);
36 public FileDescriptorBitmapDecoder(VideoBitmapDecoder bitmapDecoder, BitmapPool bitmapPool,
39 this.bitmapPool = bitmapPool;
    [all...]
StreamBitmapDecoder.java 10 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
22 private BitmapPool bitmapPool;
30 public StreamBitmapDecoder(BitmapPool bitmapPool) {
31 this(bitmapPool, DecodeFormat.DEFAULT);
38 public StreamBitmapDecoder(BitmapPool bitmapPool, DecodeFormat decodeFormat) {
39 this(Downsampler.AT_LEAST, bitmapPool, decodeFormat);
42 public StreamBitmapDecoder(Downsampler downsampler, BitmapPool bitmapPool, DecodeFormat decodeFormat)
    [all...]
BitmapTransformation.java 9 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
20 * public Bitmap transform(BitmapPool pool, Bitmap toTransform, int outWidth, int outHeight) {
33 private BitmapPool bitmapPool;
39 public BitmapTransformation(BitmapPool bitmapPool) {
40 this.bitmapPool = bitmapPool;
50 Bitmap transformed = transform(bitmapPool, toTransform, outWidth, outHeight);
56 result = BitmapResource.obtain(transformed, bitmapPool);
    [all...]
FitCenter.java 6 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
18 public FitCenter(BitmapPool bitmapPool) {
19 super(bitmapPool);
23 protected Bitmap transform(BitmapPool pool, Bitmap toTransform, int outWidth, int outHeight) {
CenterCrop.java 6 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
20 public CenterCrop(BitmapPool bitmapPool) {
21 super(bitmapPool);
27 protected Bitmap transform(BitmapPool pool, Bitmap toTransform, int outWidth, int outHeight) {
BitmapDecoder.java 6 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
18 * @param bitmapPool A bitmap pool that can be used to reuse bitmaps during the load. Any bitmaps created or
25 Bitmap decode(T resource, BitmapPool bitmapPool, int outWidth, int outHeight, DecodeFormat decodeFormat)
FileDescriptorBitmapDataLoadProvider.java 10 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
27 public FileDescriptorBitmapDataLoadProvider(BitmapPool bitmapPool, DecodeFormat decodeFormat) {
28 cacheDecoder = new FileToStreamDecoder<Bitmap>(new StreamBitmapDecoder(bitmapPool, decodeFormat));
29 sourceDecoder = new FileDescriptorBitmapDecoder(bitmapPool, decodeFormat);
StreamBitmapDataLoadProvider.java 9 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
27 public StreamBitmapDataLoadProvider(BitmapPool bitmapPool, DecodeFormat decodeFormat) {
29 decoder = new StreamBitmapDecoder(bitmapPool, decodeFormat);
  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/transcode/
GlideBitmapDrawableTranscoder.java 9 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
19 private final BitmapPool bitmapPool;
25 public GlideBitmapDrawableTranscoder(Resources resources, BitmapPool bitmapPool) {
27 this.bitmapPool = bitmapPool;
33 return new GlideBitmapDrawableResource(drawable, bitmapPool);
  /external/glide/library/src/main/java/com/bumptech/glide/load/engine/prefill/
BitmapPreFillRunner.java 10 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
23 * {@link com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool} is pre-populated.
56 private final BitmapPool bitmapPool;
66 public BitmapPreFillRunner(BitmapPool bitmapPool, MemoryCache memoryCache, PreFillQueue allocationOrder) {
67 this(bitmapPool, memoryCache, allocationOrder, DEFAULT_CLOCK, new Handler(Looper.getMainLooper()));
71 BitmapPreFillRunner(BitmapPool bitmapPool, MemoryCache memoryCache, PreFillQueue allocationOrder, Clock clock,
73 this.bitmapPool = bitmapPool
    [all...]
BitmapPreFiller.java 8 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
17 * {@link com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool}.
22 private final BitmapPool bitmapPool;
28 public BitmapPreFiller(MemoryCache memoryCache, BitmapPool bitmapPool, DecodeFormat defaultFormat) {
30 this.bitmapPool = bitmapPool;
50 current = new BitmapPreFillRunner(bitmapPool, memoryCache, allocationOrder);
56 final int maxSize = memoryCache.getMaxSize() - memoryCache.getCurrentSize() + bitmapPool.getMaxSize()
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/
GlideBuilder.java 8 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
29 private BitmapPool bitmapPool;
41 * Sets the {@link com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool} implementation to use to store and
44 * @param bitmapPool The pool to use.
47 public GlideBuilder setBitmapPool(BitmapPool bitmapPool) {
48 this.bitmapPool = bitmapPool;
155 if (bitmapPool == null)
    [all...]
Glide.java 21 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
75 * maintaining an {@link Engine}, {@link BitmapPool}, {@link com.bumptech.glide.load.engine.cache.DiskCache} and
88 private final BitmapPool bitmapPool;
187 Glide(Engine engine, MemoryCache memoryCache, BitmapPool bitmapPool, Context context, DecodeFormat decodeFormat) {
189 this.bitmapPool = bitmapPool;
194 bitmapPreFiller = new BitmapPreFiller(memoryCache, bitmapPool, decodeFormat);
199 new StreamBitmapDataLoadProvider(bitmapPool, decodeFormat)
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/datamodel/media/
FileImageRequest.java 86 final ReusableImageResourcePool bitmapPool = getBitmapPool();
87 if (bitmapPool == null) {
93 return bitmapPool.decodeByteArray(thumbnail, options, sampledWidth,
  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/gifbitmap/
GifBitmapWrapperResourceDecoder.java 7 import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
31 private final BitmapPool bitmapPool;
37 ResourceDecoder<InputStream, GifDrawable> gifDecoder, BitmapPool bitmapPool) {
38 this(bitmapDecoder, gifDecoder, bitmapPool, DEFAULT_PARSER, DEFAULT_STREAM_FACTORY);
43 ResourceDecoder<InputStream, GifDrawable> gifDecoder, BitmapPool bitmapPool, ImageTypeParser parser,
47 this.bitmapPool = bitmapPool;
    [all...]

Completed in 1115 milliseconds

1 2