Home
last modified time | relevance | path

Searched refs:WriteFully (Results 1 – 25 of 37) 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.cc44 EXPECT_TRUE(output_stream_->WriteFully(buf, 2)); in GenerateTestOutput()
48 EXPECT_TRUE(output_stream_->WriteFully(buf, 4)); in GenerateTestOutput()
50 EXPECT_TRUE(output_stream_->WriteFully(buf, 6)); in GenerateTestOutput()
108 bool WriteFully(const void* buffer ATTRIBUTE_UNUSED, in TEST_F() function
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()
Drelative_patcher.cc129 if (UNLIKELY(!out->WriteFully(kPadding, aligned_code_delta))) { in WriteCodeAlignment()
137 if (UNLIKELY(!out->WriteFully(thunk.data(), thunk.size()))) { in WriteThunk()
145 if (UNLIKELY(!out->WriteFully(thunk.data(), thunk.size()))) { in WriteMiscThunk()
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.h133 out_.WriteFully(dummy_trampoline, kTrampolineSize); in Link()
145 out_.WriteFully(kPadding, alignment_size); in Link()
148 out_.WriteFully(dummy_header, sizeof(OatQuickMethodHeader)); in Link()
185 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.cc223 vos.WriteFully("1", 1); // Mark method1. in TEST_F()
234 vos.WriteFully("2", 1); // Mark method2. in TEST_F()
251 vos.WriteFully("3", 1); // Mark method3. in TEST_F()
/art/runtime/base/unix_file/
Dfd_file_test.cc150 ASSERT_TRUE(src.WriteFully(src_data, sizeof(src_data))); // Including the zero terminator. in TEST_F()
213 EXPECT_TRUE(file.WriteFully(&buffer, sizeof(buffer))); in TEST_F()
237 EXPECT_TRUE(tmp.GetFile()->WriteFully(&buffer[0], length)); in TEST_F()
241 EXPECT_TRUE(tmp2.GetFile()->WriteFully(&buffer[0], length)); in TEST_F()
253 EXPECT_TRUE(tmp3.GetFile()->WriteFully(&buffer[0], length)); in TEST_F()
260 EXPECT_TRUE(tmp4.GetFile()->WriteFully(&buffer[0], length)); in TEST_F()
267 EXPECT_TRUE(tmp5.GetFile()->WriteFully(&buffer[0], length)); in TEST_F()
273 EXPECT_TRUE(tmp6.GetFile()->WriteFully(&buffer[0], length)); in TEST_F()
282 ASSERT_TRUE(file.WriteFully("foo", 3)); in TEST_F()
Dfd_file.h127 bool WriteFully(const void* buffer, size_t byte_count) WARN_UNUSED;
Dfd_file.cc299 bool FdFile::WriteFully(const void* buffer, size_t byte_count) { in WriteFully() function in unix_file::FdFile
341 !WriteFully(buffer.get(), chunk_size)) { in Copy()
/art/compiler/jit/
Djit_logger.cc66 bool res = perf_file_->WriteFully(str.c_str(), str.size()); in WritePerfMapLog()
244 bool res = jit_dump_file_->WriteFully(reinterpret_cast<const char*>(&header), sizeof(header)); in WriteJitDumpHeader()
292 UNUSED(jit_dump_file_->WriteFully(reinterpret_cast<const char*>(&jit_code), sizeof(jit_code))); in WriteJitDumpLog()
293 UNUSED(jit_dump_file_->WriteFully(method_name.c_str(), method_name.size() + 1)); in WriteJitDumpLog()
294 UNUSED(jit_dump_file_->WriteFully(ptr, code_size)); in WriteJitDumpLog()
/art/compiler/
Delf_builder.h203 bool WriteFully(const void* buffer, size_t byte_count) OVERRIDE { in WriteFully() function
206 return owner_->stream_.WriteFully(buffer, byte_count); in WriteFully()
268 this->WriteFully(cache_.data(), cache_.size()); in Write()
330 this->WriteFully(name.c_str(), name.length() + 1); in Write()
454 this->WriteFully(&abiflags_, sizeof(abiflags_)); in Write()
487 this->WriteFully("GNU", 4); // name. in Write()
490 this->WriteFully(std::string(kBuildIdLen, '\0').c_str(), kBuildIdLen); // desc. in Write()
500 return this->WriteFully(&v, sizeof(v)); in WriteUint32()
575 s->WriteFully(buffer.data(), buffer.size()); in WritePatches()
583 s->WriteFully(buffer->data(), buffer->size()); in WriteSection()
[all …]
Doat_writer.cc79 bool WriteFully(const void* buffer, size_t byte_count) OVERRIDE { in WriteFully() function in art::__anon2e3301520111::ChecksumUpdatingOutputStream
81 return out_->WriteFully(buffer, byte_count); in WriteFully()
1361 if (!out->WriteFully(&method_header, sizeof(method_header))) { in VisitMethod()
1455 if (!out->WriteFully(quick_code.data(), code_size)) { in VisitMethod()
1647 if (UNLIKELY(!out->WriteFully(map.data(), map_size))) { in VisitMethod()
1704 if (UNLIKELY(!out->WriteFully(map.data(), map_size))) { in VisitMethod()
2071 if (!out_->WriteFully(&length, sizeof(length)) || in VisitMethod()
2072 !out_->WriteFully(map.data(), length)) { in VisitMethod()
2133 if (!out_->WriteFully(&code_item_offset, sizeof(code_item_offset)) || in VisitDexMethods()
2134 !out_->WriteFully(&offset, sizeof(offset))) { in VisitDexMethods()
[all …]
Doat_test.cc294 if (!zip_file_->WriteFully(&file_header, sizeof(file_header)) || in AddFile()
295 !zip_file_->WriteFully(location, file_header.filename_length) || in AddFile()
296 !zip_file_->WriteFully(data, size)) { in AddFile()
318 if (!zip_file_->WriteFully(&file_data.cdfh, sizeof(file_data.cdfh)) || in Finish()
319 !zip_file_->WriteFully(file_data.location, file_data.cdfh.filename_length)) { in Finish()
330 zip_file_->WriteFully(&eocd_record, sizeof(eocd_record)) && in Finish()
583 bool success = dex_file1.GetFile()->WriteFully(&dex_file1_data->GetHeader(), in TestDexFileInput()
598 success = dex_file2.GetFile()->WriteFully(&dex_file2_data->GetHeader(), in TestDexFileInput()
688 bool success = dex_file1.GetFile()->WriteFully(&dex_file1_data->GetHeader(), in TestZipFileInput()
706 success = dex_file2.GetFile()->WriteFully(&dex_file2_data->GetHeader(), in TestZipFileInput()
/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.h270 builder_->GetDebugLine()->WriteFully(buffer.data(), buffer.size()); in WriteCompilationUnit()
/art/runtime/jit/
Dprofile_compilation_info_test.cc443 ASSERT_TRUE(profile.GetFile()->WriteFully(buffer, sizeof(buffer))); in TEST_F()
452 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
455 ASSERT_TRUE(profile.GetFile()->WriteFully(version, sizeof(version))); in TEST_F()
465 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
467 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
471 ASSERT_TRUE(profile.GetFile()->WriteFully(line_number, sizeof(line_number))); in TEST_F()
481 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
483 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
487 ASSERT_TRUE(profile.GetFile()->WriteFully(line_number, sizeof(line_number))); in TEST_F()
492 ASSERT_TRUE(profile.GetFile()->WriteFully(line, sizeof(line))); in TEST_F()
[all …]
/art/runtime/gc/space/
Dimage_space_fs.h159 if (!file->WriteFully(&num_failed_boots, sizeof(num_failed_boots))) { in MarkZygoteStart()
/art/runtime/
Dtrace.cc732 if (!trace_file_->WriteFully(header.c_str(), header.length()) || in FinishTracing()
733 !trace_file_->WriteFully(buf_.get(), final_offset)) { in FinishTracing()
883 if (!trace_file_->WriteFully(buf_.get(), old_offset)) { in WriteToBuf()
889 if (!trace_file_->WriteFully(src, src_size)) { in WriteToBuf()
906 if (!trace_file_->WriteFully(buf_.get(), offset)) { in FlushBuf()
Dsignal_catcher.cc154 bool success = file->WriteFully(s.data(), s.size()); in Output()
Dnative_stack_dump.cc252 if (!pipe_ptr->out.WriteFully(hex_offset.data(), hex_offset.length())) { in Addr2line()

12