Lines Matching refs:ZipEntry
137 ZipEntry* ZipFile::getEntryByIndex(int idx) const in getEntryByIndex()
148 ZipEntry* ZipFile::getEntryByName(const char* fileName) const in getEntryByName()
163 ZipEntry* pEntry = mEntries[idx]; in getEntryByName()
260 ZipEntry::getLongLE(&buf[i]) == EndOfCentralDir::kSignature) in readCentralDir()
315 ZipEntry* pEntry = new ZipEntry; in readCentralDir()
342 if (ZipEntry::getLongLE(checkBuf) != EndOfCentralDir::kSignature) { in readCentralDir()
369 const char* storageName, int compressionMethod, ZipEntry** ppEntry) in addCommon()
371 ZipEntry* pEntry = NULL; in addCommon()
381 assert(compressionMethod == ZipEntry::kCompressDeflated || in addCommon()
382 compressionMethod == ZipEntry::kCompressStored); in addCommon()
403 pEntry = new ZipEntry; in addCommon()
423 if (compressionMethod == ZipEntry::kCompressDeflated) { in addCommon()
445 compressionMethod = ZipEntry::kCompressStored; in addCommon()
452 if (compressionMethod == ZipEntry::kCompressStored) { in addCommon()
519 status_t ZipFile::alignEntry(android::ZipEntry* pEntry, uint32_t alignTo){ in alignEntry()
526 android::ZipEntry::LocalFileHeader::kLFHLen + in alignEntry()
546 status_t ZipFile::add(const ZipFile* pSourceZip, const ZipEntry* pSourceEntry, in add()
547 int alignTo, ZipEntry** ppEntry) in add()
549 ZipEntry* pEntry = NULL; in add()
565 pEntry = new ZipEntry; in add()
606 if ((pSourceEntry->mLFH.mGPBitFlag & ZipEntry::kUsesDataDescr) != 0) in add()
607 copyLen += ZipEntry::kDataDescriptorLen; in add()
652 status_t ZipFile::addRecompress(const ZipFile* pSourceZip, const ZipEntry* pSourceEntry, in addRecompress()
653 ZipEntry** ppEntry) in addRecompress()
655 ZipEntry* pEntry = NULL; in addRecompress()
671 pEntry = new ZipEntry; in addRecompress()
726 pSourceEntry->getCRC32(), ZipEntry::kCompressDeflated); in addRecompress()
731 if ((pSourceEntry->mLFH.mGPBitFlag & ZipEntry::kUsesDataDescr) != 0) in addRecompress()
732 copyLen += ZipEntry::kDataDescriptorLen; in addRecompress()
965 status_t ZipFile::remove(ZipEntry* pEntry) in remove()
1006 ZipEntry* pEntry = mEntries[i]; in flush()
1061 ZipEntry* pEntry = mEntries[i]; in crunchArchive()
1079 assert(span >= ZipEntry::LocalFileHeader::kLFHLen); in crunchArchive()
1238 bool ZipFile::uncompress(const ZipEntry* pEntry, void* buf) const
1297 void* ZipFile::uncompress(const ZipEntry* entry) const in uncompress()
1316 case ZipEntry::kCompressStored: { in uncompress()
1337 case ZipEntry::kCompressDeflated: { in uncompress()
1381 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) in readBuf()
1384 mDiskNumber = ZipEntry::getShortLE(&buf[0x04]); in readBuf()
1385 mDiskWithCentralDir = ZipEntry::getShortLE(&buf[0x06]); in readBuf()
1386 mNumEntries = ZipEntry::getShortLE(&buf[0x08]); in readBuf()
1387 mTotalNumEntries = ZipEntry::getShortLE(&buf[0x0a]); in readBuf()
1388 mCentralDirSize = ZipEntry::getLongLE(&buf[0x0c]); in readBuf()
1389 mCentralDirOffset = ZipEntry::getLongLE(&buf[0x10]); in readBuf()
1390 mCommentLen = ZipEntry::getShortLE(&buf[0x14]); in readBuf()
1414 ZipEntry::putLongLE(&buf[0x00], kSignature); in write()
1415 ZipEntry::putShortLE(&buf[0x04], mDiskNumber); in write()
1416 ZipEntry::putShortLE(&buf[0x06], mDiskWithCentralDir); in write()
1417 ZipEntry::putShortLE(&buf[0x08], mNumEntries); in write()
1418 ZipEntry::putShortLE(&buf[0x0a], mTotalNumEntries); in write()
1419 ZipEntry::putLongLE(&buf[0x0c], mCentralDirSize); in write()
1420 ZipEntry::putLongLE(&buf[0x10], mCentralDirOffset); in write()
1421 ZipEntry::putShortLE(&buf[0x14], mCommentLen); in write()