Searched refs:fs (Results 1 - 25 of 89) 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));
/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);
/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/av/media/libstagefright/codecs/avc/common/src/
H A Ddpb.cpp35 dpb->fs[num_fs] = NULL;
82 /* fs is an array pointers to AVCDecPicture */
83 dpb->fs[num_fs] = (AVCFrameStore*) avcHandle->CBAVC_Malloc(userData, sizeof(AVCFrameStore), 101/*DEFAULT_ATTR*/);
84 if (dpb->fs[num_fs] == NULL)
90 dpb->fs[num_fs]->base_dpb = dpb->decoded_picture_buffer + dpb->used_size;
92 dpb->fs[num_fs]->IsReference = 0;
93 dpb->fs[num_fs]->IsLongTerm = 0;
94 dpb->fs[num_fs]->IsOutputted = 3;
95 dpb->fs[num_fs]->frame.RefIdx = refIdx++; /* this value will remain unchanged through out the encoding session */
96 dpb->fs[num_f
694 AVCFrameStore *fs = dpb->fs[idx]; local
[all...]
H A Dreflist.cpp42 if ((dpb->fs[i]->IsReference == 3) && (!dpb->fs[i]->IsLongTerm))
45 if (dpb->fs[i]->FrameNum > (int)sliceHdr->frame_num)
47 dpb->fs[i]->FrameNumWrap = dpb->fs[i]->FrameNum - video->MaxFrameNum;
51 dpb->fs[i]->FrameNumWrap = dpb->fs[i]->FrameNum;
53 dpb->fs[i]->frame.PicNum = dpb->fs[i]->FrameNumWrap;
66 if ((dpb->fs[
[all...]
/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.java155 StatFs fs = new StatFs(CACHE_DIR);
156 int blockSize = fs.getBlockSize();
157 int availableBlocks = fs.getAvailableBlocks();
175 while (fs.getAvailableBlocks() >= remainderSizeBlocks) {
177 fs.restat(CACHE_DIR);
190 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 743 milliseconds

1234