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.cc47 MappedFile* f = new MappedFile; in MakeTestFile()
48 CHECK(f->Open(good_path_, MappedFile::kReadWriteMode)); in MakeTestFile()
57 MappedFile file; in TEST_F()
64 MappedFile file; in TEST_F()
65 ASSERT_TRUE(file.Open(good_path_, MappedFile::kReadOnlyMode)); in TEST_F()
77 MappedFile file(fileno(f)); in TEST_F()
84 MappedFile file; in TEST_F()
85 ASSERT_TRUE(file.Open(good_path_, MappedFile::kReadOnlyMode)); in TEST_F()
96 MappedFile file; in TEST_F()
97 ASSERT_TRUE(file.Open(good_path_, MappedFile::kReadWriteMode)); in TEST_F()
[all …]
Dmapped_file.cc29 MappedFile::~MappedFile() { in ~MappedFile()
32 int MappedFile::Close() { in Close()
39 bool MappedFile::MapReadOnly() { in MapReadOnly()
61 bool MappedFile::MapReadWrite(int64_t file_size) { in MapReadWrite()
84 bool MappedFile::Unmap() { in Unmap()
98 int64_t MappedFile::Read(char* buf, int64_t byte_count, int64_t offset) const { in Read()
114 int MappedFile::SetLength(int64_t new_length) { in SetLength()
119 int64_t MappedFile::GetLength() const { in GetLength()
127 int MappedFile::Flush() { in Flush()
132 int64_t MappedFile::Write(const char* buf, int64_t byte_count, int64_t offset) { in Write()
[all …]
Dmapped_file.h31 class MappedFile : public FdFile {
39 MappedFile() : FdFile(), file_size_(-1), mapped_file_(NULL) { in MappedFile() function
43 explicit MappedFile(int fd) : FdFile(fd), file_size_(-1), mapped_file_(NULL) { in MappedFile() function
47 virtual ~MappedFile();
92 DISALLOW_COPY_AND_ASSIGN(MappedFile);