Searched refs:alignment_offset (Results 1 – 9 of 9) sorted by relevance
/system/core/fs_mgr/liblp/ |
D | partition_opener.cpp | 76 int alignment_offset; in GetBlockDeviceInfo() local 77 if (ioctl(fd, BLKALIGNOFF, &alignment_offset) < 0) { in GetBlockDeviceInfo() 83 if (alignment_offset == -1) { in GetBlockDeviceInfo() 84 alignment_offset = 0; in GetBlockDeviceInfo() 93 device_info->alignment_offset = static_cast<uint32_t>(alignment_offset); in GetBlockDeviceInfo()
|
D | builder_test.cpp | 170 device_info.alignment_offset = 753664; in TEST_F() 186 device_info.alignment_offset = 3 * 1024; in TEST_F() 449 device_info.alignment_offset = 32768 - LP_SECTOR_SIZE; in TEST_F() 464 EXPECT_EQ(new_info.alignment_offset, device_info.alignment_offset); in TEST_F() 468 device_info.alignment_offset = 2048; in TEST_F() 472 EXPECT_EQ(new_info.alignment_offset, device_info.alignment_offset); in TEST_F() 475 device_info.alignment_offset = 0; in TEST_F() 479 EXPECT_EQ(new_info.alignment_offset, 2048); in TEST_F() 669 EXPECT_EQ(metadata->block_devices[0].alignment_offset, 229376); in TEST_F() 673 EXPECT_EQ(metadata->block_devices[1].alignment_offset, 753664); in TEST_F() [all …]
|
D | builder.cpp | 376 if (device_info.alignment_offset % LP_SECTOR_SIZE != 0) { in VerifyDeviceProperties() 386 if (device_info.alignment_offset > device_info.alignment) { in VerifyDeviceProperties() 433 out.alignment_offset = device_info.alignment_offset; in Init() 492 if (super.alignment || super.alignment_offset) { in Init() 1031 info->alignment_offset = block_devices_[index].alignment_offset; in GetBlockDeviceInfo() 1068 if (device_info.alignment_offset) { in UpdateBlockDeviceInfo() 1069 block_device.alignment_offset = device_info.alignment_offset; in UpdateBlockDeviceInfo()
|
/system/core/fs_mgr/liblp/include/liblp/ |
D | partition_opener.h | 29 BlockDeviceInfo() : size(0), alignment(0), alignment_offset(0), logical_block_size(0) {} in BlockDeviceInfo() 31 uint32_t alignment_offset, uint32_t logical_block_size) in BlockDeviceInfo() 34 alignment_offset(alignment_offset), in BlockDeviceInfo() 45 uint32_t alignment_offset; member
|
D | metadata_format.h | 356 uint32_t alignment_offset; member
|
/system/extras/partition_tools/ |
D | dynamic_partitions_device_info.proto | 55 uint64 alignment_offset = 5 [json_name = "alignment_offset"]; field
|
D | lpmake.cc | 136 uint32_t alignment_offset = 0; in main() local 186 if (!android::base::ParseUint(optarg, &alignment_offset)) { in main() 246 !android::base::ParseUint(parts[3].c_str(), &info.alignment_offset)) { in main() 301 … block_devices.emplace_back(super_name, blockdevice_size, alignment, alignment_offset, block_size); in main()
|
D | lpdump.cc | 174 block_device_proto->set_alignment_offset(info.alignment_offset); in MergeMetadata()
|
/system/core/fs_mgr/libsnapshot/ |
D | test_helpers.cpp | 63 info->alignment_offset = 0; in GetInfo()
|