/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | IOUtil.java | 57 int rem = (pos <= lim ? lim - pos : 0); in write() local 58 ByteBuffer bb = Util.getTemporaryDirectBuffer(rem); in write() 83 int rem = (pos <= lim ? lim - pos : 0); in writeFromNativeBuffer() local 86 if (rem == 0) in writeFromNativeBuffer() 91 rem, position); in writeFromNativeBuffer() 93 written = nd.write(fd, ((DirectBuffer)bb).address() + pos, rem); in writeFromNativeBuffer() 124 int rem = (pos <= lim ? lim - pos : 0); in write() local 125 if (rem > 0) { in write() 126 vec.setBuffer(iov_len, buf, pos, rem); in write() 130 ByteBuffer shadow = Util.getTemporaryDirectBuffer(rem); in write() [all …]
|
D | ChannelInputStream.java | 115 long rem = Math.max(0, sbc.size() - sbc.position()); in available() local 116 return (rem > Integer.MAX_VALUE) ? Integer.MAX_VALUE : (int)rem; in available()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | BASE64Decoder.java | 106 protected void decodeAtom(PushbackInputStream inStream, OutputStream outStream, int rem) in decodeAtom() argument 112 if (rem < 2) { in decodeAtom() 123 i = readFully(inStream, decode_buffer, 1, rem-1); in decodeAtom() 128 if (rem > 3 && decode_buffer[3] == '=') { in decodeAtom() 129 rem = 3; in decodeAtom() 131 if (rem > 2 && decode_buffer[2] == '=') { in decodeAtom() 132 rem = 2; in decodeAtom() 134 switch (rem) { in decodeAtom() 147 switch (rem) { in decodeAtom()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Process.java | 190 long rem = unit.toNanos(timeout); in waitFor() local 197 if (rem > 0) in waitFor() 199 Math.min(TimeUnit.NANOSECONDS.toMillis(rem) + 1, 100)); in waitFor() 201 rem = unit.toNanos(timeout) - (System.nanoTime() - startTime); in waitFor() 202 } while (rem > 0); in waitFor()
|
/libcore/ojluni/src/main/java/java/math/ |
D | MutableBigInteger.java | 1112 int rem = value[offset]; in divideOneWord() local 1113 long remLong = rem & LONG_MASK; in divideOneWord() 1118 rem = (int) (remLong - (quotient.value[0] * divisorLong)); in divideOneWord() 1119 remLong = rem & LONG_MASK; in divideOneWord() 1128 rem = (int) (dividendEstimate - q * divisorLong); in divideOneWord() 1132 rem = (int) (tmp >>> 32); in divideOneWord() 1135 remLong = rem & LONG_MASK; in divideOneWord() 1141 return rem % divisor; in divideOneWord() 1143 return rem; in divideOneWord() 1490 MutableBigInteger rem; // Remainder starts as dividend with space for a leading zero in divideMagnitude() local [all …]
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | LinuxUserDefinedFileAttributeView.java | 163 int rem = (pos <= lim ? lim - pos : 0); in read() local 172 nb = NativeBuffers.getNativeBuffer(rem); in read() 179 int n = fgetxattr(fd, nameAsBytes(file,name), address, rem); in read() 182 if (rem == 0) { in read() 221 int rem = (pos <= lim ? lim - pos : 0); in write() local 230 nb = NativeBuffers.getNativeBuffer(rem); in write() 238 for (int i = 0; i < rem; i++) { in write() 243 byte[] tmp = new byte[rem]; in write() 249 for (int i = 0; i < rem; i++) { in write() 258 fsetxattr(fd, nameAsBytes(file,name), address, rem); in write() [all …]
|
/libcore/ojluni/src/main/java/sun/nio/cs/ |
D | StreamDecoder.java | 289 int rem = (pos <= lim ? lim - pos : 0); in readBytes() local 290 assert rem > 0; in readBytes() local 291 int n = in.read(bb.array(), bb.arrayOffset() + pos, rem); in readBytes() 296 assert (n <= rem) : "n = " + n + ", rem = " + rem; in readBytes() local 305 int rem = bb.remaining(); in readBytes() local 306 assert (rem != 0) : rem; in readBytes() 307 return rem; in readBytes()
|
/libcore/ojluni/src/main/java/java/nio/ |
D | DirectByteBuffer.java | 176 int rem = (pos <= lim ? lim - pos : 0); in slice() local 179 return new DirectByteBuffer(memoryRef, -1, 0, rem, rem, off, isReadOnly); in slice() 266 int rem = (pos <= lim ? lim - pos : 0); in get() local 267 if (length > rem) in get() 325 int rem = (pos <= lim ? lim - pos : 0); in put() local 326 if (length > rem) in put() 347 int rem = (pos <= lim ? lim - pos : 0); in compact() local 349 position(rem); in compact() 471 int rem = (off <= lim ? lim - off : 0); in asCharBuffer() local 472 int size = rem >> 1; in asCharBuffer() [all …]
|
D | ByteBufferAsDoubleBuffer.java | 96 int rem = (pos <= lim ? lim - pos : 0); in slice() local 100 return new ByteBufferAsDoubleBuffer(bb, -1, 0, rem, rem, ix(pos), order); in slice() 290 int rem = (pos <= lim ? lim - pos : 0); in compact() local 301 System.arraycopy(bb.array(), ix(pos), bb.array(), ix(0), rem << 3); in compact() 305 Memory.memmove(this, 0, this, pos << 3, rem << 3); in compact() 307 position(rem); in compact()
|
D | ByteBufferAsLongBuffer.java | 96 int rem = (pos <= lim ? lim - pos : 0); in slice() local 100 return new ByteBufferAsLongBuffer(bb, -1, 0, rem, rem, ix(pos), order); in slice() 290 int rem = (pos <= lim ? lim - pos : 0); in compact() local 301 System.arraycopy(bb.array(), ix(pos), bb.array(), ix(0), rem << 3); in compact() 305 Memory.memmove(this, 0, this, pos << 3, rem << 3); in compact() 307 position(rem); in compact()
|
D | ByteBufferAsIntBuffer.java | 96 int rem = (pos <= lim ? lim - pos : 0); in slice() local 100 return new ByteBufferAsIntBuffer(bb, -1, 0, rem, rem, ix(pos), order); in slice() 290 int rem = (pos <= lim ? lim - pos : 0); in compact() local 301 System.arraycopy(bb.array(), ix(pos), bb.array(), ix(0), rem << 2); in compact() 305 Memory.memmove(this, 0, this, pos << 2, rem << 2); in compact() 307 position(rem); in compact()
|
D | ByteBufferAsShortBuffer.java | 96 int rem = (pos <= lim ? lim - pos : 0); in slice() local 100 return new ByteBufferAsShortBuffer(bb, -1, 0, rem, rem, ix(pos), order); in slice() 290 int rem = (pos <= lim ? lim - pos : 0); in compact() local 301 System.arraycopy(bb.array(), ix(pos), bb.array(), ix(0), rem << 1); in compact() 305 Memory.memmove(this, 0, this, pos << 1, rem << 1); in compact() 307 position(rem); in compact()
|
D | ByteBufferAsFloatBuffer.java | 96 int rem = (pos <= lim ? lim - pos : 0); in slice() local 100 return new ByteBufferAsFloatBuffer(bb, -1, 0, rem, rem, ix(pos), order); in slice() 290 int rem = (pos <= lim ? lim - pos : 0); in compact() local 301 System.arraycopy(bb.array(), ix(pos), bb.array(), ix(0), rem << 2); in compact() 305 Memory.memmove(this, 0, this, pos << 2, rem << 2); in compact() 307 position(rem); in compact()
|
D | HeapCharBuffer.java | 144 int rem = (pos <= lim ? lim - pos : 0); in slice() local 148 rem, in slice() 149 rem, in slice() 388 int rem = (pos <= lim) ? lim - pos : 0; in put() local 389 if (length > rem) in put() 409 int rem = (pos <= lim ? lim - pos : 0); in compact() local 410 System.arraycopy(hb, ix(pos), hb, ix(0), rem); in compact() 411 position(rem); in compact()
|
D | ByteBufferAsCharBuffer.java | 96 int rem = (pos <= lim ? lim - pos : 0); in slice() local 100 return new ByteBufferAsCharBuffer(bb, -1, 0, rem, rem, ix(pos), order); in slice() 290 int rem = (pos <= lim ? lim - pos : 0); in compact() local 301 System.arraycopy(bb.array(), ix(pos), bb.array(), ix(0), rem << 1); in compact() 305 Memory.memmove(this, 0, this, pos << 1, rem << 1); in compact() 307 position(rem); in compact()
|
D | HeapIntBuffer.java | 144 int rem = (pos <= lim ? lim - pos : 0); in slice() local 148 rem, in slice() 149 rem, in slice() 409 int rem = (pos <= lim ? lim - pos : 0); in compact() local 410 System.arraycopy(hb, ix(pos), hb, ix(0), rem); in compact() 411 position(rem); in compact()
|
D | HeapFloatBuffer.java | 144 int rem = (pos <= lim ? lim - pos : 0); in slice() local 148 rem, in slice() 149 rem, in slice() 409 int rem = (pos <= lim ? lim - pos : 0); in compact() local 410 System.arraycopy(hb, ix(pos), hb, ix(0), rem); in compact() 411 position(rem); in compact()
|
D | HeapShortBuffer.java | 144 int rem = (pos <= lim ? lim - pos : 0); in slice() local 148 rem, in slice() 149 rem, in slice() 409 int rem = (pos <= lim ? lim - pos : 0); in compact() local 410 System.arraycopy(hb, ix(pos), hb, ix(0), rem); in compact() 411 position(rem); in compact()
|
D | HeapLongBuffer.java | 144 int rem = (pos <= lim ? lim - pos : 0); in slice() local 148 rem, in slice() 149 rem, in slice() 409 int rem = (pos <= lim ? lim - pos : 0); in compact() local 410 System.arraycopy(hb, ix(pos), hb, ix(0), rem); in compact() 411 position(rem); in compact()
|
D | HeapDoubleBuffer.java | 144 int rem = (pos <= lim ? lim - pos : 0); in slice() local 148 rem, in slice() 149 rem, in slice() 409 int rem = (pos <= lim ? lim - pos : 0); in compact() local 410 System.arraycopy(hb, ix(pos), hb, ix(0), rem); in compact() 411 position(rem); in compact()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | Checksum.java | 109 int rem = limit - pos; in update() local 110 if (rem <= 0) { in update() 114 update(buffer.array(), pos + buffer.arrayOffset(), rem); in update() local
|
D | Adler32.java | 108 int rem = limit - pos; in update() local 109 if (rem <= 0) in update() 113 adler = updateByteBuffer(adler, ((DirectBuffer)buffer).address(), pos, rem); in update() 118 adler = updateBytes(adler, buffer.array(), pos + buffer.arrayOffset(), rem); in update()
|
D | CRC32.java | 108 int rem = limit - pos; in update() local 109 if (rem <= 0) in update() 113 crc = updateByteBuffer(crc, ((DirectBuffer)buffer).address(), pos, rem); in update() 118 crc = updateBytes(crc, buffer.array(), pos + buffer.arrayOffset(), rem); in update()
|
/libcore/ojluni/src/test/java/nio/channels/Channels/ |
D | ShortWrite.java | 49 int rem = src.remaining(); in testShortWrite() 50 if (rem > 0) { in testShortWrite() 52 int n = rand.nextInt(rem) + 1; in testShortWrite()
|
D | Basic2.java | 140 int rem = total; in run() local 143 byte[] buf = new byte[1 + rand.nextInt(rem)]; in run() 165 rem -= len; in run() 166 } while (rem > 0); in run()
|