/frameworks/native/libs/input/tests/ |
D | TestHelpers.h | 56 ssize_t nRead = ::read(receiveFd, buf, 1); in readSignal() local 57 return nRead == 1 ? 0 : nRead == 0 ? -EPIPE : -errno; in readSignal()
|
/frameworks/base/core/java/com/android/internal/backup/ |
D | LocalTransport.java | 360 int nRead = mSocketInputStream.read(mFullBackupBuffer, 0, numBytes); in sendBackupData() local 361 if (nRead < 0) { in sendBackupData() 366 mFullBackupOutputStream.write(mFullBackupBuffer, 0, nRead); in sendBackupData() 367 numBytes -= nRead; in sendBackupData() 617 int nRead; in getNextFullRestoreDataChunk() local 619 nRead = mCurFullRestoreStream.read(mFullRestoreBuffer); in getNextFullRestoreDataChunk() 620 if (nRead < 0) { in getNextFullRestoreDataChunk() 622 nRead = NO_MORE_DATA; in getNextFullRestoreDataChunk() 623 } else if (nRead == 0) { in getNextFullRestoreDataChunk() 628 nRead = NO_MORE_DATA; in getNextFullRestoreDataChunk() [all …]
|
/frameworks/av/media/libstagefright/codecs/aacenc/SampleCode/ |
D | AAC_E_SAMPLES.c | 147 int bytesLeft, nRead; in main() local 261 nRead = ReadFile2Buf(infile, inBuf,READ_SIZE); in main() 262 bytesLeft = nRead; in main()
|
/frameworks/base/core/jni/ |
D | android_view_InputQueue.cpp | 101 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/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/ |
D | LayoutLibTestCallback.java | 108 int nRead; in findClass() local 110 while ((nRead = classInputStream.read(data, 0, data.length)) != -1) { in findClass() 111 buffer.write(data, 0, nRead); in findClass()
|
/frameworks/base/libs/androidfw/ |
D | BackupHelpers.cpp | 688 ssize_t nRead = read(fd, buf, toRead); in write_tarfile() local 689 if (nRead < 0) { in write_tarfile() 694 } else if (nRead == 0) { in write_tarfile() 704 ssize_t partial = (nRead+512) % 512; in write_tarfile() 707 memset(buf + nRead, 0, remainder); in write_tarfile() 708 nRead += remainder; in write_tarfile() 710 send_tarfile_chunk(writer, buf, nRead); in write_tarfile() 711 toWrite -= nRead; in write_tarfile() 1207 ssize_t nRead; in test_read_header_and_entity() local 1242 nRead = reader.ReadEntityData(buf, bufSize); in test_read_header_and_entity() [all …]
|
/frameworks/native/libs/input/ |
D | InputTransport.cpp | 185 ssize_t nRead; in receiveMessage() local 187 nRead = ::recv(mFd, msg, sizeof(InputMessage), MSG_DONTWAIT); in receiveMessage() 188 } while (nRead == -1 && errno == EINTR); in receiveMessage() 190 if (nRead < 0) { in receiveMessage() 204 if (nRead == 0) { // check for EOF in receiveMessage() 211 if (!msg->isValid(nRead)) { in receiveMessage()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | BackupManagerService.java | 3001 int nRead = in.read(buffer, 0, toRead); in routeSocketDataToOutput() local 3002 out.write(buffer, 0, nRead); in routeSocketDataToOutput() 3003 chunkTotal -= nRead; in routeSocketDataToOutput() 3817 int nRead = 0; in run() local 3825 nRead = in.read(buffer); in run() 3826 if (nRead > 0) { in run() 3827 out.write(buffer, 0, nRead); in run() 3828 result = transport.sendBackupData(nRead); in run() 3830 } while (nRead > 0 && result == BackupTransport.TRANSPORT_OK); in run() 4532 int nRead = instream.read(mBuffer, 0, toRead); in restoreOneFile() local [all …]
|
/frameworks/native/services/inputflinger/ |
D | EventHub.cpp | 790 ssize_t nRead; in getEvents() local 792 nRead = read(mWakeReadPipeFd, buffer, sizeof(buffer)); in getEvents() 793 } while ((nRead == -1 && errno == EINTR) || nRead == sizeof(buffer)); in getEvents()
|