Home
last modified time | relevance | path

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

1234

/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/brotli/java/org/brotli/dec/
DBitReader.java76 int bytesRead = BYTE_READ_SIZE - readOffset; in readMoreInput() local
77 System.arraycopy(br.byteBuffer, readOffset, br.byteBuffer, 0, bytesRead); in readMoreInput()
80 while (bytesRead < BYTE_READ_SIZE) { in readMoreInput()
81 int len = br.input.read(br.byteBuffer, bytesRead, BYTE_READ_SIZE - bytesRead); in readMoreInput()
84 br.tailBytes = bytesRead; in readMoreInput()
85 bytesRead += 3; in readMoreInput()
88 bytesRead += len; in readMoreInput()
93 IntReader.convert(br.intReader, bytesRead >> 2); in readMoreInput()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/
DSocketTransportWrapper.java243 int bytesRead = input.read(header, off, Packet.HEADER_SIZE - off); in readPacket() local
244 if (bytesRead < 0) { in readPacket()
247 off += bytesRead; in readPacket()
273 int bytesRead = input.read(bytes, off, len - off); in readPacket() local
274 if (bytesRead < 0) { in readPacket()
277 off += bytesRead; in readPacket()
313 int bytesRead = input.read(bytes, off, len - off); in handshake() local
314 if (bytesRead < 0) { in handshake()
317 off += bytesRead; in handshake()
/external/webrtc/webrtc/modules/media_file/
Dmedia_file_utility.cc442 int32_t bytesRead = ReadWavData( in ReadWavDataAsMono() local
446 if(bytesRead == 0) in ReadWavDataAsMono()
450 if(bytesRead < 0) in ReadWavDataAsMono()
533 int32_t bytesRead = ReadWavData(wav, _tempData, totalBytesNeeded); in ReadWavDataAsStereo() local
534 if(bytesRead <= 0) in ReadWavDataAsStereo()
609 int32_t bytesRead = wav.Read(buffer, dataLengthInBytes); in ReadWavData() local
610 if(bytesRead < 0) in ReadWavData()
619 if(bytesRead < (int32_t)dataLengthInBytes) in ReadWavData()
629 bytesRead = wav.Read(buffer, dataLengthInBytes); in ReadWavData()
630 if(bytesRead < (int32_t)dataLengthInBytes) in ReadWavData()
[all …]
Dmedia_file_impl.cc122 int32_t bytesRead = 0; in PlayoutAudioData() local
146 bytesRead = _ptrFileUtilityObj->ReadPCMData( in PlayoutAudioData()
152 bytesRead = _ptrFileUtilityObj->ReadCompressedData( in PlayoutAudioData()
158 bytesRead = _ptrFileUtilityObj->ReadWavDataAsMono( in PlayoutAudioData()
164 bytesRead = _ptrFileUtilityObj->ReadPreEncodedData( in PlayoutAudioData()
168 if(bytesRead > 0) in PlayoutAudioData()
170 dataLengthInBytes = static_cast<size_t>(bytesRead); in PlayoutAudioData()
183 if( bytesRead > 0) in PlayoutAudioData()
185 dataLengthInBytes = static_cast<size_t>(bytesRead); in PlayoutAudioData()
188 HandlePlayCallbacks(bytesRead); in PlayoutAudioData()
[all …]
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/charsetdet/
DDetectingViewer.java224 int bytesRead = in.read(buffer, bufLen, bytesRemaining); in filter() local
226 if (bytesRead <= 0) { in filter()
230 bufLen += bytesRead; in filter()
231 bytesRemaining -= bytesRead; in filter()
295 int bytesRead = 0; in show() local
314 while ((bytesRead = inputStream.read(bytes, offset, 1024)) >= 0) { in show()
315 offset = bytesRead % 4; in show()
316 chBytes = bytesRead - offset; in show()
329 while ((bytesRead = isr.read(buffer, 0, 1024)) >= 0) { in show()
330 sb.append(buffer, 0, bytesRead); in show()
/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/conscrypt/benchmark-base/src/main/java/org/conscrypt/
DServerEndpoint.java149 int bytesRead = readMessage(); in run() local
151 messageProcessor.processMessage(buffer, bytesRead, outputStream); in run()
163 int bytesRead = inputStream.read(buffer, totalBytesRead, remaining); in readMessage() local
164 if (bytesRead == -1) { in readMessage()
167 totalBytesRead += bytesRead; in readMessage()
DClientEndpoint.java67 int bytesRead = input.read(buffer, totalBytesRead, remaining); in readMessage() local
68 if (bytesRead == -1) { in readMessage()
71 totalBytesRead += bytesRead; in readMessage()
/external/skia/src/codec/
DSkIcoCodec.cpp21 bool SkIcoCodec::IsIco(const void* buffer, size_t bytesRead) { in IsIco() argument
24 return bytesRead >= sizeof(icoSig) && in IsIco()
115 uint32_t bytesRead = kIcoDirectoryBytes + numImages * kIcoDirEntryBytes; in NewFromStream() local
123 if (offset < bytesRead) { in NewFromStream()
130 if (inputStream.get()->skip(offset - bytesRead) != offset - bytesRead) { in NewFromStream()
134 bytesRead = offset; in NewFromStream()
151 bytesRead += size; in NewFromStream()
DSkBmpCodec.cpp59 bool SkBmpCodec::IsBmp(const void* buffer, size_t bytesRead) { in IsBmp() argument
62 return bytesRead >= sizeof(bmpSig) && !memcmp(buffer, bmpSig, sizeof(bmpSig)); in IsBmp()
411 const uint32_t bytesRead = kBmpHeaderBytes + infoBytes + maskBytes; in ReadHeader() local
412 if (!inIco && offset < bytesRead) { in ReadHeader()
480 numColors, bytesPerColor, offset - bytesRead, in ReadHeader()
508 if (stream->skip(offset - bytesRead) != offset - bytesRead) { in ReadHeader()
567 numColors, bytesPerColor, offset - bytesRead, in ReadHeader()
/external/protobuf/csharp/src/Google.Protobuf/
DLimitedInputStream.cs88 int bytesRead = proxied.Read(buffer, offset, Math.Min(bytesLeft, count)); in Read()
89 bytesLeft -= bytesRead; in Read()
90 return bytesRead; in Read()
/external/webrtc/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/
DWebRtcAudioRecord.java79 int bytesRead = audioRecord.read(byteBuffer, byteBuffer.capacity()); in run() local
80 if (bytesRead == byteBuffer.capacity()) { in run()
81 nativeDataIsRecorded(bytesRead, nativeAudioRecord); in run()
83 Logging.e(TAG,"AudioRecord.read failed: " + bytesRead); in run()
84 if (bytesRead == AudioRecord.ERROR_INVALID_OPERATION) { in run()
93 Logging.d(TAG, "bytesRead[" + durationInMs + "] " + bytesRead); in run()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/compression/
DDecompressionTest.java39 int [] bytesRead = new int[1]; in decompressTest() local
44 bytesRead, in decompressTest()
49 logln("Bytes consumed: " + bytesRead[0]); in decompressTest()
56 bytesRead, in decompressTest()
62 logln("Bytes consumed: " + bytesRead[0]); in decompressTest()
/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()
/external/conscrypt/common/src/main/java/org/conscrypt/
DConscryptEngine.java805 int bytesRead = readPlaintextData(dst); in unwrap() local
806 if (bytesRead > 0) { in unwrap()
807 bytesProduced += bytesRead; in unwrap()
814 switch (bytesRead) { in unwrap()
1036 int bytesRead = readPlaintextDataDirect(dst, pos, len); in readPlaintextData() local
1037 if (bytesRead > 0) { in readPlaintextData()
1038 dst.position(pos + bytesRead); in readPlaintextData()
1040 return bytesRead; in readPlaintextData()
1072 int bytesRead = readPlaintextDataDirect(buffer, 0, bytesToRead); in readPlaintextDataHeap() local
1073 if (bytesRead > 0) { in readPlaintextDataHeap()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCharsetMatch.java91 int bytesRead = 0; in getString()
93 while ((bytesRead = reader.read(buffer, 0, Math.min(max, 1024))) >= 0) { in getString()
94 sb.append(buffer, 0, bytesRead); in getString()
95 max -= bytesRead; in getString()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCharsetMatch.java96 int bytesRead = 0; in getString()
98 while ((bytesRead = reader.read(buffer, 0, Math.min(max, 1024))) >= 0) { in getString()
99 sb.append(buffer, 0, bytesRead); in getString()
100 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()
/external/skia/src/core/
DSkRWBuffer.cpp287 size_t bytesRead = 0; in read() local
291 size_t avail = SkTMin(size - fLocalOffset, request - bytesRead); in read()
296 bytesRead += avail; in read()
298 SkASSERT(bytesRead <= request); in read()
299 if (bytesRead == request) { in read()
309 fGlobalOffset += bytesRead; in read()
311 return bytesRead; in read()
/external/jacoco/org.jacoco.agent/src/org/jacoco/agent/
DAgentJar.java100 int bytesRead; in extractTo() local
101 while ((bytesRead = inputJarStream.read(buffer)) != -1) { in extractTo()
102 outputJarStream.write(buffer, 0, bytesRead); in extractTo()
/external/okhttp/okio/okio/src/main/java/okio/
DOkio.java136 int bytesRead = in.read(tail.data, tail.limit, maxToCopy);
137 if (bytesRead == -1) return -1;
138 tail.limit += bytesRead;
139 sink.size += bytesRead;
140 return bytesRead;
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/
DRelay.java113 int bytesRead = 0; in run() local
124 bytesRead = transport.read(byteArray, offset, bytesToRead); in run()
126 if (bytesRead > 0) { in run()
127 byteBuffer.limit(byteBuffer.limit() + bytesRead); in run()

1234