Home
last modified time | relevance | path

Searched refs:bytesRead (Results 1 – 25 of 95) 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/libgdx/gdx/src/com/badlogic/gdx/utils/
DStreamUtils.java48 int bytesRead; in copyStream() local
49 while ((bytesRead = input.read(buffer)) != -1) { in copyStream()
50 output.write(buffer, 0, bytesRead); in copyStream()
72 int startPosition = output.position(), total = 0, bytesRead; in copyStream() local
73 while ((bytesRead = input.read(buffer)) != -1) { in copyStream()
74 BufferUtils.copy(buffer, 0, output, bytesRead); in copyStream()
75 total += bytesRead; in copyStream()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/
DSocketTransportWrapper.java232 int bytesRead = input.read(header, off, Packet.HEADER_SIZE - off); in readPacket() local
233 if (bytesRead < 0) { in readPacket()
236 off += bytesRead; in readPacket()
262 int bytesRead = input.read(bytes, off, len - off); in readPacket() local
263 if (bytesRead < 0) { in readPacket()
266 off += bytesRead; in readPacket()
301 int bytesRead = input.read(bytes, off, len - off); in handshake() local
302 if (bytesRead < 0) { in handshake()
305 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/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.java222 int bytesRead = in.read(buffer, bufLen, bytesRemaining); in filter() local
224 if (bytesRead <= 0) { in filter()
228 bufLen += bytesRead; in filter()
229 bytesRemaining -= bytesRead; in filter()
293 int bytesRead = 0; in show() local
312 while ((bytesRead = inputStream.read(bytes, offset, 1024)) >= 0) { in show()
313 offset = bytesRead % 4; in show()
314 chBytes = bytesRead - offset; in show()
327 while ((bytesRead = isr.read(buffer, 0, 1024)) >= 0) { in show()
328 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/skia/src/codec/
DSkIcoCodec.cpp21 bool SkIcoCodec::IsIco(const void* buffer, size_t bytesRead) { in IsIco() argument
24 return bytesRead >= sizeof(icoSig) && in IsIco()
109 uint32_t bytesRead = kIcoDirectoryBytes + numImages * kIcoDirEntryBytes; in NewFromStream() local
117 if (offset < bytesRead) { in NewFromStream()
124 if (inputStream.get()->skip(offset - bytesRead) != offset - bytesRead) { in NewFromStream()
128 bytesRead = offset; in NewFromStream()
138 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()
476 const uint32_t bytesRead = kBmpHeaderBytes + infoBytes + maskBytes; in ReadHeader() local
477 if (!inIco && offset < bytesRead) { in ReadHeader()
489 if (stream->skip(offset - bytesRead) != offset - bytesRead) { in ReadHeader()
514 bytesPerColor, offset - bytesRead, rowOrder, isOpaque, inIco); in ReadHeader()
533 bytesPerColor, offset - bytesRead, rowOrder); in ReadHeader()
/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.java83 int bytesRead = NativeCrypto.RAND_load_file("/dev/urandom", seedLengthInBytes); in seedOpenSSLPRNGFromLinuxRNG() local
84 if (bytesRead != seedLengthInBytes) { in seedOpenSSLPRNGFromLinuxRNG()
86 + " Expected: " + seedLengthInBytes + ", actual: " + bytesRead); in seedOpenSSLPRNGFromLinuxRNG()
/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/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/icu/android_icu4j/src/main/tests/android/icu/dev/test/compression/
DDecompressionTest.java42 int [] bytesRead = new int[1]; in decompressTest() local
47 bytesRead, in decompressTest()
52 logln("Bytes consumed: " + bytesRead[0]); in decompressTest()
59 bytesRead, in decompressTest()
65 logln("Bytes consumed: " + bytesRead[0]); in decompressTest()
/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/icu/android_icu4j/src/main/java/android/icu/text/
DCharsetMatch.java89 int bytesRead = 0; in getString()
91 while ((bytesRead = reader.read(buffer, 0, Math.min(max, 1024))) >= 0) { in getString()
92 sb.append(buffer, 0, bytesRead); in getString()
93 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.cpp280 size_t bytesRead = 0; in read() local
284 size_t avail = SkTMin(size - fLocalOffset, request - bytesRead); in read()
289 bytesRead += avail; in read()
291 SkASSERT(bytesRead <= request); in read()
292 if (bytesRead == request) { in read()
302 fGlobalOffset += bytesRead; in read()
304 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/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/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;

1234