Home
last modified time | relevance | path

Searched refs:Write (Results 1 – 25 of 29) sorted by relevance

12

/art/runtime/base/unix_file/
Dnull_file_test.cc51 ASSERT_EQ(content.size(), static_cast<uint64_t>(f.Write(content.data(), content.size(), 0))); in TEST_F()
55 TEST_F(NullFileTest, Write) { in TEST_F() argument
59 ASSERT_EQ(-EINVAL, f.Write(content.data(), content.size(), -128)); in TEST_F()
61 ASSERT_EQ(content.size(), static_cast<uint64_t>(f.Write(content.data(), content.size(), 0))); in TEST_F()
62 ASSERT_EQ(content.size(), static_cast<uint64_t>(f.Write(content.data(), content.size(), 128))); in TEST_F()
Drandom_access_file_test.h76 … ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Write(content.data(), content.size(), 0))); in TestRead()
116 … ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Write(content.data(), content.size(), 0))); in TestSetLength()
145 ASSERT_EQ(-EINVAL, file->Write(content.data(), 0, -123)); in TestWrite()
148 ASSERT_EQ(0, file->Write(content.data(), 0, 0)); in TestWrite()
152 … ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Write(content.data(), content.size(), 0))); in TestWrite()
164 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Write(content.data(), content.size(), in TestWrite()
Dmapped_file_test.cc218 EXPECT_EQ(-EINVAL, file.Write(kContent.c_str(), 0, -123)); in TEST_F()
221 EXPECT_EQ(0, file.Write(kContent.c_str(), 0, 0)); in TEST_F()
227 static_cast<uint64_t>(file.Write(kContent.c_str(), kContent.size(), 1))); in TEST_F()
232 static_cast<uint64_t>(file.Write(kContent.c_str(), kContent.size(), 0))); in TEST_F()
282 EXPECT_DEATH(file.Write(buf, 0, 0), ".*");
Dstring_file_test.cc38 TEST_F(StringFileTest, Write) { in TEST_F() argument
Drandom_access_file_utils.cc30 if (dst->Write(&buf[0], n, offset) != n) { in CopyFile()
Drandom_access_file.h60 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset) = 0;
Dnull_file.cc54 int64_t NullFile::Write(const char* buf, int64_t byte_count, int64_t offset) { in Write() function in unix_file::NullFile
Dmapped_file.cc148 int64_t MappedFile::Write(const char* buf, int64_t byte_count, int64_t offset) { in Write() function in unix_file::MappedFile
163 return FdFile::Write(buf, byte_count, offset); in Write()
Dnull_file.h42 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset);
Dstring_file.h45 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset);
Dmapped_file.h76 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset);
Dstring_file.cc66 int64_t StringFile::Write(const char *buf, int64_t byte_count, int64_t offset) { in Write() function in unix_file::StringFile
Dfd_file_test.cc39 TEST_F(FdFileTest, Write) { in TEST_F() argument
Dfd_file.h57 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset) WARN_UNUSED;
Dfd_file.cc163 int64_t FdFile::Write(const char* buf, int64_t byte_count, int64_t offset) { in Write() function in unix_file::FdFile
/art/compiler/
Delf_writer.h54 virtual bool Write(OatWriter* oat_writer,
Doat_writer.h95 bool Write(OutputStream* out);
164 bool Write(OatWriter* oat_writer, OutputStream* out, const size_t file_offset) const;
192 bool Write(OatWriter* oat_writer, OutputStream* out, const size_t file_offset) const;
Delf_writer_mclinker.cc61 return elf_writer.Write(oat_writer, dex_files, android_root, is_host); in Create()
64 bool ElfWriterMclinker::Write(OatWriter* oat_writer, in Write() function in art::ElfWriterMclinker
71 CHECK(oat_writer->Write(&output_stream)); in Write()
Delf_writer_mclinker.h52 bool Write(OatWriter* oat_writer,
Delf_writer_quick.cc46 virtual bool Write(File* elf_file) { in Write() function in art::ElfFilePiece
103 if (!oat_writer_->Write(output_stream.get())) { in DoActualWrite()
142 if (!(*it)->Write(elf_file)) { in WriteOutFile()
149 bool ElfWriterQuick::ElfBuilder::Write() { in Write() function in art::ElfWriterQuick::ElfBuilder
888 return elf_writer.Write(oat_writer, dex_files, android_root, is_host); in Create()
911 bool ElfWriterQuick::Write(OatWriter* oat_writer, in Write() function in art::ElfWriterQuick
951 return builder.Write(); in Write()
Delf_writer_quick.h38 bool Write(OatWriter* oat_writer,
242 bool Write();
Doat_writer.cc888 bool OatWriter::Write(OutputStream* out) { in Write() function in art::OatWriter
975 if (!oat_dex_files_[i]->Write(this, out, file_offset)) { in WriteTables()
998 if (!oat_classes_[i]->Write(this, out, file_offset)) { in WriteTables()
1123 bool OatWriter::OatDexFile::Write(OatWriter* oat_writer, in Write() function in art::OatWriter::OatDexFile
1249 bool OatWriter::OatClass::Write(OatWriter* oat_writer, in Write() function in art::OatWriter::OatClass
Dimage_test.cc100 bool success_image = writer.Write(image_file.GetFilename(), requested_image_base, in TEST_F()
/art/compiler/sea_ir/code_gen/
Dcode_gen.h93 void Write(std::string file) { in Write() function
/art/runtime/
Dprofiler.h109 uint32_t Write(std::ostream &os, ProfileDataType type);

12