Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Dutils.cpp172 std::vector<std::string> GetEntriesInDir(const std::string& dirpath) { in GetEntriesInDir() argument
174 DIR* dir = opendir(dirpath.c_str()); in GetEntriesInDir()
176 PLOG(DEBUG) << "can't open dir " << dirpath; in GetEntriesInDir()
190 std::vector<std::string> GetSubDirs(const std::string& dirpath) { in GetSubDirs() argument
191 std::vector<std::string> entries = GetEntriesInDir(dirpath); in GetSubDirs()
194 if (IsDir(dirpath + OS_PATH_SEPARATOR + entries[i])) { in GetSubDirs()
201 bool IsDir(const std::string& dirpath) { in IsDir() argument
203 if (stat(dirpath.c_str(), &st) == 0) { in IsDir()
Dutils.h134 std::vector<std::string> GetEntriesInDir(const std::string& dirpath);
135 std::vector<std::string> GetSubDirs(const std::string& dirpath);
136 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.py113 for dirpath, _, filenames in os.walk(dir_name):
114 size += RoundUp(os.path.getsize(dirpath), BLOCK_SIZE)
116 size += RoundUp(os.path.getsize(os.path.join(dirpath, f)), BLOCK_SIZE)
/system/core/adb/client/
Dfile_sync_client.cpp865 for (std::string dirpath = rpath; dirpath != "/"; dirpath = android::base::Dirname(dirpath)) { in copy_local_dir_remote() local
866 directory_list.push_back(dirpath); in copy_local_dir_remote()