Searched refs:FdFile (Results 1 – 8 of 8) sorted by relevance
/art/runtime/base/unix_file/ |
D | fd_file.cc | 26 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 …]
|
D | fd_file.h | 30 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);
|
D | mapped_file.cc | 36 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()
|
D | fd_file_test.cc | 27 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()
|
D | mapped_file.h | 31 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()
|
D | random_access_file_utils_test.cc | 40 FdFile src(-1); in TEST_F() 47 FdFile dst(-1); in TEST_F()
|
D | mapped_file_test.cc | 37 FdFile dst(fd); in SetUp() 128 FdFile new_file(TEMP_FAILURE_RETRY(open(new_path.c_str(), O_RDONLY))); in TEST_F()
|
/art/runtime/ |
D | os.h | 21 class FdFile; variable 26 typedef ::unix_file::FdFile File;
|