Searched refs:DirectByteBuffer (Results 1 - 17 of 17) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
H A DDirectCharBufferTest.java21 import java.nio.DirectByteBuffer;
60 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10);
H A DDirectDoubleBufferTest.java20 import java.nio.DirectByteBuffer;
59 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10);
H A DDirectFloatBufferTest.java20 import java.nio.DirectByteBuffer;
60 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10);
H A DDirectIntBufferTest.java20 import java.nio.DirectByteBuffer;
60 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10);
H A DDirectLongBufferTest.java20 import java.nio.DirectByteBuffer;
60 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10);
H A DDirectShortBufferTest.java20 import java.nio.DirectByteBuffer;
60 DirectByteBuffer directByteBuffer = (DirectByteBuffer) ByteBuffer.allocateDirect(10);
/libcore/luni/src/main/java/java/nio/
H A DNioUtils.java43 DirectByteBuffer dbb = (DirectByteBuffer) buffer;
/libcore/ojluni/src/main/java/java/nio/
H A DByteBufferAsDoubleBuffer.java43 // 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 DByteBufferAsFloatBuffer.java42 // 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 DByteBufferAsIntBuffer.java42 // 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 DByteBufferAsLongBuffer.java42 // 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 DByteBufferAsShortBuffer.java42 // 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 DByteBufferAsCharBuffer.java42 // 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 DByteBuffer.java257 DirectByteBuffer.MemoryRef memoryRef = new DirectByteBuffer.MemoryRef(capacity);
258 return new DirectByteBuffer(capacity, memoryRef);
H A DDirectByteBuffer.java39 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 DCipherSpiTest.java25 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 DFileChannelImpl.java34 import java.nio.DirectByteBuffer;
976 return new DirectByteBuffer(0, 0, dummy, null,
1018 return new DirectByteBuffer(isize, addr + pagePosition, mfd, um,

Completed in 4211 milliseconds