Searched refs:capacityHint (Results 1 – 7 of 7) sorted by relevance
/external/grpc-grpc-java/cronet/src/main/java/io/grpc/cronet/ |
D | CronetWritableBufferAllocator.java | 37 public WritableBuffer allocate(int capacityHint) { in allocate() argument 38 capacityHint = Math.min(MAX_BUFFER, capacityHint); in allocate() 39 return new CronetWritableBuffer(ByteBuffer.allocateDirect(capacityHint), capacityHint); in allocate()
|
/external/grpc-grpc-java/netty/src/main/java/io/grpc/netty/ |
D | NettyWritableBufferAllocator.java | 49 public WritableBuffer allocate(int capacityHint) { in allocate() argument 50 capacityHint = Math.min(MAX_BUFFER, Math.max(MIN_BUFFER, capacityHint)); in allocate() 51 return new NettyWritableBuffer(allocator.buffer(capacityHint, capacityHint)); in allocate()
|
/external/grpc-grpc-java/okhttp/src/main/java/io/grpc/okhttp/ |
D | OkHttpWritableBufferAllocator.java | 47 public WritableBuffer allocate(int capacityHint) { in allocate() argument 48 capacityHint = Math.min(MAX_BUFFER, Math.max(MIN_BUFFER, capacityHint)); in allocate() 49 return new OkHttpWritableBuffer(new Buffer(), capacityHint); in allocate()
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/ |
D | WritableBufferAllocator.java | 29 WritableBuffer allocate(int capacityHint); in allocate() argument
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | AbstractServerStreamTest.java | 62 public WritableBuffer allocate(int capacityHint) { 63 return new ByteWritableBuffer(capacityHint);
|
D | MessageFramerTest.java | 465 public WritableBuffer allocate(int capacityHint) { 467 return new ByteWritableBuffer(Math.min(maxSize, Math.max(capacityHint, minSize)));
|
D | AbstractClientStreamTest.java | 94 public WritableBuffer allocate(int capacityHint) { 95 return new ByteWritableBuffer(capacityHint);
|