| /external/python/cpython2/Lib/test/ |
| D | 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) 152 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp: 158 with zipfile.ZipFile(TESTFN2, "r") as zipfp: 174 with zipfile.ZipFile(f, "r", compression) as zipfp: [all …]
|
| D | 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) 94 self.zipTest(TESTFN2, zipfile.ZIP_DEFLATED) 105 # and that the resulting archive can be read properly by ZipFile [all …]
|
| /external/python/cpython3/Lib/test/ |
| D | test_zipfile.py | 16 import zipfile 51 cls.line_gen = [bytes("Zipfile test line %d. random float: %f\n" % 64 with zipfile.ZipFile(f, "w", **kwargs) as zipfp: 76 with zipfile.ZipFile(f, "r", compression) as zipfp: 134 with zipfile.ZipFile(f, "r", compression) as zipfp: 161 with zipfile.ZipFile(path, "r", self.compression) as zipfp: 168 with zipfile.ZipFile(f, "r", compression) as zipfp: 187 with zipfile.ZipFile(f, "r") as zipfp, \ 206 with zipfile.ZipFile(f, "r") as zipfp, \ 226 with zipfile.ZipFile(f, "r") as zipfp, \ [all …]
|
| D | test_zipfile64.py | 1 # Tests of the full ZIP64 functionality of zipfile 14 import zipfile, os, unittest 32 line_gen = ("Test of zipfile line %d." % i for i in range(1000000)) 41 with zipfile.ZipFile(f, "w", compression) as zipfp: 59 with zipfile.ZipFile(f, "r", compression) as zipfp: 74 self.zipTest(f, zipfile.ZIP_STORED) 76 self.zipTest(TESTFN2, zipfile.ZIP_STORED) 83 self.zipTest(f, zipfile.ZIP_DEFLATED) 85 self.zipTest(TESTFN2, zipfile.ZIP_DEFLATED) 96 # and that the resulting archive can be read properly by ZipFile [all …]
|
| /external/python/cpython2/Doc/library/ |
| D | zipfile.rst | 1 :mod:`zipfile` --- Work with ZIP archives 4 .. module:: zipfile 11 **Source code:** :source:`Lib/zipfile.py` 31 The error raised for bad ZIP files (old name: ``zipfile.error``). 40 .. class:: ZipFile 44 :ref:`zipfile-objects` for constructor details. 56 methods of :class:`ZipFile` objects. Most users of the :mod:`zipfile` module 96 ZipFile Objects 100 .. class:: ZipFile(file[, mode[, compression[, allowZip64]]]) 118 ``True`` zipfile will create ZIP files that use the ZIP64 extensions when [all …]
|
| /external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/ |
| D | ZipDexContainer.java | 53 import java.util.zip.ZipFile; 80 ZipFile zipFile = getZipFile(); in getDexEntryNames() local 82 Enumeration<? extends ZipEntry> entriesEnumeration = zipFile.entries(); in getDexEntryNames() 87 if (!isDex(zipFile, entry)) { in getDexEntryNames() 96 zipFile.close(); in getDexEntryNames() 108 ZipFile zipFile = getZipFile(); in getEntry() local 110 ZipEntry entry = zipFile.getEntry(entryName); in getEntry() 115 return loadEntry(zipFile, entry); in getEntry() 117 zipFile.close(); in getEntry() 122 ZipFile zipFile = null; in isZipFile() local [all …]
|
| /external/google-smali/dexlib2/src/main/java/com/android/tools/smali/dexlib2/dexbacked/ |
| D | ZipDexContainer.java | 52 import java.util.zip.ZipFile; 79 ZipFile zipFile = getZipFile(); in getDexEntryNames() local 81 Enumeration<? extends ZipEntry> entriesEnumeration = zipFile.entries(); in getDexEntryNames() 86 if (!isDex(zipFile, entry)) { in getDexEntryNames() 95 zipFile.close(); in getDexEntryNames() 107 ZipFile zipFile = getZipFile(); in getEntry() local 109 ZipEntry entry = zipFile.getEntry(entryName); in getEntry() 114 return loadEntry(zipFile, entry); in getEntry() 116 zipFile.close(); in getEntry() 121 ZipFile zipFile = null; in isZipFile() local [all …]
|
| /external/python/cpython3/Doc/library/ |
| D | zipfile.rst | 1 :mod:`zipfile` --- Work with ZIP archives 4 .. module:: zipfile 10 **Source code:** :source:`Lib/zipfile.py` 48 .. class:: ZipFile 52 :ref:`zipfile-objects` for constructor details. 74 methods of :class:`ZipFile` objects. Most users of the :mod:`zipfile` module 137 ZipFile Objects 141 .. class:: ZipFile(file, mode='r', compression=ZIP_STORED, allowZip64=True, \ 167 If *allowZip64* is ``True`` (the default) zipfile will create ZIP files that 168 use the ZIP64 extensions when the zipfile is larger than 4 GiB. If it is [all …]
|
| /external/angle/build/ |
| D | zip_helpers.py | 11 import zipfile 20 zip_obj: The ZipFile object that is being written. 50 """Adds a file to the given ZipFile with a hard-coded modified time. 53 zip_file: ZipFile instance to add the file to. 57 compress: Whether to enable compression. Default is taken from ZipFile 64 if isinstance(zip_path, zipfile.ZipInfo): 68 zipinfo = zipfile.ZipInfo(filename=zip_path) 102 # zipfile will deflate even when it makes the file bigger. To avoid 108 # default passed to the ZipFile constructor. 111 compress_type = zipfile.ZIP_DEFLATED if compress else zipfile.ZIP_STORED [all …]
|
| D | zip_helpers_unittest.py | 12 import zipfile 20 with zipfile.ZipFile(zip1, 'w') as z: 23 with zipfile.ZipFile(zip2, 'w') as z: 37 with zipfile.ZipFile(merged_zip) as z: 53 with zipfile.ZipFile(zip1, 'a') as dst_zip:
|
| /external/cronet/build/ |
| D | zip_helpers.py | 11 import zipfile 20 zip_obj: The ZipFile object that is being written. 50 """Adds a file to the given ZipFile with a hard-coded modified time. 53 zip_file: ZipFile instance to add the file to. 57 compress: Whether to enable compression. Default is taken from ZipFile 64 if isinstance(zip_path, zipfile.ZipInfo): 68 zipinfo = zipfile.ZipInfo(filename=zip_path) 102 # zipfile will deflate even when it makes the file bigger. To avoid 108 # default passed to the ZipFile constructor. 111 compress_type = zipfile.ZIP_DEFLATED if compress else zipfile.ZIP_STORED [all …]
|
| D | zip_helpers_unittest.py | 12 import zipfile 20 with zipfile.ZipFile(zip1, 'w') as z: 23 with zipfile.ZipFile(zip2, 'w') as z: 37 with zipfile.ZipFile(merged_zip) as z: 53 with zipfile.ZipFile(zip1, 'a') as dst_zip:
|
| /external/tflite-support/third_party/zlib/contrib/minizip/ |
| D | zip.h | 67 typedef zipFile__ *zipFile; typedef 69 typedef voidp zipFile; 116 extern zipFile ZEXPORT zipOpen OF((const char *pathname, int append)); 117 extern zipFile ZEXPORT zipOpen64 OF((const void *pathname, int append)); 119 Create a zipfile. 127 If the zipfile cannot be opened, the return value is NULL. 128 Else, the return value is a zipFile Handle, usable with other function 132 /* Note : there is no delete function into a zipfile. 133 If you want delete file into a zipfile, you must open a zipfile, and create another 137 extern zipFile ZEXPORT zipOpen2 OF((const char *pathname, [all …]
|
| /external/zlib/contrib/minizip/ |
| D | zip.h | 67 typedef zipFile__ *zipFile; typedef 69 typedef voidp zipFile; 116 extern zipFile ZEXPORT zipOpen OF((const char *pathname, int append)); 117 extern zipFile ZEXPORT zipOpen64 OF((const void *pathname, int append)); 119 Create a zipfile. 127 If the zipfile cannot be opened, the return value is NULL. 128 Else, the return value is a zipFile Handle, usable with other function 132 /* Note : there is no delete function into a zipfile. 133 If you want delete file into a zipfile, you must open a zipfile, and create another 137 extern zipFile ZEXPORT zipOpen2 OF((const char *pathname, [all …]
|
| /external/rust/crates/libz-sys/src/zlib/contrib/minizip/ |
| D | zip.h | 67 typedef zipFile__ *zipFile; typedef 69 typedef voidp zipFile; 116 extern zipFile ZEXPORT zipOpen OF((const char *pathname, int append)); 117 extern zipFile ZEXPORT zipOpen64 OF((const void *pathname, int append)); 119 Create a zipfile. 127 If the zipfile cannot be opened, the return value is NULL. 128 Else, the return value is a zipFile Handle, usable with other function 132 /* Note : there is no delete function into a zipfile. 133 If you want delete file into a zipfile, you must open a zipfile, and create another 137 extern zipFile ZEXPORT zipOpen2 OF((const char *pathname, [all …]
|
| /external/perfetto/src/trace_processor/util/ |
| D | zip_reader.h | 60 // decompression. The lifecycle of a ZipFile is completely independent of the 61 // ZipReader that created it. ZipFile(s) can be std::move(d) around and even 63 class ZipFile { 70 ZipFile(); 71 ~ZipFile(); 72 ZipFile(ZipFile&&) noexcept; 73 ZipFile& operator=(ZipFile&&) noexcept; 74 ZipFile(const ZipFile&) = delete; 75 ZipFile& operator=(const ZipFile&) = delete; 108 // being parsed. ZipReade will move the hdr into a full ZipFile once it [all …]
|
| /external/desugar/java/com/google/devtools/build/android/desugar/io/ |
| D | ZipInputFileProvider.java | 23 import java.util.zip.ZipFile; 30 private final ZipFile zipFile; field in ZipInputFileProvider 34 this.zipFile = new ZipFile(root.toFile()); in ZipInputFileProvider() 39 zipFile.close(); in close() 49 ZipEntry zipEntry = zipFile.getEntry(filename); in getZipEntry() 56 return zipFile.getInputStream(zipFile.getEntry(filename)); in getInputStream() 62 Iterators.forEnumeration(zipFile.entries()), Functions.toStringFunction()); in iterator()
|
| /external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/ |
| D | ZipArchiveHandle.java | 3 import java.util.zip.ZipFile; 6 final ZipFile zipFile; field in ZipArchiveHandle 8 public ZipArchiveHandle(ZipFile zipFile) { in ZipArchiveHandle() argument 9 this.zipFile = zipFile; in ZipArchiveHandle()
|
| /external/python/setuptools/pkg_resources/_vendor/ |
| D | zipp.py | 3 import zipfile 71 class CompleteDirs(zipfile.ZipFile): 73 A ZipFile subclass that ensures that implied directories 103 Given a source (filename or zipfile), return an 109 if not isinstance(source, zipfile.ZipFile): 112 # Only allow for FastLookup when supplied zipfile is read-only 122 ZipFile subclass to ensure implicit 164 >>> zf = zipfile.ZipFile(data, 'w') 170 Path accepts the zipfile object itself or a filename 216 resolve to the zipfile. Note these attributes are not [all …]
|
| /external/python/setuptools/setuptools/_vendor/ |
| D | zipp.py | 3 import zipfile 71 class CompleteDirs(zipfile.ZipFile): 73 A ZipFile subclass that ensures that implied directories 103 Given a source (filename or zipfile), return an 109 if not isinstance(source, zipfile.ZipFile): 112 # Only allow for FastLookup when supplied zipfile is read-only 122 ZipFile subclass to ensure implicit 164 >>> zf = zipfile.ZipFile(data, 'w') 170 Path accepts the zipfile object itself or a filename 216 resolve to the zipfile. Note these attributes are not [all …]
|
| /external/robolectric/resources/src/main/java/org/robolectric/res/android/ |
| D | ZipArchiveHandle.java | 4 import java.util.zip.ZipFile; 7 final ZipFile zipFile; field in ZipArchiveHandle 10 public ZipArchiveHandle(ZipFile zipFile, ImmutableMap<String, Long> dataOffsets) { in ZipArchiveHandle() argument 11 this.zipFile = zipFile; in ZipArchiveHandle()
|
| /external/cronet/base/android/java/src/org/chromium/base/ |
| D | StreamUtil.java | 9 import java.util.zip.ZipFile; 31 * Overload of the above function for {@link ZipFile} which implements Closeable only starting 33 * @param zipFile - the ZipFile to be closed. 35 public static void closeQuietly(ZipFile zipFile) { in closeQuietly() argument 36 if (zipFile == null) return; in closeQuietly() 39 zipFile.close(); in closeQuietly()
|
| /external/skia/infra/bots/ |
| D | zip_utils.py | 17 import zipfile 33 with zipfile.ZipFile(zip_file, 'w', zipfile.ZIP_DEFLATED, True) as z: 38 zi = zipfile.ZipInfo(filepath) 52 zi.compress_type = zipfile.ZIP_DEFLATED 65 with zipfile.ZipFile(zip_file, 'r', zipfile.ZIP_DEFLATED, True) as z:
|
| /external/llvm/test/Transforms/ObjCARC/ |
| D | invoke.ll | 15 ; CHECK: call void @objc_release(i8* %zipFile) [[NUW:#[0-9]+]], !clang.imprecise_release !0 18 ; CHECK: call void @objc_release(i8* %zipFile) [[NUW]], !clang.imprecise_release !0 21 define void @test0(i8* %zipFile) personality i32 (...)* @__gxx_personality_v0 { 23 call i8* @objc_retain(i8* %zipFile) nounwind 24 call void @use_pointer(i8* %zipFile) 25 invoke void bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to void (i8*)*)(i8* %zipFile) 29 call void @objc_release(i8* %zipFile) nounwind, !clang.imprecise_release !0 35 call void @objc_release(i8* %zipFile) nounwind, !clang.imprecise_release !0 43 ; CHECK: call void @objc_release(i8* %zipFile) [[NUW]], !clang.imprecise_release !0 47 ; CHECK: call void @objc_release(i8* %zipFile) [[NUW]], !clang.imprecise_release !0 [all …]
|
| /external/chromium-trace/catapult/systrace/profile_chrome/ |
| D | 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:
|