Searched defs:nRead (Results 1 - 5 of 5) 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.cpp685 ssize_t nRead = read(fd, buf, toRead); local
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;
1204 ssize_t nRead;
1239 nRead
[all...]
/frameworks/native/libs/input/
H A DInputTransport.cpp184 ssize_t nRead; local
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)) {

Completed in 495 milliseconds