Home
last modified time | relevance | path

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

12

/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 total += numRead; in pipeAllLimited()
141 outStr.write(bs, 0, numRead); in pipeAllLimited()
/external/libnfc-nci/halimpl/pn54x/tml/
DphTmlNfc_i2c.c126 int numRead = 0; in phTmlNfc_i2c_read() local
168 ret_Read = read((intptr_t)pDevHandle, pBuffer, totalBtyesToRead - numRead); in phTmlNfc_i2c_read()
171 numRead += ret_Read; in phTmlNfc_i2c_read()
193 if(numRead < totalBtyesToRead) in phTmlNfc_i2c_read()
195 ret_Read = read((intptr_t)pDevHandle, pBuffer, totalBtyesToRead - numRead); in phTmlNfc_i2c_read()
196 if (ret_Read != totalBtyesToRead - numRead) in phTmlNfc_i2c_read()
203 numRead += ret_Read; in phTmlNfc_i2c_read()
214 ret_Read = read((intptr_t)pDevHandle, (pBuffer + numRead), totalBtyesToRead - numRead); in phTmlNfc_i2c_read()
217 numRead += ret_Read; in phTmlNfc_i2c_read()
235 return numRead; in phTmlNfc_i2c_read()
/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/libnfc-nxp/Linux_x86/
DphDal4Nfc_i2c.c179 int numRead = 0; in phDal4Nfc_i2c_read() local
189 while (numRead < nNbBytesToRead) { in phDal4Nfc_i2c_read()
205 ret = read(gI2cPortContext.nHandle, pBuffer + numRead, nNbBytesToRead - numRead); in phDal4Nfc_i2c_read()
208 numRead += ret; in phDal4Nfc_i2c_read()
220 return numRead; in phDal4Nfc_i2c_read()
DphDal4Nfc_uart.c299 int numRead = 0; in phDal4Nfc_uart_read() local
330 while (numRead < nNbBytesToRead) { in phDal4Nfc_uart_read()
350 ret = read(gComPortContext.nHandle, pBuffer + numRead, nNbBytesToRead - numRead); in phDal4Nfc_uart_read()
352 ret = apply_errors(pBuffer + numRead, ret); in phDal4Nfc_uart_read()
355 numRead += ret; in phDal4Nfc_uart_read()
368 return numRead; in phDal4Nfc_uart_read()
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
DANTLRReaderStream.java73 int numRead=0; 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.java74 int numRead = _in.read(buf, off, toRead); in read() local
76 if (numRead < 0) in read()
81 if ((_remaining -= numRead) == 0) in read()
86 return numRead; 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()
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()
/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/deqp/framework/qphelper/
DqpXmlWriter.c277 int numRead = deMin32(3, numBytes - srcNdx); in qpXmlWriter_writeBase64() local
279 deUint8 s1 = (numRead >= 2) ? data[srcNdx+1] : 0; in qpXmlWriter_writeBase64()
280 deUint8 s2 = (numRead >= 3) ? data[srcNdx+2] : 0; in qpXmlWriter_writeBase64()
283 srcNdx += numRead; in qpXmlWriter_writeBase64()
291 if (numRead < 3) d[3] = '='; in qpXmlWriter_writeBase64()
292 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.cpp92 int numRead = 0; in readBytes() local
94 while (numRead < numBytes) in readBytes()
96 int numLeft = numBytes - numRead; in readBytes()
98 deSocketResult result = socket.receive(&dst[numRead], numLeft, &curNumRead); in readBytes()
103 numRead += curNumRead; in readBytes()
253 deInt64 numRead = 0; in run() local
255 while (deFile_read(m_curFile, &buf[0], (deInt64)sizeof(buf), &numRead) == DE_FILERESULT_SUCCESS) in run()
256 fwrite(&buf[0], 1, (size_t)numRead, stdout); in run()
961 deInt64 numRead = 0;
963 while (deFile_read(out, buf, sizeof(buf)-1, &numRead) == DE_FILERESULT_SUCCESS)
[all …]
DxsClient.cpp86 int numRead = 0; in readBytes() local
88 while (numRead < numBytes) in readBytes()
90 int numLeft = numBytes - numRead; in readBytes()
92 deSocketResult result = socket.receive(&dst[numRead], numLeft, &curNumRead); in readBytes()
97 numRead += curNumRead; in readBytes()
/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()
DxeExtractSampleLists.cpp139 int numRead = 0; in processLogFile() local
147 numRead = (int)in.gcount(); in processLogFile()
149 if (numRead <= 0) in processLogFile()
152 parser.parse(&buf[0], numRead); in processLogFile()
DxeCommandLineExecutor.cpp215 int numRead = (int)in.gcount(); in readCaseList() local
217 if (numRead > 0) in readCaseList()
218 caseListParser.parse(&buf[0], numRead); in readCaseList()
220 if (numRead < (int)sizeof(buf)) in readCaseList()
335 int numRead = 0; in readLogFile() local
340 numRead = (int)in.gcount(); in readLogFile()
342 if (numRead <= 0) in readLogFile()
345 parser.parse(&buf[0], numRead); in readLogFile()
DxeMergeTestLogs.cpp129 int numRead = 0; in readLogFile() local
137 numRead = (int)in.gcount(); in readLogFile()
139 if (numRead <= 0) in readLogFile()
142 parser.parse(&buf[0], numRead); in readLogFile()
DxeExtractShaderPrograms.cpp180 int numRead = 0; in extractShaderProgramsFromLogFile() local
188 numRead = (int)in.gcount(); in extractShaderProgramsFromLogFile()
190 if (numRead <= 0) in extractShaderProgramsFromLogFile()
193 parser.parse(&buf[0], numRead); in extractShaderProgramsFromLogFile()
/external/deqp/framework/delibs/destream/
DdeIOStream.h52 …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()
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DANTLRReaderStream.m89 int numRead=0;
92 numRead = [retData length];
93 NSLog( @"read %d chars; p was %d is now %d", n, p1, (p1+numRead) );
94 p1 += numRead;
DANTLRFileStream.m92 int numRead=0;
95 numRead = [retData length];
97 NSLog( @"read %d chars; p was %d is now %d", n, p1, (p1+numRead) );
98 p1 += numRead;
/external/deqp/framework/common/
DtcuResource.cpp63 int numRead = (int)fread(dst, 1, numBytes, m_file); in read() local
64 TCU_CHECK(numRead == numBytes); in read()

12