/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
D | Progress.java | 41 @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/ |
D | RandomAccessFileInputStream.java | 56 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/ |
D | SocketTransportWrapper.java | 229 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/ |
D | OGGLoader.java | 91 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/ |
D | ReaderView.cpp | 54 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/ |
D | XmlMessageWrapper.java | 250 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/ |
D | RSSFeedUtil.java | 127 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/ |
D | BlenderInputStream.java | 173 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/ |
D | OpenSSLRandom.java | 77 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/ |
D | SkCodec_libico.cpp | 112 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/ |
D | DecompressionTest.java | 38 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()
|
D | ExhaustiveTest.java | 57 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/ |
D | CharsetMatch.java | 94 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/ |
D | SampleDrawingServer.cpp | 140 size_t bytesRead; in onDrawContent() local 153 &bytesRead); in onDrawContent() 155 fTotalBytesRead += bytesRead; in onDrawContent() 168 &bytesRead); in onDrawContent() 170 totalBytesRead += bytesRead; in onDrawContent()
|
D | SampleDrawingClient.cpp | 180 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/ |
D | Okio.java | 135 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/ |
D | SkRWBuffer.cpp | 277 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()
|
D | SkStream.cpp | 378 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/ |
D | CipherTest.java | 280 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/ |
D | FrontBufferedStreamTest.cpp | 21 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/ |
D | ByteString.java | 366 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/ |
D | ANTLRReaderStream.m | 116 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/ |
D | ktx.cpp | 73 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/ |
D | deTarga.c | 39 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/ |
D | SkImageDecoder_libwebp.cpp | 60 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()
|