Home
last modified time | relevance | path

Searched refs:isDirect (Results 1 – 25 of 44) sorted by relevance

12

/libcore/luni/src/main/java/java/nio/
DByteBuffer.java613 @Override public abstract boolean isDirect(); in isDirect() method in ByteBuffer
790 Object srcObject = src.isDirect() ? src : NioUtils.unsafeArray(src); in put()
792 if (!src.isDirect()) { in put()
797 Object dstObject = dst.isDirect() ? dst : NioUtils.unsafeArray(dst); in put()
799 if (!dst.isDirect()) { in put()
DByteBufferAsShortBuffer.java112 public boolean isDirect() { in isDirect() method in ByteBufferAsShortBuffer
113 return byteBuffer.isDirect(); in isDirect()
DByteBufferAsIntBuffer.java113 public boolean isDirect() { in isDirect() method in ByteBufferAsIntBuffer
114 return byteBuffer.isDirect(); in isDirect()
DByteBufferAsFloatBuffer.java112 public boolean isDirect() { in isDirect() method in ByteBufferAsFloatBuffer
113 return byteBuffer.isDirect(); in isDirect()
DByteBufferAsLongBuffer.java113 public boolean isDirect() { in isDirect() method in ByteBufferAsLongBuffer
114 return byteBuffer.isDirect(); in isDirect()
DByteBufferAsDoubleBuffer.java113 public boolean isDirect() { in isDirect() method in ByteBufferAsDoubleBuffer
114 return byteBuffer.isDirect(); in isDirect()
DByteBufferAsCharBuffer.java113 public boolean isDirect() { in isDirect() method in ByteBufferAsCharBuffer
114 return byteBuffer.isDirect(); in isDirect()
DIoVec.java59 if (b.isDirect()) { in init()
DCharSequenceAdapter.java91 public boolean isDirect() { in isDirect() method in CharSequenceAdapter
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DDirectByteBufferTest.java48 assertTrue(buf.isDirect()); in testIsDirect()
DHeapByteBufferTest.java50 assertFalse(buf.isDirect()); in testIsDirect()
DDirectDoubleBufferTest.java54 assertTrue(buf.isDirect()); in testIsDirect()
DDirectIntBufferTest.java55 assertTrue(buf.isDirect()); in testIsDirect()
DDirectShortBufferTest.java55 assertTrue(buf.isDirect()); in testIsDirect()
DDirectCharBufferTest.java55 assertTrue(buf.isDirect()); in testIsDirect()
DDirectFloatBufferTest.java55 assertTrue(buf.isDirect()); in testIsDirect()
DDirectLongBufferTest.java56 assertTrue(buf.isDirect()); in testIsDirect()
DIntBufferTest.java95 assertEquals(buf.isDirect(), readonly.isDirect()); in testAsReadOnlyBuffer()
193 assertEquals(buf.isDirect(), duplicate.isDirect());
385 assertFalse(buf.isDirect()); in testIsDirect()
573 assertEquals(buf.isDirect(), slice.isDirect()); in testSlice()
DDoubleBufferTest.java119 assertEquals(buf.isDirect(), readonly.isDirect()); in testAsReadOnlyBuffer()
222 assertEquals(buf.isDirect(), duplicate.isDirect());
409 assertFalse(buf.isDirect()); in testIsDirect()
586 assertEquals(buf.isDirect(), slice.isDirect()); in testSlice()
DFloatBufferTest.java95 assertEquals(buf.isDirect(), readonly.isDirect()); in testAsReadOnlyBuffer()
213 assertEquals(buf.isDirect(), duplicate.isDirect());
407 assertFalse(buf.isDirect()); in testIsDirect()
597 assertEquals(buf.isDirect(), slice.isDirect()); in testSlice()
DLongBufferTest.java95 assertEquals(buf.isDirect(), readonly.isDirect()); in testAsReadOnlyBuffer()
193 assertEquals(buf.isDirect(), duplicate.isDirect());
386 assertFalse(buf.isDirect()); in testIsDirect()
580 assertEquals(buf.isDirect(), slice.isDirect()); in testSlice()
DShortBufferTest.java94 assertEquals(buf.isDirect(), readonly.isDirect()); in testAsReadOnlyBuffer()
192 assertEquals(buf.isDirect(), duplicate.isDirect());
372 assertFalse(buf.isDirect()); in testIsDirect()
560 assertEquals(buf.isDirect(), slice.isDirect()); in testSlice()
DCharBufferTest.java98 assertEquals(buf.isDirect(), readonly.isDirect()); in testAsReadOnlyBuffer()
123 assertEquals(buf.isDirect(), readonly.isDirect()); in testAsReadOnlyBuffer()
226 assertEquals(buf.isDirect(), duplicate.isDirect());
253 assertEquals(buf.isDirect(), duplicate.isDirect());
629 assertEquals(buf.isDirect(), slice.isDirect()); in testSlice()
1067 assertFalse(buf.isDirect()); in testIsDirect()
DWrappedByteBufferTest.java86 assertFalse(buf.isDirect()); in testIsDirect()
/libcore/luni/src/main/java/libcore/io/
DPosix.java118 if (buffer.isDirect()) { in pread()
136 if (buffer.isDirect()) { in pwrite()
154 if (buffer.isDirect()) { in read()
174 if (buffer.isDirect()) { in recvfrom()
195 if (buffer.isDirect()) { in sendto()
247 if (buffer.isDirect()) { in write()

12