Home
last modified time | relevance | path

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

12

/art/compiler/linker/
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()
Doutput_stream_test.cc45 EXPECT_TRUE(output_stream_->WriteFully(buf, 2)); in GenerateTestOutput()
49 EXPECT_TRUE(output_stream_->WriteFully(buf, 4)); in GenerateTestOutput()
51 EXPECT_TRUE(output_stream_->WriteFully(buf, 6)); in GenerateTestOutput()
109 bool WriteFully(const void* buffer ATTRIBUTE_UNUSED, in TEST_F() function
Drelative_patcher.cc108 if (UNLIKELY(!out->WriteFully(kPadding, aligned_code_delta))) { in WriteCodeAlignment()
116 if (UNLIKELY(!out->WriteFully(thunk.data(), thunk.size()))) { in WriteRelCallThunk()
124 if (UNLIKELY(!out->WriteFully(thunk.data(), thunk.size()))) { in WriteMiscThunk()
Derror_delaying_output_stream.h37 bool WriteFully(const void* buffer, size_t byte_count) OVERRIDE { in WriteFully() function
39 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;
Drelative_patcher_test.h129 out_.WriteFully(dummy_trampoline, kTrampolineSize); in Link()
142 out_.WriteFully(kPadding, aligned_code_delta); in Link()
145 out_.WriteFully(dummy_header, sizeof(OatQuickMethodHeader)); in Link()
176 out_.WriteFully(&code[0], code.size()); in Link()
Dvector_output_stream.h34 bool WriteFully(const void* buffer, size_t byte_count) OVERRIDE { in WriteFully() function
Dmulti_oat_relative_patcher_test.cc217 vos.WriteFully("1", 1); // Mark method1. in TEST_F()
228 vos.WriteFully("2", 1); // Mark method2. in TEST_F()
245 vos.WriteFully("3", 1); // Mark method3. in TEST_F()
/art/runtime/jit/
Dprofile_compilation_info_test.cc249 ASSERT_TRUE(profile.GetFile()->WriteFully(buffer, sizeof(buffer))); in TEST_F()
258 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
261 ASSERT_TRUE(profile.GetFile()->WriteFully(version, sizeof(version))); in TEST_F()
271 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
273 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
277 ASSERT_TRUE(profile.GetFile()->WriteFully(line_number, sizeof(line_number))); in TEST_F()
287 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
289 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
293 ASSERT_TRUE(profile.GetFile()->WriteFully(line_number, sizeof(line_number))); in TEST_F()
298 ASSERT_TRUE(profile.GetFile()->WriteFully(line, sizeof(line))); in TEST_F()
[all …]
/art/compiler/debug/
Delf_debug_frame_writer.h221 cfi_section->WriteFully(buffer.data(), buffer.size()); in WriteCFISection()
237 cfi_section->WriteFully(buffer.data(), buffer.size()); in WriteCFISection()
264 header_section->WriteFully(buffer.data(), buffer.size()); in WriteCFISection()
270 header_section->WriteFully(binary_search_table.data(), binary_search_table.size()); in WriteCFISection()
Delf_debug_line_writer.h269 builder_->GetDebugLine()->WriteFully(buffer.data(), buffer.size()); in WriteCompilationUnit()
/art/compiler/
Doat_test.cc256 if (!zip_file_->WriteFully(&file_header, sizeof(file_header)) || in AddFile()
257 !zip_file_->WriteFully(location, file_header.filename_length) || in AddFile()
258 !zip_file_->WriteFully(data, size)) { in AddFile()
280 if (!zip_file_->WriteFully(&file_data.cdfh, sizeof(file_data.cdfh)) || in Finish()
281 !zip_file_->WriteFully(file_data.location, file_data.cdfh.filename_length)) { in Finish()
292 zip_file_->WriteFully(&eocd_record, sizeof(eocd_record)) && in Finish()
538 bool success = dex_file1.GetFile()->WriteFully(&dex_file1_data->GetHeader(), in TestDexFileInput()
553 success = dex_file2.GetFile()->WriteFully(&dex_file2_data->GetHeader(), in TestDexFileInput()
632 bool success = dex_file1.GetFile()->WriteFully(&dex_file1_data->GetHeader(), in TestZipFileInput()
650 success = dex_file2.GetFile()->WriteFully(&dex_file2_data->GetHeader(), in TestZipFileInput()
Delf_builder.h198 bool WriteFully(const void* buffer, size_t byte_count) OVERRIDE { in WriteFully() function
201 return owner_->stream_.WriteFully(buffer, byte_count); in WriteFully()
263 this->WriteFully(cache_.data(), cache_.size()); in Write()
325 this->WriteFully(name.c_str(), name.length() + 1); in Write()
449 this->WriteFully(&abiflags_, sizeof(abiflags_)); in Write()
525 s->WriteFully(buffer.data(), buffer.size()); in WritePatches()
533 s->WriteFully(buffer->data(), buffer->size()); in WriteSection()
585 stream_.WriteFully(shdrs.data(), shdrs.size() * sizeof(shdrs[0])); in End()
608 stream_.WriteFully(&elf_header, sizeof(elf_header)); in End()
609 stream_.WriteFully(phdrs.data(), phdrs.size() * sizeof(phdrs[0])); in End()
Doat_writer.cc71 bool WriteFully(const void* buffer, size_t byte_count) OVERRIDE { in WriteFully() function in art::__anon8e4368180111::ChecksumUpdatingOutputStream
73 return out_->WriteFully(buffer, byte_count); in WriteFully()
1030 if (!out->WriteFully(&method_header, sizeof(method_header))) { in VisitMethod()
1097 if (!out->WriteFully(quick_code.data(), code_size)) { in VisitMethod()
1307 if (UNLIKELY(!out->WriteFully(map.data(), map_size))) { in VisitMethod()
1649 if (!out->WriteFully(oat_header_.get(), header_size)) { in WriteHeader()
1719 if (!out->WriteFully(field->data(), field->size())) { \ in WriteCode()
2049 if (!rodata->WriteFully(dex_file, header->file_size_)) { in WriteDexFile()
2229 if (UNLIKELY(!out->WriteFully(kPadding, aligned_code_delta))) { in WriteCodeAlignment()
2305 if (!out->WriteFully(&dex_file_location_size_, sizeof(dex_file_location_size_))) { in Write()
[all …]
/art/runtime/base/unix_file/
Dfd_file.h81 bool WriteFully(const void* buffer, size_t byte_count) WARN_UNUSED;
Dfd_file.cc261 bool FdFile::WriteFully(const void* buffer, size_t byte_count) { in WriteFully() function in unix_file::FdFile
303 !WriteFully(buffer.get(), chunk_size)) { in Copy()
Dfd_file_test.cc149 ASSERT_TRUE(src.WriteFully(src_data, sizeof(src_data))); // Including the zero terminator. in TEST_F()
/art/runtime/
Dsignal_catcher.cc115 bool success = file->WriteFully(s.data(), s.size()); in Output()
Dtrace.cc723 if (!file.WriteFully(header.c_str(), header.length())) { in FinishTracing()
746 if (!trace_file_->WriteFully(header.c_str(), header.length()) || in FinishTracing()
747 !trace_file_->WriteFully(buf_.get(), final_offset)) { in FinishTracing()
894 if (!trace_file_->WriteFully(buf_.get(), old_offset)) { in WriteToBuf()
900 if (!trace_file_->WriteFully(src, src_size)) { in WriteToBuf()
/art/runtime/gc/space/
Dimage_space_fs.h251 if (!file->WriteFully(&num_failed_boots, sizeof(num_failed_boots))) { in MarkZygoteStart()
/art/compiler/jit/
Djit_compiler.cc233 bool res = perf_file_->WriteFully(str.c_str(), str.size()); in CompileMethod()
/art/profman/
Dprofman.cc307 if (!out_fd.WriteFully(dump.c_str(), dump.length())) { in DumpProfileInfo()

12