• Home
  • Raw
  • Download

Lines Matching refs:zip

40 ssize_t processAssets(Bundle* bundle, ZipFile* zip, const sp<const OutputSet>& outputSet);
41 bool processFile(Bundle* bundle, ZipFile* zip, String8 storageName, const sp<const AaptFile>& file);
43 ssize_t processJarFiles(Bundle* bundle, ZipFile* zip);
60 ZipFile* zip = NULL; in writeAPK() local
100 zip = new ZipFile; in writeAPK()
101 status = zip->open(outputFile.string(), ZipFile::kOpenReadWrite | ZipFile::kOpenCreate); in writeAPK()
112 count = processAssets(bundle, zip, outputSet); in writeAPK()
124 count = processJarFiles(bundle, zip); in writeAPK()
146 for (i = 0; i < zip->getNumEntries(); i++) { in writeAPK()
147 ZipEntry* entry = zip->getEntryByIndex(i); in writeAPK()
154 zip->remove(entry); in writeAPK()
163 result = zip->flush(); in writeAPK()
170 if (zip->getNumEntries() == 0) { in writeAPK()
174 delete zip; // close the file so we can remove it in Win32 in writeAPK()
175 zip = NULL; in writeAPK()
199 delete zip; // must close before remove in Win32 in writeAPK()
218 ssize_t processAssets(Bundle* bundle, ZipFile* zip, const sp<const OutputSet>& outputSet) in processAssets() argument
230 if (!processFile(bundle, zip, storagePath, entry.getFile())) { in processAssets()
245 bool processFile(Bundle* bundle, ZipFile* zip, in processFile() argument
282 entry = zip->getEntryByName(storageName.string()); in processFile()
305 zip->remove(entry); in processFile()
316 zip->remove(entry); in processFile()
324 result = zip->addGzip(file->getSourceFile().string(), storageName.string(), &entry); in processFile()
331 result = zip->add(file->getSourceFile().string(), storageName.string(), compressionMethod, in processFile()
334 result = zip->add(file->getData(), file->getSize(), storageName.string(), in processFile()
427 ssize_t processJarFiles(Bundle* bundle, ZipFile* zip) in processJarFiles() argument
442 err += processJarFile(&jar, zip); in processJarFiles()