Home
last modified time | relevance | path

Searched refs:pDir (Results 1 – 9 of 9) sorted by relevance

/frameworks/compile/mclinker/lib/Support/Unix/
DFileSystem.inc42 static int read_dir(intptr_t& pDir, std::string& pOutFilename) {
44 dirent* cur_dir = ::readdir(reinterpret_cast<DIR*>(pDir));
56 return read_dir(pDir, pOutFilename);
63 void open_dir(Directory& pDir) {
64 pDir.m_Handler = reinterpret_cast<intptr_t>(opendir(pDir.path().c_str()));
65 if (0 == pDir.m_Handler) {
68 pDir.m_CacheFull = true;
72 std::string path(pDir.path().native());
73 switch (read_dir(pDir.m_Handler, path)) {
78 pDir.m_Cache.insert(path, exist);
[all …]
/frameworks/compile/mclinker/lib/Support/Windows/
DFileSystem.inc44 void open_dir(Directory& pDir) {
45 fs::Path file_filter(pDir.path());
50 pDir.m_Handler = reinterpret_cast<intptr_t>(hFile);
54 pDir.m_CacheFull = true;
61 fs::PathCache::entry_type* entry = pDir.m_Cache.insert(path, exist);
66 void close_dir(Directory& pDir) {
67 if (pDir.m_Handler)
68 FindClose(reinterpret_cast<HANDLE>(pDir.m_Handler));
69 pDir.m_Handler = 0;
/frameworks/av/drm/libdrmframework/include/
DPlugInManager.h204 DIR* pDir = opendir(rsDirPath.string()); in getPlugInPathList() local
207 while (NULL != pDir && NULL != (pEntry = readdir(pDir))) { in getPlugInPathList()
219 if (NULL != pDir) { in getPlugInPathList()
220 closedir(pDir); in getPlugInPathList()
/frameworks/av/media/libmediaplayerservice/
DCrypto.cpp109 DIR* pDir = opendir(dirPath.string()); in findFactoryForScheme() local
110 if (pDir) { in findFactoryForScheme()
112 while ((pEntry = readdir(pDir))) { in findFactoryForScheme()
121 closedir(pDir); in findFactoryForScheme()
127 closedir(pDir); in findFactoryForScheme()
DDrm.cpp228 DIR* pDir = opendir(dirPath.string()); in findFactoryForScheme() local
230 if (pDir == NULL) { in findFactoryForScheme()
238 while ((pEntry = readdir(pDir))) { in findFactoryForScheme()
247 closedir(pDir); in findFactoryForScheme()
253 closedir(pDir); in findFactoryForScheme()
/frameworks/compile/mclinker/include/mcld/Support/
DFileSystem.h90 void open_dir(Directory& pDir);
91 void close_dir(Directory& pDir);
DDirectory.h34 friend void detail::open_dir(Directory& pDir);
35 friend void detail::close_dir(Directory& pDir);
/frameworks/base/core/tests/coretests/src/android/content/pm/
DAppCacheTest.java58 void cleanUpDirectory(File pDir, String dirName) { in cleanUpDirectory() argument
59 File testDir = new File(pDir, dirName); in cleanUpDirectory()
698 void verifyUserDataCleared(File pDir) { in verifyUserDataCleared() argument
699 if(localLOGV) Log.i(TAG, "Verifying "+pDir); in verifyUserDataCleared()
700 if(pDir == null) { in verifyUserDataCleared()
703 String fileList[] = pDir.list(); in verifyUserDataCleared()
710 if(localLOGV) Log.i(TAG, "Found entry "+fileList[i]+ "in "+pDir); in verifyUserDataCleared()
715 fail(pDir+" should be empty or contain only lib subdirectory. Found "+fileList[i]); in verifyUserDataCleared()
/frameworks/base/libs/androidfw/
DAssetManager.cpp1210 AssetDir* pDir = NULL; in openDir() local
1221 pDir = new AssetDir; in openDir()
1256 pDir->setFileList(pMergedInfo); in openDir()
1257 return pDir; in openDir()
1273 AssetDir* pDir = NULL; in openNonAssetDir() local
1284 pDir = new AssetDir; in openNonAssetDir()
1310 pDir->setFileList(pMergedInfo); in openNonAssetDir()
1311 return pDir; in openNonAssetDir()