/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/io/ |
D | Streams.java | 92 int numRead = inStr.read(buf, off + totalRead, len - totalRead); in readFully() local 93 if (numRead < 0) in readFully() 97 totalRead += numRead; in readFully() 113 int numRead; in pipeAll() local 114 while ((numRead = inStr.read(bs, 0, bs.length)) >= 0) in pipeAll() 116 outStr.write(bs, 0, numRead); in pipeAll() 133 int numRead; in pipeAllLimited() local 134 while ((numRead = inStr.read(bs, 0, bs.length)) >= 0) in pipeAllLimited() 136 if ((limit - total) < numRead) in pipeAllLimited() 140 total += numRead; in pipeAllLimited() [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/util/io/ |
D | Streams.java | 94 int numRead = inStr.read(buf, off + totalRead, len - totalRead); in readFully() local 95 if (numRead < 0) in readFully() 99 totalRead += numRead; in readFully() 115 int numRead; in pipeAll() local 116 while ((numRead = inStr.read(bs, 0, bs.length)) >= 0) in pipeAll() 118 outStr.write(bs, 0, numRead); in pipeAll() 135 int numRead; in pipeAllLimited() local 136 while ((numRead = inStr.read(bs, 0, bs.length)) >= 0) in pipeAllLimited() 138 if ((limit - total) < numRead) in pipeAllLimited() 142 total += numRead; in pipeAllLimited() [all …]
|
/external/deqp/framework/delibs/decpp/ |
D | deBlockBuffer.hpp | 350 int numRead = 0; in tryRead() local 356 return numRead; in tryRead() 358 while (numRead < numElements) in tryRead() 360 int ret = readFromCurrentBlock(numElements-numRead, &elements[numRead], false /* non-blocking */); in tryRead() 365 numRead += ret; in tryRead() 370 return numRead; in tryRead() 383 int numRead = 0; in read() local 384 while (numRead < numElements) in read() 385 numRead += readFromCurrentBlock(numElements-numRead, &elements[numRead], true /* blocking */); in read()
|
/external/archive-patcher/applier/src/main/java/com/google/archivepatcher/applier/ |
D | LimitedInputStream.java | 67 int numRead = in.read(b, off, maxRead); in read() local 68 if (numRead > 0) { in read() 69 numToRead -= numRead; in read() 71 return numRead; in read()
|
/external/archive-patcher/generator/src/main/java/com/google/archivepatcher/generator/ |
D | MinimalZipParser.java | 129 int numRead = 0; in readOrDie() local 130 while (numRead < length) { in readOrDie() 131 int readThisRound = in.read(buffer, offset + numRead, length - numRead); in readOrDie() 132 if (numRead == -1) { in readOrDie() 135 numRead += readThisRound; in readOrDie()
|
/external/sonic/ |
D | Main.java | 36 int numRead, numWritten; in runSonic() local 45 numRead = audioStream.read(inBuffer, 0, bufferSize); in runSonic() 46 if(numRead <= 0) { in runSonic() 49 sonic.writeBytesToStream(inBuffer, numRead); in runSonic() 57 } while(numRead > 0); in runSonic()
|
/external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/ |
D | RandomAccessFileInputStreamTest.java | 103 int numRead = stream.read(buffer); in testRead_WithBuffer() local 104 if (numRead > 0) { in testRead_WithBuffer() 105 bytesLeft -= numRead; in testRead_WithBuffer() 106 out.write(buffer, 0, numRead); in testRead_WithBuffer() 124 int numRead = stream.read(buffer, 0, 2); // At most 2 bytes of the buffer can be used in testRead_WithPartialBuffer() local 125 if (numRead > 0) { in testRead_WithPartialBuffer() 126 bytesLeft -= numRead; in testRead_WithPartialBuffer() 127 out.write(buffer, 0, numRead); in testRead_WithPartialBuffer()
|
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/ |
D | ANTLRReaderStream.java | 73 int numRead; in load() local 82 numRead = r.read(data, p, readChunkSize); in load() 84 p += numRead; in load() 85 } while (numRead!=-1); // while not EOF in load()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
D | DefiniteLengthInputStream.java | 77 int numRead = _in.read(buf, off, toRead); in read() local 79 if (numRead < 0) in read() 84 if ((_remaining -= numRead) == 0) in read() 89 return numRead; in read()
|
D | ConstructedOctetStream.java | 44 int numRead = _currentStream.read(b, off + totalRead, len - totalRead); in read() local 46 if (numRead >= 0) in read() 48 totalRead += numRead; in read()
|
D | IndefiniteLengthInputStream.java | 65 int numRead = _in.read(b, off + 2, len - 2); in read() local 67 if (numRead < 0) in read() 85 return numRead + 2; in read()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/ |
D | DefiniteLengthInputStream.java | 78 int numRead = _in.read(buf, off, toRead); in read() local 80 if (numRead < 0) in read() 85 if ((_remaining -= numRead) == 0) in read() 90 return numRead; in read()
|
D | IndefiniteLengthInputStream.java | 66 int numRead = _in.read(b, off + 2, len - 2); in read() local 68 if (numRead < 0) in read() 86 return numRead + 2; in read()
|
D | ConstructedOctetStream.java | 45 int numRead = _currentStream.read(b, off + totalRead, len - totalRead); in read() local 47 if (numRead >= 0) in read() 49 totalRead += numRead; in read()
|
/external/deqp/android/package/src/com/drawelements/deqp/testercore/ |
D | TestLogParser.java | 98 final int numRead = m_log.read(m_buffer, 0, Math.min(numAvailable, m_buffer.length)); in parse() local 100 assert numRead > 0; in parse() local 102 m_logRead += numRead; in parse() 105 nativeParse(m_nativePointer, m_instrumentation, m_buffer, numRead); in parse()
|
/external/antlr/runtime/ObjC/Framework/ |
D | ANTLRReaderStream.m | 96 int numRead=0; 97 numRead = [is read:buf maxLength:aReadChunkSize]; 98 retData = [NSMutableData dataWithCapacity:numRead]; 99 [retData appendBytes:(const void *)buf length:numRead]; 100 NSLog( @"read %d chars; p was %d is now %d", n, p1, (p1+numRead) ); 101 p1 += numRead;
|
/external/deqp/framework/qphelper/ |
D | qpXmlWriter.c | 280 size_t numRead = (size_t)deMin32(3, (int)(numBytes - srcNdx)); in qpXmlWriter_writeBase64() local 282 deUint8 s1 = (numRead >= 2) ? data[srcNdx+1] : 0; in qpXmlWriter_writeBase64() 283 deUint8 s2 = (numRead >= 3) ? data[srcNdx+2] : 0; in qpXmlWriter_writeBase64() 286 srcNdx += numRead; in qpXmlWriter_writeBase64() 294 if (numRead < 3) d[3] = '='; in qpXmlWriter_writeBase64() 295 if (numRead < 2) d[2] = '='; in qpXmlWriter_writeBase64()
|
/external/deqp/execserver/tools/ |
D | xsTest.cpp | 93 size_t numRead = 0; in readBytes() local 95 while (numRead < numBytes) in readBytes() 97 size_t numLeft = numBytes - numRead; in readBytes() 99 deSocketResult result = socket.receive(&dst[numRead], numLeft, &curNumRead); in readBytes() 104 numRead += curNumRead; in readBytes() 254 deInt64 numRead = 0; in run() local 256 while (deFile_read(m_curFile, &buf[0], (deInt64)sizeof(buf), &numRead) == DE_FILERESULT_SUCCESS) in run() 257 fwrite(&buf[0], 1, (size_t)numRead, stdout); in run() 962 deInt64 numRead = 0; 964 while (deFile_read(out, buf, sizeof(buf)-1, &numRead) == DE_FILERESULT_SUCCESS) [all …]
|
/external/archive-patcher/applier/src/main/java/com/google/archivepatcher/applier/bsdiff/ |
D | BsPatch.java | 303 int numRead = 0; in readFully() local 304 while (numRead < numBytes) { in readFully() 305 int readNow = in.read(destination, startAt + numRead, numBytes - numRead); in readFully() 309 numRead += readNow; in readFully()
|
/external/archive-patcher/shared/src/main/java/com/google/archivepatcher/shared/ |
D | PartiallyUncompressingPipe.java | 87 int numRead = 0; in pipe() local 88 while ((numRead = in.read(copyBuffer)) >= 0) { in pipe() 89 out.write(copyBuffer, 0, numRead); in pipe()
|
D | DeflateUncompressor.java | 172 int numRead = 0; in uncompress() local 173 while ((numRead = inflaterIn.read(buffer)) >= 0) { in uncompress() 174 uncompressedOut.write(buffer, 0, numRead); in uncompress()
|
/external/deqp/execserver/ |
D | xsPosixFileReader.cpp | 69 deInt64 numRead = 0; in run() local 73 deFileResult result = deFile_read(m_file, &tmpBuf[0], (deInt64)tmpBuf.size(), &numRead); in run() 80 m_buf.write((int)numRead, &tmpBuf[0]); in run()
|
D | xsTestDriver.cpp | 200 int numRead = 0; in pollBuffer() local 204 numRead = msgType == MESSAGETYPE_PROCESS_LOG_DATA in pollBuffer() 208 if (numRead <= 0) in pollBuffer() 211 msgSize += numRead; in pollBuffer()
|
/external/deqp/executor/tools/ |
D | xeBatchResultToJUnit.cpp | 73 int numRead = (int)in.gcount(); in parseBatchResult() local 75 if (numRead > 0) in parseBatchResult() 76 parser.parse(&buf[0], numRead); in parseBatchResult() 78 if (numRead < (int)sizeof(buf)) in parseBatchResult()
|
/external/deqp/framework/delibs/destream/ |
D | deIOStream.h | 52 …Result (*deIOStreamReadFunc) (deStreamData* stream, void* buf, deInt32 bufSize, deInt32* numRead); 77 …eStreamResult deIOStream_read (deIOStream* stream, void* buf, deInt32 bufSize, deInt32* numRead); 95 …E deStreamResult deIOStream_read (deIOStream* stream, void* buf, deInt32 bufSize, deInt32* numRead) in deIOStream_read() argument 101 return stream->vfTable->readFunc(stream->streamData, buf, bufSize, numRead); in deIOStream_read()
|