Home
last modified time | relevance | path

Searched refs:readAmount (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/libs/androidfw/
DZipFileRO.cpp179 ssize_t readAmount = kMaxEOCDSearch; in mapCentralDirectory() local
180 if (readAmount > (ssize_t) mFileLength) in mapCentralDirectory()
181 readAmount = mFileLength; in mapCentralDirectory()
183 if (readAmount < kEOCDSize) { in mapCentralDirectory()
188 unsigned char* scanBuf = (unsigned char*) malloc(readAmount); in mapCentralDirectory()
230 off64_t searchStart = mFileLength - readAmount; in mapCentralDirectory()
237 actual = TEMP_FAILURE_RETRY(read(mFd, scanBuf, readAmount)); in mapCentralDirectory()
238 if (actual != (ssize_t) readAmount) { in mapCentralDirectory()
240 (ZD_TYPE) actual, (ZD_TYPE) readAmount, strerror(errno)); in mapCentralDirectory()
252 for (i = readAmount - kEOCDLen; i >= 0; i--) { in mapCentralDirectory()
/frameworks/base/tools/aapt/
DZipFile.cpp209 long readAmount; in readCentralDir() local
233 readAmount = EndOfCentralDir::kMaxEOCDSearch; in readCentralDir()
236 readAmount = (long) fileLength; in readCentralDir()
245 if (fread(buf, 1, readAmount, mZipFp) != (size_t) readAmount) { in readCentralDir()
246 ALOGD("short file? wanted %ld\n", readAmount); in readCentralDir()
252 for (i = readAmount - 4; i >= 0; i--) { in readCentralDir()
267 result = mEOCD.readBuf(buf + i, readAmount - i); in readCentralDir()
269 ALOGD("Failure reading %ld bytes of EOCD values", readAmount - i); in readCentralDir()