Searched defs:nRead (Results 1 - 6 of 6) sorted by relevance
/frameworks/native/libs/input/tests/ |
H A D | TestHelpers.h | 56 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 D | AAC_E_SAMPLES.c | 147 int bytesLeft, nRead; local 261 nRead = ReadFile2Buf(infile, inBuf,READ_SIZE); 262 bytesLeft = nRead;
|
/frameworks/base/core/jni/ |
H A D | android_view_InputQueue.cpp | 103 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 D | BackupHelpers.cpp | 691 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; 1209 ssize_t nRead; 1244 nRead [all...] |
/frameworks/native/libs/input/ |
H A D | InputTransport.cpp | 188 ssize_t nRead; local 190 nRead = ::recv(mFd, msg, sizeof(InputMessage), MSG_DONTWAIT); 191 } while (nRead == -1 && errno == EINTR); 193 if (nRead < 0) { 207 if (nRead == 0) { // check for EOF 214 if (!msg->isValid(nRead)) {
|
/frameworks/native/services/inputflinger/ |
H A D | EventHub.cpp | 831 ssize_t nRead; local 833 nRead = read(mWakeReadPipeFd, buffer, sizeof(buffer)); 834 } while ((nRead == -1 && errno == EINTR) || nRead == sizeof(buffer));
|
Completed in 159 milliseconds