Home
last modified time | relevance | path

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

12

/external/chromium-trace/catapult/devil/devil/utils/
Dzip_utils.py32 def _WriteToZipFile(zip_file, path, arc_path): argument
44 zip_file.write(dir_path, dir_arc_path, zipfile.ZIP_STORED)
49 zip_file.write(file_path, file_arc_path, zipfile.ZIP_DEFLATED)
52 zip_file.write(path, arc_path, zipfile.ZIP_DEFLATED)
56 with zipfile.ZipFile(zip_path, 'w') as zip_file:
58 _WriteToZipFile(zip_file, path, arc_path)
/external/python/cpython2/Lib/test/support/
Dscript_helper.py125 zip_file = zipfile.ZipFile(zip_name, 'w')
128 zip_file.write(script_name, name_in_zip)
129 zip_file.close()
157 zip_file = zipfile.ZipFile(zip_name, 'w')
160 zip_file.write(init_name, init_name_in_zip)
161 zip_file.write(script_name, script_name_in_zip)
162 zip_file.close()
/external/python/cpython3/Lib/test/support/
Dscript_helper.py217 zip_file = zipfile.ZipFile(zip_name, 'w')
226 zip_file.write(script_name, name_in_zip)
227 zip_file.close()
255 zip_file = zipfile.ZipFile(zip_name, 'w')
258 zip_file.write(init_name, init_name_in_zip)
259 zip_file.write(script_name, script_name_in_zip)
260 zip_file.close()
/external/apache-commons-bcel/src/main/java/org/apache/bcel/classfile/
DClassParser.java49 private String zip_file; field in ClassParser
99 public ClassParser(final String zip_file, final String file_name) { in ClassParser() argument
102 this.zip_file = zip_file; in ClassParser()
123 zip = new ZipFile(zip_file); in parse()
/external/python/setuptools/setuptools/command/
Dupload_docs.py76 zip_file = zipfile.ZipFile(filename, "w")
87 zip_file.write(full, dest)
89 zip_file.close()
98 zip_file = os.path.join(tmp_dir, "%s.zip" % name)
100 self.create_zipfile(zip_file)
101 self.upload_file(zip_file)
/external/skqp/infra/bots/
Dzip_utils.py27 def zip(target_dir, zip_file, blacklist=None): # pylint: disable=W0622 argument
32 with zipfile.ZipFile(zip_file, 'w', zipfile.ZIP_DEFLATED, True) as z:
60 def unzip(zip_file, target_dir): argument
64 with zipfile.ZipFile(zip_file, 'r', zipfile.ZIP_DEFLATED, True) as z:
/external/skia/infra/bots/
Dzip_utils.py27 def zip(target_dir, zip_file, blacklist=None): # pylint: disable=W0622 argument
32 with zipfile.ZipFile(zip_file, 'w', zipfile.ZIP_DEFLATED, True) as z:
60 def unzip(zip_file, target_dir): argument
64 with zipfile.ZipFile(zip_file, 'r', zipfile.ZIP_DEFLATED, True) as z:
/external/python/setuptools/setuptools/tests/
Dtest_upload_docs.py52 zip_file = cmd.create_zipfile(tmp_file)
56 with contextlib.closing(zipfile.ZipFile(tmp_file)) as zip_file:
57 assert zip_file.namelist() == ['index.html']
/external/tensorflow/tensorflow/lite/testing/
Dgenerated_examples_zip_test.cc233 std::vector<string> UnarchiveAndFindTestNames(const string& zip_file, in UnarchiveAndFindTestNames() argument
235 if (zip_file.empty() && tar_file.empty()) { in UnarchiveAndFindTestNames()
240 TF_CHECK_OK(archive_environment()->UnArchive(zip_file, tar_file, in UnarchiveAndFindTestNames()
243 if (!zip_file.empty()) { in UnarchiveAndFindTestNames()
244 TF_CHECK_OK(ReadManifest(zip_file, decompress_tmp_dir, &stuff)); in UnarchiveAndFindTestNames()
/external/apache-commons-bcel/src/main/java/org/apache/bcel/util/
DClass2HTML.java118 String zip_file = null; in main() local
140 zip_file = argv[++i]; in main()
153 if (zip_file == null) { in main()
156 … parser = new ClassParser(zip_file, file_name[i]); // Create parser object from zip file in main()
/external/python/cpython3/Lib/test/
Dtest_pkgutil.py66 zip_file = os.path.join(self.dirname, zip)
67 z = zipfile.ZipFile(zip_file, 'w')
77 sys.path.insert(0, zip_file)
84 for moduleinfo in pkgutil.iter_modules([zip_file]):
151 zip_file = os.path.join(self.dirname, zip)
152 z = zipfile.ZipFile(zip_file, 'w')
161 sys.path.insert(0, zip_file)
170 actual= [e[1] for e in pkgutil.walk_packages([zip_file])]
Dtest_zipimport_support.py130 zip_file = zipfile.ZipFile(zip_name, 'r')
132 zip_file.printdir()
133 zip_file.close()
/external/skqp/infra/bots/assets/
Dasset_utils.py194 zip_file = os.path.join(os.getcwd(), '%d.zip' % version)
195 zip_utils.zip(target_dir, zip_file, blacklist=ZIP_BLACKLIST)
198 self.copy(zip_file, gs_path)
206 zip_file = os.path.join(os.getcwd(), '%d.zip' % version)
207 self.copy(gs_path, zip_file)
208 zip_utils.unzip(zip_file, target_dir)
/external/skia/infra/bots/assets/
Dasset_utils.py194 zip_file = os.path.join(os.getcwd(), '%d.zip' % version)
195 zip_utils.zip(target_dir, zip_file, blacklist=ZIP_BLACKLIST)
198 self.copy(zip_file, gs_path)
206 zip_file = os.path.join(os.getcwd(), '%d.zip' % version)
207 self.copy(gs_path, zip_file)
208 zip_utils.unzip(zip_file, target_dir)
/external/python/cpython2/Lib/test/
Dtest_pkgutil.py61 zip_file = os.path.join(self.dirname, zip)
62 z = zipfile.ZipFile(zip_file, 'w')
72 sys.path.insert(0, zip_file)
Dtest_zipimport_support.py125 zip_file = zipfile.ZipFile(zip_name, 'r')
127 zip_file.printdir()
128 zip_file.close()
/external/boringssl/src/util/bot/
Dextract.py59 with zipfile.ZipFile(path, 'r') as zip_file:
60 for info in zip_file.infolist():
63 yield FileEntry(info.filename, None, zip_file.open(info))
/external/python/cpython3/Lib/distutils/tests/
Dtest_sdist.py124 zip_file = zipfile.ZipFile(join(dist_folder, 'fake-1.0.zip'))
126 content = zip_file.namelist()
128 zip_file.close()
224 zip_file = zipfile.ZipFile(join(dist_folder, 'fake-1.0.zip'))
226 content = zip_file.namelist()
228 zip_file.close()
/external/python/cpython2/Lib/distutils/tests/
Dtest_sdist.py126 zip_file = zipfile.ZipFile(join(dist_folder, 'fake-1.0.zip'))
128 content = zip_file.namelist()
130 zip_file.close()
242 zip_file = zipfile.ZipFile(join(dist_folder, 'fake-1.0.zip'))
244 content = zip_file.namelist()
246 zip_file.close()
/external/libchrome/build/android/gyp/util/
Dbuild_utils.py244 def _IsSymlink(zip_file, name): argument
245 zi = zip_file.getinfo(name)
292 def AddToZipHermetic(zip_file, zip_path, src_path=None, data=None, argument
313 zip_file.writestr(zipinfo, os.readlink(src_path))
327 compress_type = zip_file.compression
330 zip_file.writestr(zipinfo, data, compress_type)
Dmd5_check.py404 with zipfile.ZipFile(path) as zip_file:
405 for zip_info in zip_file.infolist():
/external/python/cpython3/PC/layout/
Dmain.py404 zip_file = _create_zip_file(ns)
445 zip_file.write(src, str(dest))
460 zip_file.write(c, str(cdest))
471 if zip_file:
472 zip_file.close()
/external/autotest/client/site_tests/network_CastTDLS/
Dnetwork_CastTDLS.py101 def _unzip_file(self, zip_file, output_folder): argument
107 zip_ref = zipfile.ZipFile(zip_file, 'r')
/external/tensorflow/tensorflow/python/keras/utils/
Ddata_utils_test.py54 with zipfile.ZipFile(zip_file_path, 'w') as zip_file:
55 zip_file.write(text_file_path)
/external/libchrome/third_party/jinja2/
Denvironment.py687 zip_file.writestr(info, data)
697 zip_file = ZipFile(target, 'w', dict(deflated=ZIP_DEFLATED,
729 zip_file.close()

12