/system/core/qemu_pipe/ |
D | qemu_pipe.cpp | 28 using android::base::WriteFully; 53 if (WriteFully(fd, pipeName, pipeNameLen + 1U)) { in qemu_pipe_open() 61 if (WriteFully(fd, pipe_prefix, strlen(pipe_prefix)) && in qemu_pipe_open() 62 WriteFully(fd, pipeName, pipeNameLen + 1U)) { in qemu_pipe_open() 74 if (!WriteFully(fd, header, 4)) { in qemu_pipe_frame_send() 78 if (!WriteFully(fd, buff, len)) { in qemu_pipe_frame_send()
|
/system/core/init/ |
D | firmware_handler.cpp | 33 using android::base::WriteFully; 41 WriteFully(loading_fd, "1", 1); in LoadFirmware() 52 WriteFully(loading_fd, response, strlen(response)); in LoadFirmware()
|
/system/core/libunwindstack/tests/ |
D | MemoryOfflineTest.cpp | 33 ASSERT_TRUE(android::base::WriteFully(temp_file.fd, &offset, sizeof(offset))); in SetUp() 34 ASSERT_TRUE(android::base::WriteFully(temp_file.fd, data.data(), data.size())); in SetUp()
|
D | MemoryFileTest.cpp | 175 ASSERT_TRUE(android::base::WriteFully(tf_->fd, buffer.data(), buffer.size())); in TEST_F() 192 ASSERT_TRUE(android::base::WriteFully(tf_->fd, buffer.data(), buffer.size())); in TEST_F() 216 ASSERT_TRUE(android::base::WriteFully(tf_->fd, buffer.data(), buffer.size())); in TEST_F() 243 ASSERT_TRUE(android::base::WriteFully(tf_->fd, buffer.data(), buffer.size())); in TEST_F() 259 ASSERT_TRUE(android::base::WriteFully(tf_->fd, buffer.data(), buffer.size())); in TEST_F()
|
D | MapInfoGetElfTest.cpp | 162 ASSERT_TRUE(android::base::WriteFully(elf_.fd, &ehdr, sizeof(ehdr))); in TEST_F() 192 ASSERT_TRUE(android::base::WriteFully(elf_.fd, buffer.data(), buffer.size())); in TEST_F() 221 ASSERT_TRUE(android::base::WriteFully(elf_.fd, buffer.data(), buffer.size())); in TEST_F() 254 ASSERT_TRUE(android::base::WriteFully(elf_.fd, buffer.data(), buffer.size())); in TEST_F() 282 ASSERT_TRUE(android::base::WriteFully(elf_.fd, buffer.data(), buffer.size())); in TEST_F()
|
D | MapInfoCreateMemoryTest.cpp | 58 ASSERT_TRUE(android::base::WriteFully(fd, buffer.data(), buffer.size())); in InitElf() 65 ASSERT_TRUE(android::base::WriteFully(elf_.fd, buffer.data(), 1024)); in SetUpTestCase() 71 ASSERT_TRUE(android::base::WriteFully(elf_at_1000_.fd, buffer.data(), buffer.size())); in SetUpTestCase() 406 ASSERT_TRUE(android::base::WriteFully(elf_at_1000_.fd, &ehdr, sizeof(ehdr))); in TEST_F()
|
/system/extras/ext4_utils/ |
D | wipe.cpp | 61 if (!android::base::WriteFully(fd, buf, 4096)) { in wipe_block_device()
|
/system/core/fs_mgr/libdm/ |
D | loop_control_test.cpp | 44 if (!android::base::WriteFully(fd, buffer, sizeof(buffer))) { in TempFile()
|
D | dm_test.cpp | 129 ASSERT_TRUE(android::base::WriteFully(tmp1, message1, sizeof(message1))); in TEST() 130 ASSERT_TRUE(android::base::WriteFully(tmp2, message2, sizeof(message2))); in TEST()
|
/system/core/fs_mgr/liblp/ |
D | io_test.cpp | 67 if (!android::base::WriteFully(fd, buffer.get(), size)) { in CreateFakeDisk() 311 ASSERT_TRUE(android::base::WriteFully(fd, &bad_geometry, sizeof(bad_geometry))); in TEST() 329 ASSERT_TRUE(android::base::WriteFully(fd, corruption, sizeof(corruption))); in TEST() 334 ASSERT_TRUE(android::base::WriteFully(fd, corruption, sizeof(corruption))); in TEST() 352 ASSERT_TRUE(android::base::WriteFully(fd, corruption, sizeof(corruption))); in TEST() 359 ASSERT_TRUE(android::base::WriteFully(fd, corruption, sizeof(corruption))); in TEST() 464 EXPECT_TRUE(android::base::WriteFully(fd, new_data.get(), blob.size())); in operator ()() 467 if (!android::base::WriteFully(fd, blob.data(), blob.size())) { in operator ()()
|
D | writer.cpp | 234 return android::base::WriteFully(fd, blob.data(), blob.size()); in DefaultWriter() 274 if (!android::base::WriteFully(fd, zeroes.data(), zeroes.size())) { in FlashPartitionTable() 287 if (!android::base::WriteFully(fd, blob.data(), blob.size())) { in FlashPartitionTable() 295 if (!android::base::WriteFully(fd, blob.data(), blob.size())) { in FlashPartitionTable()
|
/system/extras/verity/fec/ |
D | image.cpp | 184 if (!android::base::WriteFully(fd, ctx->output, ctx->inp_size)) { in image_save() 323 if (!android::base::WriteFully(fd, ctx->fec, ctx->fec_size)) { in image_ecc_save() 331 if (!android::base::WriteFully(fd, padding, FEC_BLOCKSIZE)) { in image_ecc_save() 337 if (!android::base::WriteFully(fd, header, sizeof(header))) { in image_ecc_save()
|
/system/core/libziparchive/ |
D | zip_archive_test.cc | 297 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, kEmptyEntriesZip, sizeof(kEmptyEntriesZip))); in TEST() 322 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, reinterpret_cast<const uint8_t*>(kAbZip), in TEST() 368 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, kEmptyEntriesZip, sizeof(kEmptyEntriesZip))); in TEST() 369 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, trailer, sizeof(trailer))); in TEST() 381 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, data, data_size)); in TEST() 580 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, &zip_data[0], zip_data.size())); in ExtractEntryToMemory() 687 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, &kZipFileWithBrokenLfhSignature[0], in TEST()
|
/system/core/debuggerd/ |
D | debuggerd.cpp | 53 if (!android::base::WriteFully(STDOUT_FILENO, buf, rc)) { in spawn_redirect_thread()
|
D | crash_dump.cpp | 171 if (!android::base::WriteFully(amfd, &datum, 4)) { in activity_manager_notify() 176 if (!android::base::WriteFully(amfd, &datum, 4)) { in activity_manager_notify() 180 if (!android::base::WriteFully(amfd, amfd_data.c_str(), amfd_data.size() + 1)) { in activity_manager_notify()
|
D | debuggerd_test.cpp | 914 ASSERT_TRUE(android::base::WriteFully(input_fd.get(), &pid, sizeof(pid))); in TEST() 981 ASSERT_TRUE(android::base::WriteFully(input_fd.get(), &pid, sizeof(pid))); in TEST() 1017 ASSERT_TRUE(android::base::WriteFully(input_fd.get(), native, sizeof(native))); in TEST() 1024 ASSERT_TRUE(android::base::WriteFully(input_fd.get(), java, sizeof(java))); in TEST() 1055 ASSERT_TRUE(android::base::WriteFully(input_fd.get(), any, sizeof(any))); in TEST()
|
/system/gsid/ |
D | libgsi.cpp | 50 if (!android::base::WriteFully(fd, data.c_str(), data.size())) { in WriteAndSyncFile()
|
/system/core/base/include/android-base/ |
D | file.h | 106 bool WriteFully(int fd, const void* data, size_t byte_count);
|
/system/core/fs_mgr/libfiemap_writer/ |
D | split_fiemap_writer.cpp | 112 if (!android::base::WriteFully(fd, line.data(), line.size())) { in Create() 237 if (!android::base::WriteFully(cursor_fd_, data_ptr, bytes_to_write)) { in Write()
|
/system/extras/perfprofd/ |
D | perfprofd_io.cc | 39 using android::base::WriteFully; 49 return WriteFully(fd_.get(), buffer, size); in Write()
|
/system/netd/server/ |
D | IptablesRestoreController.cpp | 237 if (!android::base::WriteFully((*process)->stdIn, command.data(), command.length())) { in sendCommand() 242 if (!android::base::WriteFully((*process)->stdIn, PING, PING_SIZE)) { in sendCommand()
|
/system/core/base/ |
D | file_test.cpp | 101 TEST(file, WriteFully) { in TEST() argument 104 ASSERT_TRUE(android::base::WriteFully(tf.fd, "abc", 3)); in TEST()
|
/system/nvram/hal/ |
D | fake_nvram_storage.cpp | 127 if (!android::base::WriteFully(data_file_fd.get(), blob.data(), in StoreFile()
|
/system/core/libsysutils/src/ |
D | SocketListener_test.cpp | 76 EXPECT_TRUE(android::base::WriteFully(fd, cmd, strlen(cmd) + 1)) in sendCmd()
|
/system/core/debuggerd/client/ |
D | debuggerd_client.cpp | 243 if (!android::base::WriteFully(output_fd.get(), buf, rc)) { in debuggerd_trigger_dump()
|