/libcore/ojluni/src/main/java/java/io/ |
D | InputStream.java | 214 long remaining = n; in skip() local 221 int size = (int)Math.min(MAX_SKIP_BUFFER_SIZE, remaining); in skip() 223 while (remaining > 0) { in skip() 224 nr = read(skipBuffer, 0, (int)Math.min(size, remaining)); in skip() 228 remaining -= nr; in skip() 231 return n - remaining; in skip()
|
/libcore/ojluni/src/main/java/java/nio/ |
D | CharBuffer.java | 253 int targetRemaining = target.remaining(); in read() 254 int remaining = remaining(); in read() local 255 if (remaining == 0) in read() 257 int n = Math.min(remaining, targetRemaining); in read() 260 if (targetRemaining < remaining) in read() 520 if (length > remaining()) in get() 600 int n = src.remaining(); in put() 601 if (n > remaining()) in put() 661 if (length > remaining()) in put() 761 if (end - start > remaining()) in put() [all …]
|
D | HeapLongBuffer.java | 80 this.remaining(), in slice() 81 this.remaining(), in slice() 120 if (length > remaining()) in get() 156 if (length > remaining()) in put() 172 int n = sb.remaining(); in put() 173 if (n > remaining()) in put() 180 int n = src.remaining(); in put() 181 if (n > remaining()) in put() 195 System.arraycopy(hb, ix(position()), hb, ix(0), remaining()); in compact() 196 position(remaining()); in compact()
|
D | HeapFloatBuffer.java | 79 this.remaining(), in slice() 80 this.remaining(), in slice() 118 if (length > remaining()) in get() 154 if (length > remaining()) in put() 170 int n = sb.remaining(); in put() 171 if (n > remaining()) in put() 178 int n = src.remaining(); in put() 179 if (n > remaining()) in put() 193 System.arraycopy(hb, ix(position()), hb, ix(0), remaining()); in compact() 194 position(remaining()); in compact()
|
D | HeapShortBuffer.java | 79 this.remaining(), in slice() 80 this.remaining(), in slice() 119 if (length > remaining()) in get() 155 if (length > remaining()) in put() 171 int n = sb.remaining(); in put() 172 if (n > remaining()) in put() 179 int n = src.remaining(); in put() 180 if (n > remaining()) in put() 194 System.arraycopy(hb, ix(position()), hb, ix(0), remaining()); in compact() 195 position(remaining()); in compact()
|
D | HeapIntBuffer.java | 79 this.remaining(), in slice() 80 this.remaining(), in slice() 119 if (length > remaining()) in get() 155 if (length > remaining()) in put() 171 int n = sb.remaining(); in put() 172 if (n > remaining()) in put() 179 int n = src.remaining(); in put() 180 if (n > remaining()) in put() 194 System.arraycopy(hb, ix(position()), hb, ix(0), remaining()); in compact() 195 position(remaining()); in compact()
|
D | HeapDoubleBuffer.java | 80 this.remaining(), in slice() 81 this.remaining(), in slice() 119 if (length > remaining()) in get() 155 if (length > remaining()) in put() 171 int n = sb.remaining(); in put() 172 if (n > remaining()) in put() 179 int n = src.remaining(); in put() 180 if (n > remaining()) in put() 194 System.arraycopy(hb, ix(position()), hb, ix(0), remaining()); in compact() 195 position(remaining()); in compact()
|
D | HeapCharBuffer.java | 79 this.remaining(), in slice() 80 this.remaining(), in slice() 124 if (length > remaining()) in get() 160 if (length > remaining()) in put() 176 int n = sb.remaining(); in put() 177 if (n > remaining()) in put() 184 int n = src.remaining(); in put() 185 if (n > remaining()) in put() 199 System.arraycopy(hb, ix(position()), hb, ix(0), remaining()); in compact() 200 position(remaining()); in compact()
|
D | ShortBuffer.java | 392 if (length > remaining()) in get() 472 int n = src.remaining(); in put() 473 if (n > remaining()) in put() 533 if (length > remaining()) in put() 791 if (this.remaining() != that.remaining()) in equals() 831 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 837 return this.remaining() - that.remaining(); in compareTo()
|
D | IntBuffer.java | 393 if (length > remaining()) in get() 473 int n = src.remaining(); in put() 474 if (n > remaining()) in put() 534 if (length > remaining()) in put() 798 if (this.remaining() != that.remaining()) in equals() 838 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 844 return this.remaining() - that.remaining(); in compareTo()
|
D | DoubleBuffer.java | 392 if (length > remaining()) in get() 472 int n = src.remaining(); in put() 473 if (n > remaining()) in put() 533 if (length > remaining()) in put() 797 if (this.remaining() != that.remaining()) in equals() 834 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 840 return this.remaining() - that.remaining(); in compareTo()
|
D | FloatBuffer.java | 392 if (length > remaining()) in get() 472 int n = src.remaining(); in put() 473 if (n > remaining()) in put() 533 if (length > remaining()) in put() 797 if (this.remaining() != that.remaining()) in equals() 837 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 843 return this.remaining() - that.remaining(); in compareTo()
|
D | ByteBuffer.java | 529 if (length > remaining()) in get() 609 int n = src.remaining(); in put() 610 if (n > remaining()) in put() 701 if (length > remaining()) in put() 974 if (this.remaining() != that.remaining()) in equals() 1014 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 1020 return this.remaining() - that.remaining(); in compareTo()
|
D | HeapByteBuffer.java | 78 remaining(), in slice() 79 remaining(), in slice() 122 if (length > remaining()) in get() 163 if (length > remaining()) in put() 175 System.arraycopy(hb, ix(position()), hb, ix(0), remaining()); in compact() 176 position(remaining()); in compact() 245 int size = this.remaining() >> 1; in asCharBuffer() 306 int size = this.remaining() >> 1; in asShortBuffer() 367 int size = this.remaining() >> 2; in asIntBuffer() 429 int size = this.remaining() >> 3; in asLongBuffer() [all …]
|
D | StringCharBuffer.java | 48 this.remaining(), in slice() 49 this.remaining(), in slice()
|
D | ByteBufferAsIntBuffer.java | 101 if (length > remaining()) in get() 123 if (length > remaining()) in put()
|
D | ByteBufferAsFloatBuffer.java | 101 if (length > remaining()) in get() 123 if (length > remaining()) in put()
|
/libcore/ojluni/src/main/native/ |
D | PollArrayWrapper.c | 45 int remaining = timeout; in ipoll() local 53 int res = poll(fds, nfds, remaining); in ipoll() 55 if (remaining >= 0) { in ipoll() 59 remaining -= diff; in ipoll() 60 if (diff < 0 || remaining <= 0) { in ipoll()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipInputStream.java | 50 private long remaining; field in ZipInputStream 133 remaining = entry.size; in getNextEntry() 171 if (entryEOF || (entry != null && remaining == 0)) { in available() 218 remaining -= len; in read() 222 if (remaining <= 0) { in read() 227 if (len > remaining) { in read() 228 len = (int)remaining; in read() 235 remaining -= len; in read() 236 if (remaining == 0 && entry.crc != crc.getValue()) { in read()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | IOVecWrapper.java | 60 private final int[] remaining; field in IOVecWrapper 89 this.remaining = new int[size]; in IOVecWrapper() 113 this.remaining[i] = rem; in setBuffer() 129 return remaining[i]; in getRemaining()
|
D | FileChannelImpl.java | 560 long remaining = count; in transferToTrustedChannel() local 561 while (remaining > 0L) { in transferToTrustedChannel() 562 long size = Math.min(remaining, MAPPED_TRANSFER_SIZE); in transferToTrustedChannel() 569 remaining -= n; in transferToTrustedChannel() 591 if (remaining == count) in transferToTrustedChannel() 596 return count - remaining; in transferToTrustedChannel() 680 long remaining = max; in transferFromFileChannel() local 682 while (remaining > 0L) { in transferFromFileChannel() 683 long size = Math.min(remaining, MAPPED_TRANSFER_SIZE); in transferFromFileChannel() 691 remaining -= n; in transferFromFileChannel() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | ByteBufferTest.java | 818 assertEquals(slice.limit(), buf.remaining()); in testSlice() 819 assertEquals(slice.capacity(), buf.remaining()); in testSlice() 854 while (charBuffer.remaining() > 0) { in testAsCharBuffer() 865 while (charBuffer.remaining() > 0) { in testAsCharBuffer() 877 while (charBuffer.remaining() > 0) { in testAsCharBuffer() 878 value = (char) charBuffer.remaining(); in testAsCharBuffer() 889 while (charBuffer.remaining() > 0) { in testAsCharBuffer() 890 value = (char) charBuffer.remaining(); in testAsCharBuffer() 910 while (doubleBuffer.remaining() > 0) { in testAsDoubleBuffer() 924 while (doubleBuffer.remaining() > 0) { in testAsDoubleBuffer() [all …]
|
/libcore/ojluni/src/main/java/java/nio/charset/ |
D | CharsetDecoder.java | 593 cr = CoderResult.malformedForLength(in.remaining()); in decode() 612 if (out.remaining() < replacement.length()) in decode() 796 int n = (int)(in.remaining() * averageCharsPerByte()); in decode() 799 if ((n == 0) && (in.remaining() == 0)) in decode()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixPath.java | 490 int remaining = count; // number of names remaining in normalize() local 511 remaining--; in normalize() 524 prevRemaining = remaining; in normalize() 548 remaining = remaining - 2; in normalize() 563 remaining--; in normalize() 568 } while (prevRemaining > remaining); in normalize() 572 if (remaining == count) in normalize() 576 if (remaining == 0) { in normalize() 581 int len = remaining - 1; in normalize() 599 if (--remaining > 0) { in normalize()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | CharsetEncoder2Test.java | 169 assertEquals(4, bytes.remaining()); in test_EncodeLjava_nio_CharBufferLjava_nio_ByteBufferB() 175 assertEquals(0, bytes.remaining()); in test_EncodeLjava_nio_CharBufferLjava_nio_ByteBufferB() 188 assertEquals(0, bytes.remaining()); in test_EncodeLjava_nio_CharBufferLjava_nio_ByteBufferB()
|