Searched refs:kEOCDLen (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/tools/aapt/ |
D | ZipFile.cpp | 217 if (fileLength < EndOfCentralDir::kEOCDLen) { in readCentralDir() 1225 if (len < kEOCDLen) { in readBuf() 1228 kEOCDLen, len); in readBuf() 1247 if (kEOCDLen + mCommentLen > len) { in readBuf() 1249 kEOCDLen, mCommentLen, len); in readBuf() 1253 memcpy(mComment, buf + kEOCDLen, mCommentLen); in readBuf() 1264 unsigned char buf[kEOCDLen]; in write() 1275 if (fwrite(buf, 1, kEOCDLen, fp) != kEOCDLen) in write()
|
D | ZipFile.h | 203 kEOCDLen = 22, // EndOfCentralDir len, excl. comment enumerator 206 kMaxEOCDSearch = kMaxCommentLen + EndOfCentralDir::kEOCDLen,
|
/frameworks/base/libs/androidfw/ |
D | ZipFileRO.cpp | 50 #define kEOCDLen 22 macro 60 #define kMaxEOCDSearch (kMaxCommentLen + kEOCDLen) 138 if (mFileLength < kEOCDLen) { in open() 252 for (i = readAmount - kEOCDLen; i >= 0; i--) { in mapCentralDirectory() 297 if ((commentSize > (mFileLength - kEOCDLen)) in mapCentralDirectory() 298 || (eocdOffset > (mFileLength - kEOCDLen) - commentSize)) { in mapCentralDirectory()
|