Searched refs:FileBase (Results 1 - 13 of 13) sorted by relevance

/frameworks/compile/libbcc/include/bcc/Support/
H A DFileMutex.h22 #include "bcc/Support/FileBase.h"
26 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);
33 lock(bool pNonblocking = true, unsigned pMaxRetry = FileBase::kDefaultMaxRetryLock, useconds_t pRetryInterval = FileBase::kDefaultRetryLockInterval) argument
H A DFile.h20 #include "bcc/Support/FileBase.h"
24 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
53 lock(enum LockModeEnum pMode = static_cast<enum LockModeEnum>( FileAttribute<OpenMode>::kDefaultLockMode), bool pNonblocking = true, unsigned pMaxRetry = FileBase::kDefaultMaxRetryLock, useconds_t pRetryInterval = FileBase::kDefaultRetryLockInterval) argument
62 createMap(off_t pOffset, size_t pLength, bool pIsReadOnly = (OpenMode == FileBase::kReadMode)) argument
[all...]
H A DInputFile.h21 #include "bcc/Support/FileBase.h"
25 class InputFile : public File<FileBase::kReadMode> {
26 typedef File<FileBase::kReadMode> super;
H A DOutputFile.h21 #include "bcc/Support/FileBase.h"
29 class OutputFile : public File<FileBase::kWriteMode> {
30 typedef File<FileBase::kWriteMode> super;
H A DFileBase.h31 class FileBase { class in namespace:bcc
99 FileBase(FileBase &); // Do not implement.
100 void operator=(const FileBase &); // Do not implement.
104 // FileBase. It's a bit set composed by the value defined in
105 // FileBase::FlagEnum.
106 FileBase(const std::string &pFilename, unsigned pOpenFlags, unsigned pFlags);
150 virtual ~FileBase();
/frameworks/compile/libbcc/lib/Support/
H A DFileBase.cpp17 #include "bcc/Support/FileBase.h"
45 FileBase::FileBase(const std::string &pFilename, function in class:FileBase
77 FileBase::~FileBase() {
81 bool FileBase::open() {
100 bool FileBase::checkFileIntegrity() {
129 void FileBase::detectError() {
134 bool FileBase::lock(enum LockModeEnum pMode,
209 void FileBase
[all...]
H A DAndroid.mk27 FileBase.cpp \
/frameworks/compile/libbcc/include/bcc/Renderscript/
H A DRSExecutable.h31 class FileBase;
43 FileBase *mObjFile;
58 RSExecutable(RSInfo &pInfo, FileBase &pObjFile, ObjectLoader &pLoader)
70 FileBase &pObjFile,
H A DRSInfo.h38 class FileBase;
/frameworks/compile/libbcc/include/bcc/ExecutionEngine/
H A DObjectLoader.h28 class FileBase;
54 static ObjectLoader *Load(FileBase &pFile,
/frameworks/compile/libbcc/lib/Renderscript/
H A DRSCompilerDriver.cpp93 FileMutex<FileBase::kReadLock> read_output_mutex(output_path.c_str());
260 FileMutex<FileBase::kWriteLock> write_output_mutex(pOutputPath);
271 FileBase::kTruncate | FileBase::kBinary);
302 ir_file = new OutputFile(path.string(), FileBase::kTruncate);
324 OutputFile info_file(info_path.string(), FileBase::kTruncate);
332 FileMutex<FileBase::kWriteLock> write_info_mutex(info_path.string());
H A DRSExecutable.cpp21 #include "bcc/Support/FileBase.h"
39 FileBase &pObjFile,
133 OutputFile info_file(info_path.string(), FileBase::kTruncate);
143 if (!mObjFile->lock(FileBase::kWriteLock)) {
/frameworks/compile/libbcc/lib/ExecutionEngine/
H A DObjectLoader.cpp22 #include "bcc/Support/FileBase.h"
102 ObjectLoader *ObjectLoader::Load(FileBase &pFile,

Completed in 185 milliseconds