/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;
|
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/ |
ModuleClassLoader.java | 52 int nRead; 54 while ((nRead = classInputStream.read(data, 0, data.length)) != -1) { 55 buffer.write(data, 0, 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;
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/ |
GifResourceDecoder.java | 103 int nRead; 105 while ((nRead = is.read(data)) != -1) { 106 buffer.write(data, 0, nRead);
|
/external/pdfium/core/src/fxcrt/ |
extension.h | 161 size_t nRead = m_nGrowSize - (size_t)offset; 162 if (nRead > size) { 163 nRead = size; 165 FXSYS_memcpy(buffer, m_Blocks[(int)nStartBlock] + (size_t)offset, nRead); 166 buffer = ((uint8_t*)buffer) + nRead; 167 size -= nRead; 177 size_t nRead = std::min(size, m_nCurSize - m_nCurPos); 178 if (!ReadBlock(buffer, (int32_t)m_nCurPos, nRead)) { 181 return nRead;
|
/frameworks/base/core/jni/ |
android_view_InputQueue.cpp | 103 ssize_t nRead; 105 nRead = TEMP_FAILURE_RETRY(read(mDispatchReadFd, &byteread, sizeof(byteread))); 106 if (nRead < 0 && errno != EAGAIN) { 109 } while (nRead > 0);
|
/hardware/ti/omap4-aah/test/CameraHal/ |
camera_test_script.cpp | [all...] |
/hardware/ti/omap4xxx/test/CameraHal/ |
camera_test_script.cpp | 1058 size_t nRead = 0; [all...] |
/packages/apps/PackageInstaller/src/com/android/packageinstaller/wear/ |
WearPackageUtil.java | 106 int nRead; 110 while ((nRead = fr.read(data, 0, data.length)) != -1) { 111 fo.write(data, 0, nRead);
|
/frameworks/base/core/java/android/app/backup/ |
BlobBackupHelper.java | 200 int nRead; 201 while ((nRead = in.read(buffer)) > 0) { 202 inflated.write(buffer, 0, nRead); 224 int nRead = 0; 225 while ((nRead = bis.read(buf)) >= 0) { 226 crc.update(buf, 0, nRead);
|
/external/valgrind/coregrind/m_debuginfo/ |
image.c | 157 Int nRead = 0; 159 if (nRead == len) return nRead; 160 vg_assert(nRead < len); 161 Int nNeeded = len - nRead; 163 Int n = VG_(read)(fd, &buf[nRead], nNeeded); 164 if (n <= 0) return nRead; /* error or EOF */ 165 nRead += n; 472 static ULong nread = 0; local 476 nread += len [all...] |
/frameworks/base/libs/androidfw/ |
BackupHelpers.cpp | 686 ssize_t nRead = read(fd, buf, toRead); 687 if (nRead < 0) { 692 } else if (nRead == 0) { 702 ssize_t partial = (nRead+512) % 512; 705 memset(buf + nRead, 0, remainder); 706 nRead += remainder; 708 send_tarfile_chunk(writer, buf, nRead); 709 toWrite -= nRead; [all...] |
/frameworks/native/libs/input/ |
InputTransport.cpp | 189 ssize_t nRead; 191 nRead = ::recv(mFd, msg, sizeof(InputMessage), MSG_DONTWAIT); 192 } while (nRead == -1 && errno == EINTR); 194 if (nRead < 0) { 208 if (nRead == 0) { // check for EOF 215 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/glide/third_party/gif_decoder/src/main/java/com/bumptech/glide/gifdecoder/ |
GifDecoder.java | 320 int nRead; 322 while ((nRead = is.read(data, 0, data.length)) != -1) { 323 buffer.write(data, 0, nRead);
|
/external/valgrind/auxprogs/ |
valgrind-di-server.c | 560 SizeT nRead = 0; 562 if (nRead == len) return nRead; 563 assert(nRead < len); 564 SizeT nNeeded = len - nRead; 566 SSizeT n = read(fd, &buf[nRead], nNeeded); 567 if (n <= 0) return nRead; /* error or EOF */ 568 nRead += n; 661 Int nRead = pread(fd, buf, avail, curr_off); 662 if (nRead <= 0) { /* EOF or error on the file; neither should happen * [all...] |
/frameworks/base/core/java/com/android/internal/backup/ |
LocalTransport.java | 391 int nRead = mSocketInputStream.read(mFullBackupBuffer, 0, bytesLeft); 392 if (nRead < 0) { 397 mFullBackupOutputStream.write(mFullBackupBuffer, 0, nRead); 398 bytesLeft -= nRead; 661 int nRead; 663 nRead = mCurFullRestoreStream.read(mFullRestoreBuffer); 664 if (nRead < 0) { 666 nRead = NO_MORE_DATA; 667 } else if (nRead == 0) { 672 nRead = NO_MORE_DATA [all...] |
/frameworks/native/services/inputflinger/ |
EventHub.cpp | 811 ssize_t nRead; 813 nRead = read(mWakeReadPipeFd, buffer, sizeof(buffer)); 814 } while ((nRead == -1 && errno == EINTR) || nRead == sizeof(buffer)); [all...] |