Home
last modified time | relevance | path

Searched refs:MappedFile (Results 1 – 3 of 3) sorted by relevance

/art/runtime/base/unix_file/
Dmapped_file_test.cc55 MappedFile* f = new MappedFile; in MakeTestFile()
56 CHECK(f->Open(good_path_, MappedFile::kReadWriteMode)); in MakeTestFile()
64 MappedFile* f = ::art::down_cast<MappedFile*>(file); in CleanUp()
74 MappedFile file; in TEST_F()
81 MappedFile file; in TEST_F()
82 ASSERT_TRUE(file.Open(good_path_, MappedFile::kReadOnlyMode)); in TEST_F()
94 MappedFile file(fileno(f), false); in TEST_F()
101 MappedFile file; in TEST_F()
102 ASSERT_TRUE(file.Open(good_path_, MappedFile::kReadOnlyMode)); in TEST_F()
113 MappedFile file; in TEST_F()
[all …]
Dmapped_file.cc31 MappedFile::~MappedFile() { in ~MappedFile()
34 int MappedFile::Close() { in Close()
41 bool MappedFile::MapReadOnly() { in MapReadOnly()
67 bool MappedFile::MapReadWrite(int64_t file_size) { in MapReadWrite()
98 bool MappedFile::Unmap() { in Unmap()
112 int64_t MappedFile::Read(char* buf, int64_t byte_count, int64_t offset) const { in Read()
129 int MappedFile::SetLength(int64_t new_length) { in SetLength()
134 int64_t MappedFile::GetLength() const { in GetLength()
142 int MappedFile::Flush() { in Flush()
148 int64_t MappedFile::Write(const char* buf, int64_t byte_count, int64_t offset) { in Write()
[all …]
Dmapped_file.h31 class MappedFile : public FdFile {
44 MappedFile() : FdFile(), file_size_(-1), mapped_file_(NULL), map_mode_(kMapReadOnly) { in MappedFile() function
48 explicit MappedFile(int fd, bool check_usage) : FdFile(fd, check_usage), file_size_(-1), in MappedFile() function
53 virtual ~MappedFile();
98 DISALLOW_COPY_AND_ASSIGN(MappedFile);