Searched refs:bytesToRead (Results 1 – 11 of 11) sorted by relevance
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
D | DigestInputStream2Test.java | 111 int bytesToRead = inStream.available(); in test_read$BII() local 112 byte buf1[] = new byte[bytesToRead + 5]; in test_read$BII() 113 byte buf2[] = new byte[bytesToRead + 5]; in test_read$BII() 115 assertTrue("No data to read for this test", bytesToRead > 0); in test_read$BII() 118 int bytesRead1 = dis.read(buf1, 5, bytesToRead); in test_read$BII() 119 int bytesRead2 = inStream1.read(buf2, 5, bytesToRead); in test_read$BII() 122 assertEquals("Didn't read the entire", bytesRead1, bytesToRead); in test_read$BII() 125 for (int i = 0; i < bytesToRead + 5; i++) { in test_read$BII()
|
/external/skia/src/codec/ |
D | SkCodec.cpp | 58 const size_t bytesToRead = 14; in NewFromStream() local 59 SkASSERT(bytesToRead <= MinBufferedBytesNeeded()); in NewFromStream() 61 char buffer[bytesToRead]; in NewFromStream() 62 size_t bytesRead = stream->peek(buffer, bytesToRead); in NewFromStream() 79 bytesRead = stream->read(buffer, bytesToRead); in NewFromStream()
|
D | SkRawCodec.cpp | 376 const size_t bytesToRead = SkTMin(sum, fStream->getLength()) - offset; in transferBuffer() local 377 if (bytesToRead == 0) { in transferBuffer() 383 static_cast<const uint8_t*>(fStream->getMemoryBase()) + offset, bytesToRead)); in transferBuffer() 387 SkAutoTUnref<SkData> data(SkData::NewUninitialized(bytesToRead)); in transferBuffer() 391 const size_t bytesRead = fStream->read(data->writable_data(), bytesToRead); in transferBuffer() 392 if (bytesRead < bytesToRead) { in transferBuffer()
|
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/ |
D | Relay.java | 116 int bytesToRead; in run() local 123 bytesToRead = byteBuffer.capacity() - byteBuffer.limit(); in run() 125 bytesRead = transport.read(byteArray, offset, bytesToRead); in run()
|
/external/skia/tests/ |
D | FrontBufferedStreamTest.cpp | 17 const void* expectations, size_t bytesToRead) { in test_read() argument 19 SkAutoMalloc storage(bytesToRead); in test_read() 21 const size_t bytesRead = bufferedStream->read(storage.get(), bytesToRead); in test_read() 22 REPORTER_ASSERT(reporter, bytesRead == bytesToRead || bufferedStream->isAtEnd()); in test_read()
|
/external/skia/src/images/ |
D | SkImageDecoder_libwebp.cpp | 56 size_t bytesToRead = WEBP_VP8_HEADER_SIZE; in webp_parse_header() local 60 const size_t bytesRead = stream->read(dst, bytesToRead); in webp_parse_header() 65 bytesToRead -= bytesRead; in webp_parse_header() 67 SkASSERT(bytesToRead + totalBytesRead == WEBP_VP8_HEADER_SIZE); in webp_parse_header() 68 } while (!stream->isAtEnd() && bytesToRead > 0); in webp_parse_header()
|
/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/ |
D | 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/nanohttpd/core/src/main/java/fi/iki/elonen/ |
D | NanoHTTPD.java | 1476 long bytesToRead = sendEverything ? BUFFER_SIZE : Math.min(pending, BUFFER_SIZE); 1477 int read = this.data.read(buff, 0, (int) bytesToRead);
|
/external/v8/test/mjsunit/asm/embenchen/ |
D | lua_binarytrees.js | 4563 var bytesToRead = nitems * size; 4564 if (bytesToRead == 0) { 4573 while (streamObj.ungotten.length && bytesToRead > 0) { 4575 bytesToRead--; 4578 var err = _read(streamObj.fd, ptr, bytesToRead); 4584 if (bytesRead < bytesToRead) streamObj.eof = true;
|
/external/v8/test/mjsunit/asm/poppler/ |
D | poppler.js | 5571 var bytesToRead = nitems * size; 5572 if (bytesToRead == 0) { 5581 while (streamObj.ungotten.length && bytesToRead > 0) { 5583 bytesToRead--; 5586 var err = _read(stream, ptr, bytesToRead); 5592 if (bytesRead < bytesToRead) streamObj.eof = true;
|
/external/v8/tools/profviz/ |
D | gnuplot-4.6.3-emscripten.js | 2173 var bytesToRead = nitems * size; 2174 if (bytesToRead == 0) return 0; 2175 var bytesRead = _read(stream, ptr, bytesToRead); 2181 if (bytesRead < bytesToRead) streamObj.eof = true;
|