Home
last modified time | relevance | path

Searched refs:ByteArrayPool (Results 1 – 14 of 14) sorted by relevance

/external/volley/src/test/java/com/android/volley/toolbox/
DPoolingByteArrayOutputStreamTest.java28 ByteArrayPool pool = new ByteArrayPool(32768); in pooledOneBuffer()
36 ByteArrayPool pool = new ByteArrayPool(32768); in pooledIndividualWrites()
44 ByteArrayPool pool = new ByteArrayPool(0); in unpooled()
52 ByteArrayPool pool = new ByteArrayPool(0); in unpooledIndividualWrites()
58 private void writeOneBuffer(ByteArrayPool pool) throws IOException { in writeOneBuffer()
69 private void writeBytesIndividually(ByteArrayPool pool) { in writeBytesIndividually()
DByteArrayPoolTest.java28 ByteArrayPool pool = new ByteArrayPool(32); in reusesBuffer()
45 ByteArrayPool pool = new ByteArrayPool(32); in obeysSizeLimit()
67 ByteArrayPool pool = new ByteArrayPool(32); in returnsBufferWithRightSize()
DBasicNetworkTest.java321 BasicNetwork httpNetwork = new BasicNetwork(mockHttpStack, new ByteArrayPool(4096)); in serverError_enableRetries()
DBasicAsyncNetworkTest.java374 .setPool(new ByteArrayPool(4096)) in serverError_enableRetries()
/external/glide/library/src/main/java/com/bumptech/glide/util/
DByteArrayPool.java10 public final class ByteArrayPool { class
19 private static final ByteArrayPool BYTE_ARRAY_POOL = new ByteArrayPool();
24 public static ByteArrayPool get() { in get()
28 private ByteArrayPool() { } in ByteArrayPool() method in ByteArrayPool
/external/volley/src/main/java/com/android/volley/toolbox/
DBasicNetwork.java45 protected final ByteArrayPool mPool;
56 this(httpStack, new ByteArrayPool(DEFAULT_POOL_SIZE)); in BasicNetwork()
66 public BasicNetwork(HttpStack httpStack, ByteArrayPool pool) { in BasicNetwork()
76 this(httpStack, new ByteArrayPool(DEFAULT_POOL_SIZE)); in BasicNetwork()
83 public BasicNetwork(BaseHttpStack httpStack, ByteArrayPool pool) { in BasicNetwork()
DPoolingByteArrayOutputStream.java33 private final ByteArrayPool mPool;
39 public PoolingByteArrayOutputStream(ByteArrayPool pool) { in PoolingByteArrayOutputStream()
51 public PoolingByteArrayOutputStream(ByteArrayPool pool, int size) { in PoolingByteArrayOutputStream()
DBasicAsyncNetwork.java43 private final ByteArrayPool mPool;
49 private BasicAsyncNetwork(AsyncHttpStack httpStack, ByteArrayPool pool) { in BasicAsyncNetwork()
264 private ByteArrayPool mPool;
275 public Builder setPool(ByteArrayPool pool) { in setPool()
283 mPool = new ByteArrayPool(DEFAULT_POOL_SIZE); in build()
DByteArrayPool.java52 public class ByteArrayPool { class
77 public ByteArrayPool(int sizeLimit) { in ByteArrayPool() method in ByteArrayPool
DNetworkUtility.java87 static byte[] inputStreamToBytes(InputStream in, int contentLength, ByteArrayPool pool) in inputStreamToBytes()
/external/glide/library/src/main/java/com/bumptech/glide/load/model/
DStreamEncoder.java6 import com.bumptech.glide.util.ByteArrayPool;
20 byte[] buffer = ByteArrayPool.get().getBytes(); in encode()
33 ByteArrayPool.get().releaseBytes(buffer); in encode()
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gifbitmap/
DGifBitmapWrapperResourceDecoder.java13 import com.bumptech.glide.util.ByteArrayPool;
56 ByteArrayPool pool = ByteArrayPool.get(); in decode()
/external/volley/src/main/java/com/android/volley/cronet/
DCronetHttpStack.java30 import com.android.volley.toolbox.ByteArrayPool;
60 private final ByteArrayPool mPool;
71 ByteArrayPool pool, in CronetHttpStack()
406 private ByteArrayPool mPool;
424 public Builder setPool(ByteArrayPool pool) { in setPool()
512 mPool = new ByteArrayPool(DEFAULT_POOL_SIZE); in build()
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
DDownsampler.java11 import com.bumptech.glide.util.ByteArrayPool;
104 final ByteArrayPool byteArrayPool = ByteArrayPool.get(); in decode()