Home
last modified time | relevance | path

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

/system/core/adb/client/
Dincremental_utils.cpp77 auto old_size = bytes->size(); in append_int() local
78 bytes->resize(old_size + sizeof(le_val)); in append_int()
79 memcpy(bytes->data() + old_size, &le_val, sizeof(le_val)); in append_int()
88 auto old_size = bytes->size(); in append_bytes_with_size() local
89 bytes->resize(old_size + sizeof(le_size) + size); in append_bytes_with_size()
90 memcpy(bytes->data() + old_size, &le_size, sizeof(le_size)); in append_bytes_with_size()
91 ReadFdExactly(fd, bytes->data() + old_size + sizeof(le_size), size); in append_bytes_with_size()
/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.cpp157 size_t old_size = entries_.size(); in UpdateMaps() local
161 if (i < old_size && entry == entries_[i]) { in UpdateMaps()
164 } else if (i == old_size || entry->start_addr <= entries_[i]->start_addr) { in UpdateMaps()
176 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.cpp653 bool MetadataBuilder::ValidatePartitionSizeChange(Partition* partition, uint64_t old_size, in ValidatePartitionSizeChange() argument
658 if (!force_check && new_size <= old_size) { in ValidatePartitionSizeChange()
664 uint64_t space_needed = new_size - old_size; in ValidatePartitionSizeChange()
1083 uint64_t old_size = partition->size(); in ResizePartition() local
1085 if (!ValidatePartitionSizeChange(partition, old_size, aligned_size, false)) { in ResizePartition()
1089 if (aligned_size > old_size) { in ResizePartition()
1097 if (partition->size() != old_size) { in ResizePartition()
1098 LINFO << "Partition " << partition->name() << " will resize from " << old_size in ResizePartition()
/system/core/fs_mgr/liblp/include/liblp/
Dbuilder.h389 bool ValidatePartitionSizeChange(Partition* partition, uint64_t old_size, uint64_t new_size,
/system/chre/external/flatbuffers/include/flatbuffers/
Dflatbuffers.h643 auto old_size = size();
649 auto new_cur = new_buf + reserved_ - old_size;
650 memcpy(new_cur, cur_, old_size);