/external/libchrome/base/files/ |
D | file_enumerator_unittest.cc | 26 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 …]
|
D | file_enumerator_posix.cc | 37 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 …]
|
D | file_enumerator.h | 40 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);
|
D | file_enumerator.cc | 11 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()
|
D | file_util.cc | 40 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()
|
D | file_util_posix.cc | 141 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/ |
D | file_enumerator_unittest.cc | 29 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 …]
|
D | file_enumerator_win.cc | 20 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 …]
|
D | file_enumerator_posix.cc | 39 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 …]
|
D | file_enumerator.h | 41 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();
|
D | file_enumerator.cc | 11 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()
|
D | important_file_writer_cleaner.cc | 177 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/ |
D | cache_util_posix.cc | 27 base::FileEnumerator iter(from_path, false /* not recursive */, in MoveCache() 28 base::FileEnumerator::DIRECTORIES | base::FileEnumerator::FILES); in MoveCache()
|
D | cache_util.cc | 141 base::FileEnumerator iter( in DeleteCache() 144 base::FileEnumerator::FILES | base::FileEnumerator::DIRECTORIES); in DeleteCache()
|
/external/zlib/google/ |
D | zip_unittest.cc | 45 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 …]
|
D | zip.cc | 83 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/ |
D | directory_lister.cc | 127 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/ |
D | config_dir_policy_loader.cc | 111 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/ |
D | osrelease_reader.cc | 37 base::FileEnumerator enumerator( in Load() 38 osreleased, false, base::FileEnumerator::FILES); in Load()
|
/external/cronet/net/disk_cache/simple/ |
D | simple_version_upgrade.cc | 248 base::FileEnumerator e( in DeleteIndexFilesIfCacheIsEmpty() 250 base::FileEnumerator::FILES | base::FileEnumerator::DIRECTORIES); in DeleteIndexFilesIfCacheIsEmpty()
|
D | simple_file_enumerator.cc | 76 base::FileEnumerator::FILES) {} 88 base::FileEnumerator::FileInfo info = enumerator_.GetInfo();
|
/external/libbrillo/policy/ |
D | resilient_policy_util.cc | 27 base::FileEnumerator file_iter(directory, false, base::FileEnumerator::FILES); in GetSortedResilientPolicyFilePaths()
|
/external/libchrome/mojo/core/test/ |
D | test_support_impl.cc | 68 base::FileEnumerator e(ResolveSourceRootRelativePath(relative_path), false, in EnumerateSourceRootRelativeDirectory() 69 base::FileEnumerator::FILES); in EnumerateSourceRootRelativeDirectory()
|
/external/cronet/base/fuchsia/ |
D | test_component_context_for_process.cc | 37 base::FileEnumerator file_enum(base::FilePath("/svc"), /*recursive=*/false, in TestComponentContextForProcess() 38 base::FileEnumerator::NAMES_ONLY); in TestComponentContextForProcess()
|
/external/cronet/testing/data_driven_testing/ |
D | data_driven_test.cc | 59 base::FileEnumerator input_files( in RunDataDrivenTest() 60 input_directory, false, base::FileEnumerator::FILES, file_name_pattern); in RunDataDrivenTest()
|