Searched defs:nRead (Results 1 - 6 of 6) sorted by relevance

/frameworks/native/libs/input/tests/
H A DTestHelpers.h56 ssize_t nRead = ::read(receiveFd, buf, 1); local
57 return nRead == 1 ? 0 : nRead == 0 ? -EPIPE : -errno;
/frameworks/av/media/libstagefright/codecs/aacenc/SampleCode/
H A DAAC_E_SAMPLES.c147 int bytesLeft, nRead; local
261 nRead = ReadFile2Buf(infile, inBuf,READ_SIZE);
262 bytesLeft = nRead;
/frameworks/base/core/jni/
H A Dandroid_view_InputQueue.cpp103 ssize_t nRead; local
105 nRead = TEMP_FAILURE_RETRY(read(mDispatchReadFd, &byteread, sizeof(byteread)));
106 if (nRead < 0 && errno != EAGAIN) {
109 } while (nRead > 0);
/frameworks/base/libs/androidfw/
H A DBackupHelpers.cpp686 ssize_t nRead = read(fd, buf, toRead); local
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;
1204 ssize_t nRead;
1239 nRead
[all...]
/frameworks/native/libs/input/
H A DInputTransport.cpp185 ssize_t nRead; local
187 nRead = ::recv(mFd, msg, sizeof(InputMessage), MSG_DONTWAIT);
188 } while (nRead == -1 && errno == EINTR);
190 if (nRead < 0) {
204 if (nRead == 0) { // check for EOF
211 if (!msg->isValid(nRead)) {
/frameworks/native/services/inputflinger/
H A DEventHub.cpp797 ssize_t nRead; local
799 nRead = read(mWakeReadPipeFd, buffer, sizeof(buffer));
800 } while ((nRead == -1 && errno == EINTR) || nRead == sizeof(buffer));

Completed in 318 milliseconds