Searched refs:hasArray (Results 1 - 25 of 44) sorted by relevance

12

/libcore/luni/src/main/java/java/nio/
H A DNIOAccess.java46 return b.hasArray() ? b.array() : null;
57 return b.hasArray() ? ((b.arrayOffset() + b.position) << b._elementSizeShift) : 0;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
H A DReadOnlyDirectByteBufferTest.java38 assertFalse(buf.hasArray());
H A DReadOnlyHeapByteBufferTest.java37 assertFalse(buf.hasArray());
H A DReadOnlyWrappedByteBufferTest.java37 assertFalse(buf.hasArray());
H A DHeapByteBufferTest.java54 assertTrue(buf.hasArray());
H A DDirectCharBufferTest.java39 assertFalse(buf.hasArray());
H A DDirectDoubleBufferTest.java38 assertFalse(buf.hasArray());
H A DDirectFloatBufferTest.java38 assertFalse(buf.hasArray());
H A DDirectIntBufferTest.java38 assertFalse(buf.hasArray());
H A DDirectLongBufferTest.java38 assertFalse(buf.hasArray());
H A DDirectShortBufferTest.java38 assertFalse(buf.hasArray());
H A DWrappedByteBufferTest.java90 assertTrue(buf.hasArray());
H A DDirectByteBufferTest.java56 assertTrue(buf.hasArray());
57 // assertFalse(buf.hasArray());
H A DReadOnlyDoubleBufferTest.java38 assertFalse(buf.hasArray());
H A DReadOnlyFloatBufferTest.java37 assertFalse(buf.hasArray());
H A DReadOnlyIntBufferTest.java37 assertFalse(buf.hasArray());
H A DReadOnlyLongBufferTest.java37 assertFalse(buf.hasArray());
H A DReadOnlyShortBufferTest.java37 assertFalse(buf.hasArray());
/libcore/luni/src/test/java/libcore/java/nio/charset/
H A DOldCharsetEncoderDecoderBufferTest.java34 * is done first with an out-buffer with hasArray()==true, and next with an out-buffer with
35 * hasArray()==false. In that situation ICU may overwrite the first out-buffer.
42 assertTrue(out.hasArray());
52 assertFalse(out.hasArray());
66 * is done first with an in-buffer with hasArray()==true, and next with an in-buffer with
67 * hasArray()==false. In that situation ICU may overwrite the array of the first in-buffer.
75 assertTrue(inWithArray.hasArray());
82 assertFalse(inWithoutArray.hasArray());
92 * is done first with an out-buffer with hasArray()==true, and next with an out-buffer with
93 * hasArray()
[all...]
/libcore/luni/src/test/java/libcore/java/nio/
H A DNoArrayTest.java32 assertFalse(buf.hasArray());
/libcore/luni/src/main/java/java/nio/charset/
H A DCharsetDecoderICU.java161 if (out.hasArray()) {
177 if (in.hasArray()) {
197 if (out.hasArray()) {
H A DCharsetEncoderICU.java190 if (out.hasArray()) {
206 if (in.hasArray()) {
226 if (out.hasArray()) {
/libcore/ojluni/src/main/java/java/security/
H A DMessageDigestSpi.java109 if (input.hasArray()) {
/libcore/ojluni/src/main/java/java/util/zip/
H A DAdler32.java102 } else if (buffer.hasArray()) {
/libcore/ojluni/src/main/java/javax/crypto/
H A DMacSpi.java105 if (input.hasArray()) {

Completed in 189 milliseconds

12