/dalvik/dx/src/com/android/dx/util/ |
Leb128Utils.java | 40 int remaining = value >> 7; local 43 while (remaining != 0) { 44 remaining >>= 7; 61 int remaining = value >> 7; local 67 hasMore = (remaining != end) 68 || ((remaining & 1) != ((value >> 6) & 1)); 70 value = remaining; 71 remaining >>= 7;
|
/dalvik/libcore/nio/src/main/java/java/nio/ |
CharBuffer.java | 231 * call to {@code remaining()}. 238 if (index < 0 || index >= remaining()) { 247 * The remaining chars will be moved to the head of the buffer, 249 * {@code remaining()}; the limit is set to capacity; the mark is cleared. 258 * Compare the remaining chars of this buffer to another char 259 * buffer's remaining chars. 270 int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() 271 : otherBuffer.remaining(); 806 int remaining = remaining(); local [all...] |
DoubleBuffer.java | 177 * The remaining doubles will be moved to the head of the buffer, staring 178 * from position zero. Then the position is set to {@code remaining()}; the 188 * Compare the remaining doubles of this buffer to another double buffer's 189 * remaining doubles. 200 int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() 201 : otherBuffer.remaining(); 217 return remaining() - otherBuffer.remaining(); [all...] |
FloatBuffer.java | 177 * The remaining floats will be moved to the head of the buffer, starting 178 * from position zero. Then the position is set to {@code remaining()}; the 188 * Compare the remaining floats of this buffer to another float buffer's 189 * remaining floats. 200 int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() 201 : otherBuffer.remaining(); 217 return remaining() - otherBuffer.remaining(); [all...] |
IntBuffer.java | 174 * The remaining ints will be moved to the head of the buffer, starting from 175 * position zero. Then the position is set to {@code remaining()}; the 185 * Compares the remaining ints of this buffer to another int buffer's 186 * remaining ints. 197 int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() 198 : otherBuffer.remaining(); 214 return remaining() - otherBuffer.remaining(); [all...] |
LongBuffer.java | 176 * The remaining longs will be moved to the head of the buffer, staring from 177 * position zero. Then the position is set to {@code remaining()}; the 187 * Compare the remaining longs of this buffer to another long buffer's 188 * remaining longs. 199 int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() 200 : otherBuffer.remaining(); 216 return remaining() - otherBuffer.remaining(); [all...] |
ShortBuffer.java | 176 * The remaining shorts will be moved to the head of the buffer, starting 177 * from position zero. Then the position is set to {@code remaining()}; the 187 * Compare the remaining shorts of this buffer to another short buffer's 188 * remaining shorts. 199 int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() 200 : otherBuffer.remaining(); 214 return remaining() - otherBuffer.remaining(); [all...] |
ByteBuffer.java | 183 * Returns a char buffer which is based on the remaining content of this 187 * of remaining bytes divided by two, and its mark is not set. The new 200 * Returns a double buffer which is based on the remaining content of this 204 * of remaining bytes divided by eight, and its mark is not set. The new 218 * Returns a float buffer which is based on the remaining content of this 222 * of remaining bytes divided by four, and its mark is not set. The new 235 * Returns a int buffer which is based on the remaining content of this byte 239 * of remaining bytes divided by four, and its mark is not set. The new 252 * Returns a long buffer which is based on the remaining content of this 256 * of remaining bytes divided by eight, and its mark is not set. The ne [all...] |
CharArrayBuffer.java | 74 if (len > remaining()) { 94 if (start < 0 || end < start || end > remaining()) { 106 return String.copyValueOf(backingArray, offset + position, remaining());
|
/packages/apps/Email/src/org/apache/commons/io/output/ |
ByteArrayOutputStream.java | 151 int remaining = len;
local 153 while (remaining > 0) {
154 int part = Math.min(remaining, currentBuffer.length - inBufferPos);
155 System.arraycopy(b, off + len - remaining, currentBuffer, inBufferPos, part);
156 remaining -= part;
157 if (remaining > 0) {
247 int remaining = count;
local 250 int c = Math.min(buf.length, remaining);
252 remaining -= c;
253 if (remaining == 0) { 267 int remaining = count; local [all...] |
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/ |
Semaphore.java | 156 int remaining = available - acquires; local 157 if (remaining < 0 || 158 compareAndSetState(available, remaining)) 159 return remaining; 221 int remaining = available - acquires; local 222 if (remaining < 0 || 223 compareAndSetState(available, remaining)) 224 return remaining;
|
/system/core/libcutils/ |
buffer.c | 93 buffer->remaining = buffer->size; 97 assert(buffer->remaining > 0); 98 assert(buffer->remaining <= buffer->size); 101 buffer->data + buffer->size - buffer->remaining, 102 buffer->remaining); 105 buffer->remaining -= bytesWritten; 109 LOGD("Buffer remaining: %d", (int) buffer->remaining); 111 return buffer->remaining;
|
buffer.h | 43 size_t remaining; member in union:__anon13042::__anon13043 61 #define bufferWriteComplete(buffer) (buffer->remaining == 0) 101 * of an error. Updates buffer->remaining and returns the number of remaining 104 * Precondition: buffer->remaining > 0
|
/frameworks/base/media/libdrm/mobile2/src/util/ustl-1.0/ |
mistream.cpp | 66 if (remaining() < n) 70 throw stream_bounds_exception (op, type, pos(), n, remaining()); 80 assert (remaining() >= n && "Reading past end of buffer. Make sure you are reading the right format."); 101 if (remaining() < n) 103 const size_type ntr (min (n, remaining())); 111 os.write (ipos(), remaining()); 117 os.write (ipos(), remaining()); 163 if (remaining() < n) 167 throw stream_bounds_exception (op, type, pos(), n, remaining()); 180 assert (remaining() >= nb && "Buffer overrun. Check your stream size calculations.") [all...] |
sostream.cpp | 53 if (remaining() >= 1 || overflow() >= 1) 61 while ((written += btw) < bufSize && (remaining() || overflow(bufSize - written))) 62 write (buf + written, btw = min (remaining(), bufSize - written)); 127 space = remaining(); 158 if (remaining() < sz && overflow(sz) < sz) 166 if (remaining() < buf.size() && overflow(buf.size()) < buf.size()) 177 /// Attempts to create more output space. Returns remaining(). 180 if (n > remaining()) { 188 return (remaining());
|
/external/apache-http/src/org/apache/http/entity/ |
InputStreamEntity.java | 90 long remaining = this.length; local 91 while (remaining > 0) { 92 l = instream.read(buffer, 0, (int)Math.min(BUFFER_SIZE, remaining)); 97 remaining -= l;
|
/external/apache-http/src/org/apache/http/impl/io/ |
ContentLengthInputStream.java | 206 long remaining = Math.min(n, this.contentLength - this.pos); local 209 while (remaining > 0) { 210 int l = read(buffer, 0, (int)Math.min(BUFFER_SIZE, remaining)); 215 remaining -= l;
|
/frameworks/base/core/jni/android/graphics/ |
NIOBuffer.h | 13 void* lock(JNIEnv* env, int* remaining);
|
/packages/apps/Email/src/org/apache/commons/io/input/ |
SwappedDataInputStream.java | 136 int remaining = length;
local 138 while( remaining > 0 )
140 int location = offset + ( length - remaining );
141 int count = read( data, location, remaining );
148 remaining -= count;
|
/external/astl/src/ |
streambuf.cpp | 48 const streamsize remaining = num - written; local 49 const streamsize len = std::min(avail, remaining);
|
/external/srec/portable/src/ |
ptimer.c | 212 struct itimerspec remaining; local 216 if (timer_gettime(timer->timer, &remaining) != 0) return ESR_NOT_SUPPORTED; 220 timer->elapsed = (asr_uint32_t) ((TIMER_MAX_VAL - remaining.it_value.tv_sec) * SECOND2MSECOND 221 - remaining.it_value.tv_nsec / MSECOND2NSECOND); 239 struct itimerspec remaining; local 240 if (timer_gettime(timer->timer, &remaining) != 0) return ESR_NOT_SUPPORTED; 241 *elapsed = (asr_uint32_t) ((TIMER_MAX_VAL - remaining.it_value.tv_sec) * SECOND2MSECOND 242 - remaining.it_value.tv_nsec / MSECOND2NSECOND);
|
/external/icu4c/tools/toolutil/ |
uoptions.c | 27 int i=1, remaining=1; local 117 argv[remaining++]=arg; 121 return remaining;
|
/external/libpng/ |
pngrio.c | 105 png_size_t read, remaining, err; local 107 remaining = length; 110 read = MIN(NEAR_BUF_SIZE, remaining); 123 remaining -= read; 125 while (remaining != 0);
|
/external/qemu/distrib/libpng-1.2.19/ |
pngrio.c | 96 png_size_t read, remaining, err; local 98 remaining = length; 101 read = MIN(NEAR_BUF_SIZE, remaining); 114 remaining -= read; 116 while (remaining != 0);
|
/external/icu4c/common/ |
ustr_wcs.c | 154 int32_t remaining = intTargetCapacity; local 164 retVal = uprv_mbstowcs(pIntTarget,(tempBuf+nulLen),remaining); 169 }else if(retVal== remaining){/* should never occur */ 177 remaining=intTargetCapacity; 181 remaining-=numWritten; 192 remaining -=(retVal+nulVal); 336 int32_t remaining =cStackCap; local 349 if(remaining < (nulLen * MB_CUR_MAX)){ 359 remaining = cStackCap-(pCSrc - pCSave); 365 retVal = uprv_wcstombs(pCSrc,pSrc,remaining); [all...] |