Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/
DObbFile.cpp119 off64_t fileLength = lseek64(fd, 0, SEEK_END); in parseObbFile() local
121 if (fileLength < kFooterMinSize) { in parseObbFile()
122 if (fileLength < 0) { in parseObbFile()
125 ALOGW("file is only %lld (less than %d minimum)\n", fileLength, kFooterMinSize); in parseObbFile()
134 lseek64(fd, fileLength - kFooterTagSize, SEEK_SET); in parseObbFile()
151 if (footerSize > (size_t)fileLength - kFooterTagSize in parseObbFile()
154 footerSize, fileLength); in parseObbFile()
165 off64_t fileOffset = fileLength - footerSize - kFooterTagSize; in parseObbFile()
DAsset.cpp383 off64_t fileLength; in openChunk() local
384 fileLength = lseek64(fd, 0, SEEK_END); in openChunk()
385 if (fileLength == (off64_t) -1) { in openChunk()
391 if ((off64_t) (offset + length) > fileLength) { in openChunk()
393 (long) offset, (long) length, (long) fileLength); in openChunk()
/frameworks/av/media/mtp/
DMtpServer.cpp720 int64_t fileLength; in doGetObject() local
722 int result = mDatabase->getObjectFilePath(handle, pathBuf, fileLength, format); in doGetObject()
733 mfr.length = fileLength; in doGetObject()
783 int64_t fileLength; in doGetPartialObject() local
785 int result = mDatabase->getObjectFilePath(handle, pathBuf, fileLength, format); in doGetPartialObject()
788 if (offset + length > fileLength) in doGetPartialObject()
789 length = fileLength - offset; in doGetPartialObject()
1052 int64_t fileLength; in doDeleteObject() local
1053 int result = mDatabase->getObjectFilePath(handle, filePath, fileLength, format); in doDeleteObject()
1181 int64_t fileLength; in doBeginEditObject() local
[all …]
/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 ALOGD("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()