/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
SSLEngineDataStream.java | 37 private int available; field in class:SSLEngineDataStream 47 this.available = 0; 53 available += srcs[i].remaining(); 57 public int available() { method in class:SSLEngineDataStream 58 return available; 62 return available > 0; 69 int len = (length < available) ? length : available; 70 available -= len;
|
SSLStreamedInput.java | 36 public int available() throws IOException { method in class:SSLStreamedInput 37 return in.available();
|
SSLBufferedInput.java | 51 public int available() throws IOException { method in class:SSLBufferedInput
|
/libcore/luni/src/main/java/java/io/ |
BufferedWriter.java | 208 int available = this.buf.length - pos; local 209 if (count < available) { 210 available = count; 212 if (available > 0) { 213 System.arraycopy(cbuf, offset, this.buf, pos, available); 214 pos += available; 219 if (count > available) { 220 offset += available; 221 available = count - available; 292 int available = buf.length - pos; local [all...] |
ObjectInput.java | 31 * @return the number of bytes available. 35 public int available() throws IOException; method in interface:ObjectInput 49 * reached. Blocks if no input is available.
|
FilterInputStream.java | 53 public int available() throws IOException { method in class:FilterInputStream 54 return in.available();
|
/libcore/support/src/test/java/tests/support/ |
Support_ASimpleReader.java | 60 int available = len - pos; local 61 if (available > 0) { 62 int readable = (available < count ? available : count);
|
/libcore/luni/src/main/java/org/apache/harmony/luni/util/ |
InputStreamHelper.java | 87 final int available = available(); local 88 final byte[] buffer = new byte[available]; 89 System.arraycopy(buf, pos, buffer, 0, available); 90 skip(available); 107 int available = bais.available(); local 114 if (pos == 0 && available == buf.length) { 117 buffer = new byte[available]; 118 System.arraycopy(buf, pos, buffer, 0, available); [all...] |
/external/chromium/third_party/icu/source/common/ |
bytestream.cpp | 35 int32_t available = capacity_ - size_; local 36 if (n > available) { 37 n = available; 55 int32_t available = capacity_ - size_; local 56 if (available >= min_capacity) { 57 *result_capacity = available;
|
/external/icu4c/common/ |
bytestream.cpp | 35 int32_t available = capacity_ - size_; local 36 if (n > available) { 37 n = available; 55 int32_t available = capacity_ - size_; local 56 if (available >= min_capacity) { 57 *result_capacity = available;
|
/libcore/luni/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
DeflaterInputStreamTest.java | 35 * @tests DeflaterInputStream#available() 40 assertEquals(1, dis.available()); 42 assertEquals(1, dis.available()); 44 assertEquals(1, dis.available()); 46 assertEquals(0, dis.available()); 49 dis.available(); 62 assertEquals(1, dis.available()); 65 dis.available(); 108 assertEquals(1, dis.available()); 110 assertEquals(1, dis.available()); [all...] |
/external/speex/libspeex/ |
buffer.c | 48 int available; member in struct:SpeexBuffer_ 58 st->available = 0; 88 st->available += len; 89 if (st->available > st->size) 91 st->available = st->size; 120 st->available += len; 121 if (st->available > st->size) 123 st->available = st->size; 136 if (len > st->available) 138 SPEEX_MEMSET(data+st->available, 0, st->size-st->available) [all...] |
/frameworks/base/core/java/android/bluetooth/ |
BluetoothInputStream.java | 37 * Return number of bytes available before this stream will block. 39 public int available() throws IOException { method in class:BluetoothInputStream 40 return mSocket.available();
|
/packages/apps/Camera/src/com/android/camera/ |
Switcher.java | 88 final int available = getHeight() - getPaddingTop() - getPaddingBottom() local 104 tryToSetSwitch(mPosition >= available / 2); 125 final int available = height - getPaddingTop() - getPaddingBottom() local 130 if (mPosition > available) mPosition = available; 145 final int available = getHeight() - getPaddingTop() local 153 if (mPosition > available) mPosition = available; 154 boolean done = (mPosition == (mSwitch ? available : 0)); 161 mPosition = mSwitch ? available : 0 [all...] |
/libcore/luni/src/main/java/javax/crypto/ |
CipherInputStream.java | 169 * {@link CipherInputStream#available() available}. The smaller of n and the 181 int available = available(); local 182 if (available < n) { 183 n = available; 192 public int available() throws IOException { method in class:CipherInputStream
|
/libcore/luni/src/main/java/org/apache/xml/utils/ |
FastStringBuffer.java | 36 * exceeds the space available; we just allocate another chunk and 316 * greater than the amount of storage currently available... and even 489 int available = m_chunkSize - m_firstFree; local 496 if (available > strlen) 497 available = strlen; 499 value.getChars(copyfrom, copyfrom + available, m_array[m_lastChunk], 502 strlen -= available; 503 copyfrom += available; 541 available = m_chunkSize; 547 m_firstFree += available; 571 int available = m_chunkSize - m_firstFree; local 654 int available = m_chunkSize - m_firstFree; local 741 int available = m_chunkSize - m_firstFree; local 829 int available = m_chunkSize - sourcecolumn; local [all...] |
/libcore/luni/src/main/java/java/util/concurrent/ |
Semaphore.java | 16 * available, and then takes it. Each {@link #release} adds a permit, 19 * keeps a count of the number available and acts accordingly. 27 * private final Semaphore available = new Semaphore(MAX_AVAILABLE, true); 30 * available.acquire(); 36 * available.release(); 71 * the semaphore, guaranteeing that an item is available for use. When 82 * only has at most one permit available, can serve as a mutual 85 * available, or zero permits available. When used in this way, the 109 * available 156 int available = getState(); local 219 int available = getState(); local [all...] |
/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/ |
UnknownLengthHttpInputStream.java | 50 @Override public int available() throws IOException { method in class:UnknownLengthHttpInputStream 52 return in == null ? 0 : in.available();
|
/packages/apps/Email/src/org/apache/commons/io/input/ |
ProxyInputStream.java | 89 * Invokes the delegate's <code>available()</code> method.
90 * @return the number of available bytes
93 public int available() throws IOException {
method in class:ProxyInputStream 94 return in.available();
|
/packages/apps/Email/src/org/apache/james/mime4j/util/ |
PartialInputStream.java | 35 public int available() throws IOException {
method in class:PartialInputStream 36 return Math.min(super.available(), getBytesLeft());
|
/external/chromium/third_party/icu/source/io/ |
sprintf.c | 35 /* u_minstrncpy copies the minimum number of code units of (count or output->available) */ 42 int32_t size = ufmt_min(count, output->available); 44 u_strncpy(output->str + (output->len - output->available), str, size); 45 output->available -= size; 59 resultLen = ufmt_min(resultLen, output->available); 64 int32_t outputPos = output->len - output->available; 66 if (paddingLeft + resultLen > output->available) { 67 paddingLeft = output->available - resultLen; 71 /* paddingLeft = output->available - resultLen;*/ 79 output->available -= paddingLeft [all...] |
/external/icu4c/io/ |
sprintf.c | 35 /* u_minstrncpy copies the minimum number of code units of (count or output->available) */ 42 int32_t size = ufmt_min(count, output->available); 44 u_strncpy(output->str + (output->len - output->available), str, size); 45 output->available -= size; 59 resultLen = ufmt_min(resultLen, output->available); 64 int32_t outputPos = output->len - output->available; 66 if (paddingLeft + resultLen > output->available) { 67 paddingLeft = output->available - resultLen; 71 /* paddingLeft = output->available - resultLen;*/ 79 output->available -= paddingLeft [all...] |
/external/svox/pico/src/com/svox/pico/ |
EngineSettings.java | 51 ArrayList<String> available = data.getStringArrayListExtra(TextToSpeech.Engine.EXTRA_AVAILABLE_VOICES); local 56 for (int i = 0; i < available.size(); i++){ 57 Log.e("debug", available.get(i)); 58 String[] languageCountry = available.get(i).split("-"); 60 Preference pref = findPreference(available.get(i));
|
/libcore/luni/src/main/java/java/util/zip/ |
DeflaterInputStream.java | 37 private boolean available = true; field in class:DeflaterInputStream 136 if (!available) { 160 available = false; 198 * {@link InputStream#available()}, and violates the <a 202 * @return 0 if no further bytes are available. Otherwise returns 1, 204 * available. 208 public int available() throws IOException { method in class:DeflaterInputStream 210 return available ? 1 : 0;
|
/external/webkit/WebCore/rendering/ |
AutoTableLayout.cpp | 504 int available = tableWidth; local 530 available -= w; 562 if (available > 0 && havePercent) { 567 available += m_layoutStruct[i].calcWidth - w; 581 available += w - newWidth; 589 if (available > 0) { 593 available += m_layoutStruct[i].calcWidth - width.value(); 600 if (available > 0) { 606 available += m_layoutStruct[i].calcWidth - w; 613 if (available > 0 && numAuto) [all...] |