/aosp12/build/make/tools/ziptime/ |
H A D | ZipFile.cpp | 77 off_t fileLength, seekStart; in rewriteCentralDir() local 82 fileLength = ftell(mZipFp); in rewriteCentralDir() 86 if (fileLength < EndOfCentralDir::kEOCDLen) { in rewriteCentralDir() 87 LOG("Length is %ld -- too small\n", (long)fileLength); in rewriteCentralDir() 100 if (fileLength > EndOfCentralDir::kMaxEOCDSearch) { in rewriteCentralDir() 101 seekStart = fileLength - EndOfCentralDir::kMaxEOCDSearch; in rewriteCentralDir() 105 readAmount = (long) fileLength; in rewriteCentralDir()
|
/aosp12/frameworks/base/libs/androidfw/ |
H A 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()
|
H A D | Asset.cpp | 418 off64_t fileLength; in openChunk() local 419 fileLength = lseek64(fd, 0, SEEK_END); in openChunk() 420 if (fileLength == (off64_t) -1) { in openChunk() 426 if ((off64_t) (offset + length) > fileLength) { in openChunk() 428 (long) offset, (long) length, (long) fileLength); in openChunk()
|
/aosp12/packages/apps/Test/connectivity/PMC/src/com/android/pmc/ |
H A D | WifiDownloadReceiver.java | 117 int fileLength = connection.getContentLength(); in doInBackground() local 119 if (fileLength != bytesRead) { in doInBackground() 120 return "Expected file of size " + fileLength + " but only received " in doInBackground() 123 Log.d(PMCMainActivity.TAG, "Downloaded file size " + fileLength); in doInBackground() 125 mBytesCount += fileLength; in doInBackground()
|
/aosp12/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests2/src/com/android/framework/multidexlegacytestservices/test2/ |
H A 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()
|
/aosp12/packages/apps/Camera2/src/com/android/camera/session/ |
H A D | StackSaverImpl.java | 74 long fileLength = outputImagePath.length(); in saveStackedImage() local 75 if (fileLength > 0) { in saveStackedImage() 77 captureTimeEpoch, mGpsLocation, imageOrientation, fileLength, bitmap, in saveStackedImage()
|
/aosp12/frameworks/av/media/mtp/ |
H A D | MtpServer.cpp | 784 int64_t fileLength; in doGetObject() local 808 fileLength = finalsize; in doGetObject() 828 mfr.length = fileLength; in doGetObject() 896 int64_t fileLength; in doGetPartialObject() local 901 if (offset + length > (uint64_t)fileLength) in doGetPartialObject() 902 length = fileLength - offset; in doGetPartialObject() 1068 int64_t fileLength; in doMoveObject() local 1146 int64_t fileLength; in doCopyObject() local 1170 if ((uint64_t) fileLength > storage->getFreeSpace()) in doCopyObject() 1323 int64_t fileLength; in doDeleteObject() local [all …]
|
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A 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()
|
/aosp12/packages/apps/Camera2/tests/src/com/android/camera/functional/ |
H A D | ImageCaptureIntentTest.java | 86 int fileLength = (int) file.length(); in testExtraOutput() local 87 assertTrue(fileLength > 0); in testExtraOutput() 88 jpegData = new byte[fileLength]; in testExtraOutput()
|
/aosp12/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/ |
H A D | ImageCaptureIntentTest.java | 91 int fileLength = (int) file.length(); in testExtraOutput() local 92 assertTrue(fileLength > 0); in testExtraOutput() 93 jpegData = new byte[fileLength]; in testExtraOutput()
|
/aosp12/frameworks/base/tools/aapt/ |
H A 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()
|
/aosp12/build/make/tools/zipalign/ |
H A D | ZipFile.cpp | 210 off_t fileLength, seekStart; in readCentralDir() local 215 fileLength = ftell(mZipFp); in readCentralDir() 219 if (fileLength < EndOfCentralDir::kEOCDLen) { in readCentralDir() 220 ALOGD("Length is %ld -- too small\n", (long)fileLength); in readCentralDir() 233 if (fileLength > EndOfCentralDir::kMaxEOCDSearch) { in readCentralDir() 234 seekStart = fileLength - EndOfCentralDir::kMaxEOCDSearch; in readCentralDir() 238 readAmount = (long) fileLength; in readCentralDir()
|
/aosp12/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | ExifInterface.java | 1034 long fileLength = file.length(); in rewriteExif() local 1035 if (fileLength < exifSize) { in rewriteExif()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/util/exif/ |
H A D | ExifInterface.java | 1034 long fileLength = file.length(); in rewriteExif() local 1035 if (fileLength < exifSize) { in rewriteExif()
|
/aosp12/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
H A D | ExifInterface.java | 1034 long fileLength = file.length(); in rewriteExif() local 1035 if (fileLength < exifSize) { in rewriteExif()
|
/aosp12/packages/apps/Camera2/src/com/android/camera/exif/ |
H A D | ExifInterface.java | 1019 long fileLength = file.length(); in rewriteExif() local 1020 if (fileLength < exifSize) { in rewriteExif()
|