/external/chromium/chrome/common/ |
D | zip.cc | 24 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 …]
|
D | zip_unittest.cc | 126 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()
|
D | zip.h | 20 bool Unzip(const FilePath& zip_file, const FilePath& dest_dir);
|
/external/chromium_org/chrome/test/chromedriver/chrome/ |
D | zip.cc | 27 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 …]
|
D | zip.h | 40 bool Unzip(const base::FilePath& zip_file, const base::FilePath& dest_dir);
|
/external/chromium_org/third_party/zlib/google/ |
D | zip.cc | 27 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 …]
|
D | zip_unittest.cc | 158 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 …]
|
D | zip.h | 40 bool Unzip(const base::FilePath& zip_file, const base::FilePath& dest_dir);
|
/external/chromium/chrome/browser/chromeos/cros/ |
D | syslogs_library.cc | 36 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/ |
D | mock_gsutil.py | 22 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/ |
D | make_policy_zip.py | 17 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/ |
D | syslogs_provider.cc | 204 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/ |
D | github_file_system.py | 127 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()
|
D | directory_zipper.py | 29 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/ |
D | build-installer-archive.py | 144 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/ |
D | zip_analyzer.cc | 14 void AnalyzeZipFile(base::PlatformFile zip_file, Results* results) { in AnalyzeZipFile() argument 16 if (!reader.OpenFromPlatformFile(zip_file)) { in AnalyzeZipFile()
|
D | zip_analyzer.h | 24 void AnalyzeZipFile(base::PlatformFile zip_file, Results* results);
|
/external/chromium_org/chrome/browser/feedback/ |
D | feedback_util.cc | 377 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/ |
D | operation.cc | 181 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()
|
D | operation.h | 89 void UnzipStart(scoped_ptr<base::FilePath> zip_file);
|
/external/chromium_org/build/android/gyp/ |
D | jar_toc.py | 28 def GetClassesInZipFile(zip_file): argument 30 files = zip_file.namelist()
|
/external/chromium_org/chrome/browser/safe_browsing/ |
D | sandboxed_zip_analyzer.cc | 27 const base::FilePath& zip_file, in SandboxedZipAnalyzer() argument 29 : zip_file_(zip_file), in SandboxedZipAnalyzer()
|
D | sandboxed_zip_analyzer.h | 36 SandboxedZipAnalyzer(const base::FilePath& zip_file,
|
/external/chromium/chrome/common/extensions/docs/build/ |
D | directory.py | 660 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/ |
D | chrome_content_utility_client.h | 91 const IPC::PlatformFileForTransit& zip_file);
|