Home
last modified time | relevance | path

Searched refs:FileBase (Results 1 – 13 of 13) 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/include/bcc/Renderscript/
DRSExecutable.h31 class FileBase; variable
43 FileBase *mObjFile;
58 RSExecutable(RSInfo &pInfo, FileBase &pObjFile, ObjectLoader &pLoader) in RSExecutable()
70 FileBase &pObjFile,
DRSInfo.h38 class FileBase; variable
/frameworks/compile/libbcc/lib/Renderscript/
DRSCompilerDriver.cpp93 FileMutex<FileBase::kReadLock> read_output_mutex(output_path.c_str()); in loadScript()
260 FileMutex<FileBase::kWriteLock> write_output_mutex(pOutputPath); in compileScript()
271 FileBase::kTruncate | FileBase::kBinary); in compileScript()
302 ir_file = new OutputFile(path.string(), FileBase::kTruncate); in compileScript()
324 OutputFile info_file(info_path.string(), FileBase::kTruncate); in compileScript()
332 FileMutex<FileBase::kWriteLock> write_info_mutex(info_path.string()); in compileScript()
DRSExecutable.cpp39 FileBase &pObjFile, in Create()
133 OutputFile info_file(info_path.string(), FileBase::kTruncate); in syncInfo()
143 if (!mObjFile->lock(FileBase::kWriteLock)) { in syncInfo()
/frameworks/compile/libbcc/include/bcc/ExecutionEngine/
DObjectLoader.h28 class FileBase; variable
54 static ObjectLoader *Load(FileBase &pFile,
/frameworks/compile/libbcc/lib/ExecutionEngine/
DObjectLoader.cpp102 ObjectLoader *ObjectLoader::Load(FileBase &pFile, in Load()