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.cpp126 void Partition::ShrinkTo(uint64_t aligned_size) { in ShrinkTo() argument
127 if (aligned_size == 0) { in ShrinkTo()
134 uint64_t sectors_to_remove = (size_ - aligned_size) / LP_SECTOR_SIZE; in ShrinkTo()
146 DCHECK(size_ == aligned_size); in ShrinkTo()
149 Partition Partition::GetBeginningExtents(uint64_t aligned_size) const { in GetBeginningExtents()
159 p.ShrinkTo(aligned_size); in GetBeginningExtents()
705 bool MetadataBuilder::GrowPartition(Partition* partition, uint64_t aligned_size, in GrowPartition() argument
707 uint64_t space_needed = aligned_size - partition->size(); in GrowPartition()
876 void MetadataBuilder::ShrinkPartition(Partition* partition, uint64_t aligned_size) { in ShrinkPartition() argument
877 partition->ShrinkTo(aligned_size); in ShrinkPartition()
[all …]
/system/core/fs_mgr/liblp/include/liblp/
Dbuilder.h153 Partition GetBeginningExtents(uint64_t aligned_size) const;
156 void ShrinkTo(uint64_t aligned_size);
382 bool GrowPartition(Partition* partition, uint64_t aligned_size,
384 void ShrinkPartition(Partition* partition, uint64_t aligned_size);
/system/memory/libmemunreachable/
DAllocator.cpp136 size_t aligned_size = map_size; in MapAligned() local
139 std::align(align, size, aligned_ptr, aligned_size); in MapAligned()