Home
last modified time | relevance | path

Searched refs:input_file (Results 1 – 20 of 20) sorted by relevance

/build/make/tools/releasetools/
Dimg_from_target_files.py71 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 …]
Dota_from_target_files.py445 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 …]
Dfsverity_metadata_generator.py100 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)
Dtest_ota_from_target_files.py490 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 …]
Dcommon.py742 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 …]
Dota_utils.py67 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 …]
Dtest_validate_target_files.py271 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:
Dtest_sign_target_files_apks.py244 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:
Dapex_utils.py537 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, '*')])
Dtest_utils.py252 def _verify_entries(self, input_file, tokens, entries): argument
255 with open(input_file, 'rb') as input_fp:
Dtest_common.py1910 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/
Dtest_ndkstubgen.py178 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/
Dtest_symbolfile.py452 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__.py385 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/
Dtest_ndk_api_coverage_parser.py56 input_file = io.StringIO(
82 parser = SymbolFileParser(input_file, {}, filt)
/build/bazel/rules/cc/
Dgenerate_toc.bzl24 def generate_toc(ctx, name, input_file):
33 inputs = [input_file],
43 input_file.path,
Dclang_tidy.bzl156 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/
Dgenerate-self-extracting-archive.py165 with open(input_archive_filename, 'rb') as input_file:
166 _pipe_bytes(input_file, output)
/build/bazel/scripts/incremental_build/
Dpretty.py182 with open(metrics_csv, "rt") as input_file:
183 summary_data = summarize_helper(input_file, regex, agg)
/build/bazel/rules/apex/
Dapex.bzl634 def _run_apex_compression_tool(ctx, apex_toolchain, input_file, output_file_name):
646 args.add_all(["--input", input_file])
650 inputs = [input_file],