Searched refs:fs (Results 1 - 25 of 99) sorted by relevance

1234

/frameworks/compile/mclinker/lib/Support/
H A DFileSystem.cpp16 bool mcld::sys::fs::exists(const Path& pPath) {
17 mcld::sys::fs::FileStatus file_status;
18 mcld::sys::fs::detail::status(pPath, file_status);
19 return (file_status.type() != mcld::sys::fs::StatusError) &&
20 (file_status.type() != mcld::sys::fs::FileNotFound);
23 bool mcld::sys::fs::is_directory(const Path& pPath) {
26 return (file_status.type() == mcld::sys::fs::DirectoryFile);
H A DFileOutputBuffer.cpp15 FileOutputBuffer::FileOutputBuffer(llvm::sys::fs::mapped_file_region* pRegion,
32 ec = llvm::sys::fs::resize_file(pFileHandle.handler(), pSize);
36 std::unique_ptr<llvm::sys::fs::mapped_file_region> mapped_file(
37 new llvm::sys::fs::mapped_file_region(pFileHandle.handler(),
38 llvm::sys::fs::mapped_file_region::readwrite, pSize, 0, ec));
H A DFileHandle.cpp76 bool FileHandle::open(const sys::fs::Path& pPath,
86 m_Handler = sys::fs::detail::open(pPath, oflag(pMode));
88 m_Handler = sys::fs::detail::open(pPath, oflag(pMode),
150 if (sys::fs::detail::ftruncate(m_Handler, pSize) == -1) {
169 sys::fs::detail::pread(m_Handler, pMemBuffer, pLength, pStartOffset);
191 sys::fs::detail::pwrite(m_Handler, pMemBuffer, pLength, pStartOffset);
/frameworks/compile/mclinker/include/mcld/Support/
H A DRealPath.h17 namespace fs { namespace in namespace:mcld::sys
42 } // namespace fs
52 struct less<mcld::sys::fs::RealPath>
53 : public binary_function<mcld::sys::fs::RealPath,
54 mcld::sys::fs::RealPath,
56 bool operator()(const mcld::sys::fs::RealPath& pX,
57 const mcld::sys::fs::RealPath& pY) const {
H A DPathCache.h19 namespace fs { namespace in namespace:mcld::sys
22 mcld::sys::fs::Path,
29 } // namespace fs
H A DDirectory.h22 namespace fs { namespace in namespace:mcld::sys
32 friend mcld::sys::fs::PathCache::entry_type* detail::bring_one_into_cache(
90 mcld::sys::fs::Path m_Path;
95 mcld::sys::fs::PathCache m_Cache;
110 friend mcld::sys::fs::PathCache::entry_type* detail::bring_one_into_cache(
115 typedef mcld::sys::fs::PathCache DirCache;
151 } // namespace fs
H A DMemoryAreaFactory.h45 MemoryArea* produce(const sys::fs::Path& pPath, FileHandle::OpenMode pMode);
48 MemoryArea* produce(const sys::fs::Path& pPath,
H A Draw_ostream.h32 llvm::sys::fs::OpenFlags pFlags = llvm::sys::fs::F_None);
H A DPath.h9 // This file declares the mcld::sys::fs::Path. It follows TR2/boost
27 namespace fs { namespace in namespace:mcld::sys
149 } // namespace fs
159 struct less<mcld::sys::fs::Path>
160 : public binary_function<mcld::sys::fs::Path, mcld::sys::fs::Path, bool> {
161 bool operator()(const mcld::sys::fs::Path& pX,
162 const mcld::sys::fs::Path& pY) const {
/frameworks/compile/mclinker/include/mcld/MC/
H A DContextFactory.h31 class ContextFactory : public UniqueGCFactoryBase<sys::fs::Path, LDContext, 0> {
37 LDContext* produce(const sys::fs::Path& pPath);
H A DSearchDirs.h44 explicit SearchDirs(const sys::fs::Path& pSysRoot);
49 sys::fs::Path* find(const std::string& pNamespec,
52 const sys::fs::Path* find(const std::string& pNamespec,
55 void setSysRoot(const sys::fs::Path& pSysRoot) { m_SysRoot = pSysRoot; }
56 const sys::fs::Path& sysroot() const { return m_SysRoot; }
69 bool insert(const sys::fs::Path& pDirectory);
73 sys::fs::Path m_SysRoot;
H A DMCLDDirectory.h24 class MCLDDirectory : public sys::fs::Directory {
37 void setSysroot(const sys::fs::Path& pPath);
H A DInput.h51 const sys::fs::Path& pPath,
56 const sys::fs::Path& pPath,
67 const sys::fs::Path& path() const { return m_Path; }
69 void setPath(const sys::fs::Path& pPath) { m_Path = pPath; }
112 sys::fs::Path m_Path;
H A DCommandAction.h30 InputFileAction(unsigned int pPosition, const sys::fs::Path& pPath);
34 const sys::fs::Path& path() const { return m_Path; }
39 sys::fs::Path m_Path;
61 BitcodeAction(unsigned int pPosition, const sys::fs::Path& pPath);
63 const sys::fs::Path& path() const { return m_Path; }
68 sys::fs::Path m_Path;
/frameworks/compile/mclinker/lib/MC/
H A DContextFactory.cpp18 : UniqueGCFactoryBase<sys::fs::Path, LDContext, 0>(pNum) {
24 LDContext* ContextFactory::produce(const sys::fs::Path& pPath) {
27 result = UniqueGCFactoryBase<sys::fs::Path, LDContext, 0>::allocate();
35 return produce(sys::fs::Path(pPath));
H A DMCLDDirectory.cpp30 sys::fs::detail::open_dir(*this);
44 sys::fs::detail::open_dir(*this);
58 sys::fs::detail::open_dir(*this);
72 sys::fs::detail::open_dir(*this);
73 Directory::m_FileStatus = sys::fs::FileStatus();
74 Directory::m_SymLinkStatus = sys::fs::FileStatus();
87 void MCLDDirectory::setSysroot(const sys::fs::Path& pSysroot) {
93 sys::fs::detail::canonicalize(Directory::m_Path.native());
94 sys::fs::detail::open_dir(*this);
H A DInputFactory.cpp34 const sys::fs::Path& pPath,
47 new (result) Input(pName, sys::fs::Path(pPath), *m_pLast, pType, pFileOffset);
H A DSearchDirs.cpp34 SearchDirs::SearchDirs(const sys::fs::Path& pSysRoot) : m_SysRoot(pSysRoot) {
66 bool SearchDirs::insert(const sys::fs::Path& pPath) {
70 mcld::sys::fs::Path* SearchDirs::find(const std::string& pNamespec,
107 if (mcld::sys::fs::detail::shared_library_extension ==
121 mcld::sys::fs::detail::static_library_extension ==
135 const mcld::sys::fs::Path* SearchDirs::find(const std::string& pNamespec,
172 if (mcld::sys::fs::detail::shared_library_extension ==
186 mcld::sys::fs::detail::static_library_extension ==
/frameworks/compile/mclinker/unittests/
H A DDirIteratorTest.h16 namespace fs { namespace in namespace:mcld::sys
45 mcld::sys::fs::Directory* m_pDir;
H A DDirIteratorTest.cpp14 using namespace mcld::sys::fs;
25 m_pDir = new mcld::sys::fs::Directory(".");
H A DPathTest.h37 mcld::sys::fs::Path* m_pTestee;
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DProgramCache.cpp155 Formatter fs; local
157 fs << "#extension GL_OES_EGL_image_external : require";
161 fs << "precision mediump float;";
164 fs << "uniform samplerExternalOES sampler;"
167 fs << "uniform sampler2D sampler;"
170 fs << "uniform vec4 color;";
173 fs << "uniform float alphaPlane;";
176 fs << "uniform mat4 colorMatrix;";
178 fs << "void main(void) {" << indent;
180 fs << "gl_FragColo
219 String8 fs = generateFragmentShader(needs); local
[all...]
/frameworks/compile/mclinker/lib/Core/
H A DLinkerScript.cpp22 const mcld::sys::fs::Path& LinkerScript::sysroot() const {
26 void LinkerScript::setSysroot(const mcld::sys::fs::Path& pSysroot) {
/frameworks/base/core/tests/coretests/src/android/app/
H A DDownloadManagerStressTest.java157 StatFs fs = new StatFs(CACHE_DIR);
158 int blockSize = fs.getBlockSize();
159 int availableBlocks = fs.getAvailableBlocks();
177 while (fs.getAvailableBlocks() >= remainderSizeBlocks) {
179 fs.restat(CACHE_DIR);
192 long spaceAvailable = fs.getAvailableBlocks() * blockSize;
/frameworks/base/tests/LowStorageTest/src/com/android/lowstoragetest/
H A DLowStorageTest.java83 FileOutputStream fs =
87 fs.write(buf);
88 fs.flush();
93 fs.write(buf);
94 fs.flush();
95 fs.close();

Completed in 679 milliseconds

1234