Home
last modified time | relevance | path

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

/system/core/fs_mgr/liblp/
Dutility_test.cpp60 TEST(liblp, AlignTo) { in TEST() argument
61 EXPECT_EQ(AlignTo(37, 0), 37); in TEST()
62 EXPECT_EQ(AlignTo(1024, 1024), 1024); in TEST()
63 EXPECT_EQ(AlignTo(555, 1024), 1024); in TEST()
64 EXPECT_EQ(AlignTo(555, 1000), 1000); in TEST()
65 EXPECT_EQ(AlignTo(0, 1024), 0); in TEST()
66 EXPECT_EQ(AlignTo(54, 32, 30), 62); in TEST()
67 EXPECT_EQ(AlignTo(32, 32, 30), 62); in TEST()
68 EXPECT_EQ(AlignTo(17, 32, 30), 30); in TEST()
Dutility.h67 constexpr uint64_t AlignTo(uint64_t base, uint32_t alignment) { in AlignTo() function
80 constexpr uint64_t AlignTo(uint64_t base, uint32_t alignment, uint32_t alignment_offset) { in AlignTo() function
81 uint64_t aligned = AlignTo(base, alignment) + alignment_offset; in AlignTo()
Dbuilder.cpp322 metadata_max_size = AlignTo(metadata_max_size, LP_SECTOR_SIZE); in Init()
355 free_area_start = AlignTo(free_area_start, out.alignment, out.alignment_offset); in Init()
357 free_area_start = AlignTo(free_area_start, logical_block_size); in Init()
395 free_area_start = AlignTo(free_area_start, super.alignment, super.alignment_offset); in Init()
397 free_area_start = AlignTo(free_area_start, logical_block_size); in Init()
847 uint64_t aligned = AlignTo(lba, block_device.alignment, block_device.alignment_offset); in AlignSector()
848 return AlignTo(aligned, LP_SECTOR_SIZE) / LP_SECTOR_SIZE; in AlignSector()
921 uint64_t aligned_size = AlignTo(requested_size, geometry_.logical_block_size); in ResizePartition()
Dbuilder_test.cpp224 uint64_t aligned_lba = AlignTo(lba, device_info.alignment, device_info.alignment_offset); in TEST_F()