Home
last modified time | relevance | path

Searched refs:mmapped_file (Results 1 – 8 of 8) sorted by relevance

/external/icing/icing/file/
Dmemory-mapped-file_test.cc60 ICING_ASSERT_OK_AND_ASSIGN(MemoryMappedFile mmapped_file, in TEST_F()
64 EXPECT_THAT(mmapped_file.strategy(), Eq(stragegy)); in TEST_F()
65 EXPECT_THAT(mmapped_file.max_file_size(), Eq(max_file_size)); in TEST_F()
66 EXPECT_THAT(mmapped_file.region(), IsNull()); in TEST_F()
67 EXPECT_THAT(mmapped_file.mutable_region(), IsNull()); in TEST_F()
68 EXPECT_THAT(mmapped_file.file_offset(), Eq(0)); in TEST_F()
69 EXPECT_THAT(mmapped_file.region_size(), Eq(0)); in TEST_F()
70 EXPECT_THAT(mmapped_file.available_size(), Eq(0)); in TEST_F()
87 ICING_ASSERT_OK_AND_ASSIGN(MemoryMappedFile mmapped_file, in TEST_F()
91 EXPECT_THAT(mmapped_file.strategy(), Eq(stragegy)); in TEST_F()
[all …]
Dfile-backed-proto-log.h191 MemoryMappedFile&& mmapped_file);
277 MemoryMappedFile* mmapped_file, int64_t file_offset, int64_t file_size);
477 MemoryMappedFile mmapped_file, in ComputeChecksum()
515 ICING_RETURN_IF_ERROR(mmapped_file.Remap(start, end - start)); in ComputeChecksum()
516 auto mmap_str = std::string_view(mmapped_file.region(), end - start); in ComputeChecksum()
533 ICING_RETURN_IF_ERROR(mmapped_file.Remap(i, next_chunk_size)); in ComputeChecksum()
536 std::string_view(mmapped_file.region(), next_chunk_size); in ComputeChecksum()
551 MemoryMappedFile mmapped_file, in ReadProto()
566 int metadata, ReadProtoMetadata(&mmapped_file, file_offset, file_size)); in ReadProto()
572 mmapped_file.Remap(file_offset + sizeof(metadata), stored_size)); in ReadProto()
[all …]
Dfile-backed-vector.h493 MemoryMappedFile&& mmapped_file);
637 MemoryMappedFile mmapped_file, in InitializeNewFile()
646 filesystem, file_path, std::move(header), std::move(mmapped_file))); in InitializeNewFile()
708 MemoryMappedFile mmapped_file, in InitializeExistingFile()
720 std::string_view(reinterpret_cast<const char*>(mmapped_file.region()), in InitializeExistingFile()
729 filesystem, file_path, std::move(header), std::move(mmapped_file))); in InitializeExistingFile()
746 MemoryMappedFile&& mmapped_file) in FileBackedVector() argument
751 std::make_unique<MemoryMappedFile>(std::move(mmapped_file))), in FileBackedVector()
Dmemory-mapped-file.cc81 MemoryMappedFile mmapped_file, in Create()
86 mmapped_file.RemapImpl(pre_mapping_file_offset, pre_mapping_mmap_size)); in Create()
89 return std::move(mmapped_file); in Create()
Dportable-file-backed-proto-log.h821 MemoryMappedFile mmapped_file, in ComputeChecksum()
859 ICING_RETURN_IF_ERROR(mmapped_file.Remap(start, end - start)); in ComputeChecksum()
860 auto mmap_str = std::string_view(mmapped_file.region(), end - start); in ComputeChecksum()
877 ICING_RETURN_IF_ERROR(mmapped_file.Remap(i, next_chunk_size)); in ComputeChecksum()
880 std::string_view(mmapped_file.region(), next_chunk_size); in ComputeChecksum()
Dportable-file-backed-proto-log_test.cc1121 MemoryMappedFile mmapped_file, in TEST_F()
1127 mmapped_file.Remap(document1_offset + sizeof(int), file_size - 1); in TEST_F()
1128 for (size_t i = 0; i < mmapped_file.region_size(); ++i) { in TEST_F()
1129 ASSERT_THAT(mmapped_file.region()[i], Eq(0)); in TEST_F()
/external/ComputeLibrary/tests/validation/NEON/UNIT/
DTensorAllocator.cpp223 utils::mmap_io::MMappedFile mmapped_file("test_mmap_import.bin", 0 /** Whole file */, 0); in TEST_CASE() local
224 ARM_COMPUTE_ASSERT(mmapped_file.is_mapped()); in TEST_CASE()
225 unsigned char *data = mmapped_file.data(); in TEST_CASE()
/external/ComputeLibrary/tests/validation/CL/UNIT/
DTensorAllocator.cpp308 utils::mmap_io::MMappedFile mmapped_file("test_mmap_import.bin", 0 /** Whole file */, 0); in TEST_CASE() local
309 ARM_COMPUTE_ASSERT(mmapped_file.is_mapped()); in TEST_CASE()
310 unsigned char *data = mmapped_file.data(); in TEST_CASE()