/frameworks/native/opengl/libs/EGL/ |
D | FileBlobCache.cpp | 72 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/ |
D | nnCache.cpp | 192 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/ |
D | DownloadManagerFunctionalTest.java | 101 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 …]
|
D | DownloadManagerStressTest.java | 123 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()
|
D | DownloadManagerBaseTest.java | 353 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/ |
D | ZipUtils.java | 66 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()
|
D | VerityBuilder.java | 386 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/ |
D | MtpDeviceRecord.java | 58 static boolean isPartialReadSupported(@Nullable int[] supportedList, long fileSize) { in isPartialReadSupported() argument 62 if (0 <= fileSize && in isPartialReadSupported() 63 fileSize <= 0xffffffffL && in isPartialReadSupported()
|
D | MtpDocumentsProvider.java | 291 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/ |
D | MemoryFileSystem.h | 29 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/ |
D | InputStreamSource.java | 63 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/ |
D | FileCollector.java | 246 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/ |
D | StorageManager.h | 35 FileInfo(std::string name, bool isHistory, int fileSize, long fileAge) in FileInfo() 38 mFileSizeBytes(fileSize), in FileInfo()
|
D | StorageManager.cpp | 607 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/ |
D | MediaScannerClient.java | 24 public void scanFile(String path, long lastModified, long fileSize, in scanFile() argument
|
/frameworks/base/core/java/com/android/internal/os/ |
D | FuseAppLoop.java | 157 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/ |
D | IObbBackupService.aidl | 43 long fileSize, int type, in String path, long mode, long mtime, in restoreObbFile() argument
|
/frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/ |
D | ObbBackupService.java | 106 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/ |
D | FullBackupObbConnection.java | 112 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/ |
D | android_media_MediaScanner.cpp | 151 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/ |
D | com_android_server_security_VerityUtils.cpp | 189 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/ |
D | mediascanner.h | 118 long long fileSize, bool isDirectory, bool noMedia) = 0;
|
/frameworks/av/include/media/ |
D | mediascanner.h | 118 long long fileSize, bool isDirectory, bool noMedia) = 0;
|
/frameworks/av/media/extractors/mp3/ |
D | MP3Extractor.cpp | 351 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/ |
D | BackupHelpers.cpp | 219 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()
|