Home
last modified time | relevance | path

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

/system/core/fs_mgr/libsnapshot/
Dinspect_cow.cpp49 size_t old_size = stream_.size(); in GetBuffer() local
50 stream_.resize(old_size + requested, '\0'); in GetBuffer()
52 return stream_.data() + old_size; in GetBuffer()
Dcow_api_test.cpp51 size_t old_size = stream_.size(); in GetBuffer() local
52 stream_.resize(old_size + requested, '\0'); in GetBuffer()
54 return stream_.data() + old_size; in GetBuffer()
Dsnapshot_test.cpp1021 AssertionResult ShiftAllSnapshotBlocks(const std::string& name, uint64_t old_size) { in ShiftAllSnapshotBlocks() argument
1030 uint64_t src_block = (old_size / writer->options().block_size) - 1; in ShiftAllSnapshotBlocks()
/system/iorap/src/binder/
Dpackage_version_map.cc34 size_t old_size = version_map_->size(); in UpdateAll() local
42 LOG(DEBUG) << "Update for version is done. The size is from " << old_size in UpdateAll()
/system/update_engine/payload_generator/
Dblock_mapping.cc142 size_t old_size, in MapPartitionBlocks() argument
156 old_fd, 0, old_size / block_size, old_block_ids)); in MapPartitionBlocks()
Dblock_mapping.h106 size_t old_size,
/system/extras/simpleperf/
DOfflineUnwinder.cpp177 size_t old_size = entries_.size(); in UpdateMaps() local
181 if (i < old_size && entry == entries_[i]) { in UpdateMaps()
184 } else if (i == old_size || entry->start_addr <= entries_[i]->start_addr) { in UpdateMaps()
196 while (i < old_size) { in UpdateMaps()
/system/update_engine/scripts/
Dpayload_info_unittest.py88 def __init__(self, partition_name, operations, old_size, new_size): argument
91 self.old_partition_info = FakePartitionInfo(old_size)
/system/core/fs_mgr/liblp/
Dbuilder.cpp648 bool MetadataBuilder::ValidatePartitionSizeChange(Partition* partition, uint64_t old_size, in ValidatePartitionSizeChange() argument
653 if (!force_check && new_size <= old_size) { in ValidatePartitionSizeChange()
659 uint64_t space_needed = new_size - old_size; in ValidatePartitionSizeChange()
1078 uint64_t old_size = partition->size(); in ResizePartition() local
1080 if (!ValidatePartitionSizeChange(partition, old_size, aligned_size, false)) { in ResizePartition()
1084 if (aligned_size > old_size) { in ResizePartition()
1092 if (partition->size() != old_size) { in ResizePartition()
1093 LINFO << "Partition " << partition->name() << " will resize from " << old_size in ResizePartition()
/system/chre/external/flatbuffers/include/flatbuffers/
Dflatbuffers.h625 virtual uint8_t *reallocate_downward(uint8_t *old_p, size_t old_size,
628 FLATBUFFERS_ASSERT(new_size > old_size); // vector_downward only grows
630 memcpy_downward(old_p, old_size, new_p, new_size, in_use_back,
632 deallocate(old_p, old_size);
641 void memcpy_downward(uint8_t *old_p, size_t old_size, uint8_t *new_p,
644 memcpy(new_p + new_size - in_use_back, old_p + old_size - in_use_back,
701 size_t old_size, size_t new_size,
704 return allocator ? allocator->reallocate_downward(old_p, old_size, new_size,
707 old_p, old_size, new_size, in_use_back, in_use_front);
710 return allocator->reallocate_downward(old_p, old_size, new_size,
[all …]
/system/unwinding/libunwindstack/
DGlobalDebugImpl.h221 size_t old_size = entries.size(); in ReadAllEntries() local
225 if (entries.size() == old_size) { in ReadAllEntries()
/system/core/fs_mgr/liblp/include/liblp/
Dbuilder.h389 bool ValidatePartitionSizeChange(Partition* partition, uint64_t old_size, uint64_t new_size,