Home
last modified time | relevance | path

Searched refs:writeFd (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/cmds/incidentd/tests/
DFdBuffer_test.cpp131 write(c2pPipe.writeFd(), "poo", 3); in TEST_F()
136 c2pPipe.writeFd().reset(); in TEST_F()
155 p2cPipe.writeFd().reset(); in TEST_F()
157 ASSERT_TRUE(WriteStringToFd(HEAD, c2pPipe.writeFd())); in TEST_F()
158 ASSERT_TRUE(DoDataStream(p2cPipe.readFd(), c2pPipe.writeFd())); in TEST_F()
160 c2pPipe.writeFd().reset(); in TEST_F()
165 c2pPipe.writeFd().reset(); in TEST_F()
168 buffer.readProcessedDataInStream(tf.fd, std::move(p2cPipe.writeFd()), in TEST_F()
185 p2cPipe.writeFd().reset(); in TEST_F()
191 ASSERT_TRUE(WriteStringToFd(data, c2pPipe.writeFd())); in TEST_F()
[all …]
/frameworks/base/cmds/incidentd/src/
DWorkDirectory.cpp397 status_t ReportFile::startFilteringData(int writeFd, const IncidentReportArgs& args) { in startFilteringData() argument
402 close(writeFd); in startFilteringData()
411 close(writeFd); in startFilteringData()
420 close(writeFd); in startFilteringData()
429 close(writeFd); in startFilteringData()
433 zipPid = fork_execute_cmd((char* const*)GZIP, zipPipe.readFd().release(), writeFd, &status); in startFilteringData()
434 close(writeFd); in startFilteringData()
439 writeFd = zipPipe.writeFd().release(); in startFilteringData()
446 write_header_section(writeFd, in startFilteringData()
452 write_section(writeFd, FIELD_ID_INCIDENT_METADATA, mEnvelope.metadata()); in startFilteringData()
[all …]
Dincidentd_util.cpp89 unique_fd& Fpipe::writeFd() { return mWrite; } in writeFd() function in android::os::incidentd::Fpipe
96 fcntl(input->writeFd().get(), F_SETFD, FD_CLOEXEC); in fork_execute_cmd()
98 int out = output->writeFd().release(); in fork_execute_cmd()
DSection.cpp126 status_t readStatus = buffer.readProcessedDataInStream(fd.get(), std::move(p2cPipe.writeFd()), in Execute()
209 fd.get(), std::move(p2cPipe.writeFd()), std::move(c2pPipe.readFd()), this->timeoutMs, in Execute()
276 status_t err = data->section->BlockingCall(data->pipe.writeFd()); in Execute()
283 data->pipe.writeFd().reset(); in Execute()
379 cmdPipe.writeFd().reset(); in Execute()
480 std::thread worker([write_fd = std::move(dumpPipe.writeFd()), service = std::move(service), in Execute()
807 is_java_process ? 5 : 20, dumpPipe.writeFd().get()); in BlockingCall()
815 dumpPipe.writeFd().reset(); in BlockingCall()
818 dumpPipe.writeFd().reset(); in BlockingCall()
Dincidentd_util.h73 unique_fd& writeFd();
DBroadcaster.cpp402 int writeFd = fds[1]; in send_to_dropbox() local
405 thread th([file, writeFd, args]() { file->startFilteringData(writeFd, args); }); in send_to_dropbox()
DWorkDirectory.h145 status_t startFilteringData(int writeFd, const IncidentReportArgs& args);
DIncidentService.cpp459 int writeFd = fds[1]; in getIncidentReport() local
461 thread th([file, writeFd, args]() { file->startFilteringData(writeFd, args); }); in getIncidentReport()
DReporter.cpp194 return mZipPid > 0 ? mZipPipe.writeFd().get() : mFd; in getFd()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_CameraMetadata.cpp369 int writeFd; member
379 p->metadata->dump(p->writeFd, /*verbosity*/2); in CameraMetadata_writeMetadataThread()
381 if (close(p->writeFd) < 0) { in CameraMetadata_writeMetadataThread()
403 int writeFd, readFd; in CameraMetadata_dump() local
413 writeFd = sv[0]; in CameraMetadata_dump()
426 writeFd, in CameraMetadata_dump()
435 close(writeFd); in CameraMetadata_dump()
/frameworks/base/services/core/jni/
Dcom_android_server_pm_PackageManagerShellCommandDataLoader.cpp723 auto& writeFd = writeFds[fileIdx]; in receiver() local
724 if (writeFd < 0) { in receiver()
725 writeFd.reset(this->mIfs->openForSpecialOps(fileId).release()); in receiver()
726 if (writeFd < 0) { in receiver()
728 -writeFd); in receiver()
734 .fileFd = writeFd, in receiver()
/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
/frameworks/native/libs/binder/ndk/include_ndk/android/
Dbinder_parcel_utils.h515 int writeFd = vector->at(index).get(); variable
516 if (writeFd < 0) {
519 return AParcel_writeParcelFileDescriptor(parcel, writeFd);
/frameworks/base/apex/statsd/service/java/com/android/server/stats/
DStatsCompanionService.java192 final ParcelFileDescriptor writeFd = fds[1]; in informAllUids() local
193 FileOutputStream fout = new ParcelFileDescriptor.AutoCloseOutputStream(writeFd); in informAllUids()
/frameworks/base/services/incremental/
DIncrementalService.cpp1603 const auto writeFd = mIncFs->openForSpecialOps(ifs->control, libFileId); in extractZipFile() local
1604 if (!writeFd.ok()) { in extractZipFile()
1605 LOG(ERROR) << "Failed to open write fd for: " << targetLibPath << " errno: " << writeFd; in extractZipFile()
1617 .fileFd = writeFd.get(), in extractZipFile()