Home
last modified time | relevance | path

Searched refs:info_dict (Results 1 – 19 of 19) sorted by relevance

/build/make/tools/releasetools/
Dtest_check_partition_sizes.py23 self.info_dict = common.LoadDictionaryFromLines("""
39 CheckPartitionSizes(self.info_dict)
42 self.info_dict.update(common.LoadDictionaryFromLines("""
47 CheckPartitionSizes(self.info_dict)
50 self.info_dict.update(common.LoadDictionaryFromLines("""
54 CheckPartitionSizes(self.info_dict)
57 self.info_dict.update(common.LoadDictionaryFromLines("""
64 CheckPartitionSizes(self.info_dict)
67 self.info_dict.update(common.LoadDictionaryFromLines("""
71 CheckPartitionSizes(self.info_dict)
[all …]
Dcheck_partition_sizes.py83 def Get(info_dict): argument
84 if info_dict.get("ab_update") != "true":
86 if info_dict.get("virtual_ab_retrofit") == "true":
88 if info_dict.get("virtual_ab") == "true":
100 def Get(info_dict): argument
101 if info_dict.get("use_dynamic_partitions") != "true":
103 if info_dict.get("dynamic_partition_retrofit") == "true":
109 def __init__(self, info_dict): argument
110 if "super_partition_size" in info_dict:
111 if "super_partition_warn_limit" not in info_dict:
[all …]
Dbuild_super_image.py72 def BuildSuperImageFromDict(info_dict, output): argument
74 cmd = [info_dict["lpmake"],
76 "--super-name", info_dict["super_metadata_device"]]
78 ab_update = info_dict.get("ab_update") == "true"
79 virtual_ab = info_dict.get("virtual_ab") == "true"
80 virtual_ab_retrofit = info_dict.get("virtual_ab_retrofit") == "true"
81 retrofit = info_dict.get("dynamic_partition_retrofit") == "true"
82 block_devices = shlex.split(info_dict.get("super_block_devices", "").strip())
83 groups = shlex.split(info_dict.get("super_partition_groups", "").strip())
98 size = info_dict["super_{}_device_size".format(device)]
[all …]
Dcheck_target_files_vintf.py70 def GetArgsForSkus(info_dict): argument
71 odm_skus = info_dict.get('vintf_odm_manifest_skus', '').strip().split()
72 if info_dict.get('vintf_include_empty_odm_sku', '') == "true" or not odm_skus:
75 vendor_skus = info_dict.get('vintf_vendor_manifest_skus', '').strip().split()
76 if info_dict.get('vintf_include_empty_vendor_sku', '') == "true" or \
85 def GetArgsForShippingApiLevel(info_dict): argument
86 shipping_api_level = info_dict['vendor.build.prop'].GetProp(
109 def CheckVintfFromExtractedTargetFiles(input_tmp, info_dict=None): argument
122 if info_dict is None:
123 info_dict = common.LoadInfoDict(input_tmp)
[all …]
Dadd_img_to_target_files.py126 image_size = OPTIONS.info_dict.get(which + "_image_size")
135 if "extfs_sparse_flag" in OPTIONS.info_dict:
169 board_uses_vendorimage = OPTIONS.info_dict.get(
176 boot_img, info_dict=OPTIONS.info_dict)
179 CreateImage(OPTIONS.input_tmp, OPTIONS.info_dict, "system", img,
194 CreateImage(OPTIONS.input_tmp, OPTIONS.info_dict, "system_other", img)
218 board_uses_vendorimage = OPTIONS.info_dict.get(
225 boot_img, info_dict=OPTIONS.info_dict)
228 CreateImage(OPTIONS.input_tmp, OPTIONS.info_dict, "vendor", img,
245 OPTIONS.input_tmp, OPTIONS.info_dict, "product", img,
[all …]
Dadd_img_to_target_files126 image_size = OPTIONS.info_dict.get(which + "_image_size")
135 if "extfs_sparse_flag" in OPTIONS.info_dict:
169 board_uses_vendorimage = OPTIONS.info_dict.get(
176 boot_img, info_dict=OPTIONS.info_dict)
179 CreateImage(OPTIONS.input_tmp, OPTIONS.info_dict, "system", img,
194 CreateImage(OPTIONS.input_tmp, OPTIONS.info_dict, "system_other", img)
218 board_uses_vendorimage = OPTIONS.info_dict.get(
225 boot_img, info_dict=OPTIONS.info_dict)
228 CreateImage(OPTIONS.input_tmp, OPTIONS.info_dict, "vendor", img,
245 OPTIONS.input_tmp, OPTIONS.info_dict, "product", img,
[all …]
Dvalidate_target_files.py69 def ValidateFileConsistency(input_zip, input_tmp, info_dict): argument
122 if info_dict.get('extfs_sparse_flag') != '-s':
136 def ValidateInstallRecoveryScript(input_tmp, info_dict): argument
163 board_uses_vendorimage = info_dict.get("board_uses_vendorimage") == "true"
185 full_recovery_image = info_dict.get("full_recovery_image") == "true"
249 def ValidateVerifiedBootImages(input_tmp, info_dict, options): argument
276 if info_dict.get('boot_signer') == 'true':
284 verity_key = info_dict['verity_key'] + '.x509.pem'
304 if info_dict.get('verity') == 'true':
323 if info_dict.get("system_root_image") != "true":
[all …]
Dcommon.py91 self.info_dict = None
369 def __init__(self, info_dict, oem_dicts=None): argument
384 self.info_dict = info_dict
387 self._is_ab = info_dict.get("ab_update") == "true"
392 self._oem_props = info_dict.get("oem_fingerprint_properties")
438 return self.info_dict[key]
441 self.info_dict[key] = value
444 return self.info_dict.get(key, default)
447 return self.info_dict.items()
452 partition_props = self.info_dict.get(prop_file)
[all …]
Dtest_validate_target_files.py64 info_dict = {
70 ValidateVerifiedBootImages(input_tmp, info_dict, options)
79 info_dict = {
86 AssertionError, ValidateVerifiedBootImages, input_tmp, info_dict,
104 info_dict = {
111 AssertionError, ValidateVerifiedBootImages, input_tmp, info_dict,
158 info_dict = {
166 ValidateVerifiedBootImages(input_tmp, info_dict, options)
190 info_dict = {
197 ValidateVerifiedBootImages(input_tmp, info_dict, options)
[all …]
Dtest_add_img_to_target_files.py125 OPTIONS.info_dict = {
211 OPTIONS.info_dict = {
245 OPTIONS.info_dict = {
266 OPTIONS.info_dict = {
301 del OPTIONS.info_dict['vendor_image_size']
317 del OPTIONS.info_dict['system_image_size']
318 del OPTIONS.info_dict['vendor_image_size']
328 OPTIONS.info_dict = {}
397 OPTIONS.info_dict = {
413 OPTIONS.info_dict = {
[all …]
Dtest_common.py195 info_dict = copy.deepcopy(self.TEST_INFO_DICT)
196 info_dict['build.prop'].build_props[
198 self.assertRaises(ValueError, common.BuildInfo, info_dict, None)
200 info_dict['build.prop'].build_props[
202 self.assertRaises(ValueError, common.BuildInfo, info_dict, None)
282 info_dict = copy.deepcopy(self.TEST_INFO_DICT)
283 info_dict['vendor.build.prop'].build_props[
285 target_info = common.BuildInfo(info_dict, None)
318 info_dict = copy.deepcopy(self.TEST_INFO_DICT_PROPERTY_SOURCE_ORDER)
319 info = common.BuildInfo(info_dict, None)
[all …]
Dota_from_target_files542 def HasRecoveryPatch(target_files_zip, info_dict): argument
543 board_uses_vendorimage = info_dict.get("board_uses_vendorimage") == "true"
636 info_dict=source_info,
642 info_dict=target_info,
680 info_dict=target_info,
716 target_info = common.BuildInfo(OPTIONS.info_dict, OPTIONS.oem_dicts)
744 info_dict=OPTIONS.info_dict)
746 assert HasRecoveryPatch(input_zip, info_dict=OPTIONS.info_dict)
824 info_dict=OPTIONS.info_dict,
1405 info_dict=source_info)
[all …]
Dota_from_target_files.py542 def HasRecoveryPatch(target_files_zip, info_dict): argument
543 board_uses_vendorimage = info_dict.get("board_uses_vendorimage") == "true"
636 info_dict=source_info,
642 info_dict=target_info,
680 info_dict=target_info,
716 target_info = common.BuildInfo(OPTIONS.info_dict, OPTIONS.oem_dicts)
744 info_dict=OPTIONS.info_dict)
746 assert HasRecoveryPatch(input_zip, info_dict=OPTIONS.info_dict)
824 info_dict=OPTIONS.info_dict,
1405 info_dict=source_info)
[all …]
Dmake_recovery_patch.py40 OPTIONS.info_dict = common.LoadInfoDict(input_dir)
50 board_uses_vendorimage = OPTIONS.info_dict.get(
Dverity_utils.py523 def CreateHashtreeInfoGenerator(partition_name, block_size, info_dict): argument
525 if (info_dict.get("verity") == "true" and
526 info_dict.get("{}_verity_block_device".format(partition_name))):
527 partition_size = info_dict["{}_size".format(partition_name)]
528 fec_supported = info_dict.get("verity_fec") == "true"
700 def CreateCustomImageBuilder(info_dict, partition_name, partition_size, argument
703 if info_dict.get("avb_enable") == "true":
708 info_dict.get("avb_avbtool"),
Dmerge_builds.py141 OPTIONS.info_dict = merged_dict
Dimg_from_target_files.py75 info = OPTIONS.info_dict = common.LoadInfoDict(input_zip)
Dimg_from_target_files75 info = OPTIONS.info_dict = common.LoadInfoDict(input_zip)
DAndroid.bp179 // `avbtool` is not here, as the script always uses the one from info_dict['avb_avbtool'].