Searched refs:ByteArrayPool (Results 1 – 14 of 14) sorted by relevance
/external/volley/src/test/java/com/android/volley/toolbox/ |
D | PoolingByteArrayOutputStreamTest.java | 28 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()
|
D | ByteArrayPoolTest.java | 28 ByteArrayPool pool = new ByteArrayPool(32); in reusesBuffer() 45 ByteArrayPool pool = new ByteArrayPool(32); in obeysSizeLimit() 67 ByteArrayPool pool = new ByteArrayPool(32); in returnsBufferWithRightSize()
|
D | BasicNetworkTest.java | 321 BasicNetwork httpNetwork = new BasicNetwork(mockHttpStack, new ByteArrayPool(4096)); in serverError_enableRetries()
|
D | BasicAsyncNetworkTest.java | 374 .setPool(new ByteArrayPool(4096)) in serverError_enableRetries()
|
/external/glide/library/src/main/java/com/bumptech/glide/util/ |
D | ByteArrayPool.java | 10 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/ |
D | BasicNetwork.java | 45 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()
|
D | PoolingByteArrayOutputStream.java | 33 private final ByteArrayPool mPool; 39 public PoolingByteArrayOutputStream(ByteArrayPool pool) { in PoolingByteArrayOutputStream() 51 public PoolingByteArrayOutputStream(ByteArrayPool pool, int size) { in PoolingByteArrayOutputStream()
|
D | BasicAsyncNetwork.java | 43 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()
|
D | ByteArrayPool.java | 52 public class ByteArrayPool { class 77 public ByteArrayPool(int sizeLimit) { in ByteArrayPool() method in ByteArrayPool
|
D | NetworkUtility.java | 87 static byte[] inputStreamToBytes(InputStream in, int contentLength, ByteArrayPool pool) in inputStreamToBytes()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/model/ |
D | StreamEncoder.java | 6 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/ |
D | GifBitmapWrapperResourceDecoder.java | 13 import com.bumptech.glide.util.ByteArrayPool; 56 ByteArrayPool pool = ByteArrayPool.get(); in decode()
|
/external/volley/src/main/java/com/android/volley/cronet/ |
D | CronetHttpStack.java | 30 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/ |
D | Downsampler.java | 11 import com.bumptech.glide.util.ByteArrayPool; 104 final ByteArrayPool byteArrayPool = ByteArrayPool.get(); in decode()
|