Home
last modified time | relevance | path

Searched defs:bb (Results 1 – 25 of 65) sorted by relevance

123

/libcore/ojluni/src/test/java/util/zip/
DChecksumBase.java70 ByteBuffer bb = ByteBuffer.wrap(BYTES_123456789); in testWrappedByteBuffer() local
77 ByteBuffer bb = ByteBuffer.wrap(BYTES_123456789).asReadOnlyBuffer(); in testReadonlyByteBuffer() local
84 ByteBuffer bb = ByteBuffer.allocateDirect(BYTES_123456789.length); in testDirectByteBuffer() local
113 ByteBuffer bb = ByteBuffer.allocateDirect(unaligned_bytes_123456789.length); in testDirectByteBufferOffset() local
127 ByteBuffer bb = ByteBuffer.allocateDirect(unaligned_bytes_123456789.length); in testLittleEndianDirectByteBufferOffset() local
143 ByteBuffer bb = ByteBuffer.wrap(unaligned_bytes_123456789); in testWrappedByteBufferOffset() local
156 ByteBuffer bb = ByteBuffer.wrap(unaligned_bytes_123456789); in testLittleEndianWrappedByteBufferOffset() local
170 ByteBuffer bb = ByteBuffer.wrap(unaligned_bytes_123456789).asReadOnlyBuffer(); in testReadonlyByteBufferOffset() local
183 ByteBuffer bb = ByteBuffer.wrap(unaligned_bytes_123456789).asReadOnlyBuffer(); in testLittleEndianReadonlyByteBufferOffset() local
/libcore/ojluni/src/test/java/nio/Buffer/
DAllocateDirectInit.java40 ByteBuffer bb = ByteBuffer.allocateDirect(1024); in testAllocate() local
50 private static void printByteBuffer(ByteBuffer bb) { in printByteBuffer()
DByteBufferViews.java144 static void assertValues(int i, Object bValue, Object bbValue, ByteBuffer bb) { in assertValues()
151 static void assertValues(int i, Object bbValue, Object bvValue, ByteBuffer bb, Buffer bv) { in assertValues()
166 static ByteBuffer fill(ByteBuffer bb, IntUnaryOperator o) { in fill()
196 ByteBuffer bb = allocate(fbb); in testShortGet() local
224 ByteBuffer bb = allocate(fbb, i -> 0); in testShortPut() local
266 static short getShortFromBytes(ByteBuffer bb, int i) { in getShortFromBytes()
300 ByteBuffer bb = allocate(fbb); in testCharGet() local
328 ByteBuffer bb = allocate(fbb, i -> 0); in testCharPut() local
370 static char getCharFromBytes(ByteBuffer bb, int i) { in getCharFromBytes()
397 ByteBuffer bb = allocate(fbb); in testIntGet() local
[all …]
DOrder.java47 private static void ckViews(ByteBuffer bb) { in ckViews()
56 private static void ckCopyViews(ByteBuffer bb) { in ckCopyViews()
62 private static void ckByteBuffer(ByteBuffer bb) { in ckByteBuffer()
DCopyDirectDoubleMemory.java50 ByteBuffer bb = ByteBuffer.allocateDirect(1024 * 1024 + 1024); in test() local
DCopyDirectFloatMemory.java50 ByteBuffer bb = ByteBuffer.allocateDirect(1024 * 1024 + 1024); in test() local
DCopyDirectShortMemory.java50 ByteBuffer bb = ByteBuffer.allocateDirect(1024 * 1024 + 1024); in test() local
DCopyDirectLongMemory.java50 ByteBuffer bb = ByteBuffer.allocateDirect(1024 * 1024 + 1024); in test() local
DCopyDirectCharMemory.java50 ByteBuffer bb = ByteBuffer.allocateDirect(1024 * 1024 + 1024); in test() local
DCopyDirectIntMemory.java50 ByteBuffer bb = ByteBuffer.allocateDirect(1024 * 1024 + 1024); in test() local
DBasic.java89 ByteBuffer bb = (ByteBuffer)b; in fail() local
96 CharBuffer bb = (CharBuffer)b; in fail() local
/libcore/ojluni/src/main/java/java/nio/channels/
DChannels.java71 private static void writeFullyImpl(WritableByteChannel ch, ByteBuffer bb) in writeFullyImpl()
87 private static void writeFully(WritableByteChannel ch, ByteBuffer bb) in writeFully()
166 ByteBuffer bb = ((this.bs == bs) in newOutputStream() local
228 ByteBuffer bb = ((this.bs == bs) in newInputStream() local
/libcore/ojluni/src/main/java/sun/nio/ch/
DChannelInputStream.java48 public static int read(ReadableByteChannel ch, ByteBuffer bb, in read()
71 private ByteBuffer bb = null; field in ChannelInputStream
105 protected int read(ByteBuffer bb) in read()
DDatagramSocketAdaptor.java145 ByteBuffer bb = ByteBuffer.wrap(p.getData(), in send() local
174 private SocketAddress receive(ByteBuffer bb) throws IOException { in receive()
213 ByteBuffer bb = ByteBuffer.wrap(p.getData(), in receive() local
DIOUtil.java58 ByteBuffer bb = Util.getTemporaryDirectBuffer(rem); in write() local
76 private static int writeFromNativeBuffer(FileDescriptor fd, ByteBuffer bb, in writeFromNativeBuffer()
207 private static int readIntoNativeBuffer(FileDescriptor fd, ByteBuffer bb, in readIntoNativeBuffer()
DDatagramChannelImpl.java374 ByteBuffer bb = null; in receive() local
436 ByteBuffer bb = Util.getTemporaryDirectBuffer(newSize); in receive() local
451 private int receiveIntoNativeBuffer(FileDescriptor fd, ByteBuffer bb, in receiveIntoNativeBuffer()
535 ByteBuffer bb = Util.getTemporaryDirectBuffer(rem); in send() local
553 private int sendFromNativeBuffer(FileDescriptor fd, ByteBuffer bb, in sendFromNativeBuffer()
/libcore/luni/src/test/java/libcore/java/nio/charset/
DCharsetEncoderTest.java71 ByteBuffer bb = ByteBuffer.allocate(128); in testSurrogatePairAllAtOnce() local
85 ByteBuffer bb = ByteBuffer.allocate(128); in testMalformedSurrogatePair() local
122 ByteBuffer bb = ByteBuffer.allocate(128); in testCharsetEncoderSplitSurrogates() local
146 ByteBuffer bb = ByteBuffer.allocate(128); in testFlushWithoutEndOfInput() local
DCharset_TestGenerator.java223 ByteBuffer bb = encoder.encode(cb); in genEncoded() local
234 static void genDecoded (Charset charset, ByteBuffer bb) { in genDecoded()
/libcore/ojluni/src/main/java/java/util/zip/
DZipCoder.java79 String toString(DirectByteBuffer bb, int off, int length) { in toString()
89 ByteBuffer bb = encoder().encode(CharBuffer.wrap(s)); in getBytes() local
157 boolean hasTrailingSlash(DirectByteBuffer bb, int end) { in hasTrailingSlash()
232 String toString(DirectByteBuffer bb, int off, int length) { in toString()
286 boolean hasTrailingSlash(DirectByteBuffer bb, int end) { in hasTrailingSlash()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLEngineTest.java344 ByteBuffer bb = ByteBuffer.allocate(10); in test_unwrap_02() local
381 ByteBuffer bb = ByteBuffer.allocate(10); in test_unwrap_03() local
403 ByteBuffer bb = ByteBuffer.allocate(10); in test_unwrap_04() local
440 ByteBuffer bb = ByteBuffer.allocate(10); in test_unwrap_05() local
459 ByteBuffer bb = ByteBuffer.allocate(10); in test_unwrap_06() local
484 ByteBuffer bb = ByteBuffer.allocate(10); in test_wrap_02() local
519 ByteBuffer bb = ByteBuffer.allocate(MAX_TLS_RECORD_SIZE).asReadOnlyBuffer(); in test_wrap_03() local
566 ByteBuffer bb = ByteBuffer.allocate(MAX_TLS_RECORD_SIZE); in test_wrap_05() local
584 ByteBuffer bb = ByteBuffer.allocate(MAX_TLS_RECORD_SIZE); in test_wrap_06() local
774 ByteBuffer bb = ByteBuffer.allocate(10); in test_unwrap_ByteBuffer$ByteBuffer_03() local
[all …]
/libcore/ojluni/src/test/java/nio/charset/Charset/
DEncDec.java38 ByteBuffer bb = ByteBuffer.allocate(100); in main() local
/libcore/ojluni/src/main/java/sun/nio/fs/
DAbstractUserDefinedFileAttributeView.java66 ByteBuffer bb; in setAttribute() local
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DASCIICharsetEncoderTest.java109 ByteBuffer bb = encoder.encode(cb); in testEncodeMapping() local
127 ByteBuffer bb = ByteBuffer.allocate(0x10); in testEncodeMapping() local
/libcore/ojluni/src/main/java/java/nio/
DByteBufferAsLongBuffer.java41 protected final ByteBuffer bb; field in ByteBufferAsLongBuffer
54 ByteBufferAsLongBuffer(ByteBuffer bb, in ByteBufferAsLongBuffer()
DByteBufferAsShortBuffer.java41 protected final ByteBuffer bb; field in ByteBufferAsShortBuffer
54 ByteBufferAsShortBuffer(ByteBuffer bb, in ByteBufferAsShortBuffer()

123