Home
last modified time | relevance | path

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

12

/external/zlib/google/
Dzip_writer.cc19 bool AddFileContentToZip(zipFile zip_file, in AddFileContentToZip() argument
28 if (zipWriteInFileInZip(zip_file, buf, num_bytes) != ZIP_OK) { in AddFileContentToZip()
39 bool OpenNewFileEntry(zipFile zip_file, in OpenNewFileEntry() argument
50 return zip::internal::ZipOpenNewFileInZip(zip_file, str_path, last_modified); in OpenNewFileEntry()
53 bool CloseNewFileEntry(zipFile zip_file) { in CloseNewFileEntry() argument
54 return zipCloseFileInZip(zip_file) == ZIP_OK; in CloseNewFileEntry()
57 bool AddFileEntryToZip(zipFile zip_file, in AddFileEntryToZip() argument
64 if (!OpenNewFileEntry(zip_file, path, /*is_directory=*/false, in AddFileEntryToZip()
68 bool success = AddFileContentToZip(zip_file, std::move(file), path); in AddFileEntryToZip()
69 if (!CloseNewFileEntry(zip_file)) in AddFileEntryToZip()
[all …]
Dzip_unittest.cc251 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TestTimeStamp() local
277 EXPECT_TRUE(zip::Zip(src_dir, zip_file, true)); in TestTimeStamp()
278 ASSERT_TRUE(zip::Unzip(zip_file, out_dir)); in TestTimeStamp()
418 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TEST_F() local
420 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/true)); in TEST_F()
421 TestUnzipFile(zip_file, true); in TEST_F()
431 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TEST_F() local
433 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/false)); in TEST_F()
434 TestUnzipFile(zip_file, false); in TEST_F()
448 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out_russian.zip"); in TEST_F() local
[all …]
Dzip_writer.h41 static std::unique_ptr<ZipWriter> Create(const base::FilePath& zip_file,
53 ZipWriter(zipFile zip_file,
Dzip.h156 bool UnzipWithFilterCallback(const base::FilePath& zip_file,
170 bool UnzipWithFilterAndWriters(const base::PlatformFile& zip_file,
177 bool Unzip(const base::FilePath& zip_file, const base::FilePath& dest_dir);
/external/v8/third_party/zlib/google/
Dzip_writer.cc20 bool AddFileContentToZip(zipFile zip_file, in AddFileContentToZip() argument
29 if (zipWriteInFileInZip(zip_file, buf, num_bytes) != ZIP_OK) { in AddFileContentToZip()
40 bool OpenNewFileEntry(zipFile zip_file, in OpenNewFileEntry() argument
51 return zip::internal::ZipOpenNewFileInZip(zip_file, str_path, last_modified); in OpenNewFileEntry()
54 bool CloseNewFileEntry(zipFile zip_file) { in CloseNewFileEntry() argument
55 return zipCloseFileInZip(zip_file) == ZIP_OK; in CloseNewFileEntry()
58 bool AddFileEntryToZip(zipFile zip_file, in AddFileEntryToZip() argument
65 if (!OpenNewFileEntry(zip_file, path, /*is_directory=*/false, in AddFileEntryToZip()
69 bool success = AddFileContentToZip(zip_file, std::move(file), path); in AddFileEntryToZip()
70 if (!CloseNewFileEntry(zip_file)) in AddFileEntryToZip()
[all …]
Dzip_unittest.cc252 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TestTimeStamp() local
278 EXPECT_TRUE(zip::Zip(src_dir, zip_file, true)); in TestTimeStamp()
279 ASSERT_TRUE(zip::Unzip(zip_file, out_dir)); in TestTimeStamp()
419 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TEST_F() local
421 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/true)); in TEST_F()
422 TestUnzipFile(zip_file, true); in TEST_F()
432 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TEST_F() local
434 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/false)); in TEST_F()
435 TestUnzipFile(zip_file, false); in TEST_F()
449 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out_russian.zip"); in TEST_F() local
[all …]
Dzip_writer.h41 static std::unique_ptr<ZipWriter> Create(const base::FilePath& zip_file,
53 ZipWriter(zipFile zip_file,
Dzip.h156 bool UnzipWithFilterCallback(const base::FilePath& zip_file,
170 bool UnzipWithFilterAndWriters(const base::PlatformFile& zip_file,
177 bool Unzip(const base::FilePath& zip_file, const base::FilePath& dest_dir);
/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/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/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/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/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/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/oss-fuzz/infra/gcb/
Dbuild_project.py161 zip_file = stamped_name + '.zip'
167 build_lib.GCS_UPLOAD_URL_FORMAT.format(bucket, name, zip_file))
299 zip_file=zip_file)
314 os.path.join(out, zip_file),
/external/python/cpython3/Lib/test/support/
Dscript_helper.py216 with zipfile.ZipFile(zip_name, 'w') as zip_file:
225 zip_file.write(script_name, name_in_zip)
252 with zipfile.ZipFile(zip_name, 'w') as zip_file:
255 zip_file.write(init_name, init_name_in_zip)
256 zip_file.write(script_name, script_name_in_zip)
/external/skia/build/fuchsia/
Dupdate_fuchsia_sdk47 zip_file = tempfile.NamedTemporaryFile(suffix=pkg_suffix, delete=False)
49 zip_file.name + " -cache-dir " + cipd_cache_dir
50 unzip_cmd = "unzip -q " + zip_file.name + " -d " + output_dir
/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])]
/external/skia/infra/bots/assets/
Dasset_utils.py213 zip_file = os.path.join(os.getcwd(), '%d.zip' % version)
214 zip_utils.zip(target_dir, zip_file, blacklist=ZIP_BLACKLIST)
217 self.copy(zip_file, gs_path)
225 zip_file = os.path.join(os.getcwd(), '%d.zip' % version)
226 self.copy(gs_path, zip_file)
227 zip_utils.unzip(zip_file, target_dir)
/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/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)
/external/tensorflow/tensorflow/lite/testing/
Dgenerated_examples_zip_test.cc276 std::vector<string> UnarchiveAndFindTestNames(const string& zip_file, in UnarchiveAndFindTestNames() argument
278 if (zip_file.empty() && tar_file.empty()) { in UnarchiveAndFindTestNames()
283 TF_CHECK_OK(archive_environment()->UnArchive(zip_file, tar_file, in UnarchiveAndFindTestNames()
286 if (!zip_file.empty()) { in UnarchiveAndFindTestNames()
287 TF_CHECK_OK(ReadManifest(zip_file, decompress_tmp_dir, &stuff)); in UnarchiveAndFindTestNames()
/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))

12