/external/zlib/google/ |
D | zip_writer.cc | 20 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 …]
|
D | zip_unittest.cc | 252 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 …]
|
D | zip_writer.h | 41 static std::unique_ptr<ZipWriter> Create(const base::FilePath& zip_file, 53 ZipWriter(zipFile zip_file,
|
D | zip.h | 156 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/pigweed/pw_build/py/ |
D | zip_test.py | 93 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/angle/third_party/zlib/google/ |
D | zip_unittest.cc | 283 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TestTimeStamp() local 309 EXPECT_TRUE(zip::Zip(src_dir, zip_file, true)); in TestTimeStamp() 310 ASSERT_TRUE(zip::Unzip(zip_file, out_dir)); in TestTimeStamp() 450 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TEST_F() local 452 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/true)); in TEST_F() 453 TestUnzipFile(zip_file, true); in TEST_F() 463 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out.zip"); in TEST_F() local 465 EXPECT_TRUE(zip::Zip(src_dir, zip_file, /*include_hidden_files=*/false)); in TEST_F() 466 TestUnzipFile(zip_file, false); in TEST_F() 480 base::FilePath zip_file = temp_dir.GetPath().AppendASCII("out_russian.zip"); in TEST_F() local [all …]
|
D | zip_writer.cc | 137 zipFile zip_file = in CreateWithFd() local 140 if (!zip_file) { in CreateWithFd() 145 return std::unique_ptr<ZipWriter>(new ZipWriter(zip_file, file_accessor)); in CreateWithFd() 154 zipFile zip_file = internal::OpenForZipping(zip_file_path.AsUTF8Unsafe(), in Create() local 157 if (!zip_file) { in Create() 162 return std::unique_ptr<ZipWriter>(new ZipWriter(zip_file, file_accessor)); in Create() 165 ZipWriter::ZipWriter(zipFile zip_file, FileAccessor* file_accessor) in ZipWriter() argument 166 : zip_file_(zip_file), file_accessor_(file_accessor) {} in ZipWriter()
|
D | zip.h | 171 bool UnzipWithFilterCallback(const base::FilePath& zip_file, 185 bool UnzipWithFilterAndWriters(const base::PlatformFile& zip_file, 192 bool Unzip(const base::FilePath& zip_file, const base::FilePath& dest_dir);
|
/external/pigweed/pw_build/py/pw_build/ |
D | zip.py | 62 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/ |
D | zip_utils.py | 32 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/ |
D | script_helper.py | 125 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/ |
D | ClassParser.java | 49 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/ |
D | zip_utils.py | 28 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/skqp/infra/bots/ |
D | zip_utils.py | 27 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/ |
D | upload_docs.py | 76 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/ |
D | test_upload_docs.py | 52 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/rust/crates/zip/tests/ |
D | end_to_end.rs | 67 fn read_zip<R: Read + Seek>(zip_file: R) -> zip::result::ZipResult<zip::ZipArchive<R>> { in read_zip() 68 let archive = zip::ZipArchive::new(zip_file).unwrap(); in read_zip() 89 fn check_zip_contents(zip_file: &mut Cursor<Vec<u8>>, name: &str) { in check_zip_contents() 90 let mut archive = read_zip(zip_file).unwrap(); in check_zip_contents()
|
/external/oss-fuzz/infra/build/functions/ |
D | build_project.py | 171 zip_file = stamped_name + '.zip' 178 build_lib.GCS_UPLOAD_URL_FORMAT.format(bucket, name, zip_file)) 316 zip_file=zip_file) 331 os.path.join(out, zip_file), 345 build_lib.http_upload_step(zip_file, latest_version_url,
|
/external/webrtc/rtc_tools/testing/ |
D | utils.py | 101 zip_file = zipfile.ZipFile(archive_path) 103 zip_file.extractall(output_dir) 105 zip_file.close()
|
/external/python/cpython3/Lib/test/support/ |
D | script_helper.py | 215 with zipfile.ZipFile(zip_name, 'w') as zip_file: 224 zip_file.write(script_name, name_in_zip) 251 with zipfile.ZipFile(zip_name, 'w') as zip_file: 254 zip_file.write(init_name, init_name_in_zip) 255 zip_file.write(script_name, script_name_in_zip)
|
/external/tflite-support/tensorflow_lite_support/metadata/cc/ |
D | metadata_extractor.cc | 236 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/skia/build/fuchsia/ |
D | update_fuchsia_sdk | 47 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/ |
D | Class2HTML.java | 118 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/skqp/infra/bots/assets/ |
D | asset_utils.py | 194 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/ |
D | asset_utils.py | 214 zip_file = os.path.join(os.getcwd(), '%d.zip' % version) 215 zip_utils.zip(target_dir, zip_file, to_skip=PATTERNS_TO_SKIP) 218 self.copy(zip_file, gs_path) 226 zip_file = os.path.join(os.getcwd(), '%d.zip' % version) 227 self.copy(gs_path, zip_file) 228 zip_utils.unzip(zip_file, target_dir)
|