/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 | 117 long rem = Math.max(0, sbc.size() - sbc.position()); in available() local 118 return (rem > Integer.MAX_VALUE) ? Integer.MAX_VALUE : (int)rem; in available()
|
D | DatagramChannelImpl.java | 428 int rem = (pos <= lim ? lim - pos : 0); in receive() local 429 if (dst instanceof DirectBuffer && rem > 0) in receive() 430 return receiveIntoNativeBuffer(fd, dst, rem, pos); in receive() 435 int newSize = Math.max(rem, 1); in receive() 443 if (n > 0 && rem > 0) in receive() 452 int rem, int pos) in receiveIntoNativeBuffer() argument 455 int n = receive0(fd, ((DirectBuffer)bb).address() + pos, rem, in receiveIntoNativeBuffer() 533 int rem = (pos <= lim ? lim - pos : 0); in send() local 535 ByteBuffer bb = Util.getTemporaryDirectBuffer(rem); in send() 560 int rem = (pos <= lim ? lim - pos : 0); in sendFromNativeBuffer() local [all …]
|
D | IOVecWrapper.java | 110 void setBuffer(int i, ByteBuffer buf, int pos, int rem) { in setBuffer() argument 113 this.remaining[i] = rem; in setBuffer()
|
/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 | 1107 int rem = value[offset]; in divideOneWord() local 1108 long remLong = rem & LONG_MASK; in divideOneWord() 1113 rem = (int) (remLong - (quotient.value[0] * divisorLong)); in divideOneWord() 1114 remLong = rem & LONG_MASK; in divideOneWord() 1123 rem = (int) (dividendEstimate - q * divisorLong); in divideOneWord() 1127 rem = (int) (tmp >>> 32); in divideOneWord() 1130 remLong = rem & LONG_MASK; in divideOneWord() 1136 return rem % divisor; in divideOneWord() 1138 return rem; in divideOneWord() 1485 MutableBigInteger rem; // Remainder starts as dividend with space for a leading zero in divideMagnitude() local [all …]
|
/libcore/ojluni/src/main/java/java/nio/ |
D | ByteBufferAsFloatBuffer.java | 61 int rem = (pos <= lim ? lim - pos : 0); in slice() local 64 return new ByteBufferAsFloatBuffer(bb, -1, 0, rem, rem, off, order); in slice() 137 int rem = (pos <= lim ? lim - pos : 0); in compact() local 139 System.arraycopy(bb.array(), ix(pos), bb.array(), ix(0), rem << 2); in compact() 141 Memory.memmove(this, ix(0), this, ix(pos), rem << 2); in compact() 143 position(rem); in compact()
|
D | ByteBufferAsLongBuffer.java | 61 int rem = (pos <= lim ? lim - pos : 0); in slice() local 64 return new ByteBufferAsLongBuffer(bb, -1, 0, rem, rem, off, order); in slice() 137 int rem = (pos <= lim ? lim - pos : 0); in compact() local 139 System.arraycopy(bb.array(), ix(pos), bb.array(), ix(0), rem << 3); in compact() 141 Memory.memmove(this, ix(0), this, ix(pos), rem << 3); in compact() 143 position(rem); in compact()
|
D | ByteBufferAsIntBuffer.java | 61 int rem = (pos <= lim ? lim - pos : 0); in slice() local 64 return new ByteBufferAsIntBuffer(bb, -1, 0, rem, rem, off, order); in slice() 137 int rem = (pos <= lim ? lim - pos : 0); in compact() local 139 System.arraycopy(bb.array(), ix(pos), bb.array(), ix(0), rem << 2); in compact() 141 Memory.memmove(this, ix(0), this, ix(pos), rem << 2); in compact() 143 position(rem); in compact()
|
D | ByteBufferAsShortBuffer.java | 61 int rem = (pos <= lim ? lim - pos : 0); in slice() local 64 return new ByteBufferAsShortBuffer(bb, -1, 0, rem, rem, off, order); in slice() 136 int rem = (pos <= lim ? lim - pos : 0); in compact() local 138 System.arraycopy(bb.array(), ix(pos), bb.array(), ix(0), rem << 1); in compact() 140 Memory.memmove(this, ix(0), this, ix(pos), rem << 1); in compact() 142 position(rem); in compact()
|
D | ByteBufferAsDoubleBuffer.java | 62 int rem = (pos <= lim ? lim - pos : 0); in slice() local 65 return new ByteBufferAsDoubleBuffer(bb, -1, 0, rem, rem, off, order); in slice() 138 int rem = (pos <= lim ? lim - pos : 0); in compact() local 140 System.arraycopy(bb.array(), ix(pos), bb.array(), ix(0), rem << 3); in compact() 142 Memory.memmove(this, ix(0), this, ix(pos), rem << 3); in compact() 144 position(rem); in compact()
|
D | ByteBufferAsCharBuffer.java | 61 int rem = (pos <= lim ? lim - pos : 0); in slice() local 64 return new ByteBufferAsCharBuffer(bb, -1, 0, rem, rem, off, order); in slice() 141 int rem = (pos <= lim ? lim - pos : 0); in compact() local 143 System.arraycopy(bb.array(), ix(pos), bb.array(), ix(0), rem << 1); in compact() 145 Memory.memmove(this, ix(0), this, ix(pos), rem << 1); in compact() 147 position(rem); in compact()
|
D | DirectByteBuffer.java | 164 int rem = (pos <= lim ? lim - pos : 0); in slice() local 167 return new DirectByteBuffer(memoryRef, -1, 0, rem, rem, off, isReadOnly); in slice() 237 int rem = (pos <= lim ? lim - pos : 0); in get() local 238 if (length > rem) in get() 296 int rem = (pos <= lim ? lim - pos : 0); in put() local 297 if (length > rem) in put() 316 int rem = (pos <= lim ? lim - pos : 0); in compact() local 318 position(rem); in compact() 440 int rem = (off <= lim ? lim - off : 0); in asCharBuffer() local 441 int size = rem >> 1; in asCharBuffer() [all …]
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | Adler32.java | 108 int rem = limit - pos; in update() local 109 if (rem <= 0) in update() 112 adler = updateByteBuffer(adler, ((DirectBuffer)buffer).address(), pos, rem); in update() 114 adler = updateBytes(adler, buffer.array(), pos + buffer.arrayOffset(), rem); in update() 116 byte[] b = new byte[rem]; in update()
|
D | CRC32.java | 105 int rem = limit - pos; in update() local 106 if (rem <= 0) in update() 109 crc = updateByteBuffer(crc, ((DirectBuffer)buffer).address(), pos, rem); in update() 111 crc = updateBytes(crc, buffer.array(), pos + buffer.arrayOffset(), rem); in update() 113 byte[] b = new byte[rem]; in update()
|
D | ZipFile.java | 775 protected long rem; // number of remaining bytes within entry field in ZipFile.ZipFileInputStream 780 rem = getEntryCSize(jzentry); in ZipFileInputStream() 795 long rem = this.rem; in read() local 797 if (rem == 0) { in read() 803 if (len > rem) { in read() 804 len = (int) rem; in read() 814 this.rem = (rem - len); in read() 817 if (rem == 0) { in read() 833 if (n > rem) in skip() 834 n = rem; in skip() [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()
|
D | StreamEncoder.java | 214 int rem = (pos <= lim ? lim - pos : 0); in writeBytes() local 216 if (rem > 0) { in writeBytes() 218 if (ch.write(bb) != rem) in writeBytes() 219 assert false : rem; in writeBytes() 221 out.write(bb.array(), bb.arrayOffset() + pos, rem); in writeBytes() local
|
/libcore/luni/src/main/java/libcore/math/ |
D | NativeBN.java | 39 public static native void BN_div(long dv, long rem, long num, long divisor); in BN_div() argument
|
/libcore/ojluni/annotations/hiddenapi/sun/misc/ |
D | BASE64Decoder.java | 45 java.io.PushbackInputStream inStream, java.io.OutputStream outStream, int rem) in decodeAtom() argument
|
/libcore/luni/src/main/native/ |
D | libcore_math_NativeBN.cpp | 151 static void NativeBN_BN_div(JNIEnv* env, jclass, jlong q, jlong rem, jlong num, jlong divisor) { in NativeBN_BN_div() argument 154 if (!ctxp || !BN_div(toBigNum(q), toBigNum(rem), toBigNum(num), toBigNum(divisor), ctxp)) { in NativeBN_BN_div()
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | Files.java | 3294 int rem = len; 3295 while (rem > 0) { 3296 int n = Math.min(rem, BUFFER_SIZE); 3297 out.write(bytes, (len-rem), n); 3298 rem -= n;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigDecimalArithmeticTest.java | 1375 String rem = "1.3032693871288309587558885943391070087960319452465789990E-15"; in testDivideAndRemainder1() local 1382 assertEquals("incorrect remainder value", rem, result[1].toString()); in testDivideAndRemainder1() 1398 String rem = "3.4935796954060524114470681810486417234751682675102093970E-15"; in testDivideAndRemainder2() local 1405 assertEquals("incorrect remainder value", rem, result[1].toString()); in testDivideAndRemainder2() 1422 String rem = "1.3032693871288309587558885943391070087960319452465789990E-15"; in testDivideAndRemainderMathContextUP() local 1429 assertEquals("incorrect remainder value", rem, result[1].toString()); in testDivideAndRemainderMathContextUP() 1446 String rem = "3736186567876.876578956958765675671119238118911893939591735"; in testDivideAndRemainderMathContextDOWN() local 1453 assertEquals("incorrect remainder value", rem, result[1].toString()); in testDivideAndRemainderMathContextDOWN()
|