Home
last modified time | relevance | path

Searched refs:FileHandle (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/compile/mclinker/lib/Support/
DFileHandle.cpp29 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 …]
DMemoryAreaFactory.cpp26 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()
DFileOutputBuffer.cpp16 FileHandle& pFileHandle) in FileOutputBuffer()
26 FileOutputBuffer::create(FileHandle& pFileHandle, in create()
DAndroid.bp17 "FileHandle.cpp",
/frameworks/native/libs/vr/libpdx/private/pdx/
Dfile_handle.h20 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/
DUniqueGCFactoryBaseTest.cpp74 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()
DFileHandleTest.cpp21 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()
DFragmentRefTest.cpp47 areaFactory->produce(path, FileHandle::OpenMode(FileHandle::ReadWrite),
48 FileHandle::Permission(FileHandle::System));
DFileHandleTest.h15 class FileHandle; variable
41 mcld::FileHandle* m_pTestee;
/frameworks/compile/mclinker/include/mcld/MC/
DFileAction.h34 FileHandle::OpenModeEnum pMode,
35 FileHandle::PermissionEnum pPerm = FileHandle::System);
40 FileHandle::OpenMode m_Mode;
41 FileHandle::Permission m_Permission;
DInputBuilder.h68 FileHandle::OpenMode pMode,
69 FileHandle::Permission pPerm);
/frameworks/compile/mclinker/include/mcld/Support/
DMemoryAreaFactory.h45 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);
DFileOutputBuffer.h22 class FileHandle; variable
31 static std::error_code create(FileHandle& pFileHandle,
60 FileHandle& pFileHandle);
63 FileHandle& m_FileHandle;
DFileHandle.h25 class FileHandle {
65 FileHandle();
67 ~FileHandle();
DTarget.h27 class FileHandle; variable
49 FileHandle& pFileHandle);
75 FileHandle& pFileHandle) const;
/frameworks/compile/mclinker/lib/Support/Windows/
DFileSystem.inc9 #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/
DFileSystem.inc9 #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/
DLinker.cpp256 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()
DIRBuilder.cpp150 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/
DGroupCmd.cpp156 if (!m_Builder.setMemory(*input, FileHandle::OpenMode(FileHandle::ReadOnly), in activate()
157 FileHandle::Permission(FileHandle::System))) { in activate()
DInputCmd.cpp172 FileHandle::OpenMode(FileHandle::ReadOnly), in activate()
173 FileHandle::Permission(FileHandle::System))) { in activate()
/frameworks/compile/mclinker/lib/MC/
DFileAction.cpp40 FileHandle::OpenModeEnum pMode, in MemoryAreaAction()
41 FileHandle::PermissionEnum pPerm) in MemoryAreaAction()
DInputBuilder.cpp122 FileHandle::OpenMode pMode, in setMemory()
123 FileHandle::Permission pPerm) { in setMemory()
/frameworks/compile/mclinker/lib/LD/
DArchive.cpp239 FileHandle::OpenMode(FileHandle::ReadOnly), in getMemberFile()
240 FileHandle::Permission(FileHandle::System))) { in getMemberFile()
/frameworks/compile/mclinker/include/mcld/
DLinker.h16 class FileHandle; variable

12