Home
last modified time | relevance | path

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

123

/dalvik/dx/src/com/android/dx/util/
DLeb128Utils.java40 int remaining = value >> 7; in unsignedLeb128Size() local
43 while (remaining != 0) { in unsignedLeb128Size()
44 value = remaining; in unsignedLeb128Size()
45 remaining >>= 7; in unsignedLeb128Size()
62 int remaining = value >> 7; in signedLeb128Size() local
68 hasMore = (remaining != end) in signedLeb128Size()
69 || ((remaining & 1) != ((value >> 6) & 1)); in signedLeb128Size()
71 value = remaining; in signedLeb128Size()
72 remaining >>= 7; in signedLeb128Size()
DByteArrayAnnotatedOutput.java228 int remaining = value >> 7; in writeUnsignedLeb128() local
231 while (remaining != 0) { in writeUnsignedLeb128()
233 value = remaining; in writeUnsignedLeb128()
234 remaining >>= 7; in writeUnsignedLeb128()
244 int remaining = value >> 7; in writeSignedLeb128() local
250 hasMore = (remaining != end) in writeSignedLeb128()
251 || ((remaining & 1) != ((value >> 6) & 1)); in writeSignedLeb128()
254 value = remaining; in writeSignedLeb128()
255 remaining >>= 7; in writeSignedLeb128()
/dalvik/libcore/nio/src/main/java/java/nio/
DCharBuffer.java259 if (index < 0 || index >= remaining()) { in charAt()
294 int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() in compareTo()
295 : otherBuffer.remaining(); in compareTo()
309 return remaining() - otherBuffer.remaining(); in compareTo()
350 if (remaining() != otherBuffer.remaining()) { in equals()
419 if (len > remaining()) { in get()
488 return remaining(); in length()
590 if (len > remaining()) { in put()
620 if (src.remaining() > remaining()) { in put()
624 char[] contents = new char[src.remaining()]; in put()
[all …]
DShortBuffer.java215 int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() in compareTo()
216 : otherBuffer.remaining(); in compareTo()
230 return remaining() - otherBuffer.remaining(); in compareTo()
271 if (remaining() != otherBuffer.remaining()) { in equals()
340 if (len > remaining()) { in get()
502 if (len > remaining()) { in put()
532 if (src.remaining() > remaining()) { in put()
535 short[] contents = new short[src.remaining()]; in put()
DIntBuffer.java214 int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() in compareTo()
215 : otherBuffer.remaining(); in compareTo()
231 return remaining() - otherBuffer.remaining(); in compareTo()
272 if (remaining() != otherBuffer.remaining()) { in equals()
340 if (len > remaining()) { in get()
501 if (len > remaining()) { in put()
531 if (src.remaining() > remaining()) { in put()
534 int[] contents = new int[src.remaining()]; in put()
DFloatBuffer.java216 int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() in compareTo()
217 : otherBuffer.remaining(); in compareTo()
235 return remaining() - otherBuffer.remaining(); in compareTo()
276 if (remaining() != otherBuffer.remaining()) { in equals()
346 if (len > remaining()) { in get()
508 if (len > remaining()) { in put()
538 if (src.remaining() > remaining()) { in put()
541 float[] contents = new float[src.remaining()]; in put()
DDoubleBuffer.java216 int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() in compareTo()
217 : otherBuffer.remaining(); in compareTo()
235 return remaining() - otherBuffer.remaining(); in compareTo()
276 if (remaining() != otherBuffer.remaining()) { in equals()
346 if (len > remaining()) { in get()
510 if (len > remaining()) { in put()
540 if (src.remaining() > remaining()) { in put()
543 double[] doubles = new double[src.remaining()]; in put()
DLongBuffer.java215 int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() in compareTo()
216 : otherBuffer.remaining(); in compareTo()
232 return remaining() - otherBuffer.remaining(); in compareTo()
273 if (remaining() != otherBuffer.remaining()) { in equals()
342 if (len > remaining()) { in get()
505 if (len > remaining()) { in put()
535 if (src.remaining() > remaining()) { in put()
538 long[] contents = new long[src.remaining()]; in put()
DByteBuffer.java362 int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() in compareTo()
363 : otherBuffer.remaining(); in compareTo()
377 return remaining() - otherBuffer.remaining(); in compareTo()
418 if (remaining() != otherBuffer.remaining()) { in equals()
487 if (len > remaining()) { in get()
863 if (len > remaining()) { in put()
893 if (src.remaining() > remaining()) { in put()
896 byte[] contents = new byte[src.remaining()]; in put()
DCharArrayBuffer.java71 if (len > remaining()) { in get()
88 if (start < 0 || end < start || end > remaining()) { in subSequence()
99 return String.copyValueOf(backingArray, offset + position, remaining()); in toString()
DReadWriteFloatArrayBuffer.java63 remaining()); in compact()
111 if (len > remaining()) { in put()
121 return new ReadWriteFloatArrayBuffer(remaining(), backingArray, offset in slice()
DReadWriteIntArrayBuffer.java60 remaining()); in compact()
108 if (len > remaining()) { in put()
118 return new ReadWriteIntArrayBuffer(remaining(), backingArray, offset in slice()
DReadWriteShortArrayBuffer.java63 remaining()); in compact()
111 if (len > remaining()) { in put()
120 return new ReadWriteShortArrayBuffer(remaining(), backingArray, offset in slice()
DReadWriteCharArrayBuffer.java60 remaining()); in compact()
108 if (len > remaining()) { in put()
117 return new ReadWriteCharArrayBuffer(remaining(), backingArray, offset in slice()
DReadWriteLongArrayBuffer.java60 remaining()); in compact()
108 if (len > remaining()) { in put()
118 return new ReadWriteLongArrayBuffer(remaining(), backingArray, offset in slice()
DReadWriteDoubleArrayBuffer.java63 remaining()); in compact()
111 if (len > remaining()) { in put()
121 return new ReadWriteDoubleArrayBuffer(remaining(), backingArray, offset in slice()
DCharSequenceAdapter.java78 if (len > remaining()) { in get()
124 if (len > remaining()) { in put()
143 if (end < start || start < 0 || end > remaining()) { in subSequence()
DReadWriteDirectByteBuffer.java82 remaining()); in compact()
125 if (len > remaining()) { in put()
166 if (len << 1 > remaining()) { in put()
206 if (len << 2 > remaining()) { in put()
311 safeAddress, remaining(), offset + position); in slice()
DReadWriteHeapByteBuffer.java62 remaining()); in compact()
116 if (len > remaining()) { in put()
200 backingArray, remaining(), offset + position); in slice()
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/
DSemaphore.java144 int remaining = available - acquires; in nonfairTryAcquireShared() local
145 if (remaining < 0 || in nonfairTryAcquireShared()
146 compareAndSetState(available, remaining)) in nonfairTryAcquireShared()
147 return remaining; in nonfairTryAcquireShared()
205 int remaining = available - acquires; in tryAcquireShared() local
206 if (remaining < 0 || in tryAcquireShared()
207 compareAndSetState(available, remaining)) in tryAcquireShared()
208 return remaining; in tryAcquireShared()
/dalvik/libcore/nio_char/src/main/java/java/nio/charset/
DCharsetDecoder.java241 int length = (int) (in.remaining() * averChars); in decode()
396 int remaining = in.remaining(); in decode() local
398 if (endOfInput && remaining > 0) { in decode()
399 result = CoderResult.malformedForLength(remaining); in decode()
415 if (out.remaining() < replace.length()) { in decode()
DCharsetEncoder.java346 if (in.remaining() == 0) { in encode()
350 int length = (int) (in.remaining() * averBytes); in encode()
492 int remaining = in.remaining(); in encode() local
494 if (endOfInput && remaining > 0) { in encode()
495 result = CoderResult.malformedForLength(remaining); in encode()
511 if (out.remaining() < replace.length) { in encode()
/dalvik/libcore/nio/src/main/java/org/apache/harmony/nio/internal/
DFileChannelImpl.java279 buffer.position(), buffer.remaining()); in read()
292 .remaining()); in read()
313 count += buffers[i].remaining(); in read()
328 buffer = ByteBuffer.allocateDirect(buffer.remaining()); in read()
335 lengths[i] = buffer.remaining(); in read()
370 if (bytesRemaining < buf.remaining()){ in read()
377 bytesRemaining -= buf.remaining(); in read()
559 address, buffer.position(), buffer.remaining()); in writeImpl()
569 buffer.remaining()); in writeImpl()
590 count += buffers[i].remaining(); in write()
[all …]
DDatagramChannelImpl.java285 + target.arrayOffset(), target.remaining()); in receiveImpl()
287 receivePacket = new DatagramPacket(new byte[target.remaining()], target.remaining()); in receiveImpl()
342 target.remaining(), isBlocking() ? 0 in receiveDirectImpl()
347 target.remaining(), isBlocking() ? 0 in receiveDirectImpl()
415 int length = source.remaining(); in send()
478 byte[] readArray = new byte[target.remaining()]; in read()
508 totalCount += targets[val].remaining(); in read()
521 int putLength = Math.min(targets[index].remaining(), left); in read()
541 int length = readBuffer.remaining(); in readImpl()
594 writeArray = new byte[source.remaining()]; in write()
[all …]
/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/
DByteBufferTest.java974 assertEquals(buf.remaining(), slice.limit()); in testSlice()
975 assertEquals(buf.remaining(), slice.capacity()); in testSlice()
1023 while (charBuffer.remaining() > 0) { in testAsCharBuffer()
1034 while (charBuffer.remaining() > 0) { in testAsCharBuffer()
1046 while (charBuffer.remaining() > 0) { in testAsCharBuffer()
1047 value = (char) charBuffer.remaining(); in testAsCharBuffer()
1058 while (charBuffer.remaining() > 0) { in testAsCharBuffer()
1059 value = (char) charBuffer.remaining(); in testAsCharBuffer()
1086 while (doubleBuffer.remaining() > 0) { in testAsDoubleBuffer()
1100 while (doubleBuffer.remaining() > 0) { in testAsDoubleBuffer()
[all …]

123