/dalvik/dx/src/com/android/dx/util/ |
D | Leb128Utils.java | 40 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()
|
D | ByteArrayAnnotatedOutput.java | 228 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/ |
D | CharBuffer.java | 259 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 …]
|
D | ShortBuffer.java | 215 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()
|
D | IntBuffer.java | 214 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()
|
D | FloatBuffer.java | 216 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()
|
D | DoubleBuffer.java | 216 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()
|
D | LongBuffer.java | 215 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()
|
D | ByteBuffer.java | 362 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()
|
D | CharArrayBuffer.java | 71 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()
|
D | ReadWriteFloatArrayBuffer.java | 63 remaining()); in compact() 111 if (len > remaining()) { in put() 121 return new ReadWriteFloatArrayBuffer(remaining(), backingArray, offset in slice()
|
D | ReadWriteIntArrayBuffer.java | 60 remaining()); in compact() 108 if (len > remaining()) { in put() 118 return new ReadWriteIntArrayBuffer(remaining(), backingArray, offset in slice()
|
D | ReadWriteShortArrayBuffer.java | 63 remaining()); in compact() 111 if (len > remaining()) { in put() 120 return new ReadWriteShortArrayBuffer(remaining(), backingArray, offset in slice()
|
D | ReadWriteCharArrayBuffer.java | 60 remaining()); in compact() 108 if (len > remaining()) { in put() 117 return new ReadWriteCharArrayBuffer(remaining(), backingArray, offset in slice()
|
D | ReadWriteLongArrayBuffer.java | 60 remaining()); in compact() 108 if (len > remaining()) { in put() 118 return new ReadWriteLongArrayBuffer(remaining(), backingArray, offset in slice()
|
D | ReadWriteDoubleArrayBuffer.java | 63 remaining()); in compact() 111 if (len > remaining()) { in put() 121 return new ReadWriteDoubleArrayBuffer(remaining(), backingArray, offset in slice()
|
D | CharSequenceAdapter.java | 78 if (len > remaining()) { in get() 124 if (len > remaining()) { in put() 143 if (end < start || start < 0 || end > remaining()) { in subSequence()
|
D | ReadWriteDirectByteBuffer.java | 82 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()
|
D | ReadWriteHeapByteBuffer.java | 62 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/ |
D | Semaphore.java | 144 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/ |
D | CharsetDecoder.java | 241 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()
|
D | CharsetEncoder.java | 346 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/ |
D | FileChannelImpl.java | 279 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 …]
|
D | DatagramChannelImpl.java | 285 + 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/ |
D | ByteBufferTest.java | 974 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 …]
|