Home
last modified time | relevance | path

Searched refs:remaining (Results 1 – 25 of 86) sorted by relevance

1234

/libcore/dex/src/main/java/com/android/dex/
DLeb128.java40 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/
DCharBuffer.java223 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 …]
DHeapLongBuffer.java80 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()
DHeapDoubleBuffer.java80 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()
DHeapFloatBuffer.java79 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()
DHeapIntBuffer.java79 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()
DHeapShortBuffer.java79 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()
DHeapCharBuffer.java79 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()
DLongBuffer.java335 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()
DShortBuffer.java336 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()
DDoubleBuffer.java334 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()
DFloatBuffer.java335 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()
DIntBuffer.java337 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()
DByteBuffer.java470 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()
DHeapByteBuffer.java84 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/
DInputStream.java212 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()
DLineNumberInputStream.java180 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/
DSemaphore.java157 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/
DPollArrayWrapper.c49 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/
DIOVecWrapper.java60 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/
DZipInputStream.java49 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/
DByteBufferTest.java788 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/
DPosix.java123 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/
DCharsetDecoder.java576 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()
DCharsetEncoder.java354 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()

1234