Home | History | Annotate | Download | only in releasetools

Lines Matching refs:partition_size

51 def GetVerityTreeSize(partition_size):
53 cmd %= partition_size
60 def GetVerityMetadataSize(partition_size):
62 cmd %= partition_size
70 def AdjustPartitionSizeForVerity(partition_size):
75 partition_size: the size of the partition to be verified.
79 success, verity_tree_size = GetVerityTreeSize(partition_size)
82 success, verity_metadata_size = GetVerityMetadataSize(partition_size)
85 return partition_size - verity_tree_size - verity_metadata_size
168 image_size = prop_dict["partition_size"]
254 partition_size = int(prop_dict.get("partition_size"))
256 adjusted_size = AdjustPartitionSizeForVerity(partition_size)
259 prop_dict["partition_size"] = str(adjusted_size)
260 prop_dict["original_partition_size"] = str(partition_size)
269 build_command.append(prop_dict["partition_size"])
298 build_command.extend([out_file, prop_dict["partition_size"]])
362 partition_size = int(prop_dict.get("partition_size"))
364 if image_size > partition_size:
366 "%d" % (mount_point, image_size, partition_size))
369 if 2 * image_size - AdjustPartitionSizeForVerity(image_size) > partition_size:
372 prop_dict["original_partition_size"] = prop_dict["partition_size"]
373 prop_dict["partition_size"] = str(image_size)
429 copy_prop("system_size", "partition_size")
441 copy_prop("userdata_size", "partition_size")
444 copy_prop("cache_size", "partition_size")
447 copy_prop("vendor_size", "partition_size")
453 copy_prop("oem_size", "partition_size")