Home
last modified time | relevance | path

Searched refs:aligned_size (Results 1 – 4 of 4) sorted by relevance

/system/core/property_service/libpropertyinfoserializer/
Dtrie_node_arena.h77 size_t aligned_size = size + (sizeof(uint32_t) - 1) & ~(sizeof(uint32_t) - 1); in AllocateData() local
79 if (current_data_pointer_ + aligned_size > data_.size()) { in AllocateData()
80 auto new_size = (current_data_pointer_ + aligned_size + data_.size()) * 2; in AllocateData()
86 current_data_pointer_ += aligned_size; in AllocateData()
/system/core/fs_mgr/liblp/
Dbuilder.cpp81 void Partition::ShrinkTo(uint64_t aligned_size) { in ShrinkTo() argument
82 if (aligned_size == 0) { in ShrinkTo()
89 uint64_t sectors_to_remove = (size_ - aligned_size) / LP_SECTOR_SIZE; in ShrinkTo()
101 DCHECK(size_ == aligned_size); in ShrinkTo()
577 bool MetadataBuilder::GrowPartition(Partition* partition, uint64_t aligned_size) { in GrowPartition() argument
578 uint64_t space_needed = aligned_size - partition->size(); in GrowPartition()
740 void MetadataBuilder::ShrinkPartition(Partition* partition, uint64_t aligned_size) { in ShrinkPartition() argument
741 partition->ShrinkTo(aligned_size); in ShrinkPartition()
921 uint64_t aligned_size = AlignTo(requested_size, geometry_.logical_block_size); in ResizePartition() local
924 if (!ValidatePartitionSizeChange(partition, old_size, aligned_size, false)) { in ResizePartition()
[all …]
/system/core/fs_mgr/liblp/include/liblp/
Dbuilder.h126 void ShrinkTo(uint64_t aligned_size);
298 bool GrowPartition(Partition* partition, uint64_t aligned_size);
299 void ShrinkPartition(Partition* partition, uint64_t aligned_size);
/system/core/libmemunreachable/
DAllocator.cpp136 size_t aligned_size = map_size; in MapAligned() local
139 std::align(align, size, aligned_ptr, aligned_size); in MapAligned()