Lines Matching refs:pEntry
161 ZipEntry* pEntry = mEntries[idx]; in getEntryByName() local
162 if (!pEntry->getDeleted() && in getEntryByName()
163 strcmp(fileName, pEntry->getFileName()) == 0) in getEntryByName()
165 return pEntry; in getEntryByName()
309 ZipEntry* pEntry = new ZipEntry; in readCentralDir() local
311 result = pEntry->initFromCDE(mZipFp); in readCentralDir()
314 delete pEntry; in readCentralDir()
318 mEntries.add(pEntry); in readCentralDir()
362 ZipEntry* pEntry = NULL; in addCommon() local
394 pEntry = new ZipEntry; in addCommon()
395 pEntry->initNew(storageName, NULL); in addCommon()
408 pEntry->mLFH.write(mZipFp); in addCommon()
498 pEntry->setDataInfo(uncompressedLen, endPosn - startPosn, crc, in addCommon()
500 pEntry->setModWhen(modWhen); in addCommon()
501 pEntry->setLFHOffset(lfhPosn); in addCommon()
514 pEntry->mLFH.write(mZipFp); in addCommon()
519 mEntries.add(pEntry); in addCommon()
521 *ppEntry = pEntry; in addCommon()
522 pEntry = NULL; in addCommon()
527 delete pEntry; in addCommon()
541 ZipEntry* pEntry = NULL; in add() local
557 pEntry = new ZipEntry; in add()
558 if (pEntry == NULL) { in add()
563 result = pEntry->initFromExternal(pSourceZip, pSourceEntry); in add()
567 result = pEntry->addPadding(padding); in add()
582 pEntry->mLFH.write(mZipFp); in add()
605 ALOGW("copy of '%s' failed\n", pEntry->mCDE.mFileName); in add()
618 pEntry->setLFHOffset(lfhPosn); // sets mCDE.mLocalHeaderRelOffset in add()
627 mEntries.add(pEntry); in add()
629 *ppEntry = pEntry; in add()
630 pEntry = NULL; in add()
635 delete pEntry; in add()
875 status_t ZipFile::remove(ZipEntry* pEntry) in remove() argument
883 pEntry->setDeleted(); in remove()
916 ZipEntry* pEntry = mEntries[i]; in flush() local
917 pEntry->mCDE.write(mZipFp); in flush()
971 ZipEntry* pEntry = mEntries[i]; in crunchArchive() local
974 if (pEntry->getLFHOffset() != 0) { in crunchArchive()
987 span = nextOffset - pEntry->getLFHOffset(); in crunchArchive()
1001 if (pEntry->getDeleted()) { in crunchArchive()
1005 delete pEntry; in crunchArchive()
1015 result = filemove(mZipFp, pEntry->getLFHOffset() - adjust, in crunchArchive()
1016 pEntry->getLFHOffset(), span); in crunchArchive()
1023 pEntry->setLFHOffset(pEntry->getLFHOffset() - adjust); in crunchArchive()
1141 bool ZipFile::uncompress(const ZipEntry* pEntry, void* buf) const