Searched refs:FileBase (Results 1 - 16 of 16) 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, 0) { }
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.h32 class FileBase { class in namespace:bcc
102 FileBase(FileBase &); // Do not implement.
103 void operator=(const FileBase &); // Do not implement.
107 // FileBase. It's a bit set composed by the value defined in
108 // FileBase::FlagEnum.
109 FileBase(const std::string &pFilename, unsigned pOpenFlags, unsigned pFlags);
153 virtual ~FileBase();
/frameworks/compile/libbcc/lib/Support/
H A DFileBase.cpp17 #include "bcc/Support/FileBase.h"
30 FileBase::FileBase(const std::string &pFilename, function in class:FileBase
57 FileBase::~FileBase() {
61 bool FileBase::open() {
80 bool FileBase::checkFileIntegrity() {
109 void FileBase::detectError() {
114 bool FileBase::lock(enum LockModeEnum pMode,
189 void FileBase
[all...]
H A DAndroid.mk27 FileBase.cpp \
H A DOutputFile.cpp59 pFlags | FileBase::kTruncate);
/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.h34 class FileBase;
160 static android::String8 GetPath(const FileBase &pFile);
/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 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)) {
H A DRSCompilerDriver.cpp86 FileMutex<FileBase::kReadLock> read_output_mutex(pOutputPath);
220 FileMutex<FileBase::kWriteLock> write_output_mutex(pOutputPath);
232 new (std::nothrow) OutputFile(pOutputPath, FileBase::kTruncate);
295 FileBase::kAppend);
H A DRSInfo.cpp25 #include "bcc/Support/FileBase.h"
71 android::String8 RSInfo::GetPath(const FileBase &pFile) {
/frameworks/compile/libbcc/lib/ExecutionEngine/
H A DObjectLoader.cpp22 #include "bcc/Support/FileBase.h"
102 ObjectLoader *ObjectLoader::Load(FileBase &pFile,
/frameworks/compile/libbcc/tools/bcc/
H A DMain.cpp268 OutputFile output_file(pOutputPath, FileBase::kTruncate);

Completed in 90 milliseconds