Home
last modified time | relevance | path

Searched refs:get (Results 1 – 25 of 97) sorted by relevance

1234

/build/make/tools/product_config/src/com/android/build/config/
DDumpConfigParser.java92 final CsvParser.Line line = lines.get(index); in parseImpl()
97 dumpconfigVersion = Integer.parseInt(fields.get(1)); in parseImpl()
101 "Couldn't parse dumpconfig_version: " + fields.get(1)); in parseImpl()
124 final CsvParser.Line line = lines.get(index); in parseImpl()
126 final String lineType = fields.get(0); in parseImpl()
131 makeConfig.setPhase(fields.get(1)); in parseImpl()
132 makeConfig.setRootNodes(splitList(fields.get(2))); in parseImpl()
152 final VarType type = "list".equals(fields.get(1)) ? VarType.LIST : VarType.SINGLE; in parseImpl()
153 makeConfig.addProductVar(fields.get(2), type); in parseImpl()
156 System.out.println(" VAR: " + type + " " + fields.get(2)); in parseImpl()
[all …]
DMakeWriter.java86 final Str value = values.get(0); in writeAssign()
89 } else if (size == 2 && values.get(0).toString().length() == 0) { in writeAssign()
91 final Str value = values.get(1); in writeAssign()
96 out.print(varName + " := " + values.get(0)); in writeAssign()
98 out.print("$(" + varName + ") " + values.get(i)); in writeAssign()
99 pos = values.get(i).getPosition(); in writeAssign()
150 out.print(list.get(i).toString()); in writeFlat()
DConvertMakeToGenericConfig.java37 final MakeConfig products = make.get("PRODUCTS"); in convert()
61 if (blocks.get(0).getBlockType() != MakeConfig.BlockType.BEFORE) { in convert()
64 if (blocks.get(blocks.size() - 1).getBlockType() != MakeConfig.BlockType.AFTER) { in convert()
69 if (blocks.get(index).getBlockType() != MakeConfig.BlockType.INHERIT) { in convert()
79 MakeConfig.Block prevBlock = blocks.get(0); in convert()
82 final MakeConfig.Block block = blocks.get(index); in convert()
113 final MakeConfig expand = make.get("PRODUCT-EXPAND"); in convert()
DFlattenConfig.java82 final String root = rootNodes.get(0); in flattenImpl()
127 final GenericConfig.ConfigFile genericFile = mGenericConfigs.get(filename.toString()); in forEachStatement()
233 final Map<String, Value> child = children.get(inherit.getFilename()); in flattenListVars()
263 Value v = mVariables.get(varName); in flattenSingleVars()
265 Value value = mVariables.get(varName); in flattenSingleVars()
282 valueList.get(0))); in flattenSingleVars()
366 final Value prevValue = mVariables.get(varName); in assertVarType()
385 final Value value = vars.get(varName); in assignToListVar()
393 final Str item = items.get(i); in assignToListVar()
405 Value value = vars.get(varName); in appendToListVar()
[all …]
/build/make/tools/product_config/test/com/android/build/config/
DCsvParserTest.java48 if (!fields[i].equals(actual.getFields().get(i))) { in assertLineEquals()
50 + fields[i] + " actual=" + actual.getFields().get(i) in assertLineEquals()
71 assertLineEquals(lines.get(0), 1, "a"); in testLexerOneCharacter()
80 assertLineEquals(lines.get(0), 1, "a", "b"); in testLexerTwoFieldsNoNewline()
89 assertLineEquals(lines.get(0), 1, "a", "b"); in testLexerTwoFieldsNewline()
98 assertLineEquals(lines.get(0), 1, "a", "b"); in testEndsWithTwoNewlines()
120 assertLineEquals(lines.get(0), 2, "", "ab\"\nc", "", "de"); in testLexerComplex()
121 assertLineEquals(lines.get(1), 3, "fg", ""); in testLexerComplex()
122 assertLineEquals(lines.get(2), 5, "", ""); in testLexerComplex()
123 assertLineEquals(lines.get(3), 6, "hijk"); in testLexerComplex()
/build/make/tools/releasetools/
Dbuild_image.py156 fs_config = prop_dict.get("fs_config")
171 root_dir = prop_dict.get("root_dir")
213 assert prop_dict.get('fs_type', '').startswith('ext4')
222 used_blocks = int(m.groupdict().get('used_blocks'))
223 total_blocks = int(m.groupdict().get('total_blocks'))
253 fs_type = prop_dict.get("fs_type", "")
255 needs_projid = prop_dict.get("needs_projid", 0)
256 needs_casefold = prop_dict.get("needs_casefold", 0)
257 needs_compress = prop_dict.get("needs_compress", 0)
295 if prop_dict.get("ext4_share_dup_blocks") == "true":
[all …]
Dadd_img_to_target_files.py133 board_uses_vendorimage = OPTIONS.info_dict.get(
181 board_uses_vendorimage = OPTIONS.info_dict.get(
296 if OPTIONS.info_dict.get("avb_enable") == "true":
306 args = OPTIONS.info_dict.get("avb_dtbo_add_hash_footer_args")
332 if OPTIONS.info_dict.get("avb_enable") == "true":
342 args = OPTIONS.info_dict.get("avb_pvmfw_add_hash_footer_args")
365 key_path = OPTIONS.info_dict.get("avb_{}_key_path".format(partition_name))
366 algorithm = OPTIONS.info_dict.get("avb_{}_algorithm".format(partition_name))
367 extra_args = OPTIONS.info_dict.get(
369 partition_size = OPTIONS.info_dict.get(
[all …]
Dadd_img_to_target_files133 board_uses_vendorimage = OPTIONS.info_dict.get(
181 board_uses_vendorimage = OPTIONS.info_dict.get(
296 if OPTIONS.info_dict.get("avb_enable") == "true":
306 args = OPTIONS.info_dict.get("avb_dtbo_add_hash_footer_args")
332 if OPTIONS.info_dict.get("avb_enable") == "true":
342 args = OPTIONS.info_dict.get("avb_pvmfw_add_hash_footer_args")
365 key_path = OPTIONS.info_dict.get("avb_{}_key_path".format(partition_name))
366 algorithm = OPTIONS.info_dict.get("avb_{}_algorithm".format(partition_name))
367 extra_args = OPTIONS.info_dict.get(
369 partition_size = OPTIONS.info_dict.get(
[all …]
Dbuild_super_image.py78 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())
115 image = info_dict.get("{}_image".format(partition))
136 if info_dict.get("build_non_sparse_super_partition") != "true":
154 info_dict.get("dynamic_partition_list", "").strip())
Dvalidate_target_files.py90 if ranges.extra.get('uses_shared_blocks'):
95 incomplete = file_ranges.extra.get('incomplete', False)
122 if info_dict.get('extfs_sparse_flag') != '-s':
163 board_uses_vendorimage = info_dict.get("board_uses_vendorimage") == "true"
185 full_recovery_image = info_dict.get("full_recovery_image") == "true"
278 if info_dict.get('boot_signer') == 'true':
306 if info_dict.get('verity') == 'true':
325 if info_dict.get("system_root_image") != "true":
358 if info_dict.get("avb_enable") == "true":
373 custom_partitions = info_dict.get(
[all …]
Dcheck_partition_sizes.py99 if info_dict.get("ab_update") != "true":
101 if info_dict.get("virtual_ab_retrofit") == "true":
103 if info_dict.get("virtual_ab") == "true":
116 if info_dict.get("use_dynamic_partitions") != "true":
118 if info_dict.get("dynamic_partition_retrofit") == "true":
143 alignment = self.info_dict.get("super_partition_alignment")
151 info_dict.get("super_block_devices", "").strip().split()
152 size_list = [int(info_dict.get("super_{}_device_size".format(b), "0"))
236 groups = info_dict.get("super_partition_groups", "").strip().split()
252 group_size_list = [int(info_dict.get(
[all …]
Dimg_from_target_files78 OPTIONS.put_super = info.get('super_image_in_update_package') == 'true'
79 OPTIONS.put_bootloader = info.get('bootloader_in_update_package') == 'true'
80 OPTIONS.dynamic_partition_list = info.get('dynamic_partition_list',
82 OPTIONS.super_device_list = info.get('super_block_devices',
84 OPTIONS.retrofit_dap = info.get('dynamic_partition_retrofit') == 'true'
85 OPTIONS.build_super = info.get('build_super_partition') == 'true'
86 OPTIONS.sparse_userimages = bool(info.get('extfs_sparse_flag'))
Dimg_from_target_files.py78 OPTIONS.put_super = info.get('super_image_in_update_package') == 'true'
79 OPTIONS.put_bootloader = info.get('bootloader_in_update_package') == 'true'
80 OPTIONS.dynamic_partition_list = info.get('dynamic_partition_list',
82 OPTIONS.super_device_list = info.get('super_block_devices',
84 OPTIONS.retrofit_dap = info.get('dynamic_partition_retrofit') == 'true'
85 OPTIONS.build_super = info.get('build_super_partition') == 'true'
86 OPTIONS.sparse_userimages = bool(info.get('extfs_sparse_flag'))
Dsign_apex.py128 options.get('avbtool', 'avbtool'),
133 apk_keys=options.get('extra_apks', {}),
134 signing_args=options.get('payload_extra_args'),
135 codename_to_api_level_map=options.get(
Dcommon.py399 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")
470 def get(self, key, default=None): member in BuildInfo
471 return self.info_dict.get(key, default)
479 partition_props = self.info_dict.get(prop_file)
591 avb_enable = self.info_dict.get("avb_enable") == "true"
595 vbmeta_digest = self.info_dict.get("vbmeta_digest")
619 return self._partition_fingerprints.get(partition, None)
[all …]
Dnon_ab_ota.py68 allow_shared_blocks = (source_info.get('ext4_share_dup_blocks') == "true" or
69 target_info.get('ext4_share_dup_blocks') == "true")
71 int(i) for i in target_info.get(
188 if not target_info.get("multistage_support"):
224 if target_info.get('use_dynamic_partitions') == "true":
236 progress=progress_dict.get(block_diff.partition),
375 if not source_info.get("multistage_support"):
466 if OPTIONS.source_info_dict.get("use_dynamic_partitions") == "true":
467 if OPTIONS.target_info_dict.get("use_dynamic_partitions") != "true":
480 progress=progress_dict.get(block_diff.partition),
[all …]
Dverity_utils.py164 partition_size = prop_dict.get("partition_size")
170 verity_supported = prop_dict.get("verity") == "true"
180 prop_dict.get("verity_fec") == "true",
187 if (prop_dict.get("avb_hash_enable") == "true" or
188 prop_dict.get("avb_hashtree_enable") == "true"):
190 key_path = prop_dict.get("avb_key_path")
191 algorithm = prop_dict.get("avb_algorithm")
194 if prop_dict.get("avb_hash_enable") == "true":
202 prop_dict.get("avb_salt"),
213 prop_dict.get("avb_salt"),
[all …]
Dsign_target_files_apks.py235 certmap[apk] = OPTIONS.key_map.get(cert, cert)
241 certmap[apk] = OPTIONS.key_map.get(cert, cert)
275 keys_info[apex] = (payload_key, key_map.get(container_key, container_key))
284 keys_info[apex] = (keys_info[apex][0], key_map.get(key, key))
513 system_root_image = misc_info.get("system_root_image") == "true"
579 signing_args=OPTIONS.avb_extra_args.get('apex'))
664 signing_key = OPTIONS.avb_keys.get("system_other")
709 if misc_info.get('avb_enable') == 'true':
862 extra_recovery_keys = misc_info.get("extra_recovery_keys")
864 extra_recovery_keys = [OPTIONS.key_map.get(k, k) + ".x509.pem"
[all …]
Dsign_target_files_apks235 certmap[apk] = OPTIONS.key_map.get(cert, cert)
241 certmap[apk] = OPTIONS.key_map.get(cert, cert)
275 keys_info[apex] = (payload_key, key_map.get(container_key, container_key))
284 keys_info[apex] = (keys_info[apex][0], key_map.get(key, key))
513 system_root_image = misc_info.get("system_root_image") == "true"
579 signing_args=OPTIONS.avb_extra_args.get('apex'))
664 signing_key = OPTIONS.avb_keys.get("system_other")
709 if misc_info.get('avb_enable') == 'true':
862 extra_recovery_keys = misc_info.get("extra_recovery_keys")
864 extra_recovery_keys = [OPTIONS.key_map.get(k, k) + ".x509.pem"
[all …]
Dcheck_target_files_vintf.py71 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 \
122 if info_dict.get('vintf_enforce') != 'true':
/build/soong/scripts/hiddenapi/
Dverify_overlaps.py48 allFlags = allFlagsBySignature.get(signature)
50 … mismatchingSignatures.append((signature, row.get(None, []), allFlags.get(None, [])))
52 mismatchingSignatures.append((signature, row.get(None, []), []))
/build/make/tools/
Dparsedeps.py27 t = self.lines.get(tgt)
31 p = self.lines.get(prereq)
39 t = self.lines.get(tgt)
45 def get(self, tgt): member in Dependencies
56 d = self.lines.get(tgt)
118 d = deps.get(tgt)
Dgenerate-notice-files.py65 return "".join(HTML_ESCAPE_TABLE.get(c,c) for c in text)
107 …print >> output_file, '<li><a href="#id%d">%s</a></li>' % (id_table.get(filename), stripped_filena…
114 print >> output_file, '<tr id="id%d"><td class="same-license">' % id_table.get(value[0])
173 …print >> output_file, '<file-name contentId="%s">%s</file-name>' % (id_table.get(filename), stripp…
181 file_key = id_table.get(filename)
/build/make/tools/product_config/
Dinherit_tree.py13 children = graph.get(node, [])
16 for child in sorted(graph.get(node, [])):
/build/soong/scripts/
Dgenerate-notice-files.py65 return "".join(HTML_ESCAPE_TABLE.get(c,c) for c in text)
107 …print >> output_file, '<li><a href="#id%d">%s</a></li>' % (id_table.get(filename), stripped_filena…
114 print >> output_file, '<tr id="id%d"><td class="same-license">' % id_table.get(value[0])
173 …print >> output_file, '<file-name contentId="%s">%s</file-name>' % (id_table.get(filename), stripp…
181 file_key = id_table.get(filename)

1234