Home
last modified time | relevance | path

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

/frameworks/compile/libbcc/include/bcc/Support/
DFile.h24 template<enum FileBase::OpenModeEnum OpenMode>
35 struct FileAttribute<FileBase::kReadMode> {
37 enum { kDefaultLockMode = FileBase::kReadLock };
42 struct FileAttribute<FileBase::kWriteMode> {
44 enum { kDefaultLockMode = FileBase::kWriteLock };
47 template<enum FileBase::OpenModeEnum OpenMode>
48 class File : public FileBase {
51 : FileBase(pFilename, FileAttribute<OpenMode>::kOpenFlags, pFlags) { }
56 unsigned pMaxRetry = FileBase::kDefaultMaxRetryLock,
58 FileBase::kDefaultRetryLockInterval) {
[all …]
DFileMutex.h26 template<enum FileBase::LockModeEnum LockMode>
27 class FileMutex : public FileBase {
30 : FileBase(pFileToLock + ".lock", O_RDONLY | O_CREAT, kDeleteOnClose) { }
34 unsigned pMaxRetry = FileBase::kDefaultMaxRetryLock,
36 FileBase::kDefaultRetryLockInterval) {
37 return FileBase::lock(LockMode, pNonblocking, pMaxRetry, pRetryInterval);
DFileBase.h31 class FileBase {
99 FileBase(FileBase &); // Do not implement.
100 void operator=(const FileBase &); // Do not implement.
106 FileBase(const std::string &pFilename, unsigned pOpenFlags, unsigned pFlags);
150 virtual ~FileBase();
DInputFile.h25 class InputFile : public File<FileBase::kReadMode> {
26 typedef File<FileBase::kReadMode> super;
DOutputFile.h29 class OutputFile : public File<FileBase::kWriteMode> {
30 typedef File<FileBase::kWriteMode> super;
/frameworks/compile/libbcc/lib/Support/
DFileBase.cpp45 FileBase::FileBase(const std::string &pFilename, in FileBase() function in FileBase
77 FileBase::~FileBase() { in ~FileBase()
81 bool FileBase::open() { in open()
100 bool FileBase::checkFileIntegrity() { in checkFileIntegrity()
129 void FileBase::detectError() { in detectError()
134 bool FileBase::lock(enum LockModeEnum pMode, in lock()
209 void FileBase::unlock() { in unlock()
225 android::FileMap *FileBase::createMap(off_t pOffset, size_t pLength, in createMap()
246 size_t FileBase::getSize() { in getSize()
264 off_t FileBase::seek(off_t pOffset) { in seek()
[all …]
DAndroid.mk27 FileBase.cpp \
/frameworks/compile/libbcc/lib/Renderscript/
DRSCompilerDriver.cpp159 FileMutex<FileBase::kWriteLock> write_output_mutex(pOutputPath); in compileScript()
170 FileBase::kTruncate | FileBase::kBinary); in compileScript()
201 ir_file = new OutputFile(path.c_str(), FileBase::kTruncate); in compileScript()