Home
last modified time | relevance | path

Searched refs:fileLength (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/libs/utils/
DObbFile.cpp128 my_off64_t fileLength = my_lseek64(fd, 0, SEEK_END); in parseObbFile() local
130 if (fileLength < kFooterMinSize) { in parseObbFile()
131 if (fileLength < 0) { in parseObbFile()
134 LOGW("file is only %lld (less than %d minimum)\n", fileLength, kFooterMinSize); in parseObbFile()
143 my_lseek64(fd, fileLength - kFooterTagSize, SEEK_SET); in parseObbFile()
160 if (footerSize > (size_t)fileLength - kFooterTagSize in parseObbFile()
163 footerSize, fileLength); in parseObbFile()
174 my_off64_t fileOffset = fileLength - footerSize - kFooterTagSize; in parseObbFile()
DAsset.cpp366 off_t fileLength; in openChunk() local
367 fileLength = lseek(fd, 0, SEEK_END); in openChunk()
368 if (fileLength == (off_t) -1) { in openChunk()
374 if ((off_t) (offset + length) > fileLength) { in openChunk()
376 (long) offset, (long) length, (long) fileLength); in openChunk()
/frameworks/base/tools/aapt/
DZipFile.cpp208 off_t fileLength, seekStart; in readCentralDir() local
213 fileLength = ftell(mZipFp); in readCentralDir()
217 if (fileLength < EndOfCentralDir::kEOCDLen) { in readCentralDir()
218 LOGD("Length is %ld -- too small\n", (long)fileLength); in readCentralDir()
231 if (fileLength > EndOfCentralDir::kMaxEOCDSearch) { in readCentralDir()
232 seekStart = fileLength - EndOfCentralDir::kMaxEOCDSearch; in readCentralDir()
236 readAmount = (long) fileLength; in readCentralDir()