Searched refs:mmfile (Results 1 – 4 of 4) sorted by relevance
/external/libchrome/base/metrics/ |
D | persistent_memory_allocator_unittest.cc | 749 std::unique_ptr<MemoryMappedFile> mmfile(new MemoryMappedFile()); in TEST() local 750 mmfile->Initialize(file_path); in TEST() 751 EXPECT_TRUE(mmfile->IsValid()); in TEST() 752 const size_t mmlength = mmfile->length(); in TEST() 755 FilePersistentMemoryAllocator file(std::move(mmfile), 0, 0, "", false); in TEST() 807 std::unique_ptr<MemoryMappedFile> mmfile(new MemoryMappedFile()); in TEST() local 808 mmfile->Initialize( in TEST() 811 FilePersistentMemoryAllocator allocator(std::move(mmfile), region.size, 0, in TEST() 826 std::unique_ptr<MemoryMappedFile> mmfile(new MemoryMappedFile()); in TEST() local 827 mmfile->Initialize( in TEST() [all …]
|
D | persistent_histogram_allocator.cc | 689 std::unique_ptr<MemoryMappedFile> mmfile(new MemoryMappedFile()); in CreateWithFile() local 692 mmfile->Initialize(std::move(file), MemoryMappedFile::READ_WRITE); in CreateWithFile() 694 mmfile->Initialize(std::move(file), {0, size}, in CreateWithFile() 697 if (!mmfile->IsValid() || in CreateWithFile() 698 !FilePersistentMemoryAllocator::IsFileAcceptable(*mmfile, true)) { in CreateWithFile() 703 std::make_unique<FilePersistentMemoryAllocator>(std::move(mmfile), size, in CreateWithFile() 846 MemoryMappedFile mmfile; in CreateSpareFile() local 847 mmfile.Initialize(std::move(spare_file), {0, size}, in CreateSpareFile() 849 success = mmfile.IsValid(); in CreateSpareFile()
|
/external/icing/icing/file/ |
D | memory-mapped-file-leak_test.cc | 43 MemoryMappedFile mmfile(filesystem, mmfile_dir + "/mmfile", in TEST() local 59 mmfile.Remap(100, 500); in TEST()
|
/external/libchrome/base/debug/ |
D | activity_analyzer.cc | 120 std::unique_ptr<MemoryMappedFile> mmfile(new MemoryMappedFile()); in CreateWithFile() local 121 mmfile->Initialize(file_path, MemoryMappedFile::READ_WRITE); in CreateWithFile() 122 if (!mmfile->IsValid()) { in CreateWithFile() 127 if (!FilePersistentMemoryAllocator::IsFileAcceptable(*mmfile, true)) { in CreateWithFile() 133 std::move(mmfile), 0, 0, StringPiece(), /*readonly=*/true)); in CreateWithFile()
|