Home
last modified time | relevance | path

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

/build/make/tools/releasetools/
Dtest_check_partition_sizes.py23 self.info_dict = common.LoadDictionaryFromLines("""
40 CheckPartitionSizes(self.info_dict)
43 self.info_dict.update(common.LoadDictionaryFromLines("""
48 CheckPartitionSizes(self.info_dict)
51 self.info_dict.update(common.LoadDictionaryFromLines("""
55 CheckPartitionSizes(self.info_dict)
58 self.info_dict.update(common.LoadDictionaryFromLines("""
65 CheckPartitionSizes(self.info_dict)
68 self.info_dict.update(common.LoadDictionaryFromLines("""
72 CheckPartitionSizes(self.info_dict)
[all …]
Dcheck_partition_sizes.py98 def Get(info_dict): argument
99 if info_dict.get("ab_update") != "true":
101 if info_dict.get("virtual_ab_retrofit") == "true":
103 if info_dict.get("virtual_ab") == "true":
115 def Get(info_dict): argument
116 if info_dict.get("use_dynamic_partitions") != "true":
118 if info_dict.get("dynamic_partition_retrofit") == "true":
124 def __init__(self, info_dict): argument
125 if "super_partition_size" in info_dict:
126 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(
106 def CheckVintfFromExtractedTargetFiles(input_tmp, info_dict=None): argument
119 if info_dict is None:
120 info_dict = common.LoadInfoDict(input_tmp)
[all …]
Dadd_img_to_target_files.py133 board_uses_vendorimage = OPTIONS.info_dict.get(
140 boot_img, info_dict=OPTIONS.info_dict)
143 CreateImage(OPTIONS.input_tmp, OPTIONS.info_dict, "system", img,
157 CreateImage(OPTIONS.input_tmp, OPTIONS.info_dict, "system_other", img)
181 board_uses_vendorimage = OPTIONS.info_dict.get(
188 boot_img, info_dict=OPTIONS.info_dict)
191 CreateImage(OPTIONS.input_tmp, OPTIONS.info_dict, "vendor", img,
208 OPTIONS.input_tmp, OPTIONS.info_dict, "product", img,
226 OPTIONS.input_tmp, OPTIONS.info_dict, "system_ext", img,
242 OPTIONS.input_tmp, OPTIONS.info_dict, "odm", img,
[all …]
Dadd_img_to_target_files133 board_uses_vendorimage = OPTIONS.info_dict.get(
140 boot_img, info_dict=OPTIONS.info_dict)
143 CreateImage(OPTIONS.input_tmp, OPTIONS.info_dict, "system", img,
157 CreateImage(OPTIONS.input_tmp, OPTIONS.info_dict, "system_other", img)
181 board_uses_vendorimage = OPTIONS.info_dict.get(
188 boot_img, info_dict=OPTIONS.info_dict)
191 CreateImage(OPTIONS.input_tmp, OPTIONS.info_dict, "vendor", img,
208 OPTIONS.input_tmp, OPTIONS.info_dict, "product", img,
226 OPTIONS.input_tmp, OPTIONS.info_dict, "system_ext", img,
242 OPTIONS.input_tmp, OPTIONS.info_dict, "odm", 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"
251 def ValidateVerifiedBootImages(input_tmp, info_dict, options): argument
278 if info_dict.get('boot_signer') == 'true':
286 verity_key = info_dict['verity_key'] + '.x509.pem'
306 if info_dict.get('verity') == 'true':
325 if info_dict.get("system_root_image") != "true":
[all …]
Dcommon.py92 self.info_dict = None
378 def __init__(self, info_dict, oem_dicts=None, use_legacy_id=False): argument
396 self.info_dict = info_dict
399 self._is_ab = info_dict.get("ab_update") == "true"
405 self._oem_props = info_dict.get("oem_fingerprint_properties")
448 vendor_prop = self.info_dict.get("vendor.build.prop")
455 vendor_prop = self.info_dict.get("vendor.build.prop")
465 return self.info_dict[key]
468 self.info_dict[key] = value
471 return self.info_dict.get(key, default)
[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_common.py212 info_dict = copy.deepcopy(self.TEST_INFO_DICT)
213 info_dict['build.prop'].build_props[
215 self.assertRaises(ValueError, common.BuildInfo, info_dict, None)
217 info_dict['build.prop'].build_props[
219 self.assertRaises(ValueError, common.BuildInfo, info_dict, None)
222 info_dict = copy.deepcopy(self.TEST_INFO_FINGERPRINT_DICT)
223 build_info = common.BuildInfo(info_dict)
228 build_props = info_dict['build.prop'].build_props
231 build_info = common.BuildInfo(info_dict, use_legacy_id=True)
237 self.assertRaises(common.ExternalError, common.BuildInfo, info_dict, None,
[all …]
Dnon_ab_ota.py40 info_dict=source_info,
46 info_dict=target_info,
84 info_dict=target_info,
120 target_info = common.BuildInfo(OPTIONS.info_dict, OPTIONS.oem_dicts)
148 info_dict=OPTIONS.info_dict)
150 assert HasRecoveryPatch(input_zip, info_dict=OPTIONS.info_dict)
228 info_dict=OPTIONS.info_dict,
328 info_dict=source_info)
471 info_dict=OPTIONS.target_info_dict,
549 if OPTIONS.info_dict.get("no_recovery") == "true":
[all …]
Dtest_add_img_to_target_files.py126 OPTIONS.info_dict = {
212 OPTIONS.info_dict = {
246 OPTIONS.info_dict = {
267 OPTIONS.info_dict = {
302 del OPTIONS.info_dict['vendor_image_size']
318 del OPTIONS.info_dict['system_image_size']
319 del OPTIONS.info_dict['vendor_image_size']
329 OPTIONS.info_dict = {}
399 OPTIONS.info_dict = {
415 OPTIONS.info_dict = {
[all …]
Dota_utils.py172 assert "ab_partitions" in build_info.info_dict,\
174 ab_partitions = set(build_info.info_dict.get("ab_partitions"))
180 partition_prop = build_info.info_dict.get(
369 info_dict = copy.deepcopy(default_build_info.info_dict)
372 input_file = info_dict[partition_prop_key].input_file
375 info_dict[partition_prop_key] = \
379 info_dict[partition_prop_key] = \
382 info_dict["build.prop"] = info_dict["system.build.prop"]
383 build_info_set.add(BuildInfo(info_dict, default_build_info.oem_dicts))
Dmake_recovery_patch.py40 OPTIONS.info_dict = common.LoadInfoDict(input_dir)
50 board_uses_vendorimage = OPTIONS.info_dict.get(
Dota_from_target_files.py1070 assert "ab_partitions" in OPTIONS.info_dict, \
1072 target_info = common.BuildInfo(OPTIONS.info_dict, OPTIONS.oem_dicts)
1097 target_info.info_dict['ab_partitions'] = zfp.read(
1355 OPTIONS.info_dict = common.LoadInfoDict(OPTIONS.extracted_input)
1357 OPTIONS.info_dict = ParseInfoDict(args[0])
1378 common.DumpInfoDict(OPTIONS.info_dict)
1382 OPTIONS.target_info_dict = OPTIONS.info_dict
1389 OPTIONS.info_dict['ab_partitions'] = \
1391 set(OPTIONS.info_dict['ab_partitions']) & set(OPTIONS.partial)
1420 ab_update = OPTIONS.info_dict.get("ab_update") == "true"
[all …]
Dota_from_target_files1070 assert "ab_partitions" in OPTIONS.info_dict, \
1072 target_info = common.BuildInfo(OPTIONS.info_dict, OPTIONS.oem_dicts)
1097 target_info.info_dict['ab_partitions'] = zfp.read(
1355 OPTIONS.info_dict = common.LoadInfoDict(OPTIONS.extracted_input)
1357 OPTIONS.info_dict = ParseInfoDict(args[0])
1378 common.DumpInfoDict(OPTIONS.info_dict)
1382 OPTIONS.target_info_dict = OPTIONS.info_dict
1389 OPTIONS.info_dict['ab_partitions'] = \
1391 set(OPTIONS.info_dict['ab_partitions']) & set(OPTIONS.partial)
1420 ab_update = OPTIONS.info_dict.get("ab_update") == "true"
[all …]
Dverity_utils.py533 def CreateHashtreeInfoGenerator(partition_name, block_size, info_dict): argument
535 if (info_dict.get("verity") == "true" and
536 info_dict.get("{}_verity_block_device".format(partition_name))):
537 partition_size = info_dict["{}_size".format(partition_name)]
538 fec_supported = info_dict.get("verity_fec") == "true"
710 def CreateCustomImageBuilder(info_dict, partition_name, partition_size, argument
713 if info_dict.get("avb_enable") == "true":
718 info_dict.get("avb_avbtool"),
Dmerge_target_files.py783 OPTIONS.info_dict = common.LoadInfoDict(output_target_files_dir)
792 if image_size_prop not in OPTIONS.info_dict:
797 OPTIONS.info_dict, partition)
801 OPTIONS.info_dict[image_size_prop] = image_size
Dmerge_builds.py141 OPTIONS.info_dict = merged_dict
Dimg_from_target_files76 info = OPTIONS.info_dict = common.LoadInfoDict(input_zip)
Dimg_from_target_files.py76 info = OPTIONS.info_dict = common.LoadInfoDict(input_zip)
DAndroid.bp257 // `avbtool` is not here, as the script always uses the one from info_dict['avb_avbtool'].