Home
last modified time | relevance | path

Searched refs:FdFile (Results 1 – 8 of 8) sorted by relevance

/art/runtime/base/unix_file/
Dfd_file.cc26 FdFile::FdFile() : fd_(-1), auto_close_(true) { in FdFile() function in unix_file::FdFile
29 FdFile::FdFile(int fd) : fd_(fd), auto_close_(true) { in FdFile() function in unix_file::FdFile
32 FdFile::FdFile(int fd, const std::string& path) : fd_(fd), file_path_(path), auto_close_(true) { in FdFile() function in unix_file::FdFile
36 FdFile::~FdFile() { in ~FdFile()
42 void FdFile::DisableAutoClose() { in DisableAutoClose()
46 bool FdFile::Open(const std::string& path, int flags) { in Open()
50 bool FdFile::Open(const std::string& path, int flags, mode_t mode) { in Open()
60 int FdFile::Close() { in Close()
71 int FdFile::Flush() { in Flush()
80 int64_t FdFile::Read(char* buf, int64_t byte_count, int64_t offset) const { in Read()
[all …]
Dfd_file.h30 class FdFile : public RandomAccessFile {
32 FdFile();
35 explicit FdFile(int fd);
36 explicit FdFile(int fd, const std::string& path);
43 virtual ~FdFile();
72 DISALLOW_COPY_AND_ASSIGN(FdFile);
Dmapped_file.cc36 return FdFile::Close(); in Close()
115 return FdFile::Read(buf, byte_count, offset); in Read()
121 return FdFile::SetLength(new_length); in SetLength()
128 return FdFile::GetLength(); in GetLength()
133 int rc = IsMapped() ? TEMP_FAILURE_RETRY(msync(mapped_file_, file_size_, 0)) : FdFile::Flush(); in Flush()
151 return FdFile::Write(buf, byte_count, offset); in Write()
Dfd_file_test.cc27 return new FdFile(fileno(tmpfile())); in MakeTestFile()
44 FdFile file; in TEST_F()
52 FdFile file; in TEST_F()
70 FdFile file; in TEST_F()
Dmapped_file.h31 class MappedFile : public FdFile {
44 MappedFile() : FdFile(), file_size_(-1), mapped_file_(NULL) { in MappedFile()
48 explicit MappedFile(int fd) : FdFile(fd), file_size_(-1), mapped_file_(NULL) { in MappedFile()
Drandom_access_file_utils_test.cc40 FdFile src(-1); in TEST_F()
47 FdFile dst(-1); in TEST_F()
Dmapped_file_test.cc37 FdFile dst(fd); in SetUp()
128 FdFile new_file(TEMP_FAILURE_RETRY(open(new_path.c_str(), O_RDONLY))); in TEST_F()
/art/runtime/
Dos.h21 class FdFile; variable
26 typedef ::unix_file::FdFile File;