Home
last modified time | relevance | path

Searched refs:compress_type (Results 1 – 25 of 25) sorted by relevance

/external/python/cpython3/Lib/
Dzipfile.py360 self.compress_type = ZIP_STORED # Type of compression for the file
384 if self.compress_type != ZIP_STORED:
386 compressor_names.get(self.compress_type,
387 self.compress_type))
398 (self.compress_type != ZIP_STORED or
435 if self.compress_type == ZIP_BZIP2:
437 elif self.compress_type == ZIP_LZMA:
445 self.compress_type, dostime, dosdate, CRC,
682 def _get_compressor(compress_type, compresslevel=None): argument
683 if compress_type == ZIP_DEFLATED:
[all …]
/external/chromium-trace/catapult/third_party/zipfile/
Dzipfile_2_7_13.py308 self.compress_type = ZIP_STORED # Type of compression for the file
363 self.compress_type, dostime, dosdate, CRC,
521 self._compress_type = zipinfo.compress_type
852 x.flag_bits, x.compress_type, t, d,
1101 if zinfo.compress_type == ZIP_DEFLATED and not zlib:
1104 if zinfo.compress_type not in (ZIP_STORED, ZIP_DEFLATED):
1119 def write(self, filename, arcname=None, compress_type=None): argument
1141 zinfo.compress_type = ZIP_STORED
1142 elif compress_type is None:
1143 zinfo.compress_type = self.compression
[all …]
/external/python/cpython2/Lib/
Dzipfile.py308 self.compress_type = ZIP_STORED # Type of compression for the file
363 self.compress_type, dostime, dosdate, CRC,
521 self._compress_type = zipinfo.compress_type
849 x.flag_bits, x.compress_type, t, d,
1098 if zinfo.compress_type == ZIP_DEFLATED and not zlib:
1101 if zinfo.compress_type not in (ZIP_STORED, ZIP_DEFLATED):
1116 def write(self, filename, arcname=None, compress_type=None): argument
1138 zinfo.compress_type = ZIP_STORED
1139 elif compress_type is None:
1140 zinfo.compress_type = self.compression
[all …]
Dtarfile.py2600 def write(self, filename, arcname=None, compress_type=None): argument
/external/libchrome/build/android/gyp/util/
Dbuild_utils.py327 compress_type = zip_file.compression
329 compress_type = zipfile.ZIP_DEFLATED if compress else zipfile.ZIP_STORED
330 zip_file.writestr(zipinfo, data, compress_type)
407 compress=info.compress_type != zipfile.ZIP_STORED)
Dmd5_check.py409 (zip_info.filename, zip_info.CRC + zip_info.compress_type))
/external/pdfium/core/fxcodec/codec/
Dccodec_pngmodule.cpp72 int compress_type; in _png_load_bmp_attribute() local
73 png_get_iCCP(png_ptr, info_ptr, &icc_name, &compress_type, &icc_profile, in _png_load_bmp_attribute()
/external/python/cpython2/Doc/library/
Dzipfile.rst280 .. method:: ZipFile.write(filename[, arcname[, compress_type]])
284 letter and with leading path separators removed). If given, *compress_type*
309 .. method:: ZipFile.writestr(zinfo_or_arcname, bytes[, compress_type])
319 If given, *compress_type* overrides the value given for the *compression*
326 the compression method used will be that specified in the *compress_type*
331 The *compress_type* argument.
425 .. attribute:: ZipInfo.compress_type
/external/python/cpython2/Lib/test/
Dtest_zipimport.py74 zinfo.compress_type = self.compression
212 zinfo.compress_type = self.compression
256 zinfo.compress_type = self.compression
Dtest_zipfile.py428 self.assertEqual(sinfo.compress_type, zipfile.ZIP_STORED)
429 self.assertEqual(dinfo.compress_type, zipfile.ZIP_DEFLATED)
588 zipfp.writestr("a.txt", "hello world", compress_type=zipfile.ZIP_STORED)
590 zipfp.writestr("b.txt", "hello world", compress_type=zipfile.ZIP_DEFLATED)
593 self.assertEqual(info.compress_type, zipfile.ZIP_STORED)
597 self.assertEqual(info.compress_type, zipfile.ZIP_DEFLATED)
/external/skqp/infra/bots/
Dzip_utils.py51 zi.compress_type = zipfile.ZIP_DEFLATED
/external/skia/infra/bots/
Dzip_utils.py51 zi.compress_type = zipfile.ZIP_DEFLATED
/external/python/cpython3/Lib/test/
Dtest_zipimport.py117 zinfo.compress_type = self.compression
426 zinfo.compress_type = self.compression
484 zinfo.compress_type = self.compression
662 zinfo.compress_type = self.compression
675 zinfo.compress_type = self.compression
Dtest_zipfile.py297 zipfp.writestr("b.txt", "hello world", compress_type=self.compression)
299 self.assertEqual(info.compress_type, self.compression)
303 zipfp.writestr("a.txt", "hello world", compress_type=self.compression)
304 zipfp.writestr("b.txt", "hello world", compress_type=self.compression,
309 self.assertEqual(a_info.compress_type, self.compression)
314 self.assertEqual(b_info.compress_type, self.compression)
332 zipf.writestr('strfile', self.data, compress_type=self.compression)
566 self.assertEqual(sinfo.compress_type, zipfile.ZIP_STORED)
567 self.assertEqual(dinfo.compress_type, zipfile.ZIP_DEFLATED)
2255 self.assertEqual(zi.compress_type, zipfile.ZIP_STORED)
Dtest_zipapp.py116 self.assertEqual(z.getinfo(name).compress_type,
/external/python/cpython3/Doc/library/
Dzipfile.rst370 .. method:: ZipFile.write(filename, arcname=None, compress_type=None, \
375 letter and with leading path separators removed). If given, *compress_type*
397 .. method:: ZipFile.writestr(zinfo_or_arcname, data, compress_type=None, \
408 If given, *compress_type* overrides the value given for the *compression*
416 the compression method used will be that specified in the *compress_type*
421 The *compress_type* argument.
597 .. attribute:: ZipInfo.compress_type
/external/strace/tests/
Dbtrfs.c125 uint32_t compress_type; member
792 prxval_btrfs(btrfs_compress_types, args->compress_type, in btrfs_print_defrag_range_args()
811 .compress_type = 2, /* BTRFS_COMPRESS_LZO */ in btrfs_test_defrag_ioctls()
834 args.compress_type = BTRFS_INVALID_COMPRESS; in btrfs_test_defrag_ioctls()
/external/strace/tests-mx32/
Dbtrfs.c125 uint32_t compress_type; member
792 prxval_btrfs(btrfs_compress_types, args->compress_type, in btrfs_print_defrag_range_args()
811 .compress_type = 2, /* BTRFS_COMPRESS_LZO */ in btrfs_test_defrag_ioctls()
834 args.compress_type = BTRFS_INVALID_COMPRESS; in btrfs_test_defrag_ioctls()
/external/strace/tests-m32/
Dbtrfs.c125 uint32_t compress_type; member
792 prxval_btrfs(btrfs_compress_types, args->compress_type, in btrfs_print_defrag_range_args()
811 .compress_type = 2, /* BTRFS_COMPRESS_LZO */ in btrfs_test_defrag_ioctls()
834 args.compress_type = BTRFS_INVALID_COMPRESS; in btrfs_test_defrag_ioctls()
/external/strace/
Dbtrfs.c78 uint32_t compress_type; member
578 PRINT_FIELD_XVAL(", ", args, compress_type, in MPERS_PRINTER_DECL()
/external/kernel-headers/original/uapi/linux/
Dbtrfs.h566 __u32 compress_type; member
/external/python/cpython2/Modules/
Ditertoolsmodule.c2804 static PyTypeObject compress_type; variable
2898 static PyTypeObject compress_type = { variable
4097 &compress_type, in inititertools()
/external/python/cpython3/Modules/
Ditertoolsmodule.c3622 static PyTypeObject compress_type; variable
3729 static PyTypeObject compress_type = { variable
4671 &compress_type, in PyInit_itertools()
/external/python/cpython3/Doc/whatsnew/
D2.7.rst1720 The :meth:`~zipfile.ZipFile.writestr` method now has an optional *compress_type* parameter
/external/python/cpython2/Doc/whatsnew/
D2.7.rst1696 The :meth:`~zipfile.ZipFile.writestr` method now has an optional *compress_type* parameter