/frameworks/native/libs/input/tests/ |
TestHelpers.h | 56 ssize_t nRead = ::read(receiveFd, buf, 1); 57 return nRead == 1 ? 0 : nRead == 0 ? -EPIPE : -errno;
|
/system/core/libutils/tests/ |
TestHelpers.h | 54 ssize_t nRead = ::read(receiveFd, buf, 1); 55 return nRead == 1 ? 0 : nRead == 0 ? -EPIPE : -errno;
|
/external/chromium_org/third_party/sqlite/src/src/ |
memjournal.c | 80 int nRead = iAmt; 102 int nCopy = MIN(nRead, (JOURNAL_CHUNKSIZE - iChunkOffset)); 105 nRead -= iSpace; 107 } while( nRead>=0 && (pChunk=pChunk->pNext)!=0 && nRead>0 );
|
test_demovfs.c | 221 int nRead; /* Return value from read() */ 239 nRead = read(p->fd, zBuf, iAmt); 241 if( nRead==iAmt ){ 243 }else if( nRead>=0 ){
|
test_osinst.c | 960 int nRead; 965 nRead = 24; 966 if( pCsr->iOffset+nRead<=p->nByte ){ 968 rc = p->pFd->pMethods->xRead(p->pFd, pCsr->aBuf, nRead, pCsr->iOffset); 975 rc = p->pFd->pMethods->xRead(p->pFd, buf, 4, pCsr->iOffset+nRead); 976 nRead += 4; 980 rc = p->pFd->pMethods->xRead(p->pFd, zStr, nStr, pCsr->iOffset+nRead); 982 nRead += nStr; 1003 pCsr->iOffset += nRead; [all...] |
/external/chromium_org/third_party/zlib/contrib/minizip/ |
mztools.c | 249 int nRead; 251 while ( (nRead = (int)fread(buffer, 1, sizeof(buffer), fpOutCD)) > 0) { 252 if ((int)fwrite(buffer, 1, nRead, fpOut) != nRead) {
|
/external/zlib/src/contrib/minizip/ |
mztools.c | 259 int nRead; 261 while ( (nRead = (int)fread(buffer, 1, sizeof(buffer), fpOutCD)) > 0) { 262 if ((int)fwrite(buffer, 1, nRead, fpOut) != nRead) {
|
/frameworks/av/media/libstagefright/codecs/aacenc/SampleCode/ |
AAC_E_SAMPLES.c | 147 int bytesLeft, nRead; 261 nRead = ReadFile2Buf(infile, inBuf,READ_SIZE); 262 bytesLeft = nRead;
|
/frameworks/base/core/jni/ |
android_view_InputQueue.cpp | 101 ssize_t nRead; 103 nRead = TEMP_FAILURE_RETRY(read(mDispatchReadFd, &byteread, sizeof(byteread))); 104 if (nRead < 0 && errno != EAGAIN) { 107 } while (nRead > 0);
|
/hardware/ti/omap4xxx/test/CameraHal/ |
camera_test_script.cpp | 1058 size_t nRead = 0; [all...] |
/system/core/libutils/ |
Looper.cpp | 391 ssize_t nRead; 393 nRead = read(mWakeReadPipeFd, buffer, sizeof(buffer)); 394 } while ((nRead == -1 && errno == EINTR) || nRead == sizeof(buffer));
|
/external/yaffs2/yaffs2/direct/ |
yaffsfs.c | 515 int nRead = -1; 547 nRead = yaffs_ReadDataFromFile(obj,buf,pos,nbyte); 548 if(nRead >= 0) 550 h->position = pos + nRead; 559 nRead = 0; 567 return (nRead >= 0) ? nRead : -1;
|
/frameworks/base/libs/androidfw/ |
BackupHelpers.cpp | 685 ssize_t nRead = read(fd, buf, toRead); 686 if (nRead < 0) { 691 } else if (nRead == 0) { 701 ssize_t partial = (nRead+512) % 512; 704 memset(buf + nRead, 0, remainder); 705 nRead += remainder; 707 send_tarfile_chunk(writer, buf, nRead); 708 toWrite -= nRead; [all...] |
/frameworks/native/libs/input/ |
InputTransport.cpp | 184 ssize_t nRead; 186 nRead = ::recv(mFd, msg, sizeof(InputMessage), MSG_DONTWAIT); 187 } while (nRead == -1 && errno == EINTR); 189 if (nRead < 0) { 203 if (nRead == 0) { // check for EOF 210 if (!msg->isValid(nRead)) { [all...] |
/hardware/ti/omap3/omx/audio/src/openmax_il/g722_dec/tests/ |
G722DecTest.c | 852 int nRead = 0; 859 nRead = fread(pBufferHeader->pBuffer, 1, pBufferHeader->nAllocLen , fIn); 861 if (nRead != 0) { 862 totalRead += nRead; 863 pBufferHeader->nFilledLen = nRead; 867 APP_DPRINT ("%d :: App:: pBuffer->pBuffer = %p pBuffer->nAllocLen = * %ld, nRead = %d, totalread = %d\n", 868 __LINE__, pBufferHeader->pBuffer, pBufferHeader->nAllocLen, nRead, totalRead); 879 if(nRead < pBufferHeader->nAllocLen) { 885 pBufferHeader->nFilledLen = nRead; [all...] |
/hardware/ti/omap3/omx/audio/src/openmax_il/g722_enc/tests/ |
G722EncTest.c | [all...] |
/hardware/ti/omap3/omx/audio/src/openmax_il/g726_dec/tests/ |
G726DecTest.c | [all...] |
/hardware/ti/omap3/omx/audio/src/openmax_il/g729_dec/tests/ |
G729DecTest.c | [all...] |
/hardware/ti/omap3/omx/image/src/openmax_il/jpeg_dec/tests/ |
JPEGTest.c | 487 int nRead; 501 ReadFile(fIn, pBuf->pBuffer, lBuffUsed, &nRead, NULL); 503 nRead = fread(pBuf->pBuffer,1, lBuffUsed, fIn); 507 PRINT( "Read %d bytes from file\n", nRead); 509 pBuf->nFilledLen = nRead; 510 return nRead; 654 int nRead; [all...] |
/hardware/ti/omap3/omx/image/src/openmax_il/jpeg_enc/test/ |
JPEGTestEnc.c | 811 int nRead; 816 ReadFile(fIn, pBuf->pBuffer, lSize, &nRead, NULL); 818 nRead = fread(pBuf->pBuffer,1, buffSize , fIn); 821 printf ("Buffer Size = %d. Read %d bytes from file. \n", (int) buffSize, (int)nRead); 822 pBuf->nFilledLen = nRead; 834 return nRead; [all...] |
/external/chromium_org/third_party/sqlite/src/ext/async/ |
sqlite3async.c | 686 sqlite3_int64 nRead; 691 nRead = MIN(filesize - iOffset, iAmt64); 692 if( nRead>0 ){ 693 rc = pBase->pMethods->xRead(pBase, zOut, (int)nRead, iOffset); 694 ASYNC_TRACE(("READ %s %d bytes at %d\n", p->zName, nRead, iOffset)); [all...] |
/hardware/ti/omap3/omx/audio/src/openmax_il/g711_dec/tests/ |
G711DecTest.c | [all...] |
/hardware/ti/omap3/omx/audio/src/openmax_il/g726_enc/tests/ |
G726EncTest.c | 286 int nRead = 0; [all...] |
/hardware/ti/omap3/omx/audio/src/openmax_il/g729_enc/tests/ |
G729EncTest.c | 391 int nRead = 0; [all...] |
/hardware/ti/omap3/omx/audio/src/openmax_il/nbamr_enc/tests/ |
AmrEncTest.c | 323 int nRead; [all...] |