Home
last modified time | relevance | path

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

123

/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()
/external/cronet/base/files/
Dfile_enumerator_unittest.cc29 const std::vector<FileEnumerator::FolderSearchPolicy> kFolderSearchPolicies{
30 FileEnumerator::FolderSearchPolicy::MATCH_ONLY,
31 FileEnumerator::FolderSearchPolicy::ALL};
55 void CheckModificationTime(const FileEnumerator::FileInfo& actual, in CheckModificationTime()
68 void CheckFileAgainstInfo(const FileEnumerator::FileInfo& actual, in CheckFileAgainstInfo()
77 void CheckDirectoryAgainstInfo(const FileEnumerator::FileInfo& actual, in CheckDirectoryAgainstInfo()
89 FileEnumerator::FolderSearchPolicy folder_search_policy) { in RunEnumerator()
91 FileEnumerator enumerator(root_path, recursive, file_type, pattern, in RunEnumerator()
93 FileEnumerator::ErrorPolicy::IGNORE_ERRORS); in RunEnumerator()
133 TEST(FileEnumerator, NotExistingPath) { in TEST() argument
[all …]
Dfile_enumerator_win.cc20 FilePath BuildSearchFilter(FileEnumerator::FolderSearchPolicy policy, in BuildSearchFilter()
26 case FileEnumerator::FolderSearchPolicy::MATCH_ONLY: in BuildSearchFilter()
28 case FileEnumerator::FolderSearchPolicy::ALL: in BuildSearchFilter()
39 FileEnumerator::FileInfo::FileInfo() { in FileInfo()
43 bool FileEnumerator::FileInfo::IsDirectory() const { in IsDirectory()
47 FilePath FileEnumerator::FileInfo::GetName() const { in GetName()
51 int64_t FileEnumerator::FileInfo::GetSize() const { in GetSize()
60 Time FileEnumerator::FileInfo::GetLastModifiedTime() const { in GetLastModifiedTime()
66 FileEnumerator::FileEnumerator(const FilePath& root_path, in FileEnumerator() function in base::FileEnumerator
69 : FileEnumerator(root_path, in FileEnumerator()
[all …]
Dfile_enumerator_posix.cc39 return file_type & FileEnumerator::SHOW_SYM_LINKS; in ShouldShowSymLinks()
49 return !(file_type & FileEnumerator::SHOW_SYM_LINKS); in ShouldTrackVisitedDirectories()
57 FileEnumerator::FileInfo::FileInfo() { in FileInfo()
61 bool FileEnumerator::FileInfo::IsDirectory() const { in IsDirectory()
65 FilePath FileEnumerator::FileInfo::GetName() const { in GetName()
69 int64_t FileEnumerator::FileInfo::GetSize() const { in GetSize()
73 base::Time FileEnumerator::FileInfo::GetLastModifiedTime() const { in GetLastModifiedTime()
79 FileEnumerator::FileEnumerator(const FilePath& root_path, in FileEnumerator() function in base::FileEnumerator
82 : FileEnumerator(root_path, in FileEnumerator()
88 FileEnumerator::FileEnumerator(const FilePath& root_path, in FileEnumerator() function in base::FileEnumerator
[all …]
Dfile_enumerator.h41 class BASE_EXPORT FileEnumerator {
73 friend class FileEnumerator;
142 FileEnumerator(const FilePath& root_path, bool recursive, int file_type);
143 FileEnumerator(const FilePath& root_path,
147 FileEnumerator(const FilePath& root_path,
152 FileEnumerator(const FilePath& root_path,
158 FileEnumerator(const FileEnumerator&) = delete;
159 FileEnumerator& operator=(const FileEnumerator&) = delete;
160 ~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()
Dimportant_file_writer_cleaner.cc177 FileEnumerator file_enum( in CleanInBackground()
178 directory, /*recursive=*/false, FileEnumerator::FILES, in CleanInBackground()
182 const FileEnumerator::FileInfo info = file_enum.GetInfo(); in CleanInBackground()
/external/cronet/net/disk_cache/
Dcache_util_posix.cc27 base::FileEnumerator iter(from_path, false /* not recursive */, in MoveCache()
28 base::FileEnumerator::DIRECTORIES | base::FileEnumerator::FILES); in MoveCache()
Dcache_util.cc141 base::FileEnumerator iter( in DeleteCache()
144 base::FileEnumerator::FILES | base::FileEnumerator::DIRECTORIES); in DeleteCache()
/external/zlib/google/
Dzip_unittest.cc45 base::FileEnumerator::FileType type) { in GetRelativePaths()
47 base::FileEnumerator files(dir, true, type); in GetRelativePaths()
280 base::FileEnumerator files( in TestUnzipFile()
282 base::FileEnumerator::FILES | base::FileEnumerator::DIRECTORIES); in TestUnzipFile()
385 GetRelativePaths(test_dir_, base::FileEnumerator::FileType::FILES), in TEST_F()
388 GetRelativePaths(test_dir_, base::FileEnumerator::FileType::DIRECTORIES), in TEST_F()
431 GetRelativePaths(test_dir_, base::FileEnumerator::FileType::FILES), in TEST_F()
434 GetRelativePaths(test_dir_, base::FileEnumerator::FileType::DIRECTORIES), in TEST_F()
475 GetRelativePaths(test_dir_, base::FileEnumerator::FileType::FILES), in TEST_F()
496 GetRelativePaths(test_dir_, base::FileEnumerator::FileType::FILES), in TEST_F()
[all …]
Dzip.cc83 base::FileEnumerator file_enumerator( in List()
85 base::FileEnumerator::FILES | base::FileEnumerator::DIRECTORIES); in List()
88 const base::FileEnumerator::FileInfo info = file_enumerator.GetInfo(); in List()
/external/cronet/net/base/
Ddirectory_lister.cc127 int types = base::FileEnumerator::FILES | base::FileEnumerator::DIRECTORIES; in Start()
130 types |= base::FileEnumerator::INCLUDE_DOT_DOT; in Start()
135 base::FileEnumerator file_enum(dir_, recursive, types); in Start()
/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()
/external/cronet/net/disk_cache/simple/
Dsimple_version_upgrade.cc248 base::FileEnumerator e( in DeleteIndexFilesIfCacheIsEmpty()
250 base::FileEnumerator::FILES | base::FileEnumerator::DIRECTORIES); in DeleteIndexFilesIfCacheIsEmpty()
Dsimple_file_enumerator.cc76 base::FileEnumerator::FILES) {}
88 base::FileEnumerator::FileInfo info = enumerator_.GetInfo();
/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/cronet/base/fuchsia/
Dtest_component_context_for_process.cc37 base::FileEnumerator file_enum(base::FilePath("/svc"), /*recursive=*/false, in TestComponentContextForProcess()
38 base::FileEnumerator::NAMES_ONLY); in TestComponentContextForProcess()
/external/cronet/testing/data_driven_testing/
Ddata_driven_test.cc59 base::FileEnumerator input_files( in RunDataDrivenTest()
60 input_directory, false, base::FileEnumerator::FILES, file_name_pattern); in RunDataDrivenTest()

123