Searched refs:ByteArrayPool (Results 1 – 5 of 5) sorted by relevance
28 ByteArrayPool pool = new ByteArrayPool(32768); in testPooledOneBuffer()35 ByteArrayPool pool = new ByteArrayPool(32768); in testPooledIndividualWrites()42 ByteArrayPool pool = new ByteArrayPool(0); in testUnpooled()49 ByteArrayPool pool = new ByteArrayPool(0); in testUnpooledIndividualWrites()55 private void writeOneBuffer(ByteArrayPool pool) throws IOException { in writeOneBuffer()66 private void writeBytesIndividually(ByteArrayPool pool) { in writeBytesIndividually()
23 ByteArrayPool pool = new ByteArrayPool(32); in testReusesBuffer()39 ByteArrayPool pool = new ByteArrayPool(32); in testObeysSizeLimit()60 ByteArrayPool pool = new ByteArrayPool(32); in testReturnsBufferWithRightSize()
33 private final ByteArrayPool mPool;39 public PoolingByteArrayOutputStream(ByteArrayPool pool) { in PoolingByteArrayOutputStream()51 public PoolingByteArrayOutputStream(ByteArrayPool pool, int size) { in PoolingByteArrayOutputStream()
54 public class ByteArrayPool { class79 public ByteArrayPool(int sizeLimit) { in ByteArrayPool() method in ByteArrayPool
62 protected final ByteArrayPool mPool;70 this(httpStack, new ByteArrayPool(DEFAULT_POOL_SIZE)); in BasicNetwork()77 public BasicNetwork(HttpStack httpStack, ByteArrayPool pool) { in BasicNetwork()