Home
last modified time | relevance | path

Searched refs:alignment_offset (Results 1 – 9 of 9) sorted by relevance

/system/core/fs_mgr/liblp/
Dpartition_opener.cpp80 int alignment_offset; in GetBlockDeviceInfo() local
81 if (ioctl(fd, BLKALIGNOFF, &alignment_offset) < 0) { in GetBlockDeviceInfo()
87 if (alignment_offset == -1) { in GetBlockDeviceInfo()
88 alignment_offset = 0; in GetBlockDeviceInfo()
97 device_info->alignment_offset = static_cast<uint32_t>(alignment_offset); in GetBlockDeviceInfo()
Dbuilder_test.cpp170 device_info.alignment_offset = 753664; in TEST_F()
186 device_info.alignment_offset = 3 * 1024; in TEST_F()
459 EXPECT_EQ(new_info.alignment_offset, device_info.alignment_offset); in TEST_F()
463 device_info.alignment_offset = 2048; in TEST_F()
467 EXPECT_EQ(new_info.alignment_offset, device_info.alignment_offset); in TEST_F()
470 device_info.alignment_offset = 0; in TEST_F()
474 EXPECT_EQ(new_info.alignment_offset, 2048); in TEST_F()
664 EXPECT_EQ(metadata->block_devices[0].alignment_offset, 229376); in TEST_F()
668 EXPECT_EQ(metadata->block_devices[1].alignment_offset, 753664); in TEST_F()
672 EXPECT_EQ(metadata->block_devices[2].alignment_offset, 753664); in TEST_F()
Dbuilder.cpp376 if (device_info.alignment_offset % LP_SECTOR_SIZE != 0) { in VerifyDeviceProperties()
428 out.alignment_offset = device_info.alignment_offset; in Init()
1026 info->alignment_offset = block_devices_[index].alignment_offset; in GetBlockDeviceInfo()
1063 if (device_info.alignment_offset) { in UpdateBlockDeviceInfo()
1064 block_device.alignment_offset = device_info.alignment_offset; in UpdateBlockDeviceInfo()
/system/core/fs_mgr/liblp/include/liblp/
Dpartition_opener.h29 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
Dmetadata_format.h356 uint32_t alignment_offset; member
/system/extras/partition_tools/
Ddynamic_partitions_device_info.proto55 uint64 alignment_offset = 5 [json_name = "alignment_offset"]; field
Dlpmake.cc194 uint32_t alignment_offset = 0; in main() local
253 if (!android::base::ParseUint(optarg, &alignment_offset)) { in main()
313 !android::base::ParseUint(parts[3].c_str(), &info.alignment_offset)) { in main()
372 … block_devices.emplace_back(super_name, blockdevice_size, alignment, alignment_offset, block_size); in main()
Dlpdump.cc174 block_device_proto->set_alignment_offset(info.alignment_offset); in MergeMetadata()
/system/core/fs_mgr/libsnapshot/
Dtest_helpers.cpp65 info->alignment_offset = 0; in GetInfo()