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.cpp101 ssize_t nRead; local
103 nRead = TEMP_FAILURE_RETRY(read(mDispatchReadFd, &byteread, sizeof(byteread)));
104 if (nRead < 0 && errno != EAGAIN) {
107 } while (nRead > 0);
/frameworks/base/libs/androidfw/
H A DBackupHelpers.cpp691 ssize_t nRead = read(fd, buf, toRead); local
692 if (nRead < 0) {
697 } else if (nRead == 0) {
707 ssize_t partial = (nRead+512) % 512;
710 memset(buf + nRead, 0, remainder);
711 nRead += remainder;
713 send_tarfile_chunk(writer, buf, nRead);
714 toWrite -= nRead;
1210 ssize_t nRead;
1245 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.cpp790 ssize_t nRead; local
792 nRead = read(mWakeReadPipeFd, buffer, sizeof(buffer));
793 } while ((nRead == -1 && errno == EINTR) || nRead == sizeof(buffer));

Completed in 965 milliseconds