Home
last modified time | relevance | path

Searched refs:WriteFully (Results 1 – 25 of 43) 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.cc140 if (UNLIKELY(!out->WriteFully(kPadding, aligned_code_delta))) { in WriteCodeAlignment()
148 if (UNLIKELY(!out->WriteFully(thunk.data(), thunk.size()))) { in WriteThunk()
156 if (UNLIKELY(!out->WriteFully(thunk.data(), thunk.size()))) { in WriteMiscThunk()
Doat_writer_test.cc289 if (!zip_file_->WriteFully(&file_header, sizeof(file_header)) || in AddFile()
290 !zip_file_->WriteFully(location, file_header.filename_length) || in AddFile()
291 !zip_file_->WriteFully(data, size)) { in AddFile()
313 if (!zip_file_->WriteFully(&file_data.cdfh, sizeof(file_data.cdfh)) || in Finish()
314 !zip_file_->WriteFully(file_data.location, file_data.cdfh.filename_length)) { in Finish()
325 zip_file_->WriteFully(&eocd_record, sizeof(eocd_record)) && in Finish()
563 bool success = dex_file1.GetFile()->WriteFully(&dex_file1_data->GetHeader(), in TestDexFileInput()
578 success = dex_file2.GetFile()->WriteFully(&dex_file2_data->GetHeader(), in TestDexFileInput()
685 bool success = dex_file1.GetFile()->WriteFully(&dex_file1_data->GetHeader(), in TestZipFileInput()
703 success = dex_file2.GetFile()->WriteFully(&dex_file2_data->GetHeader(), in TestZipFileInput()
Doat_writer.cc116 bool WriteFully(const void* buffer, size_t byte_count) override { in WriteFully() function in art::linker::OatWriter::ChecksumUpdatingOutputStream
124 return out_->WriteFully(buffer, byte_count); in WriteFully()
1722 if (!out->WriteFully(&method_header, sizeof(method_header))) { in VisitMethod()
1829 if (!out->WriteFully(quick_code.data(), code_size)) { in VisitMethod()
2439 if (!out_->WriteFully(map.data(), length)) { in VisitDexMethods()
2499 if (!out_->WriteFully(table_data.data(), length)) { in VisitDexMethods()
2593 if (!vdex_out->WriteFully(reinterpret_cast<const uint8_t*>(&offset), sizeof(offset))) { in WriteQuickeningInfo()
2650 if (!vdex_out->WriteFully(buffer.data(), buffer.size())) { in WriteVerifierDeps()
2843 if (!out->WriteFully(oat_header_.get(), header_size)) { in WriteHeader()
2909 if (UNLIKELY(!out->WriteFully(code_info_data_.data(), code_info_data_.size()))) { in WriteMaps()
[all …]
Drelative_patcher_test.h151 out_->WriteFully(dummy_trampoline, kTrampolineSize); in Link()
163 out_->WriteFully(kPadding, alignment_size); in Link()
166 out_->WriteFully(dummy_header, sizeof(OatQuickMethodHeader)); in Link()
203 out_->WriteFully(&code[0], code.size()); in Link()
Dmulti_oat_relative_patcher_test.cc228 vos.WriteFully("1", 1); // Mark method1. in TEST_F()
239 vos.WriteFully("2", 1); // Mark method2. in TEST_F()
256 vos.WriteFully("3", 1); // Mark method3. in TEST_F()
/art/compiler/debug/
Delf_debug_frame_writer.h210 cfi_section->WriteFully(buffer.data(), buffer.size()); in WriteCFISection()
227 cfi_section->WriteFully(buffer.data(), buffer.size()); in WriteCFISection()
247 header_section->WriteFully(header_buffer.data(), header_buffer.size()); in WriteCFISection()
248 header_section->WriteFully(binary_search_table.data(), binary_search_table.size()); 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()
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.cc381 if (!out->WriteFully(reinterpret_cast<const char*>(&deps_header), sizeof(deps_header))) { in WriteToDisk()
390 if (!out->WriteFully(reinterpret_cast<const char*>(checksum_ptr), in WriteToDisk()
398 if (!out->WriteFully(reinterpret_cast<const char*>(verifier_deps_data.data()), in WriteToDisk()
405 if (!out->WriteFully(boot_checksum.c_str(), boot_checksum.size())) { in WriteToDisk()
411 if (!out->WriteFully(class_loader_context.c_str(), class_loader_context.size())) { in WriteToDisk()
Dtrace.cc692 if (!trace_file_->WriteFully(header.c_str(), header.length()) || in FinishTracing()
693 !trace_file_->WriteFully(buf_.get(), final_offset)) { in FinishTracing()
845 if (!trace_file_->WriteFully(buf_.get(), old_offset)) { in WriteToBuf()
851 if (!trace_file_->WriteFully(src, src_size)) { in WriteToBuf()
869 if (!trace_file_->WriteFully(buf_.get(), offset)) { in FlushBuf()
/art/libprofile/profile/
Dprofile_compilation_info_test.cc330 ASSERT_TRUE(profile.GetFile()->WriteFully(buffer, sizeof(buffer))); in TEST_F()
339 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
342 ASSERT_TRUE(profile.GetFile()->WriteFully(version, sizeof(version))); in TEST_F()
352 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
354 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
358 ASSERT_TRUE(profile.GetFile()->WriteFully(line_number, sizeof(line_number))); in TEST_F()
368 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
370 ASSERT_TRUE(profile.GetFile()->WriteFully( in TEST_F()
374 ASSERT_TRUE(profile.GetFile()->WriteFully(line_number, sizeof(line_number))); in TEST_F()
379 ASSERT_TRUE(profile.GetFile()->WriteFully(line, sizeof(line))); in TEST_F()
[all …]
/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/runtime/gc/space/
Dimage_space_fs.h161 if (!file->WriteFully(&num_failed_boots, sizeof(num_failed_boots))) { in MarkZygoteStart()
/art/libartpalette/system/
Dpalette_android.cc123 if (!android::base::WriteFully(output_fd, stacks, stacks_len)) { in PaletteWriteCrashThreadStacks()

12