Home
last modified time | relevance | path

Searched refs:WriteFully (Results 1 – 25 of 41) sorted by relevance

12

/system/core/qemu_pipe/
Dqemu_pipe.cpp28 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/
Dfirmware_handler.cpp33 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/
DMemoryOfflineTest.cpp33 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()
DMemoryFileTest.cpp175 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()
DMapInfoGetElfTest.cpp162 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()
DMapInfoCreateMemoryTest.cpp58 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/
Dwipe.cpp61 if (!android::base::WriteFully(fd, buf, 4096)) { in wipe_block_device()
/system/core/fs_mgr/libdm/
Dloop_control_test.cpp44 if (!android::base::WriteFully(fd, buffer, sizeof(buffer))) { in TempFile()
Ddm_test.cpp129 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/
Dio_test.cpp67 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 ()()
Dwriter.cpp234 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/
Dimage.cpp184 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/
Dzip_archive_test.cc297 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/
Ddebuggerd.cpp53 if (!android::base::WriteFully(STDOUT_FILENO, buf, rc)) { in spawn_redirect_thread()
Dcrash_dump.cpp171 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()
Ddebuggerd_test.cpp914 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/
Dlibgsi.cpp50 if (!android::base::WriteFully(fd, data.c_str(), data.size())) { in WriteAndSyncFile()
/system/core/base/include/android-base/
Dfile.h106 bool WriteFully(int fd, const void* data, size_t byte_count);
/system/core/fs_mgr/libfiemap_writer/
Dsplit_fiemap_writer.cpp112 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/
Dperfprofd_io.cc39 using android::base::WriteFully;
49 return WriteFully(fd_.get(), buffer, size); in Write()
/system/netd/server/
DIptablesRestoreController.cpp237 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/
Dfile_test.cpp101 TEST(file, WriteFully) { in TEST() argument
104 ASSERT_TRUE(android::base::WriteFully(tf.fd, "abc", 3)); in TEST()
/system/nvram/hal/
Dfake_nvram_storage.cpp127 if (!android::base::WriteFully(data_file_fd.get(), blob.data(), in StoreFile()
/system/core/libsysutils/src/
DSocketListener_test.cpp76 EXPECT_TRUE(android::base::WriteFully(fd, cmd, strlen(cmd) + 1)) in sendCmd()
/system/core/debuggerd/client/
Ddebuggerd_client.cpp243 if (!android::base::WriteFully(output_fd.get(), buf, rc)) { in debuggerd_trigger_dump()

12