Searched refs:fileLength (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/libs/androidfw/ |
D | ObbFile.cpp | 119 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()
|
D | Asset.cpp | 436 off64_t fileLength; in openChunk() local 437 fileLength = lseek64(fd, 0, SEEK_END); in openChunk() 438 if (fileLength == (off64_t) -1) { in openChunk() 444 if ((off64_t) (offset + length) > fileLength) { in openChunk() 446 (long) offset, (long) length, (long) fileLength); in openChunk()
|
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests2/src/com/android/framework/multidexlegacytestservices/test2/ |
D | ServicesTests.java | 331 long fileLength = zip.length(); in tamperAllExtractedZips() local 332 Assert.assertTrue(fileLength > ENDHDR); in tamperAllExtractedZips() 337 while (index < fileLength) { in tamperAllExtractedZips() 338 int length = (int) Math.min(zeros.length, fileLength - index); in tamperAllExtractedZips() 354 long fileLength = odex.length(); in tamperAllOdex() local 355 Assert.assertTrue(fileLength > zeros.length + savedSizeForOdexHeader); in tamperAllOdex()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowTracingTest.java | 160 int fileLength; in tracing_endsUpInFile() local 162 fileLength = is.read(file); in tracing_endsUpInFile() 163 assertTrue(containsBytes(file, fileLength, in tracing_endsUpInFile() 165 assertTrue(containsBytes(file, fileLength, in tracing_endsUpInFile()
|
/frameworks/av/media/mtp/ |
D | MtpServer.cpp | 782 int64_t fileLength; in doGetObject() local 784 int result = mDatabase->getObjectFilePath(handle, pathBuf, fileLength, format); in doGetObject() 797 mfr.length = fileLength; in doGetObject() 868 int64_t fileLength; in doGetPartialObject() local 870 int result = mDatabase->getObjectFilePath(handle, pathBuf, fileLength, format); in doGetPartialObject() 873 if (offset + length > (uint64_t)fileLength) in doGetPartialObject() 874 length = fileLength - offset; in doGetPartialObject() 1024 int64_t fileLength; in doMoveObject() local 1030 result = mDatabase->getObjectFilePath(objectHandle, fromPath, fileLength, format); in doMoveObject() 1102 int64_t fileLength; in doCopyObject() local [all …]
|
/frameworks/base/tools/aapt/ |
D | ZipFile.cpp | 208 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/ |
D | ExifInterface.java | 1034 long fileLength = file.length(); in rewriteExif() local 1035 if (fileLength < exifSize) { in rewriteExif()
|