Home
last modified time | relevance | path

Searched refs:fileLength (Results 1 – 5 of 5) 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", (long long int)fileLength, kFooterMinSize); in parseObbFile()
134 lseek64(fd, fileLength - kFooterTagSize, SEEK_SET); in parseObbFile()
151 if (footerSize > (size_t)fileLength - kFooterTagSize in parseObbFile()
154 footerSize, (long long int)fileLength); in parseObbFile()
165 off64_t fileOffset = fileLength - footerSize - kFooterTagSize; in parseObbFile()
DAsset.cpp389 off64_t fileLength; in openChunk() local
390 fileLength = lseek64(fd, 0, SEEK_END); in openChunk()
391 if (fileLength == (off64_t) -1) { in openChunk()
397 if ((off64_t) (offset + length) > fileLength) { in openChunk()
399 (long) offset, (long) length, (long) fileLength); in openChunk()
/frameworks/av/media/mtp/
DMtpServer.cpp772 int64_t fileLength; in doGetObject() local
774 int result = mDatabase->getObjectFilePath(handle, pathBuf, fileLength, format); in doGetObject()
785 mfr.length = fileLength; in doGetObject()
849 int64_t fileLength; in doGetPartialObject() local
851 int result = mDatabase->getObjectFilePath(handle, pathBuf, fileLength, format); in doGetPartialObject()
854 if (offset + length > (uint64_t)fileLength) in doGetPartialObject()
855 length = fileLength - offset; in doGetPartialObject()
1138 int64_t fileLength; in doDeleteObject() local
1139 int result = mDatabase->getObjectFilePath(handle, filePath, fileLength, format); in doDeleteObject()
1286 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()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
DExifInterface.java1034 long fileLength = file.length(); in rewriteExif() local
1035 if (fileLength < exifSize) { in rewriteExif()