Lines Matching refs:zip
39 ZipFile* zip; in openReadOnly() local
42 zip = new ZipFile; in openReadOnly()
43 result = zip->open(fileName, ZipFile::kOpenReadOnly); in openReadOnly()
53 delete zip; in openReadOnly()
57 return zip; in openReadOnly()
68 ZipFile* zip = NULL; in openReadWrite() local
77 zip = new ZipFile; in openReadWrite()
78 result = zip->open(fileName, flags); in openReadWrite()
80 delete zip; in openReadWrite()
81 zip = NULL; in openReadWrite()
86 return zip; in openReadWrite()
126 ZipFile* zip = NULL; in doList() local
137 zip = openReadOnly(zipFileName); in doList()
138 if (zip == NULL) { in doList()
154 count = zip->getNumEntries(); in doList()
156 entry = zip->getEntryByIndex(i); in doList()
190 zip->getNumEntries()); in doList()
228 delete zip; in doList()
2385 ZipFile* zip = NULL; in doAdd() local
2406 zip = openReadWrite(zipFileName, true); in doAdd()
2407 if (zip == NULL) { in doAdd()
2417 result = zip->addGzip(fileName, String8(fileName).getBasePath().string(), NULL); in doAdd()
2423 result = zip->add(fileName, storageName.string(), in doAdd()
2427 result = zip->add(fileName, bundle->getCompressionMethod(), NULL); in doAdd()
2446 delete zip; in doAdd()
2456 ZipFile* zip = NULL; in doRemove() local
2471 zip = openReadWrite(zipFileName, false); in doRemove()
2472 if (zip == NULL) { in doRemove()
2482 entry = zip->getEntryByName(fileName); in doRemove()
2488 result = zip->remove(entry); in doRemove()
2498 zip->flush(); in doRemove()
2501 delete zip; in doRemove()