Home
last modified time | relevance | path

Searched refs:new_file_size (Results 1 – 12 of 12) sorted by relevance

/external/icing/icing/file/
Dfile-backed-bitmap.cc249 size_t new_file_size = kHeaderByteSize + (word_index + 1) * sizeof(Word); in FileSizeForBits() local
250 return math_util::RoundUpTo(new_file_size, in FileSizeForBits()
261 const size_t new_file_size = FileSizeForBits(new_num_bits); in GrowTo() local
262 if (!filesystem_->Grow(file_path_.c_str(), new_file_size)) { in GrowTo()
265 file_path_.c_str(), new_file_size)); in GrowTo()
270 libtextclassifier3::Status status = mmapper_->Remap(0, new_file_size); in GrowTo()
277 << new_file_size; in GrowTo()
287 const size_t new_file_size = FileSizeForBits(new_num_bits); in TruncateTo() local
290 libtextclassifier3::Status status = mmapper_->Remap(0, new_file_size); in TruncateTo()
295 if (!filesystem_->Truncate(file_path_.c_str(), new_file_size)) { in TruncateTo()
[all …]
Dmemory-mapped-file.cc239 int64_t new_file_size) { in GrowFileSize() argument
243 if (new_file_size <= file_size_) { in GrowFileSize()
247 if (new_file_size > max_file_size_) { in GrowFileSize()
251 new_file_size, max_file_size_)); in GrowFileSize()
263 if (new_file_size <= actual_file_size) { in GrowFileSize()
280 new_file_size - file_size_); in GrowFileSize()
286 while (size_to_write > 0 && file_size_ < new_file_size) { in GrowFileSize()
293 new_file_size - file_size_); in GrowFileSize()
Dmemory-mapped-file.h290 libtextclassifier3::Status GrowFileSize(int64_t new_file_size);
/external/e2fsprogs/resize/
Dmain.c267 __s64 new_file_size; in main() local
587 new_file_size = ((__u64) new_size) * blocksize; in main()
588 if ((__u64) new_file_size > in main()
591 if ((new_file_size > st_buf.st_size) && in main()
593 if ((ext2fs_llseek(fd, new_file_size-1, SEEK_SET) >= 0) && in main()
683 if ((st_buf.st_size > new_file_size) && in main()
686 retval = ftruncate64(fd, new_file_size); in main()
690 if (((off_t) new_file_size) == new_file_size) in main()
691 retval = ftruncate(fd, (off_t) new_file_size); in main()
/external/icing/icing/legacy/index/
Dicing-flash-bitmap.cc259 bool IcingFlashBitmap::Grow(size_t new_file_size) { in Grow() argument
261 if (!filesystem_->Grow(fd.get(), new_file_size)) { in Grow()
262 ICING_LOG(ERROR) << "Grow " << filename_ << " to new size " << new_file_size << " failed"; in Grow()
265 if (!mmapper_->Remap(fd.get(), 0, new_file_size)) { in Grow()
269 ICING_VLOG(1) << "Grew " << filename_ << " new size " << new_file_size; in Grow()
Dicing-array-storage.cc199 uint64_t new_file_size = fd_offset_ + uint64_t{num_elts} * elt_size_; in GrowIfNecessary()
201 new_file_size = AlignUp(new_file_size, kGrowElts * elt_size_); in GrowIfNecessary()
202 if (!filesystem_.Grow(fd_, new_file_size)) { in GrowIfNecessary()
205 capacity_num_ = (new_file_size - fd_offset_) / elt_size_; in GrowIfNecessary()
Dicing-flash-bitmap.h136 bool Grow(size_t new_file_size);
/external/bsdiff/
Dbspatch.cc266 while (newpos < patch_reader.new_file_size()) { in bspatch()
274 if (newpos + control_entry.diff_size > patch_reader.new_file_size()) { in bspatch()
349 if (newpos + control_entry.extra_size > patch_reader.new_file_size()) { in bspatch()
Dpatch_reader_unittest.cc88 EXPECT_EQ(new_file_size_, patch_reader.new_file_size()); in VerifyPatch()
/external/bsdiff/include/bsdiff/
Dpatch_reader.h45 uint64_t new_file_size() const { return new_file_size_; } in new_file_size() function
/external/arm-trusted-firmware/tools/nxp/create_pbl/
Dcreate_pbl.c527 uint32_t file_size, new_file_size; in add_blk_cpy_cmd() local
557 new_file_size = (file_size + (file_size % align)); in add_blk_cpy_cmd()
588 if (fwrite(&new_file_size, sizeof(new_file_size), in add_blk_cpy_cmd()
/external/libabigail/tests/data/test-read-dwarf/
DPR22015-libboost_iostreams.so.abi3463 …<var-decl name='new_file_size' type-id='type-id-274' visibility='default' filepath='src/third_part…