Home
last modified time | relevance | path

Searched refs:max_file_size (Results 1 – 24 of 24) sorted by relevance

/external/icing/icing/file/
Dmemory-mapped-file_test.cc56 constexpr int max_file_size = 8192; in TEST_F() local
62 stragegy, max_file_size)); in TEST_F()
65 EXPECT_THAT(mmapped_file.max_file_size(), Eq(max_file_size)); in TEST_F()
83 constexpr int max_file_size = 8192; in TEST_F() local
89 stragegy, max_file_size)); in TEST_F()
92 EXPECT_THAT(mmapped_file.max_file_size(), Eq(max_file_size)); in TEST_F()
128 constexpr int max_file_size = 8192; in TEST_F() local
136 MemoryMappedFile::Create(filesystem_, file_path_, stragegy, max_file_size, in TEST_F()
140 EXPECT_THAT(mmapped_file.max_file_size(), Eq(max_file_size)); in TEST_F()
172 int max_file_size = page_size * 2; in TEST_F() local
[all …]
Dmemory-mapped-file.cc38 int64_t max_file_size) { in Create() argument
39 if (max_file_size <= 0 || max_file_size > kMaxFileSize) { in Create()
42 max_file_size)); in Create()
54 return MemoryMappedFile(filesystem, file_path, mmap_strategy, max_file_size, in Create()
61 int64_t max_file_size, int64_t pre_mapping_file_offset, in Create() argument
63 if (max_file_size <= 0 || max_file_size > kMaxFileSize) { in Create()
66 max_file_size)); in Create()
73 pre_mapping_file_offset > max_file_size - pre_mapping_mmap_size) { in Create()
77 pre_mapping_file_offset, pre_mapping_mmap_size, max_file_size)); in Create()
82 Create(filesystem, file_path, mmap_strategy, max_file_size)); in Create()
[all …]
Dfile-backed-vector.h220 int32_t max_file_size = kMaxFileSize,
499 int32_t max_file_size, int32_t pre_mapping_mmap_size);
506 int32_t max_file_size, int32_t pre_mapping_mmap_size);
560 int32_t max_file_size, in Create() argument
574 if (max_file_size < Header::kHeaderSize + kElementTypeSize || in Create()
575 max_file_size > kMaxFileSize) { in Create()
594 if (max_file_size < file_size) { in Create()
602 mmap_strategy, max_file_size, in Create()
606 mmap_strategy, max_file_size, in Create()
616 int32_t max_file_size, in InitializeNewFile() argument
[all …]
Dmemory-mapped-file.h137 Strategy mmap_strategy, int64_t max_file_size = kDefaultMaxFileSize);
156 Strategy mmap_strategy, int64_t max_file_size,
242 int64_t max_file_size() const { return max_file_size_; } in max_file_size() function
268 int64_t max_file_size, int64_t file_size);
Dpersistent-hash-map.cc347 int32_t max_file_size = in InitializeNewFiles() local
353 MemoryMappedFile::Strategy::READ_WRITE_AUTO_SYNC, max_file_size, in InitializeNewFiles()
358 max_file_size = in InitializeNewFiles()
364 MemoryMappedFile::Strategy::READ_WRITE_AUTO_SYNC, max_file_size, in InitializeNewFiles()
370 max_file_size = in InitializeNewFiles()
376 MemoryMappedFile::Strategy::READ_WRITE_AUTO_SYNC, max_file_size, in InitializeNewFiles()
438 int32_t max_file_size = in InitializeExistingFiles() local
444 MemoryMappedFile::Strategy::READ_WRITE_AUTO_SYNC, max_file_size, in InitializeExistingFiles()
449 max_file_size = in InitializeExistingFiles()
455 MemoryMappedFile::Strategy::READ_WRITE_AUTO_SYNC, max_file_size, in InitializeExistingFiles()
[all …]
Dfile-backed-vector_test.cc602 int32_t max_file_size = (1 << 10) - 1; in TEST_F() local
604 (max_file_size - FileBackedVector<char>::Header::kHeaderSize) / in TEST_F()
611 MemoryMappedFile::Strategy::READ_WRITE_AUTO_SYNC, max_file_size)); in TEST_F()
694 int32_t max_file_size = (1 << 10) - 1; in TEST_F() local
696 (max_file_size - FileBackedVector<char>::Header::kHeaderSize) / in TEST_F()
703 MemoryMappedFile::Strategy::READ_WRITE_AUTO_SYNC, max_file_size)); in TEST_F()
805 int32_t max_file_size = (1 << 20) - 1; in TEST_F() local
815 ASSERT_THAT((max_file_size - header_size) % element_type_size, Not(Eq(0))); in TEST_F()
816 int32_t max_num_elements = (max_file_size - header_size) / element_type_size; in TEST_F()
825 MemoryMappedFile::Strategy::READ_WRITE_AUTO_SYNC, max_file_size)); in TEST_F()
[all …]
/external/ltp/testcases/kernel/fs/mongo/
Dreiser_fract_tree.c250 long determine_nr_of_files(int median_file_size, double max_file_size, in determine_nr_of_files() argument
259 byte_total += determine_size(median_file_size, max_file_size); in determine_nr_of_files()
463 max_dir_nr_files, max_dir_branching, max_file_size; in main() local
479 max_file_size = atol(argv[3]); in main()
484 determine_nr_of_files(median_file_size, max_file_size, in main()
494 make_fractal_tree(median_file_size, max_file_size, median_dir_nr_files, in main()
Dmongo.pl120 $max_file_size = 100000000;
132 $max_file_size = 1000000;
405 …$cmd_1 = "$TOPDIR/reiser_fract_tree $bytes_to_consume $median_file_size $max_file_size $median_dir…
/external/perfetto/src/perfetto_cmd/
Dconfig.h33 std::string max_file_size; member
Dconfig_unittest.cc127 options.max_file_size = "2s"; in TEST_F()
133 options.max_file_size = "1gb"; in TEST_F()
Dconfig.cc113 if (!ConvertSizeToKb(options.max_file_size, &max_file_size_kb)) { in CreateConfigFromOptions()
Dperfetto_cmd.cc427 config_options.max_file_size = std::string(optarg); in ParseCmdlineAndMaybeDaemonize()
/external/webrtc/rtc_base/
Dfile_rotating_stream.cc184 size_t max_file_size, in FileRotatingStream() argument
188 max_file_size_(max_file_size), in FileRotatingStream()
193 RTC_DCHECK_GT(max_file_size, 0); in FileRotatingStream()
Dfile_rotating_stream.h35 size_t max_file_size,
Dfile_rotating_stream_unittest.cc50 size_t max_file_size, in Init() argument
61 stream_.reset(new FileRotatingStream(dir_path_, file_prefix, max_file_size, in Init()
/external/cronet/net/disk_cache/memory/
Dmem_entry_impl.cc360 int max_file_size = backend_->MaxFileSize(); in InternalWriteData() local
363 if (offset > max_file_size || buf_len > max_file_size || in InternalWriteData()
365 end_offset > max_file_size) { in InternalWriteData()
/external/leveldb/include/leveldb/
Doptions.h115 size_t max_file_size = 2 * 1024 * 1024; member
/external/fmtlib/test/
Dposix-mock-test.cc90 static off_t max_file_size() { return std::numeric_limits<off_t>::max(); } in max_file_size() function
94 if (fstat_sim == MAX_SIZE) buf->st_size = max_file_size(); in fstat()
100 static LONGLONG max_file_size() { return std::numeric_limits<LONGLONG>::max(); } in max_file_size() function
280 EXPECT_EQ(max_file_size(), f.size()); in TEST()
/external/trace-cmd/tracecmd/
Dtrace-read.c89 static int max_file_size; variable
369 if (strlen(item->file) > max_file_size) in add_handle()
370 max_file_size = strlen(item->file); in add_handle()
1182 printf("%*s: ", max_file_size, handles->file); in print_handle_file()
1184 printf("%*s ", max_file_size, ""); in print_handle_file()
/external/cronet/net/disk_cache/blockfile/
Dentry_impl.cc1129 int max_file_size = backend_->MaxFileSize(); in InternalWriteData() local
1132 if (offset > max_file_size || buf_len > max_file_size || in InternalWriteData()
1134 end_offset > max_file_size) { in InternalWriteData()
/external/leveldb/benchmarks/
Ddb_bench.cc766 options.max_file_size = FLAGS_max_file_size; in Open()
1023 FLAGS_max_file_size = leveldb::Options().max_file_size; in main()
/external/leveldb/db/
Dc.cc426 opt->rep.max_file_size = s; in leveldb_options_set_max_file_size()
Dversion_set.cc25 return options->max_file_size; in TargetFileSize()
Ddb_impl.cc103 ClipToRange(&result.max_file_size, 1 << 20, 1 << 30); in SanitizeOptions()