/frameworks/compile/mclinker/lib/Support/ |
D | FileHandle.cpp | 29 FileHandle::FileHandle() in FileHandle() function in mcld::FileHandle 37 FileHandle::~FileHandle() { in ~FileHandle() 42 inline static int oflag(FileHandle::OpenMode pMode) { in oflag() 44 if (FileHandle::Unknown == pMode) in oflag() 47 if (FileHandle::ReadWrite == (pMode & FileHandle::ReadWrite)) in oflag() 49 else if (FileHandle::ReadOnly == (pMode & FileHandle::ReadOnly)) in oflag() 51 else if (FileHandle::WriteOnly == (pMode & FileHandle::WriteOnly)) in oflag() 54 if (FileHandle::Append == (pMode & FileHandle::Append)) in oflag() 57 if (FileHandle::Create == (pMode & FileHandle::Create)) in oflag() 60 if (FileHandle::Truncate == (pMode & FileHandle::Truncate)) in oflag() [all …]
|
D | MemoryAreaFactory.cpp | 26 FileHandle::OpenMode pMode) { in produce() 39 FileHandle::OpenMode pMode, in produce() 40 FileHandle::Permission pPerm) { in produce() 65 MemoryArea* MemoryAreaFactory::produce(int pFD, FileHandle::OpenMode pMode) { in produce()
|
D | FileOutputBuffer.cpp | 16 FileHandle& pFileHandle) in FileOutputBuffer() 26 FileOutputBuffer::create(FileHandle& pFileHandle, in create()
|
D | Android.bp | 17 "FileHandle.cpp",
|
/frameworks/native/libs/vr/libpdx/private/pdx/ |
D | file_handle.h | 20 class FileHandle { 25 FileHandle() : fd_(kEmptyFileHandle) {} in FileHandle() function 29 explicit FileHandle(int fd) : fd_(fd) {} in FileHandle() function 33 FileHandle(const std::string& path, int flags, mode_t mode = 0) { 39 FileHandle(const int directory_fd, const std::string& path, int flags, 46 FileHandle(FileHandle&& other) noexcept { in FileHandle() function 53 static FileHandle AsDuplicate(const int fd) { in AsDuplicate() 55 return FileHandle(dup(fd)); in AsDuplicate() 57 return FileHandle(fd); in AsDuplicate() 61 ~FileHandle() { Close(); } in ~FileHandle() [all …]
|
/frameworks/compile/mclinker/unittests/ |
D | UniqueGCFactoryBaseTest.cpp | 74 memFactory->produce(path1, FileHandle::OpenMode(FileHandle::ReadOnly), in TEST_F() 75 FileHandle::Permission(FileHandle::System)); in TEST_F() 77 memFactory->produce(path2, FileHandle::OpenMode(FileHandle::ReadOnly), in TEST_F() 78 FileHandle::Permission(FileHandle::System)); in TEST_F() 82 memFactory->produce(path1, FileHandle::OpenMode(FileHandle::ReadOnly), in TEST_F() 83 FileHandle::Permission(FileHandle::System)); in TEST_F()
|
D | FileHandleTest.cpp | 21 m_pTestee = new FileHandle(); in FileHandleTest() 43 ASSERT_TRUE(m_pTestee->open(path, FileHandle::OpenMode(FileHandle::ReadOnly), in TEST_F() 44 FileHandle::Permission(FileHandle::System))); in TEST_F() 64 ASSERT_TRUE(m_pTestee->delegate(fd, FileHandle::ReadOnly)); in TEST_F() 85 ASSERT_TRUE(m_pTestee->open(path, FileHandle::OpenMode(FileHandle::ReadOnly), in TEST_F() 86 FileHandle::Permission(FileHandle::System))); in TEST_F()
|
D | FragmentRefTest.cpp | 47 areaFactory->produce(path, FileHandle::OpenMode(FileHandle::ReadWrite), 48 FileHandle::Permission(FileHandle::System));
|
D | FileHandleTest.h | 15 class FileHandle; variable 41 mcld::FileHandle* m_pTestee;
|
/frameworks/compile/mclinker/include/mcld/MC/ |
D | FileAction.h | 34 FileHandle::OpenModeEnum pMode, 35 FileHandle::PermissionEnum pPerm = FileHandle::System); 40 FileHandle::OpenMode m_Mode; 41 FileHandle::Permission m_Permission;
|
D | InputBuilder.h | 68 FileHandle::OpenMode pMode, 69 FileHandle::Permission pPerm);
|
/frameworks/compile/mclinker/include/mcld/Support/ |
D | MemoryAreaFactory.h | 45 MemoryArea* produce(const sys::fs::Path& pPath, FileHandle::OpenMode pMode); 49 FileHandle::OpenMode pMode, 50 FileHandle::Permission pPerm); 58 MemoryArea* produce(int pFD, FileHandle::OpenMode pMode);
|
D | FileOutputBuffer.h | 22 class FileHandle; variable 31 static std::error_code create(FileHandle& pFileHandle, 60 FileHandle& pFileHandle); 63 FileHandle& m_FileHandle;
|
D | FileHandle.h | 25 class FileHandle { 65 FileHandle(); 67 ~FileHandle();
|
D | Target.h | 27 class FileHandle; variable 49 FileHandle& pFileHandle); 75 FileHandle& pFileHandle) const;
|
/frameworks/compile/mclinker/lib/Support/Windows/ |
D | FileSystem.inc | 9 #include "mcld/Support/FileHandle.h" 78 if (pPerm & FileHandle::ReadOwner || pPerm & FileHandle::ReadGroup || 79 pPerm & FileHandle::ReadOther) 82 if (pPerm & FileHandle::WriteOwner || pPerm & FileHandle::WriteGroup || 83 pPerm & FileHandle::WriteOther) 148 // FileHandle 150 bool FileHandle::mmap(void*& pMemBuffer, size_t pStartOffset, size_t pLength) { 156 bool FileHandle::munmap(void* pMemBuffer, size_t pLength) {
|
/frameworks/compile/mclinker/lib/Support/Unix/ |
D | FileSystem.inc | 9 #include "mcld/Support/FileHandle.h" 107 if (pPerm & FileHandle::ReadOwner) 109 if (pPerm & FileHandle::WriteOwner) 111 if (pPerm & FileHandle::ExeOwner) 113 if (pPerm & FileHandle::ReadGroup) 115 if (pPerm & FileHandle::WriteGroup) 117 if (pPerm & FileHandle::ExeGroup) 119 if (pPerm & FileHandle::ReadOther) 121 if (pPerm & FileHandle::WriteOther) 123 if (pPerm & FileHandle::ExeOther) [all …]
|
/frameworks/compile/mclinker/lib/Core/ |
D | Linker.cpp | 256 FileHandle file; in emit() 257 FileHandle::OpenMode open_mode( in emit() 258 FileHandle::ReadWrite | FileHandle::Truncate | FileHandle::Create); in emit() 259 FileHandle::Permission permission; in emit() 263 permission = FileHandle::Permission(0x644); in emit() 268 permission = FileHandle::Permission(0x755); in emit() 290 FileHandle file; in emit()
|
D | IRBuilder.cpp | 150 m_InputBuilder.setMemory(*input, FileHandle::OpenMode(FileHandle::ReadOnly), in ReadInput() 151 FileHandle::Permission(FileHandle::System)); in ReadInput() 189 m_InputBuilder.setMemory(*input, FileHandle::OpenMode(FileHandle::ReadOnly), in ReadInput() 190 FileHandle::Permission(FileHandle::System)); in ReadInput() 196 Input* IRBuilder::ReadInput(FileHandle& pFileHandle) { in ReadInput() 206 m_InputBuilder.setMemory(*input, FileHandle::OpenMode(FileHandle::ReadOnly), in ReadInput() 207 FileHandle::Permission(FileHandle::System)); in ReadInput()
|
/frameworks/compile/mclinker/lib/Script/ |
D | GroupCmd.cpp | 156 if (!m_Builder.setMemory(*input, FileHandle::OpenMode(FileHandle::ReadOnly), in activate() 157 FileHandle::Permission(FileHandle::System))) { in activate()
|
D | InputCmd.cpp | 172 FileHandle::OpenMode(FileHandle::ReadOnly), in activate() 173 FileHandle::Permission(FileHandle::System))) { in activate()
|
/frameworks/compile/mclinker/lib/MC/ |
D | FileAction.cpp | 40 FileHandle::OpenModeEnum pMode, in MemoryAreaAction() 41 FileHandle::PermissionEnum pPerm) in MemoryAreaAction()
|
D | InputBuilder.cpp | 122 FileHandle::OpenMode pMode, in setMemory() 123 FileHandle::Permission pPerm) { in setMemory()
|
/frameworks/compile/mclinker/lib/LD/ |
D | Archive.cpp | 239 FileHandle::OpenMode(FileHandle::ReadOnly), in getMemberFile() 240 FileHandle::Permission(FileHandle::System))) { in getMemberFile()
|
/frameworks/compile/mclinker/include/mcld/ |
D | Linker.h | 16 class FileHandle; variable
|