Home
last modified time | relevance | path

Searched refs:readFd (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/cmds/incidentd/tests/
DFdBuffer_test.cpp129 c2pPipe.readFd().reset(); in TEST_F()
138 status_t status = buffer.read(c2pPipe.readFd().get(), QUICK_TIMEOUT_MS); in TEST_F()
156 c2pPipe.readFd().reset(); in TEST_F()
158 ASSERT_TRUE(DoDataStream(p2cPipe.readFd(), c2pPipe.writeFd())); in TEST_F()
159 p2cPipe.readFd().reset(); in TEST_F()
164 p2cPipe.readFd().reset(); in TEST_F()
169 std::move(c2pPipe.readFd()), READ_TIMEOUT)); in TEST_F()
186 c2pPipe.readFd().reset(); in TEST_F()
189 ASSERT_TRUE(ReadFdToString(p2cPipe.readFd(), &data)); in TEST_F()
192 p2cPipe.readFd().reset(); in TEST_F()
[all …]
/frameworks/native/libs/binder/ndk/include_ndk/android/
Dbinder_parcel_utils.h217 int readFd; in AParcel_readNullableParcelFileDescriptor() local
218 binder_status_t status = AParcel_readParcelFileDescriptor(parcel, &readFd); in AParcel_readNullableParcelFileDescriptor()
220 fd->set(readFd); in AParcel_readNullableParcelFileDescriptor()
241 int readFd; in AParcel_readRequiredParcelFileDescriptor() local
242 binder_status_t status = AParcel_readParcelFileDescriptor(parcel, &readFd); in AParcel_readRequiredParcelFileDescriptor()
244 if (readFd < 0) { in AParcel_readRequiredParcelFileDescriptor()
247 fd->set(readFd); in AParcel_readRequiredParcelFileDescriptor()
531 int readFd; variable
532 binder_status_t status = AParcel_readParcelFileDescriptor(parcel, &readFd);
534 if (readFd < 0) {
[all …]
/frameworks/base/cmds/incidentd/src/
Dincidentd_util.cpp87 unique_fd& Fpipe::readFd() { return mRead; } in readFd() function in android::os::incidentd::Fpipe
94 in = input->readFd().release(); in fork_execute_cmd()
100 fcntl(output->readFd().get(), F_SETFD, FD_CLOEXEC); in fork_execute_cmd()
DSection.cpp127 std::move(c2pPipe.readFd()), in Execute()
209 fd.get(), std::move(p2cPipe.writeFd()), std::move(c2pPipe.readFd()), this->timeoutMs, in Execute()
292 err = buffer.read(data->pipe.readFd().get(), this->timeoutMs); in Execute()
381 status_t readStatus = buffer.read(ihPipe.readFd().get(), this->timeoutMs); in Execute()
504 status_t readStatus = buffer.read(dumpPipe.readFd(), this->timeoutMs); in Execute()
505 dumpPipe.readFd().reset(); in Execute()
804 dumpPipe.readFd().reset(); in BlockingCall()
822 err = buffer.readFully(dumpPipe.readFd().get()); in BlockingCall()
827 dumpPipe.readFd().reset(); in BlockingCall()
853 dumpPipe.readFd().reset(); in BlockingCall()
Dincidentd_util.h72 unique_fd& readFd();
DBroadcaster.cpp401 int readFd = fds[0]; in send_to_dropbox() local
410 Status status = dropbox->addFile(String16("incident"), readFd, 0); in send_to_dropbox()
DReporter.cpp207 pid_t pid = fork_execute_cmd((char* const*)GZIP, mZipPipe.readFd().release(), mFd, &status); in initGzipIfNecessary()
DWorkDirectory.cpp433 zipPid = fork_execute_cmd((char* const*)GZIP, zipPipe.readFd().release(), writeFd, &status); in startFilteringData()
/frameworks/base/core/java/com/android/internal/os/
DTransferPipe.java253 ParcelFileDescriptor readFd = getReadFd(); in run() local
254 if (readFd == null) { in run()
258 fis = new FileInputStream(readFd.getFileDescriptor()); in run()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_CameraMetadata.cpp403 int writeFd, readFd; in CameraMetadata_dump() local
414 readFd = sv[1]; in CameraMetadata_dump()
436 close(readFd); in CameraMetadata_dump()
455 while ((res = TEMP_FAILURE_RETRY(read(readFd, &out[0], /*count*/1))) > 0) { in CameraMetadata_dump()
473 close(readFd); in CameraMetadata_dump()
/frameworks/native/libs/binder/tests/
DbinderThroughputTest.cpp55 Pipe(int readFd, int writeFd) : m_readFd{readFd}, m_writeFd{writeFd} {} in Pipe() argument
Dschd-dbg.cpp154 Pipe(int readFd, int writeFd) : m_readFd{readFd}, m_writeFd{writeFd} { in Pipe() argument