/system/update_engine/payload_consumer/ |
D | verity_writer_android.cc | 108 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 …]
|
D | verity_writer_android.h | 37 bool Finalize(FileDescriptorPtr read_fd, FileDescriptorPtr write_fd) override; 46 FileDescriptorPtr write_fd,
|
D | verity_writer_stub.cc | 40 FileDescriptorPtr write_fd) { in Finalize() argument
|
D | verity_writer_stub.h | 31 bool Finalize(FileDescriptorPtr read_fd, FileDescriptorPtr write_fd) override;
|
D | verity_writer_interface.h | 43 FileDescriptorPtr write_fd) = 0;
|
/system/tools/aidl/tests/ |
D | aidl_test_client_file_descriptors.cpp | 69 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/ |
D | shell_utils.cpp | 65 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/ |
D | recovery_test.cpp | 57 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/ |
D | PerfTest.h | 62 Pipe(int read_fd, int write_fd) : fd_read_{read_fd}, fd_write_{write_fd} {} in Pipe() argument
|
/system/testing/gtest_extras/ |
D | Isolate.cpp | 197 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/ |
D | cmd_record_test.cpp | 443 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()
|