Searched refs:zip_file (Results 1 – 5 of 5) sorted by relevance
/build/make/tools/releasetools/ |
D | test_ota_from_target_files.py | 470 zip_file = PropertyFilesTest.construct_zip_package(entries) 473 with zipfile.ZipFile(zip_file, 'a') as zip_fp: 485 FinalizeMetadata(metadata, zip_file, output_file, needed_property_files) 514 zip_file = PropertyFilesTest.construct_zip_package(entries) 515 with zipfile.ZipFile(zip_file, 'a') as zip_fp: 529 FinalizeMetadata(metadata, zip_file, output_file, needed_property_files) 609 zip_file = common.MakeTempFile(suffix='.zip') 610 with zipfile.ZipFile(zip_file, 'w') as zip_fp: 616 return zip_file 643 zip_file = self.construct_zip_package(entries) [all …]
|
D | test_common.py | 356 def _verify(self, zip_file, zip_file_name, arcname, expected_hash, argument 366 zip_file = zipfile.ZipFile(zip_file_name, "r") 369 info = zip_file.getinfo(arcname) 380 entry = zip_file.open(arcname) 385 self.assertIsNone(zip_file.testzip()) 393 zip_file = tempfile.NamedTemporaryFile(delete=False) 394 zip_file_name = zip_file.name 401 zip_file.close() 402 zip_file = zipfile.ZipFile(zip_file_name, "w") 417 common.ZipWrite(zip_file, test_file_name, **extra_zipwrite_args) [all …]
|
D | common.py | 2293 def ZipWrite(zip_file, filename, arcname=None, perms=0o644, argument 2309 compress_type = zip_file.compression 2329 zip_file.write(filename, arcname=arcname, compress_type=compress_type) 2336 def ZipWriteStr(zip_file, zinfo_or_arcname, data, perms=None, argument 2354 zinfo.compress_type = zip_file.compression 2383 zip_file.writestr(zinfo, data) 2406 def ZipClose(zip_file): argument 2413 zip_file.close()
|
D | ota_from_target_files | 1101 def GetPropertyFilesString(self, zip_file, reserve_space=False): argument 1116 info = zip_file.getinfo(name) 1124 tokens.extend(self._GetPrecomputed(zip_file)) 1128 if entry in zip_file.namelist():
|
D | ota_from_target_files.py | 1101 def GetPropertyFilesString(self, zip_file, reserve_space=False): argument 1116 info = zip_file.getinfo(name) 1124 tokens.extend(self._GetPrecomputed(zip_file)) 1128 if entry in zip_file.namelist():
|