/system/core/qemu_pipe/ |
D | qemu_pipe.cpp | 28 using android::base::WriteFully; 52 if (WriteFully(fd, pipeName, pipeNameLen + 1U)) { in qemu_pipe_open() 60 if (WriteFully(fd, pipe_prefix, strlen(pipe_prefix)) && in qemu_pipe_open() 61 WriteFully(fd, pipeName, pipeNameLen + 1U)) { in qemu_pipe_open() 73 if (!WriteFully(fd, header, 4)) { in qemu_pipe_frame_send() 77 if (!WriteFully(fd, buff, len)) { in qemu_pipe_frame_send()
|
/system/core/fs_mgr/libvbmeta/ |
D | writer.cpp | 50 if (!android::base::WriteFully(fd, table.data(), table.size())) { in WritePrimaryVBMetaTable() 62 if (!android::base::WriteFully(fd, table.data(), table.size())) { in WriteBackupVBMetaTable() 74 if (!android::base::WriteFully(fd, vbmeta_image.data(), vbmeta_image.size())) { in WriteVBMetaImage()
|
/system/core/adb/tls/tests/ |
D | tls_connection_test.cpp | 302 EXPECT_TRUE(client_->WriteFully( in TEST_F() 312 EXPECT_TRUE(server_->WriteFully( in TEST_F() 328 EXPECT_FALSE(client_->WriteFully( in TEST_F() 336 EXPECT_FALSE(server_->WriteFully( in TEST_F() 355 EXPECT_TRUE(client_->WriteFully( in TEST_F() 363 EXPECT_TRUE(server_->WriteFully( in TEST_F() 386 EXPECT_TRUE(client_->WriteFully( in TEST_F() 394 EXPECT_FALSE(server_->WriteFully( in TEST_F() 504 EXPECT_FALSE(client_->WriteFully( in TEST_F() 512 EXPECT_FALSE(server_->WriteFully( in TEST_F()
|
/system/extras/libfec/test/ |
D | fec_unittest.cpp | 130 ASSERT_TRUE(android::base::WriteFully(verity_image.fd, image_.data(), in TEST_F() 162 ASSERT_TRUE(android::base::WriteFully(verity_image.fd, image_.data(), in TEST_F() 195 ASSERT_TRUE(android::base::WriteFully(verity_image.fd, image_.data(), in TEST_F() 207 ASSERT_TRUE(android::base::WriteFully(verity_image.fd, corruption.data(), in TEST_F() 223 android::base::WriteFully(avb_image.fd, image_.data(), image_.size())); in TEST_F() 256 android::base::WriteFully(avb_image.fd, image_.data(), image_.size())); in TEST_F() 262 ASSERT_TRUE(android::base::WriteFully(avb_image.fd, corruption.data(), in TEST_F() 278 android::base::WriteFully(avb_image.fd, image_.data(), image_.size())); in TEST_F() 284 ASSERT_TRUE(android::base::WriteFully(avb_image.fd, corruption.data(), in TEST_F()
|
/system/core/libunwindstack/tests/ |
D | MemoryOfflineTest.cpp | 34 ASSERT_TRUE(android::base::WriteFully(temp_file.fd, &offset, sizeof(offset))); in SetUp() 35 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 SetUp() 71 ASSERT_TRUE(android::base::WriteFully(elf_at_1000_.fd, buffer.data(), buffer.size())); in SetUp() 401 ASSERT_TRUE(android::base::WriteFully(elf_at_1000_.fd, &ehdr, sizeof(ehdr))); in TEST_F()
|
/system/libbase/ |
D | abi_compatibility.cpp | 60 bool WriteFully(int fd, const void* data, size_t byte_count) { in WriteFully() function 61 return WriteFully(borrowed_fd(fd), data, byte_count); in WriteFully()
|
/system/core/logd/ |
D | RecordingLogBuffer.cpp | 22 android::base::WriteFully(fd, &meta, sizeof(meta)); in WriteLogMessage() 23 android::base::WriteFully(fd, msg.c_str(), meta.msg_len); in WriteLogMessage()
|
/system/extras/ext4_utils/ |
D | wipe.cpp | 63 if (!android::base::WriteFully(fd, buf, 4096)) { in wipe_block_device()
|
/system/core/init/ |
D | firmware_handler.cpp | 42 using android::base::WriteFully; 50 WriteFully(loading_fd, "1", 1); in LoadFirmware() 60 WriteFully(loading_fd, response, strlen(response)); in LoadFirmware()
|
/system/core/fs_mgr/libdm/ |
D | loop_control_test.cpp | 44 if (!android::base::WriteFully(fd, buffer, sizeof(buffer))) { in TempFile()
|
/system/core/fs_mgr/liblp/ |
D | io_test.cpp | 70 if (!android::base::WriteFully(fd, buffer.get(), size)) { in CreateFakeDisk() 314 ASSERT_TRUE(android::base::WriteFully(fd, &bad_geometry, sizeof(bad_geometry))); in TEST_F() 332 ASSERT_TRUE(android::base::WriteFully(fd, corruption, sizeof(corruption))); in TEST_F() 337 ASSERT_TRUE(android::base::WriteFully(fd, corruption, sizeof(corruption))); in TEST_F() 355 ASSERT_TRUE(android::base::WriteFully(fd, corruption, sizeof(corruption))); in TEST_F() 362 ASSERT_TRUE(android::base::WriteFully(fd, corruption, sizeof(corruption))); in TEST_F() 467 EXPECT_TRUE(android::base::WriteFully(fd, new_data.get(), blob.size())); in operator ()() 470 if (!android::base::WriteFully(fd, blob.data(), blob.size())) { in operator ()()
|
D | writer.cpp | 241 return android::base::WriteFully(fd, blob.data(), blob.size()); in DefaultWriter() 281 if (!android::base::WriteFully(fd, zeroes.data(), zeroes.size())) { in FlashPartitionTable() 294 if (!android::base::WriteFully(fd, blob.data(), blob.size())) { in FlashPartitionTable() 302 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/gsid/ |
D | partition_installer.cpp | 252 if (!android::base::WriteFully(system_device_->fd(), data, bytes)) { in CommitGsiChunk() 304 if (!android::base::WriteFully(device->fd(), zeroes.data(), zeroes.size())) { in Format() 350 if (!android::base::WriteFully(device->fd(), zeroes.data(), zeroes.size())) { in WipeWritable()
|
D | libgsi.cpp | 57 if (!android::base::WriteFully(fd, data.c_str(), data.size())) { in WriteAndSyncFile()
|
/system/core/adb/tls/include/adb/tls/ |
D | tls_connection.h | 109 virtual bool WriteFully(std::string_view data) = 0;
|
/system/core/adb/pairing_connection/ |
D | pairing_connection.cpp | 208 if (!tls_->WriteFully(std::string_view(reinterpret_cast<const char*>(&network_header), in WriteHeader() 210 !tls_->WriteFully(payload)) { in WriteHeader() 351 if (!tls_->WriteFully( in DoExchangePeerInfo() 358 if (!tls_->WriteFully( in DoExchangePeerInfo()
|
/system/core/debuggerd/ |
D | debuggerd.cpp | 53 if (!android::base::WriteFully(STDOUT_FILENO, buf, rc)) { in spawn_redirect_thread()
|
/system/core/fs_mgr/libsnapshot/ |
D | test_helpers.cpp | 31 using android::base::WriteFully; 103 if (!WriteFully(fd.get(), buf, n)) { in WriteRandomData()
|
/system/libbase/include/android-base/ |
D | file.h | 107 bool WriteFully(borrowed_fd fd, const void* data, size_t byte_count);
|
/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/libziparchive/ |
D | zip_archive_test.cc | 400 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, leading_garbage.c_str(), in TEST() 405 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, valid_content.c_str(), valid_content.size())); in TEST() 408 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, ending_garbage.c_str(), in TEST() 501 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, kEmptyEntriesZip, sizeof(kEmptyEntriesZip))); in TEST() 527 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, reinterpret_cast<const uint8_t*>(kAbZip), in TEST() 571 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, kEmptyEntriesZip, sizeof(kEmptyEntriesZip))); in TEST() 572 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, trailer, sizeof(trailer))); in TEST() 584 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, data, data_size)); in TEST() 779 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, &zip_data[0], zip_data.size())); in ExtractEntryToMemory() 883 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, &kZipFileWithBrokenLfhSignature[0], in TEST()
|