Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Dutils.cpp171 std::vector<std::string> GetEntriesInDir(const std::string& dirpath) { in GetEntriesInDir() argument
173 DIR* dir = opendir(dirpath.c_str()); in GetEntriesInDir()
175 PLOG(DEBUG) << "can't open dir " << dirpath; in GetEntriesInDir()
189 std::vector<std::string> GetSubDirs(const std::string& dirpath) { in GetSubDirs() argument
190 std::vector<std::string> entries = GetEntriesInDir(dirpath); in GetSubDirs()
193 if (IsDir(dirpath + OS_PATH_SEPARATOR + entries[i])) { in GetSubDirs()
200 bool IsDir(const std::string& dirpath) { in IsDir() argument
202 if (stat(dirpath.c_str(), &st) == 0) { in IsDir()
Dutils.h135 std::vector<std::string> GetEntriesInDir(const std::string& dirpath);
136 std::vector<std::string> GetSubDirs(const std::string& dirpath);
137 bool IsDir(const std::string& dirpath);
/system/iorap/src/inode2filename/
Dsearch_directories.cc208 void search_for_inodes_in(std::vector<Inode>& inode_list, const std::string& dirpath);
424 ReadDirectoryEntriesFromDirectoryPath(std::string dirpath, borrowed<SystemCall*> system_call) { in ReadDirectoryEntriesFromDirectoryPath() argument
428 LOG(VERBOSE) << "ReadDirectoryEntriesFromDirectoryPath(" << dirpath << ")"; in ReadDirectoryEntriesFromDirectoryPath()
430 if ((dirp = system_call->opendir(dirpath.c_str())) == nullptr) { in ReadDirectoryEntriesFromDirectoryPath()
431 PLOG(ERROR) << "Couldn't open directory: " << dirpath; in ReadDirectoryEntriesFromDirectoryPath()
432 return {DirectoryEntryError{kOpenDir, errno, dirpath}}; in ReadDirectoryEntriesFromDirectoryPath()
439 auto child_path = [&] { return dirpath + "/" + dp->d_name; }; in ReadDirectoryEntriesFromDirectoryPath()
470 PLOG(ERROR) << "Error reading directory entry in " << dirpath; in ReadDirectoryEntriesFromDirectoryPath()
472 results.push_back(DirectoryEntryError{kReadDir, errno, dirpath}); in ReadDirectoryEntriesFromDirectoryPath()
477 PLOG(ERROR) << "Failed to close directory " << dirpath; in ReadDirectoryEntriesFromDirectoryPath()
/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/apex/apexer/
Dapexer.py207 for dirpath, _, filenames in os.walk(dir_name):
208 size += RoundUp(os.path.getsize(dirpath), BLOCK_SIZE)
210 path = os.path.join(dirpath, f)