Home
last modified time | relevance | path

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

123

/system/core/qemu_pipe/
Dqemu_pipe.cpp28 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/
Dwriter.cpp50 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/
Dtls_connection_test.cpp302 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/
Dfec_unittest.cpp130 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/
DMemoryOfflineTest.cpp34 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()
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 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/
Dabi_compatibility.cpp60 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/
DRecordingLogBuffer.cpp22 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/
Dwipe.cpp63 if (!android::base::WriteFully(fd, buf, 4096)) { in wipe_block_device()
/system/core/init/
Dfirmware_handler.cpp42 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/
Dloop_control_test.cpp44 if (!android::base::WriteFully(fd, buffer, sizeof(buffer))) { in TempFile()
/system/core/fs_mgr/liblp/
Dio_test.cpp70 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 ()()
Dwriter.cpp241 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/
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/gsid/
Dpartition_installer.cpp252 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()
Dlibgsi.cpp57 if (!android::base::WriteFully(fd, data.c_str(), data.size())) { in WriteAndSyncFile()
/system/core/adb/tls/include/adb/tls/
Dtls_connection.h109 virtual bool WriteFully(std::string_view data) = 0;
/system/core/adb/pairing_connection/
Dpairing_connection.cpp208 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/
Ddebuggerd.cpp53 if (!android::base::WriteFully(STDOUT_FILENO, buf, rc)) { in spawn_redirect_thread()
/system/core/fs_mgr/libsnapshot/
Dtest_helpers.cpp31 using android::base::WriteFully;
103 if (!WriteFully(fd.get(), buf, n)) { in WriteRandomData()
/system/libbase/include/android-base/
Dfile.h107 bool WriteFully(borrowed_fd fd, const void* data, size_t byte_count);
/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/libziparchive/
Dzip_archive_test.cc400 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()

123