Home
last modified time | relevance | path

Searched refs:nRead (Results 1 – 9 of 9) sorted by relevance

/frameworks/native/libs/utils/tests/
DTestHelpers.h54 ssize_t nRead = ::read(receiveFd, buf, 1); in readSignal() local
55 return nRead == 1 ? 0 : nRead == 0 ? -EPIPE : -errno; in readSignal()
/frameworks/base/libs/androidfw/tests/
DTestHelpers.h54 ssize_t nRead = ::read(receiveFd, buf, 1); in readSignal() local
55 return nRead == 1 ? 0 : nRead == 0 ? -EPIPE : -errno; in readSignal()
/frameworks/av/media/libstagefright/codecs/aacenc/SampleCode/
DAAC_E_SAMPLES.c147 int bytesLeft, nRead; in main() local
261 nRead = ReadFile2Buf(infile, inBuf,READ_SIZE); in main()
262 bytesLeft = nRead; in main()
/frameworks/base/core/jni/
Dandroid_view_InputQueue.cpp101 ssize_t nRead; in getEvent() local
103 nRead = TEMP_FAILURE_RETRY(read(mDispatchReadFd, &byteread, sizeof(byteread))); in getEvent()
104 if (nRead < 0 && errno != EAGAIN) { in getEvent()
107 } while (nRead > 0); in getEvent()
/frameworks/base/libs/androidfw/
DBackupHelpers.cpp685 ssize_t nRead = read(fd, buf, toRead); in write_tarfile() local
686 if (nRead < 0) { in write_tarfile()
691 } else if (nRead == 0) { in write_tarfile()
701 ssize_t partial = (nRead+512) % 512; in write_tarfile()
704 memset(buf + nRead, 0, remainder); in write_tarfile()
705 nRead += remainder; in write_tarfile()
707 send_tarfile_chunk(writer, buf, nRead); in write_tarfile()
708 toWrite -= nRead; in write_tarfile()
1204 ssize_t nRead; in test_read_header_and_entity() local
1239 nRead = reader.ReadEntityData(buf, bufSize); in test_read_header_and_entity()
[all …]
DInputTransport.cpp183 ssize_t nRead; in receiveMessage() local
185 nRead = ::recv(mFd, msg, sizeof(InputMessage), MSG_DONTWAIT); in receiveMessage()
186 } while (nRead == -1 && errno == EINTR); in receiveMessage()
188 if (nRead < 0) { in receiveMessage()
202 if (nRead == 0) { // check for EOF in receiveMessage()
209 if (!msg->isValid(nRead)) { in receiveMessage()
/frameworks/native/libs/utils/
DLooper.cpp383 ssize_t nRead; in awoken() local
385 nRead = read(mWakeReadPipeFd, buffer, sizeof(buffer)); in awoken()
386 } while ((nRead == -1 && errno == EINTR) || nRead == sizeof(buffer)); in awoken()
/frameworks/base/services/java/com/android/server/
DBackupManagerService.java2433 int nRead = in.read(buffer, 0, toRead); in routeSocketDataToOutput() local
2434 out.write(buffer, 0, nRead); in routeSocketDataToOutput()
2435 chunkTotal -= nRead; in routeSocketDataToOutput()
3504 int nRead = instream.read(buffer, 0, toRead); in restoreOneFile() local
3505 if (nRead >= 0) mBytes += nRead; in restoreOneFile()
3506 if (nRead <= 0) break; in restoreOneFile()
3507 toCopy -= nRead; in restoreOneFile()
3513 pipe.write(buffer, 0, nRead); in restoreOneFile()
3550 long nRead = instream.read(buffer, 0, toRead); in restoreOneFile() local
3551 if (nRead >= 0) mBytes += nRead; in restoreOneFile()
[all …]
/frameworks/base/services/input/
DEventHub.cpp730 ssize_t nRead; in getEvents() local
732 nRead = read(mWakeReadPipeFd, buffer, sizeof(buffer)); in getEvents()
733 } while ((nRead == -1 && errno == EINTR) || nRead == sizeof(buffer)); in getEvents()