Home
last modified time | relevance | path

Searched refs:dirpath (Results 1 – 6 of 6) sorted by relevance

/system/extras/simpleperf/
Dutils.cpp179 std::vector<std::string> GetEntriesInDir(const std::string& dirpath) { in GetEntriesInDir() argument
181 DIR* dir = opendir(dirpath.c_str()); in GetEntriesInDir()
183 PLOG(DEBUG) << "can't open dir " << dirpath; in GetEntriesInDir()
197 std::vector<std::string> GetSubDirs(const std::string& dirpath) { in GetSubDirs() argument
198 std::vector<std::string> entries = GetEntriesInDir(dirpath); in GetSubDirs()
201 if (IsDir(dirpath + OS_PATH_SEPARATOR + entries[i])) { in GetSubDirs()
208 bool IsDir(const std::string& dirpath) { in IsDir() argument
210 if (stat(dirpath.c_str(), &st) == 0) { in IsDir()
Dutils.h156 std::vector<std::string> GetEntriesInDir(const std::string& dirpath);
157 std::vector<std::string> GetSubDirs(const std::string& dirpath);
158 bool IsDir(const std::string& dirpath);
/system/sepolicy/tools/
Dpost_process_mac_perms62 for dirpath, _, files in os.walk(args.dir):
63 transform = lambda x: os.path.join(dirpath, x)
/system/iorap/src/inode2filename/
Dsearch_directories.cc269 void search_for_inodes_in(std::vector<Inode>& inode_list, const std::string& dirpath);
485 ReadDirectoryEntriesFromDirectoryPath(std::string dirpath, borrowed<SystemCall*> system_call) { in ReadDirectoryEntriesFromDirectoryPath() argument
489 LOG(VERBOSE) << "ReadDirectoryEntriesFromDirectoryPath(" << dirpath << ")"; in ReadDirectoryEntriesFromDirectoryPath()
491 if ((dirp = system_call->opendir(dirpath.c_str())) == nullptr) { in ReadDirectoryEntriesFromDirectoryPath()
492 PLOG(ERROR) << "Couldn't open directory: " << dirpath; in ReadDirectoryEntriesFromDirectoryPath()
493 return {DirectoryEntryError{kOpenDir, errno, dirpath}}; in ReadDirectoryEntriesFromDirectoryPath()
500 auto child_path = [&] { return dirpath + "/" + dp->d_name; }; in ReadDirectoryEntriesFromDirectoryPath()
531 PLOG(ERROR) << "Error reading directory entry in " << dirpath; in ReadDirectoryEntriesFromDirectoryPath()
533 results.push_back(DirectoryEntryError{kReadDir, errno, dirpath}); in ReadDirectoryEntriesFromDirectoryPath()
538 PLOG(ERROR) << "Failed to close directory " << dirpath; in ReadDirectoryEntriesFromDirectoryPath()
/system/iorap/src/db/
Dfile_models.cc43 static bool IsDir(const std::string& dirpath) { in IsDir() argument
45 if (stat(dirpath.c_str(), &st) == 0) { in IsDir()
/system/apex/apexer/
Dapexer.py215 for dirpath, _, filenames in os.walk(dir_name):
216 size += RoundUp(os.path.getsize(dirpath), BLOCK_SIZE)
218 path = os.path.join(dirpath, f)