/art/libelffile/stream/ |
D | buffered_output_stream.cc | 32 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()
|
D | file_output_stream.cc | 28 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()
|
D | error_delaying_output_stream.h | 39 bool WriteFully(const void* buffer, size_t byte_count) override { in WriteFully() function 41 if (!output_->WriteFully(buffer, byte_count)) { in WriteFully()
|
D | file_output_stream.h | 32 bool WriteFully(const void* buffer, size_t byte_count) override;
|
D | buffered_output_stream.h | 34 bool WriteFully(const void* buffer, size_t byte_count) override;
|
D | output_stream.h | 44 virtual bool WriteFully(const void* buffer, size_t byte_count) = 0;
|
D | vector_output_stream.h | 34 bool WriteFully(const void* buffer, size_t byte_count) override { in WriteFully() function
|
/art/libartbase/base/unix_file/ |
D | fd_file_test.cc | 154 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()
|
D | fd_file.h | 102 bool WriteFully(const void* buffer, size_t byte_count) WARN_UNUSED;
|
/art/compiler/linker/ |
D | output_stream_test.cc | 46 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/ |
D | jit_logger.cc | 65 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/ |
D | relative_patcher.cc | 131 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()
|
D | oat_writer_test.cc | 334 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()
|
D | oat_writer.cc | 117 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 …]
|
D | relative_patcher_test.h | 150 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()
|
D | multi_oat_relative_patcher_test.cc | 234 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/ |
D | elf_debug_frame_writer.h | 190 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()
|
D | elf_debug_writer.cc | 306 debug_frame->WriteFully(cie->data(), cie->size()); in PackElfFileForJIT() 313 debug_frame->WriteFully(fde->data(), fde->size()); in PackElfFileForJIT()
|
/art/libelffile/elf/ |
D | elf_builder.h | 168 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/ |
D | vdex_file.cc | 420 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()
|
D | trace.cc | 693 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/ |
D | dt_fd_forward.h | 112 IOResult WriteFully(const void* data, size_t ndata); // REQUIRES(!state_mutex_);
|
D | dt_fd_forward.cc | 278 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/ |
D | assembler_test_base.h | 193 bool success = file->WriteFully(data, size); in WriteFile() 219 builder->GetText()->WriteFully(code.data(), code.size()); in WriteElf()
|
/art/libprofile/profile/ |
D | profile_compilation_info_test.cc | 425 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 …]
|