/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
D | FullBackupUtils.java | 52 int nRead = in.read(buffer, 0, toRead); in routeSocketDataToOutput() local 53 if (nRead < 0) { in routeSocketDataToOutput() 57 out.write(buffer, 0, nRead); in routeSocketDataToOutput() 58 chunkTotal -= nRead; in routeSocketDataToOutput()
|
D | TarBackupReader.java | 252 int nRead = in.read(buffer, offset + soFar, size - soFar); in readExactly() local 253 if (nRead <= 0) { in readExactly() 259 soFar += nRead; in readExactly() 261 Slog.v(TAG, " + got " + nRead + "; now wanting " + (size - soFar)); in readExactly()
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | PortableFloatMap.java | 68 int nRead = 0; in PortableFloatMap() 71 nRead = in.read(row, offset, bytesPerRow - offset); in PortableFloatMap() 72 if (nRead < 0) { in PortableFloatMap() 75 offset += nRead; in PortableFloatMap()
|
/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/packages/LocalTransport/src/com/android/localtransport/ |
D | LocalTransport.java | 540 int nRead = mSocketInputStream.read(mFullBackupBuffer, 0, bytesLeft); in sendBackupData() local 541 if (nRead < 0) { in sendBackupData() 546 mFullBackupOutputStream.write(mFullBackupBuffer, 0, nRead); in sendBackupData() 547 bytesLeft -= nRead; in sendBackupData() 810 int nRead; in getNextFullRestoreDataChunk() local 812 nRead = mCurFullRestoreStream.read(mFullRestoreBuffer); in getNextFullRestoreDataChunk() 813 if (nRead < 0) { in getNextFullRestoreDataChunk() 815 nRead = NO_MORE_DATA; in getNextFullRestoreDataChunk() 816 } else if (nRead == 0) { in getNextFullRestoreDataChunk() 821 nRead = NO_MORE_DATA; in getNextFullRestoreDataChunk() [all …]
|
/frameworks/base/core/java/android/app/backup/ |
D | BlobBackupHelper.java | 200 int nRead; in inflate() local 201 while ((nRead = in.read(buffer)) > 0) { in inflate() 202 inflated.write(buffer, 0, nRead); in inflate() 224 int nRead = 0; in checksum() local 225 while ((nRead = bis.read(buf)) >= 0) { in checksum() 226 crc.update(buf, 0, nRead); in checksum()
|
/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
D | FullRestoreEngine.java | 487 int nRead = instream.read(buffer, 0, toRead); in restoreOneFile() local 488 if (nRead >= 0) { in restoreOneFile() 489 mBytes += nRead; in restoreOneFile() 491 if (nRead <= 0) { in restoreOneFile() 494 toCopy -= nRead; in restoreOneFile() 500 pipe.write(buffer, 0, nRead); in restoreOneFile() 550 long nRead = instream.read(buffer, 0, toRead); in restoreOneFile() local 551 if (nRead >= 0) { in restoreOneFile() 552 mBytes += nRead; in restoreOneFile() 554 if (nRead <= 0) { in restoreOneFile() [all …]
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/ |
D | WearPackageUtil.java | 96 int nRead; in getFileFromFd() local 100 while ((nRead = fr.read(data, 0, data.length)) != -1) { in getFileFromFd() 101 fo.write(data, 0, nRead); in getFileFromFd()
|
/frameworks/base/core/jni/ |
D | android_view_InputQueue.cpp | 103 ssize_t nRead; in getEvent() local 105 nRead = TEMP_FAILURE_RETRY(read(mDispatchReadFd, &byteread, sizeof(byteread))); in getEvent() 106 if (nRead < 0 && errno != EAGAIN) { in getEvent() 109 } while (nRead > 0); in getEvent()
|
/frameworks/base/cmds/incidentd/tests/ |
D | FdBuffer_test.cpp | 62 ssize_t nRead; in DoDataStream() local 63 while ((nRead = read(rFd.get(), buf, BUFFER_SIZE)) > 0) { in DoDataStream() 65 while (nWritten < nRead) { in DoDataStream() 66 ssize_t amt = write(wFd.get(), buf + nWritten, nRead - nWritten); in DoDataStream() 73 return nRead == 0; in DoDataStream()
|
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
D | PerformFullTransportBackupTask.java | 435 int nRead = 0; in run() local 437 nRead = in.read(buffer); in run() 439 Slog.v(TAG, "in.read(buffer) from app: " + nRead); in run() 441 if (nRead > 0) { in run() 442 out.write(buffer, 0, nRead); in run() 445 backupPackageStatus = transport.sendBackupData(nRead); in run() 448 totalRead += nRead; in run() 455 } while (nRead > 0 in run()
|
/frameworks/base/libs/androidfw/ |
D | BackupHelpers.cpp | 691 ssize_t nRead = read(fd, buf, toRead); in write_tarfile() local 692 if (nRead < 0) { in write_tarfile() 697 } else if (nRead == 0) { in write_tarfile() 707 ssize_t partial = (nRead+512) % 512; in write_tarfile() 710 memset(buf + nRead, 0, remainder); in write_tarfile() 711 nRead += remainder; in write_tarfile() 713 send_tarfile_chunk(writer, buf, nRead); in write_tarfile() 714 toWrite -= nRead; in write_tarfile() 1209 ssize_t nRead; in test_read_header_and_entity() local 1244 nRead = reader.ReadEntityData(buf, bufSize); in test_read_header_and_entity() [all …]
|
/frameworks/native/libs/input/ |
D | InputTransport.cpp | 323 ssize_t nRead; in receiveMessage() local 325 nRead = ::recv(mFd, msg, sizeof(InputMessage), MSG_DONTWAIT); in receiveMessage() 326 } while (nRead == -1 && errno == EINTR); in receiveMessage() 328 if (nRead < 0) { in receiveMessage() 342 if (nRead == 0) { // check for EOF in receiveMessage() 349 if (!msg->isValid(nRead)) { in receiveMessage()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/emergency/ |
D | EmergencyNumberTracker.java | 553 int nRead; in readInputStreamToByteArray() local 556 while ((nRead = inputStream.read(data, 0, data.length)) != -1) { in readInputStreamToByteArray() 557 buffer.write(data, 0, nRead); in readInputStreamToByteArray()
|
/frameworks/native/services/inputflinger/reader/ |
D | EventHub.cpp | 915 ssize_t nRead; in getEvents() local 917 nRead = read(mWakeReadPipeFd, buffer, sizeof(buffer)); in getEvents() 918 } while ((nRead == -1 && errno == EINTR) || nRead == sizeof(buffer)); in getEvents()
|