Home
last modified time | relevance | path

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

/build/make/tools/releasetools/
Dimg_from_target_files69 def LoadOptions(input_file): argument
75 with zipfile.ZipFile(input_file) as input_zip:
89 def CopyZipEntries(input_file, output_file, entries): argument
102 cmd = ['zip2zip', '-i', input_file, '-o', output_file]
107 def EntriesForUserImages(input_file): argument
122 with zipfile.ZipFile(input_file) as input_zip:
143 def EntriesForSplitSuperImages(input_file): argument
151 with zipfile.ZipFile(input_file) as input_zip:
161 def RebuildAndWriteSuperImages(input_file, output_file): argument
168 input_tmp = common.UnzipTemp(input_file)
[all …]
Dimg_from_target_files.py69 def LoadOptions(input_file): argument
75 with zipfile.ZipFile(input_file) as input_zip:
89 def CopyZipEntries(input_file, output_file, entries): argument
102 cmd = ['zip2zip', '-i', input_file, '-o', output_file]
107 def EntriesForUserImages(input_file): argument
122 with zipfile.ZipFile(input_file) as input_zip:
143 def EntriesForSplitSuperImages(input_file): argument
151 with zipfile.ZipFile(input_file) as input_zip:
161 def RebuildAndWriteSuperImages(input_file, output_file): argument
168 input_tmp = common.UnzipTemp(input_file)
[all …]
Dota_utils.py45 def FinalizeMetadata(metadata, input_file, output_file, needed_property_files): argument
66 def ComputeAllPropertyFiles(input_file, needed_property_files): argument
68 with zipfile.ZipFile(input_file, allowZip64=True) as input_zip:
75 ZipDelete(input_file, [METADATA_NAME, METADATA_PROTO_NAME])
76 output_zip = zipfile.ZipFile(input_file, 'a', allowZip64=True)
81 return input_file
84 SignOutput(input_file, prelim_signing)
99 prelim_signing = ComputeAllPropertyFiles(input_file, needed_property_files)
372 input_file = info_dict[partition_prop_key].input_file
373 if isinstance(input_file, zipfile.ZipFile):
[all …]
Dtest_ota_from_target_files.py371 input_file = construct_target_files(secondary=True)
372 target_file = GetTargetFilesZipForSecondaryImages(input_file)
393 input_file = construct_target_files(secondary=True)
395 input_file, skip_postinstall=True)
412 input_file = construct_target_files(secondary=True)
413 common.ZipDelete(input_file, 'RADIO/bootloader.img')
414 common.ZipDelete(input_file, 'RADIO/modem.img')
415 target_file = GetTargetFilesZipForSecondaryImages(input_file)
432 input_file = construct_target_files(secondary=True)
447 with zipfile.ZipFile(input_file, 'a', allowZip64=True) as append_zip:
[all …]
Dtest_sign_target_files_apks.py166 input_file = common.MakeTempFile(suffix='.zip')
167 with zipfile.ZipFile(input_file, 'w', allowZip64=True) as input_zip:
174 with zipfile.ZipFile(input_file, 'r', allowZip64=True) as input_zip, \
184 with zipfile.ZipFile(input_file, 'r', allowZip64=True) as input_zip, \
197 input_file = common.MakeTempFile(suffix='.zip')
198 with zipfile.ZipFile(input_file, 'w', allowZip64=True) as input_zip:
202 with zipfile.ZipFile(input_file, 'r', allowZip64=True) as input_zip, \
296 input_file = common.MakeTempFile(suffix='.zip')
297 with zipfile.ZipFile(input_file, 'w', allowZip64=True) as input_zip:
306 with zipfile.ZipFile(input_file) as input_zip:
[all …]
Dota_from_target_files.py667 def GetTargetFilesZipForSecondaryImages(input_file, skip_postinstall=False): argument
701 with zipfile.ZipFile(input_file, 'r', allowZip64=True) as input_zip:
704 input_tmp = common.UnzipTemp(input_file, UNZIP_PATTERN)
749 def GetTargetFilesZipWithoutPostinstallConfig(input_file): argument
764 with zipfile.ZipFile(input_file, 'r', allowZip64=True) as input_zip:
766 return input_file
769 shutil.copyfile(input_file, target_file)
779 def GetTargetFilesZipForPartialUpdates(input_file, ab_partitions): argument
807 with zipfile.ZipFile(input_file, allowZip64=True) as input_zip:
826 cmd = ['zip2zip', '-i', input_file, '-o', partial_target_file]
[all …]
Dota_from_target_files667 def GetTargetFilesZipForSecondaryImages(input_file, skip_postinstall=False): argument
701 with zipfile.ZipFile(input_file, 'r', allowZip64=True) as input_zip:
704 input_tmp = common.UnzipTemp(input_file, UNZIP_PATTERN)
749 def GetTargetFilesZipWithoutPostinstallConfig(input_file): argument
764 with zipfile.ZipFile(input_file, 'r', allowZip64=True) as input_zip:
766 return input_file
769 shutil.copyfile(input_file, target_file)
779 def GetTargetFilesZipForPartialUpdates(input_file, ab_partitions): argument
807 with zipfile.ZipFile(input_file, allowZip64=True) as input_zip:
826 cmd = ['zip2zip', '-i', input_file, '-o', partial_target_file]
[all …]
Dtest_validate_target_files.py272 input_file = common.MakeTempFile()
275 with zipfile.ZipFile(input_file, 'w', allowZip64=True) as input_zip:
281 with zipfile.ZipFile(input_file) as input_zip:
321 input_file = common.MakeTempFile()
324 with zipfile.ZipFile(input_file, 'w', allowZip64=True) as input_zip:
328 with zipfile.ZipFile(input_file) as input_zip:
Dcommon.py683 def ReadFromInputFile(input_file, fn): argument
685 if isinstance(input_file, zipfile.ZipFile):
686 return input_file.read(fn).decode()
688 path = os.path.join(input_file, *fn.split("/"))
697 def ExtractFromInputFile(input_file, fn): argument
699 if isinstance(input_file, zipfile.ZipFile):
702 f.write(input_file.read(fn))
705 file = os.path.join(input_file, *fn.split("/"))
724 def LoadInfoDict(input_file, repacking=False): argument
757 assert isinstance(input_file, str), \
[all …]
Dapex_utils.py522 def GetApexInfoFromTargetFiles(input_file, partition, compressed_only=True): argument
535 if not isinstance(input_file, str):
539 if os.path.isdir(input_file):
540 tmp_dir = input_file
542 tmp_dir = UnzipTemp(input_file, [os.path.join(apex_subdir, '*')])
Dtest_utils.py226 def _verify_entries(self, input_file, tokens, entries): argument
229 with open(input_file, 'rb') as input_fp:
Dtest_common.py2136 input_file = common.MakeTempFile(prefix='target_files-', suffix='.zip')
2137 with zipfile.ZipFile(input_file, 'w', allowZip64=True) as input_zip:
2141 return input_file
2150 input_file = self._BuildZipFile({
2154 with zipfile.ZipFile(input_file, 'r', allowZip64=True) as input_zip:
2180 input_file = self._BuildZipFile({
2186 with zipfile.ZipFile(input_file, 'r', allowZip64=True) as input_zip:
2201 with zipfile.ZipFile(input_file, 'r', allowZip64=True) as input_zip:
2218 input_file = self._BuildZipFile({
2222 with zipfile.ZipFile(input_file, 'r', allowZip64=True) as input_zip:
[all …]
Dverity_utils.py145 open(file_to_append, 'rb') as input_file:
146 for line in input_file:
/build/soong/cc/symbolfile/
Dtest_symbolfile.py338 input_file = io.StringIO(textwrap.dedent("""\
345 parser = symbolfile.SymbolFileParser(input_file, {}, Arch('arm'), 16,
363 input_file = io.StringIO(textwrap.dedent("""\
372 parser = symbolfile.SymbolFileParser(input_file, {}, Arch('arm'), 16,
394 input_file = io.StringIO(textwrap.dedent("""\
397 parser = symbolfile.SymbolFileParser(input_file, {}, Arch('arm'), 16,
404 input_file = io.StringIO(textwrap.dedent("""\
409 parser = symbolfile.SymbolFileParser(input_file, {}, Arch('arm'), 16,
416 input_file = io.StringIO(textwrap.dedent("""\
420 parser = symbolfile.SymbolFileParser(input_file, {}, Arch('arm'), 16,
[all …]
D__init__.py272 def __init__(self, input_file: TextIO, api_map: ApiMap, arch: Arch,
274 self.input_file = input_file
385 line = self.input_file.readline()
387 line = self.input_file.readline()
/build/soong/cc/ndkstubgen/
Dtest_ndkstubgen.py152 input_file = io.StringIO(textwrap.dedent("""\
183 parser = symbolfile.SymbolFileParser(input_file, api_map, Arch('arm'),
225 input_file = io.StringIO(textwrap.dedent("""\
235 parser = symbolfile.SymbolFileParser(input_file, api_map, Arch('arm'),
261 input_file = io.StringIO(textwrap.dedent("""\
285 parser = symbolfile.SymbolFileParser(input_file, {}, Arch('arm'), 16,
300 input_file = io.StringIO(textwrap.dedent("""\
333 parser = symbolfile.SymbolFileParser(input_file, api_map, Arch('arm'),
/build/soong/cc/ndk_api_coverage_parser/
Dtest_ndk_api_coverage_parser.py56 input_file = io.StringIO(textwrap.dedent(u"""\
77 parser = SymbolFileParser(input_file, {}, "", FUTURE_API_LEVEL, True, True)
/build/make/tools/
Dgenerate-self-extracting-archive.py165 with open(input_archive_filename, 'rb') as input_file:
166 _pipe_bytes(input_file, output)