Home
last modified time | relevance | path

Searched refs:FileEnumerator (Results 1 – 19 of 19) 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_util_unittest.cc252 FileEnumerator::FILES | FileEnumerator::DIRECTORIES;
270 explicit FindResultCollector(FileEnumerator* enumerator) { in FindResultCollector()
892 FileEnumerator f1(subdir_path, true, FileEnumerator::FILES); in TEST_F()
904 FileEnumerator f2(subdir_path, true, FileEnumerator::FILES); in TEST_F()
2559 FileEnumerator f0(temp_dir_.GetPath(), true, FILES_AND_DIRECTORIES); in TEST_F()
2564 FileEnumerator f0_dotdot( in TEST_F()
2566 FILES_AND_DIRECTORIES | FileEnumerator::INCLUDE_DOT_DOT); in TEST_F()
2592 FileEnumerator f1(temp_dir_.GetPath(), true, FileEnumerator::FILES); in TEST_F()
2601 FileEnumerator f2(temp_dir_.GetPath(), true, FileEnumerator::DIRECTORIES); in TEST_F()
2609 FileEnumerator f2_non_recursive(temp_dir_.GetPath(), false, in TEST_F()
[all …]
Dfile_path_watcher_linux.cc580 FileEnumerator enumerator( in UpdateRecursiveWatchesForPath()
583 FileEnumerator::DIRECTORIES | FileEnumerator::SHOW_SYM_LINKS); in UpdateRecursiveWatchesForPath()
/external/libchrome/components/policy/core/common/
Dconfig_dir_policy_loader.cc111 base::FileEnumerator file_enumerator(path, false, in LastModificationTime()
112 base::FileEnumerator::FILES); in LastModificationTime()
129 base::FileEnumerator file_enumerator(path, false, in LoadFromPath()
130 base::FileEnumerator::FILES); in LoadFromPath()
/external/libbrillo/brillo/
Dosrelease_reader.cc37 base::FileEnumerator enumerator( in Load()
38 osreleased, false, base::FileEnumerator::FILES); in Load()
Dfile_utils.cc513 base::FileEnumerator file_iter(root_path, true, in ComputeDirectoryDiskUsage()
514 base::FileEnumerator::FILES | in ComputeDirectoryDiskUsage()
515 base::FileEnumerator::DIRECTORIES | in ComputeDirectoryDiskUsage()
516 base::FileEnumerator::SHOW_SYM_LINKS); in ComputeDirectoryDiskUsage()
/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()
/external/angle/third_party/zlib/google/
Dzip.cc81 base::FileEnumerator file_enumerator( in List()
83 base::FileEnumerator::FILES | base::FileEnumerator::DIRECTORIES); in List()
86 const base::FileEnumerator::FileInfo info = file_enumerator.GetInfo(); in List()
Dzip_unittest.cc222 base::FileEnumerator files( in TestUnzipFile()
224 base::FileEnumerator::FILES | base::FileEnumerator::DIRECTORIES); in TestUnzipFile()
391 base::FileEnumerator extractedFiles( in TEST_F()
394 base::FileEnumerator::FileType::FILES); in TEST_F()
400 base::FileEnumerator extractedDirs( in TEST_F()
403 base::FileEnumerator::FileType::DIRECTORIES); in TEST_F()
/external/zlib/google/
Dzip_unittest.cc196 base::FileEnumerator files(test_dir_, true, in TestUnzipFile()
197 base::FileEnumerator::FILES | base::FileEnumerator::DIRECTORIES); in TestUnzipFile()
360 base::FileEnumerator extractedFiles( in TEST_F()
363 base::FileEnumerator::FileType::FILES); in TEST_F()
369 base::FileEnumerator extractedDirs( in TEST_F()
372 base::FileEnumerator::FileType::DIRECTORIES); in TEST_F()
Dzip.cc76 base::FileEnumerator file_enumerator( in ListDirectoryContent()
78 base::FileEnumerator::FILES | base::FileEnumerator::DIRECTORIES); in ListDirectoryContent()
/external/libbrillo/brillo/blkdev_utils/
Dloop_device.cc250 base::FileEnumerator loopdev_enum( in SearchLoopDevicePaths()
252 base::FileEnumerator::FILES | base::FileEnumerator::SHOW_SYM_LINKS, in SearchLoopDevicePaths()
/external/libchrome/base/process/
Dprocess_util_unittest.cc331 base::FileEnumerator enumerator( in MULTIPROCESS_TEST_MAIN()
333 base::FileEnumerator::FILES | base::FileEnumerator::DIRECTORIES); in MULTIPROCESS_TEST_MAIN()