Home
last modified time | relevance | path

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

12

/external/chromium/chrome/common/
Dzip.cc24 static bool ExtractCurrentFile(unzFile zip_file, in ExtractCurrentFile() argument
28 int err = unzGetCurrentFileInfo(zip_file, &file_info, filename_inzip, in ExtractCurrentFile()
35 err = unzOpenCurrentFile(zip_file); in ExtractCurrentFile()
81 num_bytes = unzReadCurrentFile(zip_file, buf, kZipBufSize); in ExtractCurrentFile()
99 err = unzCloseCurrentFile(zip_file); in ExtractCurrentFile()
101 unzCloseCurrentFile(zip_file); // Don't lose the original error code. in ExtractCurrentFile()
168 unzFile zip_file = unzOpen(src_file_str.c_str()); in Unzip() local
171 unzFile zip_file = unzOpen2(src_file_str.c_str(), &zip_funcs); in Unzip() local
173 if (!zip_file) { in Unzip()
179 err = unzGetGlobalInfo(zip_file, &zip_info); in Unzip()
[all …]
Dzip_unittest.cc126 FilePath zip_file = temp_dir.path().AppendASCII("out.zip"); in TEST_F() local
128 EXPECT_TRUE(Zip(src_dir, zip_file, true)); in TEST_F()
129 TestUnzipFile(zip_file, true); in TEST_F()
139 FilePath zip_file = temp_dir.path().AppendASCII("out.zip"); in TEST_F() local
141 EXPECT_TRUE(Zip(src_dir, zip_file, false)); in TEST_F()
142 TestUnzipFile(zip_file, false); in TEST_F()
Dzip.h20 bool Unzip(const FilePath& zip_file, const FilePath& dest_dir);
/external/chromium_org/chrome/test/chromedriver/chrome/
Dzip.cc27 bool AddFileToZip(zipFile zip_file, const base::FilePath& src_dir) { in AddFileToZip() argument
41 if (ZIP_OK != zipWriteInFileInZip(zip_file, buf, num_bytes)) { in AddFileToZip()
52 bool AddEntryToZip(zipFile zip_file, const base::FilePath& path, in AddEntryToZip() argument
65 zip_file, str_path.c_str(), in AddEntryToZip()
75 success = AddFileToZip(zip_file, path); in AddEntryToZip()
78 if (ZIP_OK != zipCloseFileInZip(zip_file)) { in AddEntryToZip()
132 zipFile zip_file = internal::OpenForZipping(dest_file.AsUTF8Unsafe(), in ZipWithFilterCallback() local
135 if (!zip_file) { in ZipWithFilterCallback()
149 if (!AddEntryToZip(zip_file, path, src_dir)) { in ZipWithFilterCallback()
155 if (ZIP_OK != zipClose(zip_file, NULL)) { in ZipWithFilterCallback()
[all …]
Dzip.h40 bool Unzip(const base::FilePath& zip_file, const base::FilePath& dest_dir);
/external/chromium_org/third_party/zlib/google/
Dzip.cc27 bool AddFileToZip(zipFile zip_file, const base::FilePath& src_dir) { in AddFileToZip() argument
41 if (ZIP_OK != zipWriteInFileInZip(zip_file, buf, num_bytes)) { in AddFileToZip()
52 bool AddEntryToZip(zipFile zip_file, const base::FilePath& path, in AddEntryToZip() argument
71 zip_file, //file in AddEntryToZip()
95 success = AddFileToZip(zip_file, path); in AddEntryToZip()
98 if (ZIP_OK != zipCloseFileInZip(zip_file)) { in AddEntryToZip()
152 zipFile zip_file = internal::OpenForZipping(dest_file.AsUTF8Unsafe(), in ZipWithFilterCallback() local
155 if (!zip_file) { in ZipWithFilterCallback()
169 if (!AddEntryToZip(zip_file, path, src_dir)) { in ZipWithFilterCallback()
175 if (ZIP_OK != zipClose(zip_file, NULL)) { in ZipWithFilterCallback()
[all …]
Dzip_unittest.cc158 base::FilePath zip_file = temp_dir.path().AppendASCII("out.zip"); in TEST_F() local
160 EXPECT_TRUE(zip::Zip(src_dir, zip_file, true)); in TEST_F()
161 TestUnzipFile(zip_file, true); in TEST_F()
171 base::FilePath zip_file = temp_dir.path().AppendASCII("out.zip"); in TEST_F() local
173 EXPECT_TRUE(zip::Zip(src_dir, zip_file, false)); in TEST_F()
174 TestUnzipFile(zip_file, false); in TEST_F()
189 base::FilePath zip_file = temp_dir.path().AppendASCII("out_russian.zip"); in TEST_F() local
191 EXPECT_TRUE(zip::Zip(src_dir_russian, zip_file, true)); in TEST_F()
192 TestUnzipFile(zip_file, true); in TEST_F()
203 base::FilePath zip_file = temp_dir.path().AppendASCII("out.zip"); in TEST_F() local
[all …]
Dzip.h40 bool Unzip(const base::FilePath& zip_file, const base::FilePath& dest_dir);
/external/chromium/chrome/browser/chromeos/cros/
Dsyslogs_library.cc36 void LoadCompressedLogs(const FilePath& zip_file,
100 FilePath zip_file; in ReadSyslogs() local
101 if (compress_logs && !file_util::CreateTemporaryFile(&zip_file)) { in ReadSyslogs()
109 compress_logs ? &zip_file : NULL, in ReadSyslogs()
116 LoadCompressedLogs(zip_file, zip_content); in ReadSyslogs()
117 file_util::Delete(zip_file, false); in ReadSyslogs()
126 void SyslogsLibraryImpl::LoadCompressedLogs(const FilePath& zip_file, in LoadCompressedLogs() argument
129 if (!file_util::ReadFileToString(zip_file, zip_content)) { in LoadCompressedLogs()
131 zip_file.value().c_str(); in LoadCompressedLogs()
/external/chromium_org/tools/deep_memory_profiler/tests/
Dmock_gsutil.py22 zip_file = zipfile.ZipFile(sys.argv[4], 'r')
32 assert set(zip_file.namelist()) == expected_nameset
34 heap_1 = zip_file.getinfo('heap.01234.0001.heap')
38 buckets_1 = zip_file.getinfo('heap.01234.0001.buckets')
42 nm_chrome = zip_file.getinfo('heap.01234.symmap/chrome.abcdef.nm')
46 zip_file.close()
/external/chromium_org/components/policy/tools/
Dmake_policy_zip.py17 def add_files_to_zip(zip_file, base_dir, file_list): argument
28 zip_file.write(base_dir + file_path, file_path)
75 zip_file = zipfile.ZipFile(options.output, 'w', zipfile.ZIP_DEFLATED)
77 return add_files_to_zip(zip_file, options.basedir, file_list)
79 zip_file.close()
/external/chromium_org/chrome/browser/chromeos/system/
Dsyslogs_provider.cc204 void LoadCompressedLogs(const base::FilePath& zip_file,
307 base::FilePath zip_file; in ReadSyslogs() local
308 if (compress_logs && !base::CreateTemporaryFile(&zip_file)) { in ReadSyslogs()
315 compress_logs ? &zip_file : NULL, in ReadSyslogs()
322 LoadCompressedLogs(zip_file, zip_content); in ReadSyslogs()
323 base::DeleteFile(zip_file, false); in ReadSyslogs()
347 void SyslogsProviderImpl::LoadCompressedLogs(const base::FilePath& zip_file, in LoadCompressedLogs() argument
350 if (!base::ReadFileToString(zip_file, zip_content)) { in LoadCompressedLogs()
352 zip_file.value().c_str(); in LoadCompressedLogs()
/external/chromium_org/chrome/common/extensions/docs/server2/
Dgithub_file_system.py127 zip_file = self._zip_file.Get()
131 if zip_file is None:
134 prefix = zip_file.namelist()[0][:-1]
135 return zip_file.read(prefix + path)
139 zip_file = self._zip_file.Get()
143 if zip_file is None:
146 filenames = zip_file.namelist()
Ddirectory_zipper.py29 with ZipFile(zip_bytes, mode='w') as zip_file:
43 zip_file.writestr(posixpath.join(dir_name, file_name), file_contents)
/external/chromium_org/remoting/host/installer/
Dbuild-installer-archive.py144 def copyZipIntoArchive(out_dir, files_root, zip_file): argument
153 base_zip_name = os.path.basename(zip_file)
158 os.chdir(os.path.dirname(zip_file))
163 out_zip_path = remapSrcFile(out_dir, files_root, zip_file)
166 (src_dir, ignore1) = os.path.splitext(zip_file)
/external/chromium_org/chrome/common/safe_browsing/
Dzip_analyzer.cc14 void AnalyzeZipFile(base::PlatformFile zip_file, Results* results) { in AnalyzeZipFile() argument
16 if (!reader.OpenFromPlatformFile(zip_file)) { in AnalyzeZipFile()
Dzip_analyzer.h24 void AnalyzeZipFile(base::PlatformFile zip_file, Results* results);
/external/chromium_org/chrome/browser/feedback/
Dfeedback_util.cc377 base::FilePath zip_file; in ZipString() local
387 bool succeed = base::CreateTemporaryFile(&zip_file) && in ZipString()
388 zip::Zip(temp_path, zip_file, false) && in ZipString()
389 base::ReadFileToString(zip_file, compressed_logs); in ZipString()
392 base::DeleteFile(zip_file, false); in ZipString()
/external/chromium_org/chrome/browser/extensions/api/image_writer_private/
Doperation.cc181 void Operation::UnzipStart(scoped_ptr<base::FilePath> zip_file) { in UnzipStart() argument
187 DVLOG(1) << "Starting unzip stage for " << zip_file->value(); in UnzipStart()
192 if (!base::CreateTemporaryDirInDir(zip_file->DirName(), in UnzipStart()
201 if (!zip::Unzip(*zip_file, tmp_dir)) { in UnzipStart()
Doperation.h89 void UnzipStart(scoped_ptr<base::FilePath> zip_file);
/external/chromium_org/build/android/gyp/
Djar_toc.py28 def GetClassesInZipFile(zip_file): argument
30 files = zip_file.namelist()
/external/chromium_org/chrome/browser/safe_browsing/
Dsandboxed_zip_analyzer.cc27 const base::FilePath& zip_file, in SandboxedZipAnalyzer() argument
29 : zip_file_(zip_file), in SandboxedZipAnalyzer()
Dsandboxed_zip_analyzer.h36 SandboxedZipAnalyzer(const base::FilePath& zip_file,
/external/chromium/chrome/common/extensions/docs/build/
Ddirectory.py660 zip_file = zipfile.ZipFile(zip_path, 'w')
672 zip_file.write(abspath, relpath)
674 info = zip_file.getinfo(zip_manifest_path)
679 zip_file.close()
/external/chromium_org/chrome/utility/
Dchrome_content_utility_client.h91 const IPC::PlatformFileForTransit& zip_file);

12