Home
last modified time | relevance | path

Searched refs:numRead (Results 1 – 25 of 63) sorted by relevance

123

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/io/
DStreams.java92 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/
DStreams.java94 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/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/util/io/
DStreams.java94 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/oboe/tests/
DtestFlowgraph.cpp55 int32_t numRead = sinkI16.read(output, numOutputFrames); in TEST() local
56 ASSERT_EQ(numInputFrames, numRead); in TEST()
57 for (int i = 0; i < numRead; i++) { in TEST()
74 int32_t numRead = sinkFloat.read(output, 8); in TEST() local
75 ASSERT_EQ(3, numRead); in TEST()
98 int32_t numRead = sinkFloat.read(output, numOutput); in TEST() local
99 ASSERT_EQ(numOutput, numRead); in TEST()
127 int32_t numRead = sinkI24.read(output, sizeof(output) / kBytesPerI24Packed); in TEST() local
128 ASSERT_EQ(numInputFrames, numRead); in TEST()
155 int32_t numRead = sinkFloat.read(output, numOutputFrames); in TEST() local
[all …]
/external/deqp/framework/delibs/decpp/
DdeBlockBuffer.hpp350 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/oboe/src/common/
DFilterAudioStream.cpp65 int32_t numRead = mFlowGraph->read(mBlockingBuffer.get(), in write() local
68 if (numRead < 0) { in write()
69 return ResultWithValue<int32_t>::createBasedOnSign(numRead); in write()
71 if (numRead == 0) { in write()
75 numRead, in write()
/external/llvm-project/mlir/lib/Parser/
DDialectSymbolParser.cpp483 size_t *numRead = nullptr) { in parseSymbol() argument
499 if (numRead) { in parseSymbol()
500 *numRead = static_cast<size_t>(endTok.getLoc().getPointer() - in parseSymbol()
592 static T parseSymbol(StringRef inputStr, MLIRContext *context, size_t &numRead, in parseSymbol() argument
603 &numRead); in parseSymbol()
607 size_t numRead = 0; in parseAttribute() local
608 return parseAttribute(attrStr, context, numRead); in parseAttribute()
611 size_t numRead = 0; in parseAttribute() local
612 return parseAttribute(attrStr, type, numRead); in parseAttribute()
616 size_t &numRead) { in parseAttribute() argument
[all …]
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/
DANTLRReaderStream.java73 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/sonic/
DMain.java36 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/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DDefiniteLengthInputStream.java79 int numRead = _in.read(buf, off, toRead); in read() local
81 if (numRead < 0) in read()
86 if ((_remaining -= numRead) == 0) in read()
91 return numRead; in read()
DIndefiniteLengthInputStream.java65 int numRead = _in.read(b, off + 2, len - 2); in read() local
67 if (numRead < 0) in read()
85 return numRead + 2; in read()
DConstructedOctetStream.java43 int numRead = _currentStream.read(b, off + totalRead, len - totalRead); in read() local
45 if (numRead >= 0) in read()
47 totalRead += numRead; in read()
/external/deqp/android/package/src/com/drawelements/deqp/testercore/
DTestLogParser.java98 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/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/
DDefiniteLengthInputStream.java80 int numRead = _in.read(buf, off, toRead); in read() local
82 if (numRead < 0) in read()
87 if ((_remaining -= numRead) == 0) in read()
92 return numRead; in read()
DIndefiniteLengthInputStream.java66 int numRead = _in.read(b, off + 2, len - 2); in read() local
68 if (numRead < 0) in read()
86 return numRead + 2; in read()
DConstructedOctetStream.java44 int numRead = _currentStream.read(b, off + totalRead, len - totalRead); in read() local
46 if (numRead >= 0) in read()
48 totalRead += numRead; in read()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/
DDefiniteLengthInputStream.java80 int numRead = _in.read(buf, off, toRead); in read() local
82 if (numRead < 0) in read()
87 if ((_remaining -= numRead) == 0) in read()
92 return numRead; in read()
DIndefiniteLengthInputStream.java66 int numRead = _in.read(b, off + 2, len - 2); in read() local
68 if (numRead < 0) in read()
86 return numRead + 2; in read()
DConstructedOctetStream.java44 int numRead = _currentStream.read(b, off + totalRead, len - totalRead); in read() local
46 if (numRead >= 0) in read()
48 totalRead += numRead; in read()
/external/antlr/runtime/ObjC/Framework/
DANTLRReaderStream.m96 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/
DqpXmlWriter.c280 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/
DxsPosixFileReader.cpp69 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()
DxsTestDriver.cpp200 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/execserver/tools/
DxsTest.cpp93 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/deqp/executor/tools/
DxeBatchResultToJUnit.cpp73 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()

123