/external/python/cpython2/Lib/test/ |
test_zipfile.py | 12 import zipfile 45 self.line_gen = ["Zipfile test line %d. random float: %f" % (i, random()) 55 with zipfile.ZipFile(f, "w", compression) as zipfp: 64 with zipfile.ZipFile(f, "r", compression) as zipfp: 120 self.zip_test(f, zipfile.ZIP_STORED) 126 with zipfile.ZipFile(f, "r", compression) as zipfp: 148 self.zip_open_test(f, zipfile.ZIP_STORED [all...] |
test_zipfile64.py | 1 # Tests of the full ZIP64 functionality of zipfile 20 import zipfile, os, unittest 38 line_gen = ("Test of zipfile line %d." % i for i in xrange(1000000)) 48 zipfp = zipfile.ZipFile(f, "w", compression, allowZip64=True) 67 zipfp = zipfile.ZipFile(f, "r", compression) 83 self.zipTest(f, zipfile.ZIP_STORED) 85 self.zipTest(TESTFN2, zipfile.ZIP_STORED) 92 self.zipTest(f, zipfile.ZIP_DEFLATED [all...] |
/external/libmojo/third_party/catapult/devil/devil/utils/ |
zip_utils.py | 7 import zipfile 13 zip_file: An open instance of zipfile.ZipFile. 22 zip_file.write(dir_path, dir_arc_path, zipfile.ZIP_STORED) 27 zip_file.write(file_path, file_arc_path, zipfile.ZIP_DEFLATED) 30 zip_file.write(path, arc_path, zipfile.ZIP_DEFLATED)
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_zipfile.py | 13 import zipfile 42 self.line_gen = ["Zipfile test line %d. random float: %f" % (i, random()) 52 with zipfile.ZipFile(f, "w", compression) as zipfp: 61 with zipfile.ZipFile(f, "r", compression) as zipfp: 117 self.zip_test(f, zipfile.ZIP_STORED) 123 with zipfile.ZipFile(f, "r", compression) as zipfp: 145 self.zip_open_test(f, zipfile.ZIP_STORED [all...] |
test_zipfile64.py | 1 # Tests of the full ZIP64 functionality of zipfile 20 import zipfile, os, unittest 38 line_gen = ("Test of zipfile line %d." % i for i in xrange(1000000)) 48 zipfp = zipfile.ZipFile(f, "w", compression, allowZip64=True) 67 zipfp = zipfile.ZipFile(f, "r", compression) 83 self.zipTest(f, zipfile.ZIP_STORED) 90 self.zipTest(f, zipfile.ZIP_DEFLATED) 101 # and that the resulting archive can be read properly by ZipFile [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_zipfile.py | 13 import zipfile 42 self.line_gen = ["Zipfile test line %d. random float: %f" % (i, random()) 52 with zipfile.ZipFile(f, "w", compression) as zipfp: 61 with zipfile.ZipFile(f, "r", compression) as zipfp: 117 self.zip_test(f, zipfile.ZIP_STORED) 123 with zipfile.ZipFile(f, "r", compression) as zipfp: 145 self.zip_open_test(f, zipfile.ZIP_STORED [all...] |
test_zipfile64.py | 1 # Tests of the full ZIP64 functionality of zipfile 20 import zipfile, os, unittest 38 line_gen = ("Test of zipfile line %d." % i for i in xrange(1000000)) 48 zipfp = zipfile.ZipFile(f, "w", compression, allowZip64=True) 67 zipfp = zipfile.ZipFile(f, "r", compression) 83 self.zipTest(f, zipfile.ZIP_STORED) 90 self.zipTest(f, zipfile.ZIP_DEFLATED) 101 # and that the resulting archive can be read properly by ZipFile [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_zipfile.py | 13 import zipfile 42 self.line_gen = ["Zipfile test line %d. random float: %f" % (i, random()) 52 with zipfile.ZipFile(f, "w", compression) as zipfp: 61 with zipfile.ZipFile(f, "r", compression) as zipfp: 117 self.zip_test(f, zipfile.ZIP_STORED) 123 with zipfile.ZipFile(f, "r", compression) as zipfp: 145 self.zip_open_test(f, zipfile.ZIP_STORED [all...] |
test_zipfile64.py | 1 # Tests of the full ZIP64 functionality of zipfile 20 import zipfile, os, unittest 38 line_gen = ("Test of zipfile line %d." % i for i in xrange(1000000)) 48 zipfp = zipfile.ZipFile(f, "w", compression, allowZip64=True) 67 zipfp = zipfile.ZipFile(f, "r", compression) 83 self.zipTest(f, zipfile.ZIP_STORED) 90 self.zipTest(f, zipfile.ZIP_DEFLATED) 101 # and that the resulting archive can be read properly by ZipFile [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_zipfile.py | 13 import zipfile 42 self.line_gen = ["Zipfile test line %d. random float: %f" % (i, random()) 52 with zipfile.ZipFile(f, "w", compression) as zipfp: 61 with zipfile.ZipFile(f, "r", compression) as zipfp: 117 self.zip_test(f, zipfile.ZIP_STORED) 123 with zipfile.ZipFile(f, "r", compression) as zipfp: 145 self.zip_open_test(f, zipfile.ZIP_STORED [all...] |
test_zipfile64.py | 1 # Tests of the full ZIP64 functionality of zipfile 20 import zipfile, os, unittest 38 line_gen = ("Test of zipfile line %d." % i for i in xrange(1000000)) 48 zipfp = zipfile.ZipFile(f, "w", compression, allowZip64=True) 67 zipfp = zipfile.ZipFile(f, "r", compression) 83 self.zipTest(f, zipfile.ZIP_STORED) 90 self.zipTest(f, zipfile.ZIP_DEFLATED) 101 # and that the resulting archive can be read properly by ZipFile [all...] |
/external/chromium-trace/catapult/systrace/profile_chrome/ |
util.py | 8 import zipfile 12 with zipfile.ZipFile(output, 'w', zipfile.ZIP_DEFLATED) as z: 23 with zipfile.ZipFile(output, 'w', zipfile.ZIP_DEFLATED) as z:
|
/external/chromium-trace/catapult/devil/devil/utils/ |
zip_utils_test.py | 7 import zipfile 33 self.assertTrue(zipfile.is_zipfile(zip_path)) 35 actual = zipfile.ZipFile(zip_path)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_zipfile.py | 13 import zipfile
35 self.line_gen = ["Zipfile test line %d. random float: %f" % (i, random())
45 with zipfile.ZipFile(f, "w", compression) as zipfp:
54 with zipfile.ZipFile(f, "r", compression) as zipfp:
110 self.zip_test(f, zipfile.ZIP_STORED)
116 with zipfile.ZipFile(f, "r", compression) as zipfp:
138 self.zip_open_test(f, zipfile.ZIP_STORED) [all...] |
test_zipfile64.py | 1 # Tests of the full ZIP64 functionality of zipfile
20 import zipfile, os, unittest
38 line_gen = ("Test of zipfile line %d." % i for i in xrange(1000000))
48 zipfp = zipfile.ZipFile(f, "w", compression, allowZip64=True)
67 zipfp = zipfile.ZipFile(f, "r", compression)
83 self.zipTest(f, zipfile.ZIP_STORED)
90 self.zipTest(f, zipfile.ZIP_DEFLATED)
101 # and that the resulting archive can be read properly by ZipFile
[all...] |
/external/python/cpython3/Lib/test/ |
test_zipfile.py | 8 import zipfile 45 cls.line_gen = [bytes("Zipfile test line %d. random float: %f\n" % 57 with zipfile.ZipFile(f, "w", compression) as zipfp: 69 with zipfile.ZipFile(f, "r", compression) as zipfp: 127 with zipfile.ZipFile(f, "r", compression) as zipfp: 155 with zipfile.ZipFile(f, "r", compression) as zipfp [all...] |
test_zipfile64.py | 1 # Tests of the full ZIP64 functionality of zipfile 14 import zipfile, os, unittest 31 line_gen = ("Test of zipfile line %d." % i for i in range(1000000)) 41 zipfp = zipfile.ZipFile(f, "w", compression) 60 zipfp = zipfile.ZipFile(f, "r", compression) 76 self.zipTest(f, zipfile.ZIP_STORED) 78 self.zipTest(TESTFN2, zipfile.ZIP_STORED) 85 self.zipTest(f, zipfile.ZIP_DEFLATED [all...] |
/external/skia/infra/bots/ |
zip_utils.py | 16 import zipfile 32 with zipfile.ZipFile(zip_file, 'w', zipfile.ZIP_DEFLATED, True) as z: 37 zi = zipfile.ZipInfo(filepath) 44 zi.compress_type = zipfile.ZIP_DEFLATED 57 with zipfile.ZipFile(zip_file, 'r', zipfile.ZIP_DEFLATED, True) as z:
|
/external/skqp/infra/bots/ |
zip_utils.py | 16 import zipfile 32 with zipfile.ZipFile(zip_file, 'w', zipfile.ZIP_DEFLATED, True) as z: 37 zi = zipfile.ZipInfo(filepath) 44 zi.compress_type = zipfile.ZIP_DEFLATED 57 with zipfile.ZipFile(zip_file, 'r', zipfile.ZIP_DEFLATED, True) as z:
|
/development/build/tools/ |
mk_sources_zip.py | 24 import zipfile 48 self.zipfile = None 194 elif p.zipfile is not None: 196 # zipfile is a path. Copy to it. 197 dest_path = os.path.join(p.zipfile, arc_path) 203 # zipfile is a ZipFile object. Compress with it. 204 p.zipfile.write(filepath, arc_path) 226 p.zipfile = p.DST + "_temp_dir" 227 if os.path.exists(p.zipfile) [all...] |
/build/make/tools/releasetools/ |
test_common.py | 22 import zipfile 49 expected_compress_type=zipfile.ZIP_STORED): 57 zip_file = zipfile.ZipFile(zip_file_name, "r") 93 zip_file = zipfile.ZipFile(zip_file_name, "w") 105 zipfile.ZIP_STORED) 125 zip_file = zipfile.ZipFile(zip_file_name, "w") 129 zipfile.ZIP_STORED [all...] |
test_sign_target_files_apks.py | 22 import zipfile 103 with zipfile.ZipFile(input_file, 'w') as input_zip: 110 with zipfile.ZipFile(input_file, 'r') as input_zip, \ 111 zipfile.ZipFile(output_file, 'w') as output_zip: 114 with zipfile.ZipFile(output_file) as output_zip: 120 with zipfile.ZipFile(input_file, 'r') as input_zip, [all...] |
img_from_target_files | 18 Given a target-files zipfile, produces an image zipfile suitable for 39 import zipfile 75 output_zip = zipfile.ZipFile(args[1], "w", compression=zipfile.ZIP_DEFLATED)
|
img_from_target_files.py | 18 Given a target-files zipfile, produces an image zipfile suitable for 39 import zipfile 75 output_zip = zipfile.ZipFile(args[1], "w", compression=zipfile.ZIP_DEFLATED)
|
/external/libmojo/mojo/public/tools/gn/ |
zip.py | 16 import zipfile 31 with zipfile.ZipFile(output, 'w', zipfile.ZIP_DEFLATED) as outfile: 42 with zipfile.ZipFile(zf_name, 'r') as zf:
|