Home
last modified time | relevance | path

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

12

/art/libelffile/stream/
Dbuffered_output_stream.cc32 bool BufferedOutputStream::WriteFully(const void* buffer, size_t byte_count) { in WriteFully() function in art::BufferedOutputStream
37 return out_->WriteFully(buffer, byte_count); in WriteFully()
57 success = out_->WriteFully(&buffer_[0], used_); in FlushBuffer()
Dfile_output_stream.cc28 bool FileOutputStream::WriteFully(const void* buffer, size_t byte_count) { in WriteFully() function in art::FileOutputStream
29 return file_->WriteFully(buffer, byte_count); in WriteFully()
Derror_delaying_output_stream.h39 bool WriteFully(const void* buffer, size_t byte_count) override { in WriteFully() function
41 if (!output_->WriteFully(buffer, byte_count)) { in WriteFully()
Dfile_output_stream.h32 bool WriteFully(const void* buffer, size_t byte_count) override;
Dbuffered_output_stream.h34 bool WriteFully(const void* buffer, size_t byte_count) override;
Doutput_stream.h44 virtual bool WriteFully(const void* buffer, size_t byte_count) = 0;
Dvector_output_stream.h34 bool WriteFully(const void* buffer, size_t byte_count) override { in WriteFully() function
/art/libartbase/base/unix_file/
Dfd_file_test.cc154 ASSERT_TRUE(src.WriteFully(src_data, sizeof(src_data))); // Including the zero terminator. in TEST_F()
217 EXPECT_TRUE(file.WriteFully(&buffer, sizeof(buffer))); in TEST_F()
241 EXPECT_TRUE(tmp.GetFile()->WriteFully(&buffer[0], length)); in TEST_F()
245 EXPECT_TRUE(tmp2.GetFile()->WriteFully(&buffer[0], length)); in TEST_F()
257 EXPECT_TRUE(tmp3.GetFile()->WriteFully(&buffer[0], length)); in TEST_F()
264 EXPECT_TRUE(tmp4.GetFile()->WriteFully(&buffer[0], length)); in TEST_F()
271 EXPECT_TRUE(tmp5.GetFile()->WriteFully(&buffer[0], length)); in TEST_F()
277 EXPECT_TRUE(tmp6.GetFile()->WriteFully(&buffer[0], length)); in TEST_F()
286 ASSERT_TRUE(file.WriteFully("foo", 3)); in TEST_F()
Dfd_file.h102 bool WriteFully(const void* buffer, size_t byte_count) WARN_UNUSED;
/art/compiler/linker/
Doutput_stream_test.cc46 EXPECT_TRUE(output_stream_->WriteFully(buf, 2)); in GenerateTestOutput()
50 EXPECT_TRUE(output_stream_->WriteFully(buf, 4)); in GenerateTestOutput()
52 EXPECT_TRUE(output_stream_->WriteFully(buf, 6)); in GenerateTestOutput()
110 bool WriteFully(const void* buffer ATTRIBUTE_UNUSED, in TEST_F() function
/art/compiler/jit/
Djit_logger.cc65 bool res = perf_file_->WriteFully(str.c_str(), str.size()); in WritePerfMapLog()
243 bool res = jit_dump_file_->WriteFully(reinterpret_cast<const char*>(&header), sizeof(header)); in WriteJitDumpHeader()
291 UNUSED(jit_dump_file_->WriteFully(reinterpret_cast<const char*>(&jit_code), sizeof(jit_code))); in WriteJitDumpLog()
292 UNUSED(jit_dump_file_->WriteFully(method_name.c_str(), method_name.size() + 1)); in WriteJitDumpLog()
293 UNUSED(jit_dump_file_->WriteFully(ptr, code_size)); in WriteJitDumpLog()
/art/dex2oat/linker/
Drelative_patcher.cc131 if (UNLIKELY(!out->WriteFully(kPadding, aligned_code_delta))) { in WriteCodeAlignment()
139 if (UNLIKELY(!out->WriteFully(thunk.data(), thunk.size()))) { in WriteThunk()
147 if (UNLIKELY(!out->WriteFully(thunk.data(), thunk.size()))) { in WriteMiscThunk()
Doat_writer_test.cc334 if (!zip_file_->WriteFully(&file_header, sizeof(file_header)) || in AddFile()
335 !zip_file_->WriteFully(location, file_header.filename_length) || in AddFile()
336 !zip_file_->WriteFully(data, size)) { in AddFile()
358 if (!zip_file_->WriteFully(&file_data.cdfh, sizeof(file_data.cdfh)) || in Finish()
359 !zip_file_->WriteFully(file_data.location, file_data.cdfh.filename_length)) { in Finish()
370 zip_file_->WriteFully(&eocd_record, sizeof(eocd_record)) && in Finish()
606 bool success = dex_file1.GetFile()->WriteFully(&dex_file1_data->GetHeader(), in TestDexFileInput()
623 success = dex_file2.GetFile()->WriteFully(&dex_file2_data->GetHeader(), in TestDexFileInput()
730 bool success = dex_file1.GetFile()->WriteFully(&dex_file1_data->GetHeader(), in TestZipFileInput()
748 success = dex_file2.GetFile()->WriteFully(&dex_file2_data->GetHeader(), in TestZipFileInput()
Doat_writer.cc117 bool WriteFully(const void* buffer, size_t byte_count) override { in WriteFully() function in art::linker::OatWriter::ChecksumUpdatingOutputStream
125 return out_->WriteFully(buffer, byte_count); in WriteFully()
1756 if (!out->WriteFully(&method_header, sizeof(method_header))) { in VisitMethod()
1869 if (!out->WriteFully(quick_code.data(), code_size)) { in VisitMethod()
2798 if (!out->WriteFully(oat_header_.get(), header_size)) { in WriteHeader()
2864 if (UNLIKELY(!out->WriteFully(code_info_data_.data(), code_info_data_.size()))) { in WriteMaps()
2910 if (!out->WriteFully(storage.get(), mappings_size)) { in WriteIndexBssMapping()
3033 out->WriteFully(&padding, 1); \ in WriteCode()
3036 if (!out->WriteFully((field)->data(), (field)->size())) { \ in WriteCode()
3107 if (!out->WriteFully(data.data(), data.size() * sizeof(data[0]))) { in WriteDataBimgRelRo()
[all …]
Drelative_patcher_test.h150 out_->WriteFully(fake_trampoline, kTrampolineSize); in Link()
162 out_->WriteFully(kPadding, alignment_size); in Link()
165 out_->WriteFully(fake_header, sizeof(OatQuickMethodHeader)); in Link()
208 out_->WriteFully(&code[0], code.size()); in Link()
Dmulti_oat_relative_patcher_test.cc234 vos.WriteFully("1", 1); // Mark method1. in TEST_F()
245 vos.WriteFully("2", 1); // Mark method2. in TEST_F()
262 vos.WriteFully("3", 1); // Mark method3. in TEST_F()
/art/compiler/debug/
Delf_debug_frame_writer.h190 cfi_section->WriteFully(buffer.data(), buffer.size()); in WriteCFISection()
207 cfi_section->WriteFully(buffer.data(), buffer.size()); in WriteCFISection()
227 header_section->WriteFully(header_buffer.data(), header_buffer.size()); in WriteCFISection()
228 header_section->WriteFully(binary_search_table.data(), binary_search_table.size()); in WriteCFISection()
Delf_debug_writer.cc306 debug_frame->WriteFully(cie->data(), cie->size()); in PackElfFileForJIT()
313 debug_frame->WriteFully(fde->data(), fde->size()); in PackElfFileForJIT()
/art/libelffile/elf/
Delf_builder.h168 bool WriteFully(const void* buffer, size_t byte_count) override { in WriteFully() function
170 return owner_->stream_.WriteFully(buffer, byte_count); in WriteFully()
250 this->WriteFully(cache_.data(), cache_.size()); in Write()
321 this->WriteFully(name.c_str(), name.length() + 1); in Write()
393 this->WriteFully(&syms_.front(), sizeof(Elf_Sym)); in WriteCachedSection()
427 this->WriteFully("GNU", 4); // name. in Write()
430 this->WriteFully(std::string(kBuildIdLen, '\0').c_str(), kBuildIdLen); // desc. in Write()
441 return this->WriteFully(&v, sizeof(v)); in WriteUint32()
505 s->WriteFully(buffer->data(), buffer->size()); in WriteSection()
559 stream_.WriteFully(shdrs.data(), shdrs.size() * sizeof(shdrs[0])); in End()
[all …]
/art/runtime/
Dvdex_file.cc420 if (!out->WriteFully(reinterpret_cast<const char*>(&deps_header), sizeof(deps_header))) { in WriteToDisk()
429 if (!out->WriteFully(reinterpret_cast<const char*>(checksum_ptr), in WriteToDisk()
437 if (!out->WriteFully(reinterpret_cast<const char*>(verifier_deps_data.data()), in WriteToDisk()
444 if (!out->WriteFully(boot_checksum.c_str(), boot_checksum.size())) { in WriteToDisk()
450 if (!out->WriteFully(class_loader_context.c_str(), class_loader_context.size())) { in WriteToDisk()
Dtrace.cc693 if (!trace_file_->WriteFully(header.c_str(), header.length()) || in FinishTracing()
694 !trace_file_->WriteFully(buf_.get(), final_offset)) { in FinishTracing()
850 if (!trace_file_->WriteFully(buf_.get(), old_offset)) { in WriteToBuf()
856 if (!trace_file_->WriteFully(src, src_size)) { in WriteToBuf()
874 if (!trace_file_->WriteFully(buf_.get(), offset)) { in FlushBuf()
/art/dt_fd_forward/
Ddt_fd_forward.h112 IOResult WriteFully(const void* data, size_t ndata); // REQUIRES(!state_mutex_);
Ddt_fd_forward.cc278 IOResult FdForwardTransport::WriteFully(const void* data, size_t ndata) { in WriteFully() function in dt_fd_forward::FdForwardTransport
590 bool WriteFully() { in WriteFully() function in dt_fd_forward::PacketWriter
602 IOResult res = transport_->WriteFully(data_.data(), data_.size()); in WriteFully()
634 if (writer.WriteFully()) { in WritePacket()
/art/compiler/utils/
Dassembler_test_base.h193 bool success = file->WriteFully(data, size); in WriteFile()
219 builder->GetText()->WriteFully(code.data(), code.size()); in WriteElf()
/art/libprofile/profile/
Dprofile_compilation_info_test.cc425 ASSERT_TRUE(profile.GetFile()->WriteFully(buffer, sizeof(buffer))); in TEST_F()
434 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
437 ASSERT_TRUE(profile.GetFile()->WriteFully(version, sizeof(version))); in TEST_F()
447 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
449 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
453 ASSERT_TRUE(profile.GetFile()->WriteFully(line_number, sizeof(line_number))); in TEST_F()
463 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
465 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
469 ASSERT_TRUE(profile.GetFile()->WriteFully(line_number, sizeof(line_number))); in TEST_F()
474 ASSERT_TRUE(profile.GetFile()->WriteFully(line, sizeof(line))); in TEST_F()
[all …]

12