/libcore/ojluni/src/main/java/sun/misc/ |
IOUtils.java | 56 int bytesToRead; 58 bytesToRead = Math.min(length - pos, output.length + 1024); 59 if (output.length < pos + bytesToRead) { 60 output = Arrays.copyOf(output, pos + bytesToRead); 63 bytesToRead = output.length - pos; 65 int cc = is.read(output, pos, bytesToRead);
|
Resource.java | 113 int bytesToRead; 115 bytesToRead = Math.min(len - pos, b.length + 1024); 116 if (b.length < pos + bytesToRead) { 117 b = Arrays.copyOf(b, pos + bytesToRead); 120 bytesToRead = b.length - pos; 124 cc = in.read(b, pos, bytesToRead);
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
DigestInputStream2Test.java | 111 int bytesToRead = inStream.available(); 112 byte buf1[] = new byte[bytesToRead + 5]; 113 byte buf2[] = new byte[bytesToRead + 5]; 115 assertTrue("No data to read for this test", bytesToRead > 0); 118 int bytesRead1 = dis.read(buf1, 5, bytesToRead); 119 int bytesRead2 = inStream1.read(buf2, 5, bytesToRead); 122 assertEquals("Didn't read the entire", bytesRead1, bytesToRead); 125 for (int i = 0; i < bytesToRead + 5; i++) {
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
DigestInputStream2Test.java | 111 int bytesToRead = inStream.available(); 112 byte buf1[] = new byte[bytesToRead + 5]; 113 byte buf2[] = new byte[bytesToRead + 5]; 115 assertTrue("No data to read for this test", bytesToRead>0); 118 int bytesRead1 = dis.read(buf1, 5, bytesToRead); 119 int bytesRead2 = inStream1.read(buf2, 5, bytesToRead); 122 assertEquals("Didn't read the entire", bytesRead1, bytesToRead); 125 for (int i = 0; i < bytesToRead + 5; i++) {
|
/external/c-ares/ |
ares__read_line.c | 49 int bytestoread = aresx_uztosi(*bufsize - offset); local 51 if (!fgets(*buf + offset, bytestoread, fp))
|
/external/skia/src/codec/ |
SkCodec.cpp | 58 const size_t bytesToRead = 14; 59 SkASSERT(bytesToRead <= MinBufferedBytesNeeded()); 61 char buffer[bytesToRead]; 62 size_t bytesRead = stream->peek(buffer, bytesToRead); 64 // It is also possible to have a complete image less than bytesToRead bytes 65 // (e.g. a 1 x 1 wbmp), meaning peek() would return less than bytesToRead. 66 // Assume that if bytesRead < bytesToRead, but > 0, the stream is shorter 67 // than bytesToRead, so pass that directly to the decoder. 79 bytesRead = stream->read(buffer, bytesToRead);
|
SkRawCodec.cpp | 376 const size_t bytesToRead = SkTMin(sum, fStream->getLength()) - offset; 377 if (bytesToRead == 0) { 383 static_cast<const uint8_t*>(fStream->getMemoryBase()) + offset, bytesToRead)); 387 SkAutoTUnref<SkData> data(SkData::NewUninitialized(bytesToRead)); 391 const size_t bytesRead = fStream->read(data->writable_data(), bytesToRead); 392 if (bytesRead < bytesToRead) {
|
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/ |
Relay.java | 116 int bytesToRead; 123 bytesToRead = byteBuffer.capacity() - byteBuffer.limit(); 125 bytesRead = transport.read(byteArray, offset, bytesToRead);
|
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
filehc.h | 48 FILEHC_EXPORT WINBOOL WINAPI FIOReadFile(PFIO_CONTEXT pContext,LPVOID lpBuffer,DWORD BytesToRead,FH_OVERLAPPED *lpo); 49 FILEHC_EXPORT WINBOOL WINAPI FIOReadFileEx(PFIO_CONTEXT pContext,LPVOID lpBuffer,DWORD BytesToRead,DWORD BytesAvailable,FH_OVERLAPPED *lpo,WINBOOL fFinalWrite,WINBOOL fIncludeTerminator);
|
/external/skia/tests/ |
FrontBufferedStreamTest.cpp | 17 const void* expectations, size_t bytesToRead) { 19 SkAutoMalloc storage(bytesToRead); 21 const size_t bytesRead = bufferedStream->read(storage.get(), bytesToRead); 22 REPORTER_ASSERT(reporter, bytesRead == bytesToRead || bufferedStream->isAtEnd());
|
/frameworks/av/media/libstagefright/codecs/mp3dec/test/ |
mp3reader.cpp | 247 ssize_t bytesToRead = kMaxReadBytes; 264 bytesToRead = kMaxReadBytes - remainingBytes; 272 buf + remainingBytes, bytesToRead); 277 reachEOS = (totalBytesRead != bytesToRead);
|
/external/libnfc-nxp/src/ |
phFriNfc_DesfireMap.c | [all...] |
/external/skia/src/images/ |
SkImageDecoder_libwebp.cpp | 56 size_t bytesToRead = WEBP_VP8_HEADER_SIZE; 60 const size_t bytesRead = stream->read(dst, bytesToRead); 65 bytesToRead -= bytesRead; 67 SkASSERT(bytesToRead + totalBytesRead == WEBP_VP8_HEADER_SIZE); 68 } while (!stream->isAtEnd() && bytesToRead > 0);
|
/frameworks/base/core/java/android/bluetooth/ |
BluetoothSocket.java | 494 int bytesToRead = length; 506 if (bytesToRead > mL2capBuffer.remaining()) { 507 bytesToRead = mL2capBuffer.remaining(); 510 + " bytesToRead: " + bytesToRead); 511 mL2capBuffer.get(b, offset, bytesToRead); 512 ret = bytesToRead;
|
/frameworks/av/media/libstagefright/ |
MP3Extractor.cpp | 99 ssize_t bytesToRead = kMaxReadBytes; 117 bytesToRead = kMaxReadBytes - remainingBytes; 126 bytesToRead); 130 reachEOS = (totalBytesRead != bytesToRead);
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
Channels.java | 229 int bytesToRead = Math.min((len - totalRead), 231 if (buf.length < bytesToRead) 232 buf = new byte[bytesToRead]; 237 bytesRead = in.read(buf, 0, bytesToRead);
|
/external/curl/tests/server/ |
getpart.c | 101 int bytestoread = curlx_uztosi(*bufsize - offset); local 103 if(!fgets(*buffer + offset, bytestoread, stream))
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/ |
StubProvider.java | 424 int bytesToRead; 429 bytesToRead = (int) Math.min(document.rootInfo.getRemainingCapacity(), 431 if (bytesToRead == 0) { 435 bytesRead = inputStream.read(buffer, 0, bytesToRead); [all...] |
/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/ |
inputstream.py | 115 bytesToRead = remainingBytes 116 self.position = [bufferIndex, bufferOffset + bytesToRead] 118 bytesToRead = len(bufferedData) - bufferOffset 121 rv.append(bufferedData[bufferOffset:bufferOffset + bytesToRead]) 122 remainingBytes -= bytesToRead
|
/external/curl/lib/ |
file.c | 554 size_t bytestoread = local 558 nread = read(fd, buf, bytestoread);
|
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/test/ |
venc_test.cpp | 1452 OMX_U32 bytestoread = m_sProfile.nFrameWidth*m_sProfile.nFrameHeight; local [all...] |
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/test/ |
venc_test.cpp | 1481 OMX_U32 bytestoread = m_sProfile.nFrameWidth*m_sProfile.nFrameHeight; local [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/ |
SapMessage.java | 420 int bytesToRead = buffer.length; 423 while (bytesRead < bytesToRead) { 424 tmpBytesRead = is.read(buffer, bytesRead, bytesToRead-bytesRead); [all...] |
/external/chromium-trace/catapult/telemetry/third_party/pyserial/serial/ |
serialcli.py | 150 return self._port_handle.BytesToRead
|
/art/tools/dmtracedump/ |
tracedump.cc | 945 int32_t bytesToRead = pHeader->offsetToData - 16; 952 bytesToRead -= 2; 958 if (fseek(fp, bytesToRead, SEEK_CUR) != 0) { 998 int32_t bytesToRead = dataHeader->recordSize; 1001 bytesToRead -= 1; 1004 bytesToRead -= 2; 1011 bytesToRead -= 8; 1013 while (bytesToRead-- > 0) { [all...] |