Home
last modified time | relevance | path

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

12

/external/chromium_org/third_party/zlib/google/
Dzip.cc29 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
67 if (!zip::internal::ZipOpenNewFileInZip(zip_file, str_path, &file_info)) in AddEntryToZip()
72 success = AddFileToZip(zip_file, path); in AddEntryToZip()
75 if (ZIP_OK != zipCloseFileInZip(zip_file)) { in AddEntryToZip()
129 zipFile zip_file = internal::OpenForZipping(dest_file.AsUTF8Unsafe(), in ZipWithFilterCallback() local
132 if (!zip_file) { in ZipWithFilterCallback()
146 if (!AddEntryToZip(zip_file, path, src_dir)) { in ZipWithFilterCallback()
152 if (ZIP_OK != zipClose(zip_file, NULL)) { in ZipWithFilterCallback()
[all …]
Dzip_unittest.cc121 base::FilePath zip_file = temp_dir.path().AppendASCII("out.zip"); in TestTimeStamp() local
146 EXPECT_TRUE(zip::Zip(src_dir, zip_file, true)); in TestTimeStamp()
147 ASSERT_TRUE(zip::Unzip(zip_file, out_dir)); in TestTimeStamp()
218 base::FilePath zip_file = temp_dir.path().AppendASCII("out.zip"); in TEST_F() local
220 EXPECT_TRUE(zip::Zip(src_dir, zip_file, true)); in TEST_F()
221 TestUnzipFile(zip_file, true); in TEST_F()
231 base::FilePath zip_file = temp_dir.path().AppendASCII("out.zip"); in TEST_F() local
233 EXPECT_TRUE(zip::Zip(src_dir, zip_file, false)); in TEST_F()
234 TestUnzipFile(zip_file, false); in TEST_F()
249 base::FilePath zip_file = temp_dir.path().AppendASCII("out_russian.zip"); in TEST_F() local
[all …]
Dzip.h42 bool Unzip(const base::FilePath& zip_file, const base::FilePath& dest_dir);
Dzip_internal.h64 bool ZipOpenNewFileInZip(zipFile zip_file,
/external/chromium_org/third_party/android_crazy_linker/src/src/
Dcrazy_linker_zip.cpp94 int FindStartOffsetOfFileInZipFile(const char* zip_file, const char* filename) { in FindStartOffsetOfFileInZipFile() argument
97 if (!fd.OpenReadOnly(zip_file)) { in FindStartOffsetOfFileInZipFile()
99 __FUNCTION__, zip_file); in FindStartOffsetOfFileInZipFile()
105 if (stat(zip_file, &stat_buf) == -1) { in FindStartOffsetOfFileInZipFile()
107 __FUNCTION__, zip_file); in FindStartOffsetOfFileInZipFile()
113 __FUNCTION__, stat_buf.st_size, zip_file); in FindStartOffsetOfFileInZipFile()
121 __FUNCTION__, zip_file); in FindStartOffsetOfFileInZipFile()
138 __FUNCTION__, zip_file); in FindStartOffsetOfFileInZipFile()
152 __FUNCTION__, start_of_central_dir, zip_file); in FindStartOffsetOfFileInZipFile()
159 __FUNCTION__, end_of_central_dir, zip_file); in FindStartOffsetOfFileInZipFile()
[all …]
Dcrazy_linker_zip.h16 int FindStartOffsetOfFileInZipFile(const char* zip_file, const char* filename);
/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/feedback/
Dfeedback_util.cc79 base::FilePath zip_file; in ZipString() local
89 bool succeed = base::CreateTemporaryFile(&zip_file) && in ZipString()
90 zip::Zip(temp_path, zip_file, false) && in ZipString()
91 base::ReadFileToString(zip_file, compressed_logs); in ZipString()
94 base::DeleteFile(zip_file, false); in ZipString()
/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/mojo/tools/package_manager/
Dunpacker.cc21 bool Unpacker::Unpack(const base::FilePath& zip_file) { in Unpack() argument
23 zip_file_ = zip_file; in Unpack()
28 if (!zip::Unzip(zip_file, dir_)) { in Unpack()
Dunpacker.h25 bool Unpack(const base::FilePath& zip_file);
/external/chromium_org/chrome/browser/chromeos/system/
Dsyslogs_provider.cc205 void LoadCompressedLogs(const base::FilePath& zip_file,
309 base::FilePath zip_file; in ReadSyslogs() local
310 if (compress_logs && !base::CreateTemporaryFile(&zip_file)) { in ReadSyslogs()
317 compress_logs ? &zip_file : NULL, in ReadSyslogs()
324 LoadCompressedLogs(zip_file, zip_content); in ReadSyslogs()
325 base::DeleteFile(zip_file, false); in ReadSyslogs()
349 void SyslogsProviderImpl::LoadCompressedLogs(const base::FilePath& zip_file, in LoadCompressedLogs() argument
352 if (!base::ReadFileToString(zip_file, zip_content)) { in LoadCompressedLogs()
354 zip_file.value().c_str(); in LoadCompressedLogs()
/external/chromium_org/chrome/common/extensions/docs/server2/
Dgithub_file_system.py121 zip_file = self._zip_file.Get()
125 if zip_file is None:
128 prefix = zip_file.namelist()[0]
129 return zip_file.read(prefix + path)
133 zip_file = self._zip_file.Get()
137 if zip_file is None:
140 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/tools/usb_gadget/
Dpackage.py84 if args.zip_file:
85 with open(args.zip_file, 'w') as zip_file:
86 zip_file.write(content)
/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::File zip_file, Results* results) { in AnalyzeZipFile() argument
19 if (!reader.OpenFromPlatformFile(zip_file.TakePlatformFile())) { in AnalyzeZipFile()
Dzip_analyzer.h24 void AnalyzeZipFile(base::File zip_file, Results* results);
/external/chromium_org/tools/
Dbisect-builds.py552 def RunRevision(context, revision, zip_file, profile, num_runs, command, args): argument
559 UnzipFilenameToDir(zip_file, tempdir)
647 def __init__(self, context, name, rev, zip_file): argument
653 self.zip_file = zip_file
662 self.zip_file,
675 os.unlink(self.zip_file)
749 zip_file = _GetDownloadPath(rev)
750 fetch = DownloadJob(context, 'initial_fetch', rev, zip_file)
755 while fetch and fetch.zip_file and maxrev - minrev > 1:
791 fetch.zip_file,
[all …]
/external/chromium_org/tools/telemetry/telemetry/util/
Dfind_dependencies_unittest.py37 with zipfile.ZipFile(zip_path, 'r') as zip_file:
38 zip_file.extractall(temp_dir)
Dfind_dependencies.py170 with zipfile.ZipFile(options.zip, 'w', zipfile.ZIP_DEFLATED) as zip_file:
175 zip_file.write(path, path_in_archive)
194 zip_file.writestr(link_info, link_script)
223 zip_file.write(path, path_in_archive)
/external/chromium_org/chrome/browser/safe_browsing/
Dsandboxed_zip_analyzer.cc26 const base::FilePath& zip_file, in SandboxedZipAnalyzer() argument
28 : zip_file_name_(zip_file), in SandboxedZipAnalyzer()
Dsandboxed_zip_analyzer.h36 SandboxedZipAnalyzer(const base::FilePath& zip_file,
/external/chromium_org/build/android/gyp/
Djar_toc.py30 def GetClassesInZipFile(zip_file): argument
32 files = zip_file.namelist()
/external/chromium_org/tools/telemetry/telemetry/core/platform/
Dwin_platform_backend.py64 with zipfile.ZipFile(zip_path, 'r') as zip_file:
67 zip_file.extract(dll_file_name, executable_dir)
70 zip_file.extract(driver_file_name, executable_dir)

12