Lines Matching refs:ZipEntry

137 android::ZipEntry* ZipFile::getEntryByIndex(int idx) const  in getEntryByIndex()
148 android::ZipEntry* ZipFile::getEntryByName(const char* fileName) const in getEntryByName()
163 ZipEntry* pEntry = mEntries[idx]; in getEntryByName()
256 ZipEntry::getLongLE(&buf[i]) == EndOfCentralDir::kSignature) in readCentralDir()
311 ZipEntry* pEntry = new ZipEntry; in readCentralDir()
334 if (ZipEntry::getLongLE(checkBuf) != EndOfCentralDir::kSignature) { in readCentralDir()
361 const char* storageName, int compressionMethod, ZipEntry** ppEntry) in addCommon()
363 ZipEntry* pEntry = NULL; in addCommon()
373 assert(compressionMethod == ZipEntry::kCompressDeflated || in addCommon()
374 compressionMethod == ZipEntry::kCompressStored); in addCommon()
395 pEntry = new ZipEntry; in addCommon()
415 if (compressionMethod == ZipEntry::kCompressDeflated) { in addCommon()
437 compressionMethod = ZipEntry::kCompressStored; in addCommon()
444 if (compressionMethod == ZipEntry::kCompressStored) { in addCommon()
512 status_t ZipFile::add(const ZipFile* pSourceZip, const ZipEntry* pSourceEntry, in add()
513 int padding, ZipEntry** ppEntry) in add()
515 ZipEntry* pEntry = NULL; in add()
531 pEntry = new ZipEntry; in add()
573 if ((pSourceEntry->mLFH.mGPBitFlag & ZipEntry::kUsesDataDescr) != 0) in add()
574 copyLen += ZipEntry::kDataDescriptorLen; in add()
619 status_t ZipFile::addRecompress(const ZipFile* pSourceZip, const ZipEntry* pSourceEntry, in addRecompress()
620 ZipEntry** ppEntry) in addRecompress()
622 ZipEntry* pEntry = NULL; in addRecompress()
638 pEntry = new ZipEntry; in addRecompress()
693 pSourceEntry->getCRC32(), ZipEntry::kCompressDeflated); in addRecompress()
698 if ((pSourceEntry->mLFH.mGPBitFlag & ZipEntry::kUsesDataDescr) != 0) in addRecompress()
699 copyLen += ZipEntry::kDataDescriptorLen; in addRecompress()
926 status_t ZipFile::remove(ZipEntry* pEntry) in remove()
967 ZipEntry* pEntry = mEntries[i]; in flush()
1022 ZipEntry* pEntry = mEntries[i]; in crunchArchive()
1040 assert(span >= ZipEntry::LocalFileHeader::kLFHLen); in crunchArchive()
1192 bool ZipFile::uncompress(const ZipEntry* pEntry, void* buf) const
1251 void* ZipFile::uncompress(const ZipEntry* entry) const in uncompress()
1270 case ZipEntry::kCompressStored: { in uncompress()
1291 case ZipEntry::kCompressDeflated: { in uncompress()
1335 if (ZipEntry::getLongLE(&buf[0x00]) != kSignature) in readBuf()
1338 mDiskNumber = ZipEntry::getShortLE(&buf[0x04]); in readBuf()
1339 mDiskWithCentralDir = ZipEntry::getShortLE(&buf[0x06]); in readBuf()
1340 mNumEntries = ZipEntry::getShortLE(&buf[0x08]); in readBuf()
1341 mTotalNumEntries = ZipEntry::getShortLE(&buf[0x0a]); in readBuf()
1342 mCentralDirSize = ZipEntry::getLongLE(&buf[0x0c]); in readBuf()
1343 mCentralDirOffset = ZipEntry::getLongLE(&buf[0x10]); in readBuf()
1344 mCommentLen = ZipEntry::getShortLE(&buf[0x14]); in readBuf()
1368 ZipEntry::putLongLE(&buf[0x00], kSignature); in write()
1369 ZipEntry::putShortLE(&buf[0x04], mDiskNumber); in write()
1370 ZipEntry::putShortLE(&buf[0x06], mDiskWithCentralDir); in write()
1371 ZipEntry::putShortLE(&buf[0x08], mNumEntries); in write()
1372 ZipEntry::putShortLE(&buf[0x0a], mTotalNumEntries); in write()
1373 ZipEntry::putLongLE(&buf[0x0c], mCentralDirSize); in write()
1374 ZipEntry::putLongLE(&buf[0x10], mCentralDirOffset); in write()
1375 ZipEntry::putShortLE(&buf[0x14], mCommentLen); in write()