Home
last modified time | relevance | path

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

/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/core/fs_mgr/libsnapshot/libsnapshot_cow/
Dinspect_cow.cpp70 size_t old_size = stream_.size(); in GetBuffer() local
71 stream_.resize(old_size + requested, '\0'); in GetBuffer()
73 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()
/system/extras/simpleperf/
DOfflineUnwinder.cpp221 size_t old_size = entries_.size(); in UpdateMaps() local
225 if (i < old_size && entry == entries_[i]) { in UpdateMaps()
228 } else if (i == old_size || entry->start_addr <= entries_[i]->start_addr) { in UpdateMaps()
240 while (i < old_size) { in UpdateMaps()
Drecord_file_reader.cpp313 size_t old_size = buf.size(); in ReadRecord() local
314 buf.resize(old_size + add_size); in ReadRecord()
315 if (!Read(&buf[old_size], add_size)) { in ReadRecord()
/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.h220 size_t old_size = entries.size(); in ReadAllEntries() local
224 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,
/system/core/fs_mgr/libsnapshot/
Dsnapshot_test.cpp1215 AssertionResult ShiftAllSnapshotBlocks(const std::string& name, uint64_t old_size) { in ShiftAllSnapshotBlocks() argument
1224 uint64_t src_block = (old_size / writer->options().block_size) - 1; in ShiftAllSnapshotBlocks()