/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
H A D | DirectCharBufferTest.java | 21 import java.nio.DirectByteBuffer; 60 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10);
|
H A D | DirectDoubleBufferTest.java | 20 import java.nio.DirectByteBuffer; 59 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10);
|
H A D | DirectFloatBufferTest.java | 20 import java.nio.DirectByteBuffer; 60 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10);
|
H A D | DirectIntBufferTest.java | 20 import java.nio.DirectByteBuffer; 60 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10);
|
H A D | DirectLongBufferTest.java | 20 import java.nio.DirectByteBuffer; 60 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10);
|
H A D | DirectShortBufferTest.java | 20 import java.nio.DirectByteBuffer; 60 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10);
|
/libcore/luni/src/main/java/java/nio/ |
H A D | NioUtils.java | 43 DirectByteBuffer dbb = (DirectByteBuffer) buffer;
|
/libcore/ojluni/src/main/java/java/nio/ |
H A D | ByteBufferAsDoubleBuffer.java | 43 // There are only two possibilities for the type of ByteBuffer "bb", viz, DirectByteBuffer and 45 // DirectByteBuffer. 49 // position when the method is called from either HeapByteBuffer or DirectByteBuffer. 50 if (bb instanceof DirectByteBuffer) { 139 if (!(bb instanceof DirectByteBuffer)) {
|
H A D | ByteBufferAsFloatBuffer.java | 42 // There are only two possibilities for the type of ByteBuffer "bb", viz, DirectByteBuffer and 44 // DirectByteBuffer. 48 // position when the method is called from either HeapByteBuffer or DirectByteBuffer. 49 if (bb instanceof DirectByteBuffer) { 138 if (!(bb instanceof DirectByteBuffer)) {
|
H A D | ByteBufferAsIntBuffer.java | 42 // There are only two possibilities for the type of ByteBuffer "bb", viz, DirectByteBuffer and 44 // DirectByteBuffer. 48 // position when the method is called from either HeapByteBuffer or DirectByteBuffer. 49 if (bb instanceof DirectByteBuffer) { 138 if (!(bb instanceof DirectByteBuffer)) {
|
H A D | ByteBufferAsLongBuffer.java | 42 // There are only two possibilities for the type of ByteBuffer "bb", viz, DirectByteBuffer and 44 // DirectByteBuffer. 48 // position when the method is called from either HeapByteBuffer or DirectByteBuffer. 49 if (bb instanceof DirectByteBuffer) { 138 if (!(bb instanceof DirectByteBuffer)) {
|
H A D | ByteBufferAsShortBuffer.java | 42 // There are only two possibilities for the type of ByteBuffer "bb", viz, DirectByteBuffer and 44 // DirectByteBuffer. 48 // position when the method is called from either HeapByteBuffer or DirectByteBuffer. 49 if (bb instanceof DirectByteBuffer) { 137 if (!(bb instanceof DirectByteBuffer)) {
|
H A D | ByteBufferAsCharBuffer.java | 42 // There are only two possibilities for the type of ByteBuffer "bb", viz, DirectByteBuffer and 44 // DirectByteBuffer. 48 // position when the method is called from either HeapByteBuffer or DirectByteBuffer. 49 if (bb instanceof DirectByteBuffer) { 142 if (!(bb instanceof DirectByteBuffer)) {
|
H A D | ByteBuffer.java | 257 DirectByteBuffer.MemoryRef memoryRef = new DirectByteBuffer.MemoryRef(capacity); 258 return new DirectByteBuffer(capacity, memoryRef);
|
H A D | DirectByteBuffer.java | 39 public class DirectByteBuffer extends MappedByteBuffer implements DirectBuffer { class in inherits:MappedByteBuffer,DirectBuffer 42 * Stores the details of the memory backing a DirectByteBuffer. This could be a pointer 59 // Reference to original DirectByteBuffer that held this MemoryRef. The field is set 62 // DirectByteBuffer instance that will only be put in the associated ReferenceQueue when 63 // the underlying memory is not referenced by any DirectByteBuffer instance. The 64 // MemoryRef can outlive the original DirectByteBuffer instance if, for example, slice() 65 // or asReadOnlyBuffer() are called and all strong references to the original DirectByteBuffer 99 DirectByteBuffer(int capacity, MemoryRef memoryRef) { method in class:DirectByteBuffer 111 private DirectByteBuffer(long addr, int cap) { method in class:DirectByteBuffer 119 public DirectByteBuffer(in method in class:DirectByteBuffer 131 DirectByteBuffer(MemoryRef memoryRef, // package-private method in class:DirectByteBuffer 137 DirectByteBuffer(MemoryRef memoryRef, // package-private method in class:DirectByteBuffer [all...] |
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
H A D | CipherSpiTest.java | 25 import java.nio.DirectByteBuffer; 417 // package-private, so extending DirectByteBuffer. It happens to be not backed by an array, so 419 private class MockNonArrayBackedByteBuffer extends DirectByteBuffer {
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | FileChannelImpl.java | 34 import java.nio.DirectByteBuffer; 976 return new DirectByteBuffer(0, 0, dummy, null, 1018 return new DirectByteBuffer(isize, addr + pagePosition, mfd, um,
|