Home
last modified time | relevance | path

Searched refs:bytesRead (Results 1 – 25 of 52) sorted by relevance

123

/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DProgress.java41 @Override public void update(long bytesRead, long contentLength, boolean done) { in run()
42 System.out.println(bytesRead); in run()
45 System.out.format("%d%% done\n", (100 * bytesRead) / contentLength); in run()
98 long bytesRead = super.read(sink, byteCount); in source() local
100 totalBytesRead += bytesRead != -1 ? bytesRead : 0; in source()
101 progressListener.update(totalBytesRead, responseBody.contentLength(), bytesRead == -1); in source()
102 return bytesRead; in source()
109 void update(long bytesRead, long contentLength, boolean done); in update() argument
/external/smali/util/src/main/java/org/jf/util/
DRandomAccessFileInputStream.java56 int bytesRead = raf.read(bytes); in read() local
57 filePosition += bytesRead; in read()
58 return bytesRead; in read()
63 int bytesRead = raf.read(bytes, offset, length); in read() local
64 filePosition += bytesRead; in read()
65 return bytesRead; in read()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/
DSocketTransportWrapper.java229 int bytesRead = input.read(header, off, Packet.HEADER_SIZE - off); in readPacket() local
230 if (bytesRead < 0) { in readPacket()
233 off += bytesRead; in readPacket()
259 int bytesRead = input.read(bytes, off, len - off); in readPacket() local
260 if (bytesRead < 0) { in readPacket()
263 off += bytesRead; in readPacket()
298 int bytesRead = input.read(bytes, off, len - off); in handshake() local
299 if (bytesRead < 0) { in handshake()
302 off += bytesRead; in handshake()
/external/jmonkeyengine/engine/src/jogg/com/jme3/audio/plugins/
DOGGLoader.java91 int bytesRead = 0, cnt = 0; in read() local
94 while (bytesRead <length) { in read()
95 if ((cnt = vs.readPcm(buf, offset + bytesRead,length - bytesRead)) <= 0) { in read()
98 System.out.println("bytesRead "+bytesRead); in read()
100 for (int i = 0; i < bytesRead; i++) { in read()
110 bytesRead += cnt; in read()
113 swapBytes(buf, offset, bytesRead); in read()
114 return bytesRead; in read()
/external/skia/experimental/FileReaderApp/
DReaderView.cpp54 size_t bytesRead; in draw() local
55 SkGPipeReader::Status fStatus = reader.playback(block, toBeRead, &bytesRead); in draw()
57 SkASSERT(toBeRead >= bytesRead); in draw()
63 fFilePos += bytesRead; in draw()
/external/google-tv-pairing-protocol/java/src/com/google/polo/wire/xml/
DXmlMessageWrapper.java250 int bytesRead = 0; in readBytes() local
252 while (bytesRead < numBytes) { in readBytes()
253 int inc = stream.read(buffer, bytesRead, numBytes - bytesRead); in readBytes()
257 bytesRead += inc; in readBytes()
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/src_rss/org/eclipse/releng/util/rss/
DRSSFeedUtil.java127 int bytesRead = 0; in transferData() local
128 while (bytesRead != -1) in transferData()
130 bytesRead = source.read(buffer, 0, buffer.length); in transferData()
131 if (bytesRead != -1) in transferData()
133 destination.write(buffer, 0, bytesRead); in transferData()
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/file/
DBlenderInputStream.java173 int bytesRead = this.readBytes(identifier); in readFileHeader() local
174 if (bytesRead != 7) { in readFileHeader()
175 …throw new BlenderFileException("Error reading header identifier. Only " + bytesRead + " bytes read… in readFileHeader()
194 bytesRead = this.readBytes(versionNumber); in readFileHeader()
195 if (bytesRead != 3) { in readFileHeader()
196 …throw new BlenderFileException("Error reading version numberr. Only " + bytesRead + " bytes read a… in readFileHeader()
/external/conscrypt/src/main/java/org/conscrypt/
DOpenSSLRandom.java77 int bytesRead = NativeCrypto.RAND_load_file("/dev/urandom", seedLengthInBytes); in seedOpenSSLPRNGFromLinuxRNG() local
78 if (bytesRead != seedLengthInBytes) { in seedOpenSSLPRNGFromLinuxRNG()
80 + " Expected: " + seedLengthInBytes + ", actual: " + bytesRead); in seedOpenSSLPRNGFromLinuxRNG()
/external/skia/src/codec/
DSkCodec_libico.cpp112 uint32_t bytesRead = kIcoDirectoryBytes + numImages * kIcoDirEntryBytes; in NewFromStream() local
120 if (offset < bytesRead) { in NewFromStream()
127 if (inputStream.get()->skip(offset - bytesRead) != offset - bytesRead) { in NewFromStream()
131 bytesRead = offset; in NewFromStream()
142 bytesRead += size; in NewFromStream()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/compression/
DDecompressionTest.java38 int [] bytesRead = new int[1]; in decompressTest() local
43 bytesRead, in decompressTest()
48 logln("Bytes consumed: " + bytesRead[0]); in decompressTest()
55 bytesRead, in decompressTest()
61 logln("Bytes consumed: " + bytesRead[0]); in decompressTest()
DExhaustiveTest.java57 int[] bytesRead = new int[1]; in myTest() local
63 bytesRead, myDecompressed, 0, myDecompressedSize); in myTest()
106 int[] bytesRead = new int[1]; in myMultipassTest() local
152 bytesRead, unicharBuffer, 0, unicharBufferSize); in myMultipassTest()
159 totalBytesDecompressed += bytesRead[0]; in myMultipassTest()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCharsetMatch.java94 int bytesRead = 0; in getString()
96 while ((bytesRead = reader.read(buffer, 0, Math.min(max, 1024))) >= 0) { in getString()
97 sb.append(buffer, 0, bytesRead); in getString()
98 max -= bytesRead; in getString()
/external/skia/experimental/DrawingBoard/
DSampleDrawingServer.cpp140 size_t bytesRead; in onDrawContent() local
153 &bytesRead); in onDrawContent()
155 fTotalBytesRead += bytesRead; in onDrawContent()
168 &bytesRead); in onDrawContent()
170 totalBytesRead += bytesRead; in onDrawContent()
DSampleDrawingClient.cpp180 size_t bytesRead = 0; in onDrawContent() local
192 &bytesRead); in onDrawContent()
194 fTotalBytesRead += bytesRead; in onDrawContent()
206 &bytesRead); in onDrawContent()
208 totalBytesRead += bytesRead; in onDrawContent()
/external/okhttp/okio/okio/src/main/java/okio/
DOkio.java135 int bytesRead = in.read(tail.data, tail.limit, maxToCopy);
136 if (bytesRead == -1) return -1;
137 tail.limit += bytesRead;
138 sink.size += bytesRead;
139 return bytesRead;
/external/skia/src/core/
DSkRWBuffer.cpp277 size_t bytesRead = 0; in read() local
281 size_t avail = SkTMin(size - fLocalOffset, request - bytesRead); in read()
286 bytesRead += avail; in read()
288 SkASSERT(bytesRead <= request); in read()
289 if (bytesRead == request) { in read()
299 fGlobalOffset += bytesRead; in read()
301 return bytesRead; in read()
DSkStream.cpp378 SkDEBUGCODE(const size_t bytesRead =) nonConstThis->read(buffer, size); in peek()
379 SkASSERT(bytesRead == size); in peek()
876 size_t bytesRead = stream->read(buffer, bufferSize); in SkCopyStreamToStorage() local
877 tempStream.write(buffer, bytesRead); in SkCopyStreamToStorage()
878 SkDEBUGCODE(debugLength += bytesRead); in SkCopyStreamToStorage()
899 size_t bytesRead = stream->read(buffer, bufferSize); in SkCopyStreamToData() local
900 tempStream.write(buffer, bytesRead); in SkCopyStreamToData()
926 size_t bytesRead = stream->read(buffer, bufferSize); in SkStreamRewindableFromSkStream() local
927 tempStream.write(buffer, bytesRead); in SkStreamRewindableFromSkStream()
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherTest.java280 int bytesRead = is.read(input, 0, 256); in test_update$BII() local
281 while (bytesRead > 0) { in test_update$BII()
282 byte[] output = c.update(input, 0, bytesRead); in test_update$BII()
286 bytesRead = is.read(input, 0, 256); in test_update$BII()
329 int bytesRead = is.read(input, 0, 256); in test_doFinal() local
330 while (bytesRead > 0) { in test_doFinal()
331 byte[] output = c.update(input, 0, bytesRead); in test_doFinal()
335 bytesRead = is.read(input, 0, 256); in test_doFinal()
/external/skia/tests/
DFrontBufferedStreamTest.cpp21 const size_t bytesRead = bufferedStream->read(storage.get(), bytesToRead); in test_read() local
22 REPORTER_ASSERT(reporter, bytesRead == bytesToRead || bufferedStream->isAtEnd()); in test_read()
23 REPORTER_ASSERT(reporter, memcmp(storage.get(), expectations, bytesRead) == 0); in test_read()
135 size_t bytesRead = this->INHERITED::read(dst, requested); in read() local
136 if (bytesRead < requested) { in read()
139 return bytesRead; in read()
/external/protobuf/java/src/main/java/com/google/protobuf/
DByteString.java366 int bytesRead = 0; in readChunk() local
367 while (bytesRead < chunkSize) { in readChunk()
368 final int count = in.read(buf, bytesRead, chunkSize - bytesRead); in readChunk()
372 bytesRead += count; in readChunk()
375 if (bytesRead == 0) { in readChunk()
378 return ByteString.copyFrom(buf, 0, bytesRead); in readChunk()
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DANTLRReaderStream.m116 NSNumber *bytesRead = [NSNumber numberWithInteger:0];
128 // bytesRead is an instance variable of type NSNumber.
129 bytesRead = [NSNumber numberWithInteger:[bytesRead intValue]+len];
/external/skia/third_party/ktx/
Dktx.cpp73 size_t bytesRead = 0; in readKeyAndValue() local
74 while (*value != '\0' && bytesRead < this->fDataSz) { in readKeyAndValue()
75 ++bytesRead; in readKeyAndValue()
80 if (bytesRead >= this->fDataSz) { in readKeyAndValue()
85 ++bytesRead; in readKeyAndValue()
88 size_t bytesLeft = this->fDataSz - bytesRead; in readKeyAndValue()
91 this->fKey.set(key, bytesRead - 1); in readKeyAndValue()
/external/deqp/framework/delibs/deimage/
DdeTarga.c39 int bytesRead; in deImage_loadTarga() local
51 bytesRead = (int)fread(&tgaHeader, 1, 18, file); in deImage_loadTarga()
52 DE_TEST_ASSERT(bytesRead == 18); in deImage_loadTarga()
/external/skia/src/images/
DSkImageDecoder_libwebp.cpp60 const size_t bytesRead = stream->read(dst, bytesToRead); in webp_parse_header() local
61 if (0 == bytesRead) { in webp_parse_header()
65 bytesToRead -= bytesRead; in webp_parse_header()
66 totalBytesRead += bytesRead; in webp_parse_header()
222 const size_t bytesRead = stream->read(input, readBufferSize); in webp_idecode() local
223 if (0 == bytesRead) { in webp_idecode()
228 status = WebPIAppend(idec, input, bytesRead); in webp_idecode()

123