Lines Matching refs:zip
57 ZipFile* zip; in openReadOnly() local
60 zip = new ZipFile; in openReadOnly()
61 result = zip->open(fileName, ZipFile::kOpenReadOnly); in openReadOnly()
71 delete zip; in openReadOnly()
75 return zip; in openReadOnly()
86 ZipFile* zip = NULL; in openReadWrite() local
95 zip = new ZipFile; in openReadWrite()
96 result = zip->open(fileName, flags); in openReadWrite()
98 delete zip; in openReadWrite()
99 zip = NULL; in openReadWrite()
104 return zip; in openReadWrite()
144 ZipFile* zip = NULL; in doList() local
155 zip = openReadOnly(zipFileName); in doList()
156 if (zip == NULL) { in doList()
172 count = zip->getNumEntries(); in doList()
174 entry = zip->getEntryByIndex(i); in doList()
208 zip->getNumEntries()); in doList()
246 delete zip; in doList()
2373 ZipFile* zip = NULL; in doAdd() local
2394 zip = openReadWrite(zipFileName, true); in doAdd()
2395 if (zip == NULL) { in doAdd()
2405 result = zip->addGzip(fileName, String8(fileName).getBasePath().string(), NULL); in doAdd()
2411 result = zip->add(fileName, storageName.string(), in doAdd()
2415 result = zip->add(fileName, bundle->getCompressionMethod(), NULL); in doAdd()
2434 delete zip; in doAdd()
2444 ZipFile* zip = NULL; in doRemove() local
2459 zip = openReadWrite(zipFileName, false); in doRemove()
2460 if (zip == NULL) { in doRemove()
2470 entry = zip->getEntryByName(fileName); in doRemove()
2476 result = zip->remove(entry); in doRemove()
2486 zip->flush(); in doRemove()
2489 delete zip; in doRemove()