/system/update_engine/payload_consumer/ |
D | verity_writer_interface.h | 44 virtual bool Finalize(FileDescriptor* read_fd, FileDescriptor* write_fd) { in Finalize() argument 46 TEST_AND_RETURN_FALSE(IncrementalFinalize(read_fd, write_fd)); in Finalize() 52 virtual bool IncrementalFinalize(FileDescriptor* read_fd,
|
D | verity_writer_android.h | 89 bool Finalize(FileDescriptor* read_fd, FileDescriptor* write_fd) override; 90 bool IncrementalFinalize(FileDescriptor* read_fd, 100 static bool EncodeFEC(FileDescriptor* read_fd,
|
D | verity_writer_android.cc | 237 bool VerityWriterAndroid::Finalize(FileDescriptor* read_fd, in Finalize() argument 265 TEST_AND_RETURN_FALSE(EncodeFEC(read_fd, in Finalize() 278 bool VerityWriterAndroid::IncrementalFinalize(FileDescriptor* read_fd, in IncrementalFinalize() argument 312 TEST_AND_RETURN_FALSE(encodeFEC_.Compute(read_fd, write_fd)); in IncrementalFinalize() 328 bool VerityWriterAndroid::EncodeFEC(FileDescriptor* read_fd, in EncodeFEC() argument 366 TEST_AND_RETURN_FALSE(utils::PReadAll(read_fd, in EncodeFEC() 391 read_fd, fec_read.data(), fec_read.size(), fec_offset, &bytes_read)); in EncodeFEC()
|
D | verity_writer_stub.cc | 39 bool VerityWriterStub::Finalize(FileDescriptorPtr read_fd, in Finalize() argument
|
D | verity_writer_stub.h | 31 bool Finalize(FileDescriptorPtr read_fd, FileDescriptorPtr write_fd) override;
|
/system/tools/aidl/tests/ |
D | aidl_test_client_file_descriptors.cpp | 68 unique_fd read_fd; in TEST_F() local 70 DoPipe(&read_fd, &write_fd); in TEST_F() 81 ReadFdToStringAndCompare(read_fd, "ReturnString"); in TEST_F() 111 unique_fd read_fd; in TEST_F() local 113 DoPipe(&read_fd, &write_fd); in TEST_F() 125 ReadFdToStringAndCompare(read_fd, "ReturnString"); in TEST_F()
|
/system/connectivity/wificond/tests/ |
D | shell_utils.cpp | 64 unique_fd read_fd(fds[0]); in RunShellCommand() local 66 fcntl(read_fd.get(), F_SETFL, O_CLOEXEC | O_NONBLOCK); in RunShellCommand() 76 read_fd.reset(); in RunShellCommand() 87 shell_output.fd = read_fd.get(); in RunShellCommand()
|
/system/extras/tests/fstest/ |
D | recovery_test.cpp | 65 int read_fd = open(test_file_, O_RDONLY); in verify_read() local 66 ASSERT_TRUE(read_fd); in verify_read() 67 ASSERT_EQ(read(read_fd, read_buff, sizeof(read_buff)), 4); in verify_read() 69 close(read_fd); in verify_read()
|
/system/core/fastboot/ |
D | vendor_boot_img_utils_test.cpp | 149 android::base::unique_fd read_fd(TEMP_FAILURE_RETRY( in OpenImpl() local 151 if (!read_fd.ok()) return ErrnoError() << "open(" << abs_path_ << ")"; in OpenImpl() 152 auto size = FileSize(read_fd, abs_path_); in OpenImpl() 156 auto borrowed_fd = Transform(abs_path_, std::move(read_fd)); in OpenImpl() 170 android::base::unique_fd read_fd) = 0; 180 android::base::unique_fd read_fd) override { in Transform() 181 owned_fd_ = std::move(read_fd); in Transform() 194 android::base::unique_fd read_fd) override { in Transform() 197 auto content = ReadStartOfFdToString(read_fd, abs_path); in Transform()
|
/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/gtest_isolated/ |
D | Isolate.cpp | 200 static bool Pipe(int* read_fd, int* write_fd) { in Pipe() argument 218 *read_fd = pipefd[0]; in Pipe() 225 int read_fd, write_fd; in LaunchTests() local 226 if (!Pipe(&read_fd, &write_fd)) { in LaunchTests() 229 if (fcntl(read_fd, F_SETFL, O_NONBLOCK) == -1) { in LaunchTests() 238 close(read_fd); in LaunchTests() 254 Test* test = new Test(tests_[cur_test_index_], cur_test_index_, run_index, read_fd); in LaunchTests()
|
/system/core/fs_mgr/libsnapshot/libsnapshot_cow/ |
D | create_cow.cpp | 318 unique_fd read_fd; in VerifyMergeOrder() local 319 read_fd.reset(open(patch_file_.c_str(), O_RDONLY)); in VerifyMergeOrder() 320 if (read_fd < 0) { in VerifyMergeOrder() 325 if (!reader.Parse(read_fd)) { in VerifyMergeOrder()
|
/system/extras/simpleperf/ |
D | cmd_record_test.cpp | 490 int read_fd = pipefd[0]; in TEST() local 494 android::base::ReadFully(read_fd, data, 7); in TEST() 502 close(read_fd); in TEST() 538 int read_fd = pipefd[0]; in TEST() local 542 close(read_fd); in TEST() 548 ASSERT_TRUE(android::base::ReadFdToString(read_fd, &s)); in TEST() 549 close(read_fd); in TEST()
|
/system/security/keystore2/test_utils/ |
D | run_as.rs | 151 let (read_fd, write_fd) = nix_pipe()?; in pipe() 152 Ok((PipeReader(read_fd), PipeWriter(write_fd))) in pipe()
|
/system/tools/aidl/tests/rust/ |
D | test_client.rs | 399 let (read_fd, write_fd) = build_pipe(); in test_parcel_file_descriptor() 400 let mut read_file = File::from(read_fd); in test_parcel_file_descriptor() 419 let (read_fd, write_fd) = build_pipe(); in test_parcel_file_descriptor_array() 421 [binder::ParcelFileDescriptor::new(read_fd), binder::ParcelFileDescriptor::new(write_fd)]; in test_parcel_file_descriptor_array()
|