Home
last modified time | relevance | path

Searched refs:writeFd (Results 1 – 12 of 12) 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/
Dincidentd_util.cpp65 unique_fd& Fpipe::writeFd() { return mWrite; } in writeFd() function in android::os::incidentd::Fpipe
76 if (TEMP_FAILURE_RETRY(dup2(output->writeFd().get(), STDOUT_FILENO)) < 0 || in fork_execute_cmd()
88 output->writeFd().reset(); in fork_execute_cmd()
DWorkDirectory.cpp393 status_t ReportFile::startFilteringData(int writeFd, const IncidentReportArgs& args) { in startFilteringData() argument
398 close(writeFd); in startFilteringData()
407 close(writeFd); in startFilteringData()
416 close(writeFd); in startFilteringData()
424 write_header_section(writeFd, in startFilteringData()
430 write_section(writeFd, FIELD_ID_INCIDENT_METADATA, mEnvelope.metadata()); in startFilteringData()
433 err = filter_and_write_report(writeFd, dataFd, mEnvelope.privacy_policy(), args); in startFilteringData()
439 close(writeFd); in startFilteringData()
DSection.cpp124 status_t readStatus = buffer.readProcessedDataInStream(fd.get(), std::move(p2cPipe.writeFd()), in Execute()
207 fd.get(), std::move(p2cPipe.writeFd()), std::move(c2pPipe.readFd()), this->timeoutMs, in Execute()
270 status_t err = data->section->BlockingCall(data->pipe.writeFd().get()); in worker_thread_func()
278 data->pipe.writeFd().reset(); in worker_thread_func()
414 cmdPipe.writeFd().reset(); in Execute()
711 is_java_process ? 5 : 20, dumpPipe.writeFd().get()); in BlockingCall()
719 dumpPipe.writeFd().reset(); in BlockingCall()
722 dumpPipe.writeFd().reset(); in BlockingCall()
Dincidentd_util.h51 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()
DIncidentService.cpp377 int writeFd = fds[1]; in getIncidentReport() local
379 thread th([file, writeFd, args]() { file->startFilteringData(writeFd, args); }); in getIncidentReport()
DWorkDirectory.h145 status_t startFilteringData(int writeFd, const IncidentReportArgs& args);
/frameworks/base/core/jni/
Dandroid_hardware_camera2_CameraMetadata.cpp378 int writeFd; member
388 p->metadata->dump(p->writeFd, /*verbosity*/2); in CameraMetadata_writeMetadataThread()
390 if (close(p->writeFd) < 0) { in CameraMetadata_writeMetadataThread()
412 int writeFd, readFd; in CameraMetadata_dump() local
422 writeFd = sv[0]; in CameraMetadata_dump()
435 writeFd, in CameraMetadata_dump()
444 close(writeFd); 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
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java485 final ParcelFileDescriptor writeFd = fds[1]; in informAllUidsLocked() local
487 FileOutputStream fout = new ParcelFileDescriptor.AutoCloseOutputStream(writeFd); in informAllUidsLocked()