/build/make/tools/releasetools/ |
D | img_from_target_files.py | 71 def LoadOptions(input_file): argument 77 with zipfile.ZipFile(input_file) as input_zip: 91 def CopyZipEntries(input_file, output_file, entries): argument 104 cmd = ['zip2zip', '-i', input_file, '-o', output_file] 116 def EntriesForUserImages(input_file): argument 134 with zipfile.ZipFile(input_file) as input_zip: 170 def EntriesForSplitSuperImages(input_file): argument 178 with zipfile.ZipFile(input_file) as input_zip: 188 def RebuildAndWriteSuperImages(input_file, output_file): argument 195 input_tmp = common.UnzipTemp(input_file) [all …]
|
D | ota_from_target_files.py | 445 def GetTargetFilesZipForSecondaryImages(input_file, skip_postinstall=False): argument 487 for (root, dirs, files) in os.walk(input_file): 488 root = root.lstrip(input_file).lstrip("/") 492 input_tmp = input_file 537 def GetTargetFilesZipWithoutPostinstallConfig(input_file): argument 551 config_path = os.path.join(input_file, POSTINSTALL_CONFIG) 554 return input_file 560 def ModifyTargetFilesDynamicPartitionInfo(input_file, key, value): argument 569 if os.path.isdir(input_file): 571 input_file, *DYNAMIC_PARTITION_INFO.split("/")) [all …]
|
D | fsverity_metadata_generator.py | 100 def digest(self, input_file): argument 101 cmd = [self._fsverity_path, 'digest', input_file] 107 def generate(self, input_file, output_file=None): argument 115 output_file = input_file + '.fsv_meta' 118 self._do_generate(input_file, output_file, temp_dir) 120 def _do_generate(self, input_file, output_file, work_dir): argument 130 cmd.append(input_file) 133 cmd.append(input_file)
|
D | test_ota_from_target_files.py | 490 input_file = construct_target_files(secondary=True) 491 target_file = GetTargetFilesZipForSecondaryImages(input_file) 512 input_file = construct_target_files(secondary=True) 514 input_file, skip_postinstall=True) 531 input_file = construct_target_files(secondary=True) 532 common.ZipDelete(input_file, 'RADIO/bootloader.img') 533 common.ZipDelete(input_file, 'RADIO/modem.img') 534 target_file = GetTargetFilesZipForSecondaryImages(input_file) 551 input_file = construct_target_files(secondary=True) 566 with zipfile.ZipFile(input_file, 'a', allowZip64=True) as append_zip: [all …]
|
D | common.py | 742 def DoesInputFileContain(input_file, fn): argument 744 if isinstance(input_file, zipfile.ZipFile): 745 return fn in input_file.namelist() 746 elif zipfile.is_zipfile(input_file): 747 with zipfile.ZipFile(input_file, "r", allowZip64=True) as zfp: 750 if not os.path.isdir(input_file): 752 … ZipFile object, path to .zip file on disk, or path to extracted directory. Actual: " + input_file) 753 path = os.path.join(input_file, *fn.split("/")) 757 def ReadBytesFromInputFile(input_file, fn): argument 759 if isinstance(input_file, zipfile.ZipFile): [all …]
|
D | ota_utils.py | 67 def FinalizeMetadata(metadata, input_file, output_file, needed_property_files=None, package_key=Non… argument 101 def ComputeAllPropertyFiles(input_file, needed_property_files): argument 103 with zipfile.ZipFile(input_file, 'r', allowZip64=True) as input_zip: 108 ZipDelete(input_file, [METADATA_NAME, METADATA_PROTO_NAME], True) 109 with zipfile.ZipFile(input_file, 'a', allowZip64=True) as output_zip: 113 return input_file 116 SignOutput(input_file, prelim_signing, package_key, pw) 131 prelim_signing = ComputeAllPropertyFiles(input_file, needed_property_files) 446 input_file = info_dict[partition_prop_key].input_file 448 if isinstance(input_file, zipfile.ZipFile): [all …]
|
D | test_validate_target_files.py | 271 input_file = common.MakeTempFile() 274 with zipfile.ZipFile(input_file, 'w', allowZip64=True) as input_zip: 280 with zipfile.ZipFile(input_file) as input_zip: 320 input_file = common.MakeTempFile() 323 with zipfile.ZipFile(input_file, 'w', allowZip64=True) as input_zip: 327 with zipfile.ZipFile(input_file) as input_zip:
|
D | test_sign_target_files_apks.py | 244 input_file = common.MakeTempFile(suffix='.zip') 245 with zipfile.ZipFile(input_file, 'w', allowZip64=True) as input_zip: 254 with zipfile.ZipFile(input_file) as input_zip: 268 input_file = common.MakeTempFile(suffix='.zip') 269 with zipfile.ZipFile(input_file, 'w', allowZip64=True) as input_zip: 282 with zipfile.ZipFile(input_file) as input_zip:
|
D | apex_utils.py | 537 def GetApexInfoFromTargetFiles(input_file): argument 550 if not isinstance(input_file, str): 554 apex_infos.extend(GetApexInfoForPartition(input_file, partition)) 558 def GetApexInfoForPartition(input_file, partition): argument 560 if os.path.isdir(input_file): 561 tmp_dir = input_file 563 tmp_dir = UnzipTemp(input_file, [os.path.join(apex_subdir, '*')])
|
D | test_utils.py | 252 def _verify_entries(self, input_file, tokens, entries): argument 255 with open(input_file, 'rb') as input_fp:
|
D | test_common.py | 1910 input_file = common.MakeTempFile(prefix='target_files-', suffix='.zip') 1911 with zipfile.ZipFile(input_file, 'w', allowZip64=True) as input_zip: 1915 return input_file 1924 input_file = self._BuildZipFile({ 1928 with zipfile.ZipFile(input_file, 'r', allowZip64=True) as input_zip: 1954 input_file = self._BuildZipFile({ 1960 with zipfile.ZipFile(input_file, 'r', allowZip64=True) as input_zip: 1975 with zipfile.ZipFile(input_file, 'r', allowZip64=True) as input_zip: 1992 input_file = self._BuildZipFile({ 1996 with zipfile.ZipFile(input_file, 'r', allowZip64=True) as input_zip: [all …]
|
/build/soong/cc/ndkstubgen/ |
D | test_ndkstubgen.py | 178 input_file = io.StringIO(textwrap.dedent("""\ 209 parser = symbolfile.SymbolFileParser(input_file, api_map, self.filter) 262 input_file = io.StringIO(textwrap.dedent("""\ 274 parser = symbolfile.SymbolFileParser(input_file, api_map, f) 309 input_file = io.StringIO(textwrap.dedent("""\ 335 parser = symbolfile.SymbolFileParser(input_file, {}, f) 349 input_file = io.StringIO(textwrap.dedent("""\ 384 parser = symbolfile.SymbolFileParser(input_file, api_map, f) 428 input_file = io.StringIO(textwrap.dedent("""\ 440 parser = symbolfile.SymbolFileParser(input_file, {}, f) [all …]
|
/build/soong/cc/symbolfile/ |
D | test_symbolfile.py | 452 input_file = io.StringIO(textwrap.dedent("""\ 459 parser = symbolfile.SymbolFileParser(input_file, {}, self.filter) 476 input_file = io.StringIO(textwrap.dedent("""\ 485 parser = symbolfile.SymbolFileParser(input_file, {}, self.filter) 509 input_file = io.StringIO(textwrap.dedent("""\ 512 parser = symbolfile.SymbolFileParser(input_file, {}, self.filter) 518 input_file = io.StringIO(textwrap.dedent("""\ 523 parser = symbolfile.SymbolFileParser(input_file, {}, self.filter) 529 input_file = io.StringIO(textwrap.dedent("""\ 533 parser = symbolfile.SymbolFileParser(input_file, {}, self.filter) [all …]
|
D | __init__.py | 385 def __init__(self, input_file: TextIO, api_map: ApiMap, filt: Filter) -> None: 386 self.input_file = input_file 518 line = self.input_file.readline() 520 line = self.input_file.readline()
|
/build/soong/cc/ndk_api_coverage_parser/ |
D | test_ndk_api_coverage_parser.py | 56 input_file = io.StringIO( 82 parser = SymbolFileParser(input_file, {}, filt)
|
/build/bazel/rules/cc/ |
D | generate_toc.bzl | 24 def generate_toc(ctx, name, input_file): 33 inputs = [input_file], 43 input_file.path,
|
D | clang_tidy.bzl | 156 def _add_global_tidy_checks(ctx, local_checks, input_file): 161 elif not input_file.is_source: 185 input_file, 196 tidy_checks = _add_global_tidy_checks(ctx, tidy_checks, input_file) 203 args.add(input_file) 213 … tidy_file = ctx.actions.declare_file(paths.join(ctx.label.name, input_file.short_path + ".tidy")) 222 inputs = [input_file] + headers, 226 progress_message = "Running clang-tidy on {}".format(input_file.short_path), 325 input_file = src,
|
/build/make/tools/ |
D | generate-self-extracting-archive.py | 165 with open(input_archive_filename, 'rb') as input_file: 166 _pipe_bytes(input_file, output)
|
/build/bazel/scripts/incremental_build/ |
D | pretty.py | 182 with open(metrics_csv, "rt") as input_file: 183 summary_data = summarize_helper(input_file, regex, agg)
|
/build/bazel/rules/apex/ |
D | apex.bzl | 634 def _run_apex_compression_tool(ctx, apex_toolchain, input_file, output_file_name): 646 args.add_all(["--input", input_file]) 650 inputs = [input_file],
|