Home
last modified time | relevance | path

Searched refs:WriteFully (Results 1 – 25 of 45) 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.cc168 ASSERT_TRUE(src.WriteFully(src_data, sizeof(src_data))); // Including the zero terminator. in TEST_F()
231 EXPECT_TRUE(file.WriteFully(&buffer, sizeof(buffer))); in TEST_F()
255 EXPECT_TRUE(tmp.GetFile()->WriteFully(&buffer[0], length)); in TEST_F()
259 EXPECT_TRUE(tmp2.GetFile()->WriteFully(&buffer[0], length)); in TEST_F()
271 EXPECT_TRUE(tmp3.GetFile()->WriteFully(&buffer[0], length)); in TEST_F()
278 EXPECT_TRUE(tmp4.GetFile()->WriteFully(&buffer[0], length)); in TEST_F()
285 EXPECT_TRUE(tmp5.GetFile()->WriteFully(&buffer[0], length)); in TEST_F()
291 EXPECT_TRUE(tmp6.GetFile()->WriteFully(&buffer[0], length)); in TEST_F()
300 ASSERT_TRUE(file.WriteFully("foo", 3)); in TEST_F()
Dfd_file.h110 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.cc330 if (!zip_file_->WriteFully(&file_header, sizeof(file_header)) || in AddFile()
331 !zip_file_->WriteFully(location, file_header.filename_length) || in AddFile()
332 !zip_file_->WriteFully(data, size)) { in AddFile()
354 if (!zip_file_->WriteFully(&file_data.cdfh, sizeof(file_data.cdfh)) || in Finish()
355 !zip_file_->WriteFully(file_data.location, file_data.cdfh.filename_length)) { in Finish()
366 zip_file_->WriteFully(&eocd_record, sizeof(eocd_record)) && in Finish()
602 bool success = dex_file1.GetFile()->WriteFully(&dex_file1_data->GetHeader(), in TestDexFileInput()
619 success = dex_file2.GetFile()->WriteFully(&dex_file2_data->GetHeader(), in TestDexFileInput()
726 bool success = dex_file1.GetFile()->WriteFully(&dex_file1_data->GetHeader(), in TestZipFileInput()
744 success = dex_file2.GetFile()->WriteFully(&dex_file2_data->GetHeader(), in TestZipFileInput()
Doat_writer.cc121 bool WriteFully(const void* buffer, size_t byte_count) override { in WriteFully() function in art::linker::OatWriter::ChecksumUpdatingOutputStream
129 return out_->WriteFully(buffer, byte_count); in WriteFully()
1678 if (!out->WriteFully(&method_header, sizeof(method_header))) { in VisitMethod()
1822 if (!out->WriteFully(quick_code.data(), code_size)) { in VisitMethod()
2734 if (!out->WriteFully(oat_header_.get(), header_size)) { in WriteHeader()
2800 if (UNLIKELY(!out->WriteFully(code_info_data_.data(), code_info_data_.size()))) { in WriteMaps()
2846 if (!out->WriteFully(storage.get(), mappings_size)) { in WriteIndexBssMapping()
3054 if (!out->WriteFully(&number_of_bcp_dexfiles, sizeof(number_of_bcp_dexfiles))) { in WriteBcpBssInfo()
3085 out->WriteFully(&padding, 1); \ in WriteCode()
3088 if (!out->WriteFully((field)->data(), (field)->size())) { \ in WriteCode()
[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()
209 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/tools/create_minidebuginfo/
Dcreate_minidebuginfo.cc106 debug_frame->WriteFully(cie->data(), cie->size()); in WriteMinidebugInfo()
126 debug_frame->WriteFully(&new_header, sizeof(FDE)); in WriteMinidebugInfo()
127 debug_frame->WriteFully(fde->data() + sizeof(FDE), fde->size() - sizeof(FDE)); in WriteMinidebugInfo()
165 if (!output_file->WriteFully(output.data(), output.size()) || output_file->FlushClose() != 0) { in Main()
/art/compiler/debug/
Delf_debug_frame_writer.h194 cfi_section->WriteFully(buffer.data(), buffer.size()); in WriteCFISection()
214 cfi_section->WriteFully(buffer.data(), buffer.size()); in WriteCFISection()
234 header_section->WriteFully(header_buffer.data(), header_buffer.size()); in WriteCFISection()
235 header_section->WriteFully(binary_search_table.data(), in WriteCFISection()
/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()
326 this->WriteFully(name.data(), name.length()); in Write()
328 this->WriteFully(&null_terminator, sizeof(null_terminator)); in Write()
403 this->WriteFully(&syms_.front(), sizeof(Elf_Sym)); in WriteCachedSection()
437 this->WriteFully("GNU", 4); // name. in Write()
440 this->WriteFully(std::string(kBuildIdLen, '\0').c_str(), kBuildIdLen); // desc. in Write()
451 return this->WriteFully(&v, sizeof(v)); in WriteUint32()
515 s->WriteFully(buffer->data(), buffer->size()); in WriteSection()
[all …]
/art/runtime/
Dvdex_file.cc313 if (!out->WriteFully(reinterpret_cast<const char*>(&vdex_header), sizeof(vdex_header))) { in WriteToDisk()
320 if (!out->WriteFully(reinterpret_cast<const char*>(&sections), sizeof(sections))) { in WriteToDisk()
331 if (!out->WriteFully(reinterpret_cast<const char*>(checksum_ptr), in WriteToDisk()
339 if (!out->WriteFully(reinterpret_cast<const char*>(verifier_deps_data.data()), in WriteToDisk()
351 if (!out->WriteFully(reinterpret_cast<const char*>(&size), sizeof(uint32_t)) || in WriteToDisk()
352 !out->WriteFully(reinterpret_cast<const char*>(type_lookup_table.RawData()), size)) { in WriteToDisk()
Dtrace.cc790 if (!trace_file_->WriteFully(buf_.get(), kTraceHeaderLength)) { in Trace()
873 if (!trace_file_->WriteFully(buf, sizeof(buf)) || in FinishTracing()
874 !trace_file_->WriteFully(header.c_str(), header.length())) { in FinishTracing()
891 if (!trace_file_->WriteFully(header.c_str(), header.length()) || in FinishTracing()
892 !trace_file_->WriteFully(buf_.get(), final_offset)) { in FinishTracing()
1040 if (!trace_file_->WriteFully(header, kThreadNameHeaderSize) || in RecordStreamingMethodEvent()
1041 !trace_file_->WriteFully(reinterpret_cast<const uint8_t*>(thread_name.c_str()), in RecordStreamingMethodEvent()
1095 if (!trace_file_->WriteFully(reinterpret_cast<const uint8_t*>(data.c_str()), data.length())) { in WriteToBuf()
1164 if (!trace_file_->WriteFully(buffer.get(), current_index)) { in FlushStreamingBuffer()
1260 if (!trace_file_->WriteFully(buffer, *current_index)) { in EnsureSpace()
/art/dt_fd_forward/
Ddt_fd_forward.h112 IOResult WriteFully(const void* data, size_t ndata); // REQUIRES(!state_mutex_);
Ddt_fd_forward.cc280 IOResult FdForwardTransport::WriteFully(const void* data, size_t ndata) { in WriteFully() function in dt_fd_forward::FdForwardTransport
609 bool WriteFully() { in WriteFully() function in dt_fd_forward::PacketWriter
621 IOResult res = transport_->WriteFully(data_.data(), data_.size()); in WriteFully()
653 if (writer.WriteFully()) { in WritePacket()
/art/libprofile/profile/
Dprofile_compilation_info_test.cc418 ASSERT_TRUE(profile.GetFile()->WriteFully(buffer, sizeof(buffer))); in TEST_F()
426 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
429 ASSERT_TRUE(profile.GetFile()->WriteFully(version, sizeof(version))); in TEST_F()
438 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
440 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
444 ASSERT_TRUE(profile.GetFile()->WriteFully(&file_section_count, sizeof(file_section_count))); in TEST_F()
453 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
455 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
459 ASSERT_TRUE(profile.GetFile()->WriteFully(&file_section_count, sizeof(file_section_count))); in TEST_F()
474 ASSERT_TRUE(profile.GetFile()->WriteFully(section_info, sizeof(section_info))); in TEST_F()
[all …]
/art/compiler/utils/
Dassembler_test_base.h202 bool success = file->WriteFully(data, size); in WriteFile()
228 builder->GetText()->WriteFully(code.data(), code.size()); in WriteElf()

12