/libcore/dex/src/main/java/com/android/dex/ |
D | Leb128.java | 40 int remaining = value >> 7; in unsignedLeb128Size() local 43 while (remaining != 0) { in unsignedLeb128Size() 44 remaining >>= 7; in unsignedLeb128Size() 61 int remaining = value >> 7; in signedLeb128Size() local 67 hasMore = (remaining != end) in signedLeb128Size() 68 || ((remaining & 1) != ((value >> 6) & 1)); in signedLeb128Size() 70 value = remaining; in signedLeb128Size() 71 remaining >>= 7; in signedLeb128Size() 132 int remaining = value >>> 7; in writeUnsignedLeb128() local 134 while (remaining != 0) { in writeUnsignedLeb128() [all …]
|
/libcore/ojluni/src/main/java/java/nio/ |
D | CharBuffer.java | 223 int targetRemaining = target.remaining(); in read() 224 int remaining = remaining(); in read() local 225 if (remaining == 0) in read() 227 int n = Math.min(remaining, targetRemaining); in read() 230 if (targetRemaining < remaining) in read() 453 if (length > remaining()) in get() 518 int n = src.remaining(); in put() 519 if (n > remaining()) in put() 567 if (length > remaining()) in put() 651 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() 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() 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 | HeapFloatBuffer.java | 79 this.remaining(), in slice() 80 this.remaining(), in slice() 118 if (length > remaining()) in get() 154 if (length > remaining()) in put() 169 int n = sb.remaining(); in put() 170 if (n > remaining()) in put() 177 int n = src.remaining(); in put() 178 if (n > remaining()) in put() 192 System.arraycopy(hb, ix(position()), hb, ix(0), remaining()); in compact() 193 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() 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() 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 | HeapCharBuffer.java | 79 this.remaining(), in slice() 80 this.remaining(), in slice() 124 if (length > remaining()) in get() 160 if (length > remaining()) in put() 175 int n = sb.remaining(); in put() 176 if (n > remaining()) in put() 183 int n = src.remaining(); in put() 184 if (n > remaining()) in put() 198 System.arraycopy(hb, ix(position()), hb, ix(0), remaining()); in compact() 199 position(remaining()); in compact()
|
D | LongBuffer.java | 335 if (length > remaining()) in get() 400 int n = src.remaining(); in put() 401 if (n > remaining()) in put() 449 if (length > remaining()) in put() 649 if (this.remaining() != that.remaining()) in equals() 689 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 695 return this.remaining() - that.remaining(); in compareTo()
|
D | ShortBuffer.java | 336 if (length > remaining()) in get() 401 int n = src.remaining(); in put() 402 if (n > remaining()) in put() 450 if (length > remaining()) in put() 650 if (this.remaining() != that.remaining()) in equals() 690 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 696 return this.remaining() - that.remaining(); in compareTo()
|
D | DoubleBuffer.java | 334 if (length > remaining()) in get() 399 int n = src.remaining(); in put() 400 if (n > remaining()) in put() 448 if (length > remaining()) in put() 648 if (this.remaining() != that.remaining()) in equals() 688 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 696 return this.remaining() - that.remaining(); in compareTo()
|
D | FloatBuffer.java | 335 if (length > remaining()) in get() 400 int n = src.remaining(); in put() 401 if (n > remaining()) in put() 449 if (length > remaining()) in put() 649 if (this.remaining() != that.remaining()) in equals() 689 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 695 return this.remaining() - that.remaining(); in compareTo()
|
D | IntBuffer.java | 337 if (length > remaining()) in get() 402 int n = src.remaining(); in put() 403 if (n > remaining()) in put() 451 if (length > remaining()) in put() 651 if (this.remaining() != that.remaining()) in equals() 691 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 697 return this.remaining() - that.remaining(); in compareTo()
|
D | ByteBuffer.java | 470 if (length > remaining()) in get() 542 int n = src.remaining(); in put() 543 if (n > remaining()) { in put() 618 if (length > remaining()) in put() 832 if (this.remaining() != that.remaining()) in equals() 872 int n = this.position() + Math.min(this.remaining(), that.remaining()); in compareTo() 878 return this.remaining() - that.remaining(); in compareTo()
|
D | HeapByteBuffer.java | 84 remaining(), in slice() 85 remaining(), in slice() 123 if (length > remaining()) in get() 159 if (length > remaining()) in put() 170 System.arraycopy(hb, ix(position()), hb, ix(0), remaining()); in compact() 171 position(remaining()); in compact() 229 int size = this.remaining() >> 1; in asCharBuffer() 281 int size = this.remaining() >> 1; in asShortBuffer() 333 int size = this.remaining() >> 2; in asIntBuffer() 386 int size = this.remaining() >> 3; in asLongBuffer() [all …]
|
/libcore/ojluni/src/main/java/java/io/ |
D | InputStream.java | 212 long remaining = n; in skip() local 219 int size = (int)Math.min(MAX_SKIP_BUFFER_SIZE, remaining); in skip() 221 while (remaining > 0) { in skip() 222 nr = read(skipBuffer, 0, (int)Math.min(size, remaining)); in skip() 226 remaining -= nr; in skip() 229 return n - remaining; in skip()
|
D | LineNumberInputStream.java | 180 long remaining = n; in skip() local 189 while (remaining > 0) { in skip() 190 nr = read(data, 0, (int) Math.min(chunk, remaining)); in skip() 194 remaining -= nr; in skip() 197 return n - remaining; in skip()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | Semaphore.java | 157 int remaining = available - acquires; in nonfairTryAcquireShared() local 158 if (remaining < 0 || in nonfairTryAcquireShared() 159 compareAndSetState(available, remaining)) in nonfairTryAcquireShared() 160 return remaining; in nonfairTryAcquireShared() 225 int remaining = available - acquires; in tryAcquireShared() local 226 if (remaining < 0 || in tryAcquireShared() 227 compareAndSetState(available, remaining)) in tryAcquireShared() 228 return remaining; in tryAcquireShared()
|
/libcore/ojluni/src/main/native/ |
D | PollArrayWrapper.c | 49 int remaining = timeout; in ipoll() local 57 int res = poll(fds, nfds, remaining); in ipoll() 59 if (remaining >= 0) { in ipoll() 63 remaining -= diff; in ipoll() 64 if (diff < 0 || remaining <= 0) { in ipoll()
|
/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()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipInputStream.java | 49 private long remaining; field in ZipInputStream 128 remaining = entry.size; in getNextEntry() 161 if (entryEOF || (entry != null && remaining == 0)) { in available() 207 remaining -= len; in read() 212 if (remaining <= 0) { in read() 217 if (len > remaining) { in read() 218 len = (int)remaining; in read() 225 remaining -= len; in read() 226 if (remaining == 0 && entry.crc != crc.getValue()) { in read()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | ByteBufferTest.java | 788 assertEquals(slice.limit(), buf.remaining()); in testSlice() 789 assertEquals(slice.capacity(), buf.remaining()); in testSlice() 824 while (charBuffer.remaining() > 0) { in testAsCharBuffer() 835 while (charBuffer.remaining() > 0) { in testAsCharBuffer() 847 while (charBuffer.remaining() > 0) { in testAsCharBuffer() 848 value = (char) charBuffer.remaining(); in testAsCharBuffer() 859 while (charBuffer.remaining() > 0) { in testAsCharBuffer() 860 value = (char) charBuffer.remaining(); in testAsCharBuffer() 880 while (doubleBuffer.remaining() > 0) { in testAsDoubleBuffer() 894 while (doubleBuffer.remaining() > 0) { in testAsDoubleBuffer() [all …]
|
/libcore/luni/src/main/java/libcore/io/ |
D | Posix.java | 123 bytesRead = preadBytes(fd, buffer, position, buffer.remaining(), offset); in pread() 125 …ls.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + position, buffer.remaining(), offset); in pread() 141 bytesWritten = pwriteBytes(fd, buffer, position, buffer.remaining(), offset); in pwrite() 143 …ls.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + position, buffer.remaining(), offset); in pwrite() 159 bytesRead = readBytes(fd, buffer, position, buffer.remaining()); in read() 161 …, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + position, buffer.remaining()); in read() 180 … bytesReceived = recvfromBytes(fd, buffer, position, buffer.remaining(), flags, srcAddress); in recvfrom() 182 …afeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + position, buffer.remaining(), flags, srcAdd… in recvfrom() 202 … bytesSent = sendtoBytes(fd, buffer, position, buffer.remaining(), flags, inetAddress, port); in sendto() 204 …afeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + position, buffer.remaining(), flags, inetAd… in sendto() [all …]
|
/libcore/ojluni/src/main/java/java/nio/charset/ |
D | CharsetDecoder.java | 576 cr = CoderResult.malformedForLength(in.remaining()); in decode() 595 if (out.remaining() < replacement.length()) in decode() 779 int n = (int)(in.remaining() * averageCharsPerByte()); in decode() 782 if ((n == 0) && (in.remaining() == 0)) in decode()
|
D | CharsetEncoder.java | 354 CharBuffer cb = CharBuffer.allocate((int)(bb.remaining() in isLegalReplacement() 591 cr = CoderResult.malformedForLength(in.remaining()); in encode() 610 if (out.remaining() < replacement.length) in encode() 794 int n = (int)(in.remaining() * averageBytesPerChar()); in encode() 797 if ((n == 0) && (in.remaining() == 0)) in encode()
|