Home
last modified time | relevance | path

Searched refs:write_fd (Results 1 – 11 of 11) sorted by relevance

/system/update_engine/payload_consumer/
Dverity_writer_android.cc108 FileDescriptorPtr write_fd) { in Finalize() argument
122 write_fd->Seek(partition_->hash_tree_offset, SEEK_SET)); in Finalize()
124 hash_tree_builder_->WriteHashTree([write_fd](auto data, auto size) { in Finalize()
125 return utils::WriteAll(write_fd, data, size); in Finalize()
133 write_fd, in Finalize()
146 FileDescriptorPtr write_fd, in EncodeFEC() argument
168 write_fd = std::make_shared<CachedFileDescriptor>(write_fd, 1 * (1 << 20)); in EncodeFEC()
211 CHECK(write_fd); in EncodeFEC()
212 write_fd->Seek(fec_offset, SEEK_SET); in EncodeFEC()
213 if (!utils::WriteAll(write_fd, fec.data(), fec.size())) { in EncodeFEC()
[all …]
Dverity_writer_android.h37 bool Finalize(FileDescriptorPtr read_fd, FileDescriptorPtr write_fd) override;
46 FileDescriptorPtr write_fd,
Dverity_writer_stub.cc40 FileDescriptorPtr write_fd) { in Finalize() argument
Dverity_writer_stub.h31 bool Finalize(FileDescriptorPtr read_fd, FileDescriptorPtr write_fd) override;
Dverity_writer_interface.h43 FileDescriptorPtr write_fd) = 0;
/system/tools/aidl/tests/
Daidl_test_client_file_descriptors.cpp69 unique_fd write_fd; in TEST_F() local
70 DoPipe(&read_fd, &write_fd); in TEST_F()
73 auto status = cpp_java_tests->RepeatFileDescriptor(std::move(write_fd), &return_fd); in TEST_F()
112 unique_fd write_fd; in TEST_F() local
113 DoPipe(&read_fd, &write_fd); in TEST_F()
117 service->RepeatParcelFileDescriptor(ParcelFileDescriptor(std::move(write_fd)), &return_fd); in TEST_F()
/system/connectivity/wificond/tests/
Dshell_utils.cpp65 unique_fd write_fd(fds[1]); in RunShellCommand() local
75 dup2(write_fd.get(), 1); // Replace existing stdout with the pipe. in RunShellCommand()
77 write_fd.reset(); in RunShellCommand()
84 write_fd.reset(); // Close this or we never get HUP from child. in RunShellCommand()
/system/extras/tests/fstest/
Drecovery_test.cpp57 int write_fd = open(test_file_, O_CREAT | O_WRONLY, 0666); in verify_write() local
58 ASSERT_TRUE(write_fd); in verify_write()
59 ASSERT_EQ(write(write_fd, "TEST", 4), 4); in verify_write()
60 close(write_fd); in verify_write()
/system/libhwbinder/vts/performance/
DPerfTest.h62 Pipe(int read_fd, int write_fd) : fd_read_{read_fd}, fd_write_{write_fd} {} in Pipe() argument
/system/testing/gtest_extras/
DIsolate.cpp197 static bool Pipe(int* read_fd, int* write_fd) { in Pipe() argument
216 *write_fd = pipefd[1]; in Pipe()
222 int read_fd, write_fd; in LaunchTests() local
223 if (!Pipe(&read_fd, &write_fd)) { in LaunchTests()
238 if (dup2(write_fd, STDOUT_FILENO) == -1) { in LaunchTests()
241 if (dup2(write_fd, STDERR_FILENO) == -1) { in LaunchTests()
244 close(write_fd); in LaunchTests()
260 close(write_fd); in LaunchTests()
/system/extras/simpleperf/
Dcmd_record_test.cpp443 int write_fd = pipefd[1]; in TEST() local
450 RecordCmd()->Run({"-o", tmpfile.path, "--start_profiling_fd", std::to_string(write_fd), "-e", in TEST()
453 close(write_fd); in TEST()
488 int write_fd = pipefd[1]; in TEST() local
492 exit(RunRecordCmd({"--start_profiling_fd", std::to_string(write_fd)}) ? 0 : 1); in TEST()
495 close(write_fd); in TEST()