Home
last modified time | relevance | path

Searched refs:FileEnumerator (Results 1 – 10 of 10) sorted by relevance

/external/libchrome/base/files/
Dfile_enumerator_unittest.cc26 const std::vector<FileEnumerator::FolderSearchPolicy> kFolderSearchPolicies{
27 FileEnumerator::FolderSearchPolicy::MATCH_ONLY,
28 FileEnumerator::FolderSearchPolicy::ALL};
35 FileEnumerator::FolderSearchPolicy folder_search_policy) { in RunEnumerator()
37 FileEnumerator enumerator(root_path, recursive, file_type, pattern, in RunEnumerator()
50 TEST(FileEnumerator, NotExistingPath) { in TEST() argument
56 path, true, FileEnumerator::FILES & FileEnumerator::DIRECTORIES, in TEST()
62 TEST(FileEnumerator, EmptyFolder) { in TEST() argument
69 FileEnumerator::FILES & FileEnumerator::DIRECTORIES, in TEST()
75 TEST(FileEnumerator, SingleFileInFolderForFileSearch) { in TEST() argument
[all …]
Dfile_enumerator_posix.cc37 FileEnumerator::FileInfo::FileInfo() { in FileInfo()
41 bool FileEnumerator::FileInfo::IsDirectory() const { in IsDirectory()
45 FilePath FileEnumerator::FileInfo::GetName() const { in GetName()
49 int64_t FileEnumerator::FileInfo::GetSize() const { in GetSize()
53 base::Time FileEnumerator::FileInfo::GetLastModifiedTime() const { in GetLastModifiedTime()
59 FileEnumerator::FileEnumerator(const FilePath& root_path, in FileEnumerator() function in base::FileEnumerator
62 : FileEnumerator(root_path, in FileEnumerator()
68 FileEnumerator::FileEnumerator(const FilePath& root_path, in FileEnumerator() function in base::FileEnumerator
72 : FileEnumerator(root_path, in FileEnumerator()
78 FileEnumerator::FileEnumerator(const FilePath& root_path, in FileEnumerator() function in base::FileEnumerator
[all …]
Dfile_enumerator.h40 class BASE_EXPORT FileEnumerator {
68 friend class FileEnumerator;
115 FileEnumerator(const FilePath& root_path,
118 FileEnumerator(const FilePath& root_path,
122 FileEnumerator(const FilePath& root_path,
127 ~FileEnumerator();
169 DISALLOW_COPY_AND_ASSIGN(FileEnumerator);
Dfile_enumerator.cc11 FileEnumerator::FileInfo::~FileInfo() = default;
13 bool FileEnumerator::ShouldSkip(const FilePath& path) { in ShouldSkip()
20 bool FileEnumerator::IsTypeMatched(bool is_dir) const { in IsTypeMatched()
22 (is_dir ? FileEnumerator::DIRECTORIES : FileEnumerator::FILES)) != 0; in IsTypeMatched()
Dfile_util.cc40 FileEnumerator file_iter(root_path, true, FileEnumerator::FILES); in ComputeDirectorySize()
196 FileEnumerator files(dir_path, false, in IsDirectoryEmpty()
197 FileEnumerator::FILES | FileEnumerator::DIRECTORIES); in IsDirectoryEmpty()
Dfile_util_posix.cc141 bool AdvanceEnumeratorWithStat(FileEnumerator* traversal, in AdvanceEnumeratorWithStat()
210 int traverse_type = FileEnumerator::FILES | FileEnumerator::SHOW_SYM_LINKS; in DoCopyDirectory()
212 traverse_type |= FileEnumerator::DIRECTORIES; in DoCopyDirectory()
213 FileEnumerator traversal(from_path, recursive, traverse_type); in DoCopyDirectory()
365 FileEnumerator traversal(path, true, in DeleteFile()
366 FileEnumerator::FILES | FileEnumerator::DIRECTORIES | in DeleteFile()
367 FileEnumerator::SHOW_SYM_LINKS); in DeleteFile()
Dfile_path_watcher_linux.cc580 FileEnumerator enumerator( in UpdateRecursiveWatchesForPath()
583 FileEnumerator::DIRECTORIES | FileEnumerator::SHOW_SYM_LINKS); in UpdateRecursiveWatchesForPath()
/external/libbrillo/brillo/
Dosrelease_reader.cc37 base::FileEnumerator enumerator( in Load()
38 osreleased, false, base::FileEnumerator::FILES); in Load()
/external/libbrillo/policy/
Dresilient_policy_util.cc27 base::FileEnumerator file_iter(directory, false, base::FileEnumerator::FILES); in GetSortedResilientPolicyFilePaths()
/external/libchrome/mojo/core/test/
Dtest_support_impl.cc68 base::FileEnumerator e(ResolveSourceRootRelativePath(relative_path), false, in EnumerateSourceRootRelativeDirectory()
69 base::FileEnumerator::FILES); in EnumerateSourceRootRelativeDirectory()