Home
last modified time | relevance | path

Searched refs:fileSize (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/native/opengl/libs/EGL/
DFileBlobCache.cpp72 size_t fileSize = statBuf.st_size; in FileBlobCache() local
73 if (fileSize > mMaxTotalSize * 2) { in FileBlobCache()
80 uint8_t* buf = reinterpret_cast<uint8_t*>(mmap(nullptr, fileSize, in FileBlobCache()
90 size_t cacheSize = fileSize - headerSize; in FileBlobCache()
107 munmap(buf, fileSize); in FileBlobCache()
112 munmap(buf, fileSize); in FileBlobCache()
145 size_t fileSize = headerSize + cacheSize; in writeToFile() local
147 uint8_t* buf = new uint8_t [fileSize]; in writeToFile()
171 if (write(fd, buf, fileSize) == -1) { in writeToFile()
/frameworks/ml/nn/driver/cache/nnCache/
DnnCache.cpp192 size_t fileSize = headerSize + cacheSize; in saveBlobCacheLocked() local
194 uint8_t* buf = new uint8_t [fileSize]; in saveBlobCacheLocked()
218 if (write(fd, buf, fileSize) == -1) { in saveBlobCacheLocked()
254 size_t fileSize = statBuf.st_size; in loadBlobCacheLocked() local
255 if (fileSize > mMaxTotalSize * 2) { in loadBlobCacheLocked()
262 uint8_t* buf = reinterpret_cast<uint8_t*>(mmap(NULL, fileSize, in loadBlobCacheLocked()
272 size_t cacheSize = fileSize - headerSize; in loadBlobCacheLocked()
289 munmap(buf, fileSize); in loadBlobCacheLocked()
294 munmap(buf, fileSize); in loadBlobCacheLocked()
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerFunctionalTest.java101 int fileSize = 1024; in testBinaryDownload() local
102 byte[] blobData = generateData(fileSize, DataType.BINARY); in testBinaryDownload()
114 int fileSize = 1024; in testTextDownload() local
115 byte[] blobData = generateData(fileSize, DataType.TEXT); in testTextDownload()
133 int fileSize = fileData.length; in verifyDownload() local
140 verifyFileSize(pfd, fileSize); in verifyDownload()
320 int fileSize = 1024; in testRemoveDownload() local
321 byte[] blobData = generateData(fileSize, DataType.BINARY); in testRemoveDownload()
340 int fileSize = 1024; in testSetTitle() local
341 byte[] blobData = generateData(fileSize, DataType.BINARY); in testSetTitle()
[all …]
DDownloadManagerStressTest.java123 long fileSize = 50000000L; // note: kept relatively small to not exceed /cache dir size in testDownloadLargeFile() local
124 Log.i(TAG, "creating a file of size: " + fileSize); in testDownloadLargeFile()
125 File largeFile = createFileOnSD(null, fileSize, DataType.TEXT, null); in testDownloadLargeFile()
126 Log.i(TAG, "DONE creating a file of size: " + fileSize); in testDownloadLargeFile()
DDownloadManagerBaseTest.java353 long fileSize = actual.getStatSize(); in verifyFileContents() local
355 assertTrue(fileSize <= Integer.MAX_VALUE); in verifyFileContents()
356 assertEquals(expected.length, fileSize); in verifyFileContents()
359 assertEquals(input.read(actualData), fileSize); in verifyFileContents() local
486 int fileSize = fileData.length; in verifyAndCleanupSingleFileDownload() local
494 verifyFileSize(pfd, fileSize); in verifyAndCleanupSingleFileDownload()
589 protected File createFileOnSD(String filename, long fileSize, DataType type, in createFileOnSD() argument
612 long remaining = fileSize; in createFileOnSD()
630 Log.i(TAG, "while creating " + fileSize + " file, " + in createFileOnSD()
/frameworks/base/core/java/android/util/apk/
DZipUtils.java66 long fileSize = zip.length(); in findZipEndOfCentralDirectoryRecord() local
67 if (fileSize < ZIP_EOCD_REC_MIN_SIZE) { in findZipEndOfCentralDirectoryRecord()
113 long fileSize = zip.length(); in findZipEndOfCentralDirectoryRecord() local
114 if (fileSize < ZIP_EOCD_REC_MIN_SIZE) { in findZipEndOfCentralDirectoryRecord()
119 maxCommentSize = (int) Math.min(maxCommentSize, fileSize - ZIP_EOCD_REC_MIN_SIZE); in findZipEndOfCentralDirectoryRecord()
123 long bufOffsetInFile = fileSize - buf.capacity(); in findZipEndOfCentralDirectoryRecord()
DVerityBuilder.java386 private static ByteBuffer generateApkVerityHeader(ByteBuffer buffer, long fileSize, in generateApkVerityHeader() argument
406 buffer.putLong(fileSize); // original file size in generateApkVerityHeader()
479 private static int[] calculateVerityLevelOffset(long fileSize) { in calculateVerityLevelOffset() argument
482 long levelDigestSize = divideRoundup(fileSize, CHUNK_SIZE_BYTES) * DIGEST_SIZE_BYTES; in calculateVerityLevelOffset()
488 fileSize = levelDigestSize; in calculateVerityLevelOffset()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpDeviceRecord.java58 static boolean isPartialReadSupported(@Nullable int[] supportedList, long fileSize) { in isPartialReadSupported() argument
62 if (0 <= fileSize && in isPartialReadSupported()
63 fileSize <= 0xffffffffL && in isPartialReadSupported()
DMtpDocumentsProvider.java291 long fileSize; in openDocument() local
293 fileSize = getFileSize(documentId); in openDocument()
295 fileSize = -1; in openDocument()
298 device.operationsSupported, fileSize)) { in openDocument()
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/include/
DMemoryFileSystem.h29 size_t fileSize; member
32 size_t getFileSize() const { return fileSize; } in getFileSize()
36 content.resize(size); fileSize = size; in setFileSize()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/
DInputStreamSource.java63 int fileSize = 0; in process() local
73 fileSize += bytesRead; in process()
82 mOutputFormat.setDimensions(fileSize); in process()
/frameworks/base/services/core/java/com/android/server/storage/
DFileCollector.java246 long fileSize = f.length(); in handleFile() local
250 result.audioSize += fileSize; in handleFile()
253 result.videosSize += fileSize; in handleFile()
256 result.imagesSize += fileSize; in handleFile()
259 result.miscSize += fileSize; in handleFile()
/frameworks/base/cmds/statsd/src/storage/
DStorageManager.h35 FileInfo(std::string name, bool isHistory, int fileSize, long fileAge) in FileInfo()
38 mFileSizeBytes(fileSize), in FileInfo()
DStorageManager.cpp607 int fileSize = 0; in trimToFit() local
610 fileSize = file.tellg(); in trimToFit()
612 totalFileSize += fileSize; in trimToFit()
614 fileNames.emplace_back(file_name, output.mIsHistory, fileSize, fileAge); in trimToFit()
661 int fileSize = file.tellg(); in printDirStats() local
663 dprintf(outFd, ", File Size: %d bytes", fileSize); in printDirStats()
664 totalFileSize += fileSize; in printDirStats()
/frameworks/base/media/java/android/media/
DMediaScannerClient.java24 public void scanFile(String path, long lastModified, long fileSize, in scanFile() argument
/frameworks/base/core/java/com/android/internal/os/
DFuseAppLoop.java157 final long fileSize = entry.callback.onGetSize();
160 native_replyLookup(mInstance, unique, inode, fileSize);
167 final long fileSize = entry.callback.onGetSize();
170 native_replyGetAttr(mInstance, unique, inode, fileSize);
/frameworks/base/core/java/com/android/internal/backup/
DIObbBackupService.aidl43 long fileSize, int type, in String path, long mode, long mtime, in restoreObbFile() argument
/frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/
DObbBackupService.java106 long fileSize, int type, String path, long mode, long mtime,
117 FullBackup.restoreFile(data, fileSize, type, -1, mtime, outFile);
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DFullBackupObbConnection.java112 long fileSize, int type, String path, long mode, long mtime, in restoreObbFile() argument
117 mService.restoreObbFile(pkgName, data, fileSize, type, path, mode, mtime, in restoreObbFile()
/frameworks/base/media/jni/
Dandroid_media_MediaScanner.cpp151 long long fileSize, bool isDirectory, bool noMedia) in scanFile() argument
154 path, lastModified, fileSize, isDirectory); in scanFile()
163 fileSize, isDirectory, noMedia); in scanFile()
/frameworks/base/services/core/jni/
Dcom_android_server_security_VerityUtils.cpp189 jbyteArray constructFsverityDescriptor(JNIEnv* env, jobject /* clazz */, jlong fileSize) { in constructFsverityDescriptor() argument
201 desc->orig_file_size = fileSize; in constructFsverityDescriptor()
/frameworks/av/media/libmedia/include/media/
Dmediascanner.h118 long long fileSize, bool isDirectory, bool noMedia) = 0;
/frameworks/av/include/media/
Dmediascanner.h118 long long fileSize, bool isDirectory, bool noMedia) = 0;
/frameworks/av/media/extractors/mp3/
DMP3Extractor.cpp351 off64_t fileSize; in MP3Extractor() local
352 if (mDataSource->getSize(&fileSize) == OK) { in MP3Extractor()
353 off64_t dataLength = fileSize - mFirstFramePos; in MP3Extractor()
/frameworks/base/libs/androidfw/
DBackupHelpers.cpp219 int fileSize; in write_update_file() local
225 fileSize = lseek(fd, 0, SEEK_END); in write_update_file()
232 bytesLeft = fileSize + sizeof(metadata); in write_update_file()
278 " You aren't doing proper locking!", realFilename, fileSize, fileSize-bytesLeft); in write_update_file()

12