Home
last modified time | relevance | path

Searched refs:ash_file (Results 1 – 3 of 3) sorted by relevance

/external/cronet/base/i18n/
Dicu_mergeable_data_file.cc59 bool Initialize(File ash_file) { in Initialize() argument
60 fd_ = ash_file.GetPlatformFile(); in Initialize()
61 return memory_mapped_file_.Initialize(std::move(ash_file)); in Initialize()
78 File ash_file(FilePath(ash_file_path), File::FLAG_OPEN | File::FLAG_READ); in MmapAshFile() local
82 bool map_successful = ash_mapped_file->Initialize(std::move(ash_file)); in MmapAshFile()
154 auto ash_file = MmapAshFile(ash_file_path); in MergeWithAshVersion() local
155 if (!ash_file) in MergeWithAshVersion()
159 Hashes hashes = CalculateHashes(*ash_file, ash_file_path); in MergeWithAshVersion()
164 Slice ash_overlap = FindOverlap(*ash_file, hashes, lacros_offset); in MergeWithAshVersion()
172 bool merge_successful = MergeArea(*ash_file, ash_overlap, lacros_offset); in MergeWithAshVersion()
[all …]
Dicu_mergeable_data_file_unittest.cc34 File ash_file(ash_path, flags); in TEST_F() local
36 ASSERT_TRUE(ash_file.IsValid()); in TEST_F()
53 ASSERT_EQ(pg0_sz, ash_file.WriteAtCurrentPos(pg0.data(), pg0_sz)); in TEST_F()
54 ASSERT_EQ(pg1_sz, ash_file.WriteAtCurrentPos(pg1.data(), pg1_sz)); in TEST_F()
55 ASSERT_EQ(pg2_sz, ash_file.WriteAtCurrentPos(pg2.data(), pg2_sz)); in TEST_F()
56 ASSERT_EQ(pg4_sz, ash_file.WriteAtCurrentPos(pg4.data(), pg4_sz)); in TEST_F()
57 ASSERT_TRUE(ash_file.Flush()); in TEST_F()
58 ash_file.Close(); in TEST_F()
134 File ash_file(ash_path, flags); in TEST_F() local
138 ASSERT_TRUE(ash_file.IsValid()); in TEST_F()
[all …]
Dicu_mergeable_data_file.h76 Slice FindOverlap(const AshMemoryMappedFile& ash_file,
80 bool MergeArea(const AshMemoryMappedFile& ash_file,
88 size_t CountEqualPages(const AshMemoryMappedFile& ash_file,
92 Hashes CalculateHashes(const AshMemoryMappedFile& ash_file,
99 bool MaybeLoadCachedHashes(const AshMemoryMappedFile& ash_file,