Home
last modified time | relevance | path

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

12

/external/pigweed/pw_build/py/
Dzip_test.py93 with zipfile.ZipFile(out_filename, 'r') as zip_file:
94 zip_file.extractall(out_path)
112 with zipfile.ZipFile(out_filename, 'r') as zip_file:
113 zip_file.extractall(out_path)
136 with zipfile.ZipFile(out_filename, 'r') as zip_file:
137 zip_file.extractall(out_path)
156 with zipfile.ZipFile(out_filename, 'r') as zip_file:
157 zip_file.extractall(out_path)
176 with zipfile.ZipFile(out_filename, 'r') as zip_file:
177 zip_file.extractall(out_path)
[all …]
/external/pigweed/pw_build/py/pw_build/
Dzip.py62 with zipfile.ZipFile(out_filename, 'w', zipfile.ZIP_DEFLATED) as zip_file:
91 zip_file.write(source_path,
96 zip_file.write(source_path, destination_path)
101 zip_file)
107 destination_path: pathlib.PurePath, zip_file: zipfile.ZipFile):
124 zip_file.write(file_path, destination_path / rel_path)
/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/zlib/google/
Dzip_writer.cc132 zipFile zip_file = in CreateWithFd() local
135 if (!zip_file) { in CreateWithFd()
140 return std::unique_ptr<ZipWriter>(new ZipWriter(zip_file, file_accessor)); in CreateWithFd()
149 zipFile zip_file = internal::OpenForZipping(zip_file_path.AsUTF8Unsafe(), in Create() local
152 if (!zip_file) { in Create()
157 return std::unique_ptr<ZipWriter>(new ZipWriter(zip_file, file_accessor)); in Create()
160 ZipWriter::ZipWriter(zipFile zip_file, FileAccessor* file_accessor) in ZipWriter() argument
161 : zip_file_(zip_file), file_accessor_(file_accessor) {} in ZipWriter()
Dzip_unittest.cc326 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TestTimeStamp() local
352 EXPECT_TRUE(zip::Zip(src_dir, zip_file, true)); in TestTimeStamp()
353 ASSERT_TRUE(zip::Unzip(zip_file, out_dir)); in TestTimeStamp()
918 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TEST_F() local
920 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/true)); in TEST_F()
921 TestUnzipFile(zip_file, true); in TEST_F()
929 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TEST_F() local
931 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/false)); in TEST_F()
932 TestUnzipFile(zip_file, false); in TEST_F()
944 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out_russian.zip"); in TEST_F() local
[all …]
/external/angle/third_party/zlib/google/
Dzip_writer.cc132 zipFile zip_file = in CreateWithFd() local
135 if (!zip_file) { in CreateWithFd()
140 return std::unique_ptr<ZipWriter>(new ZipWriter(zip_file, file_accessor)); in CreateWithFd()
149 zipFile zip_file = internal::OpenForZipping(zip_file_path.AsUTF8Unsafe(), in Create() local
152 if (!zip_file) { in Create()
157 return std::unique_ptr<ZipWriter>(new ZipWriter(zip_file, file_accessor)); in Create()
160 ZipWriter::ZipWriter(zipFile zip_file, FileAccessor* file_accessor) in ZipWriter() argument
161 : zip_file_(zip_file), file_accessor_(file_accessor) {} in ZipWriter()
Dzip_unittest.cc328 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TestTimeStamp() local
354 EXPECT_TRUE(zip::Zip(src_dir, zip_file, true)); in TestTimeStamp()
355 ASSERT_TRUE(zip::Unzip(zip_file, out_dir)); in TestTimeStamp()
1015 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TEST_F() local
1017 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/true)); in TEST_F()
1018 TestUnzipFile(zip_file, true); in TEST_F()
1026 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TEST_F() local
1028 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/false)); in TEST_F()
1029 TestUnzipFile(zip_file, false); in TEST_F()
1041 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out_russian.zip"); in TEST_F() local
[all …]
/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.py28 def zip(target_dir, zip_file, to_skip=None): # pylint: disable=W0622 argument
33 with zipfile.ZipFile(zip_file, 'w', zipfile.ZIP_DEFLATED, True) as z:
61 def unzip(zip_file, target_dir): argument
65 with zipfile.ZipFile(zip_file, 'r', zipfile.ZIP_DEFLATED, True) as z:
/external/python/setuptools/setuptools/command/
Dupload_docs.py78 zip_file = zipfile.ZipFile(filename, "w")
89 zip_file.write(full, dest)
91 zip_file.close()
106 zip_file = os.path.join(tmp_dir, "%s.zip" % name)
108 self.create_zipfile(zip_file)
109 self.upload_file(zip_file)
/external/tflite-support/tensorflow_lite_support/metadata/cc/
Dmetadata_extractor.cc236 zip_file* zip_file = zip_fopen_index(zip_archive, index, /*flags=*/0); in ExtractAssociatedFiles() local
237 if (zip_file == nullptr) { in ExtractAssociatedFiles()
244 auto zip_file_cleanup = SimpleCleanUp([zip_file] { zip_fclose(zip_file); }); in ExtractAssociatedFiles()
250 if (zip_fread(zip_file, unzip_buffer, unzip_filesize) != unzip_filesize) { in ExtractAssociatedFiles()
/external/webrtc/rtc_tools/testing/
Dutils.py101 zip_file = zipfile.ZipFile(archive_path)
103 zip_file.extractall(output_dir)
105 zip_file.close()
/external/python/cpython3/Lib/test/support/
Dscript_helper.py224 with zipfile.ZipFile(zip_name, 'w') as zip_file:
233 zip_file.write(script_name, name_in_zip)
262 with zipfile.ZipFile(zip_name, 'w') as zip_file:
265 zip_file.write(init_name, init_name_in_zip)
266 zip_file.write(script_name, script_name_in_zip)
/external/rust/crates/zip/tests/
Dend_to_end.rs119 fn check_test_archive<R: Read + Seek>(zip_file: R) -> zip::result::ZipResult<zip::ZipArchive<R>> { in check_test_archive()
120 let mut archive = zip::ZipArchive::new(zip_file).unwrap(); in check_test_archive()
163 zip_file: &mut Cursor<Vec<u8>>, in check_archive_file()
168 let mut archive = check_test_archive(zip_file).unwrap(); in check_archive_file()
/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/tensorflow/tensorflow/lite/testing/
Dgenerated_examples_zip_test.cc273 std::vector<string> UnarchiveAndFindTestNames(const string& zip_file, in UnarchiveAndFindTestNames() argument
275 if (zip_file.empty() && tar_file.empty()) { in UnarchiveAndFindTestNames()
280 TF_CHECK_OK(archive_environment()->UnArchive(zip_file, tar_file, in UnarchiveAndFindTestNames()
283 if (!zip_file.empty()) { in UnarchiveAndFindTestNames()
284 TF_CHECK_OK(ReadManifest(zip_file, decompress_tmp_dir, &stuff)); in UnarchiveAndFindTestNames()
/external/tensorflow/tensorflow/lite/experimental/mlir/testing/
Dgenerated_examples_zip_test.cc239 std::vector<string> UnarchiveAndFindTestNames(const string& zip_file, in UnarchiveAndFindTestNames() argument
241 if (zip_file.empty() && tar_file.empty()) { in UnarchiveAndFindTestNames()
246 TF_CHECK_OK(archive_environment()->UnArchive(zip_file, tar_file, in UnarchiveAndFindTestNames()
249 if (!zip_file.empty()) { in UnarchiveAndFindTestNames()
250 TF_CHECK_OK(ReadManifest(zip_file, decompress_tmp_dir, &stuff)); in UnarchiveAndFindTestNames()
/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/python/cpython3/Lib/test/
Dtest_pkgutil.py67 zip_file = os.path.join(self.dirname, zip)
68 z = zipfile.ZipFile(zip_file, 'w')
78 sys.path.insert(0, zip_file)
85 for moduleinfo in pkgutil.iter_modules([zip_file]):
152 zip_file = os.path.join(self.dirname, zip)
153 z = zipfile.ZipFile(zip_file, 'w')
162 sys.path.insert(0, zip_file)
171 actual= [e[1] for e in pkgutil.walk_packages([zip_file])]
/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/setuptools/setuptools/_distutils/tests/
Dtest_sdist.py120 zip_file = zipfile.ZipFile(join(dist_folder, 'fake-1.0.zip'))
122 content = zip_file.namelist()
124 zip_file.close()
220 zip_file = zipfile.ZipFile(join(dist_folder, 'fake-1.0.zip'))
222 content = zip_file.namelist()
224 zip_file.close()
/external/python/cpython3/Lib/distutils/tests/
Dtest_sdist.py125 zip_file = zipfile.ZipFile(join(dist_folder, 'fake-1.0.zip'))
127 content = zip_file.namelist()
129 zip_file.close()
225 zip_file = zipfile.ZipFile(join(dist_folder, 'fake-1.0.zip'))
227 content = zip_file.namelist()
229 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()

12