Home
last modified time | relevance | path

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

/packages/modules/adb/client/
Dincremental_utils.cpp44 Size verity_tree_blocks_for_file(Size fileSize) { in verity_tree_blocks_for_file() argument
45 if (fileSize == 0) { in verity_tree_blocks_for_file()
53 auto block_count = 1 + (fileSize - 1) / kBlockSize; in verity_tree_blocks_for_file()
62 Size verity_tree_size_for_file(Size fileSize) { in verity_tree_size_for_file() argument
63 return verity_tree_blocks_for_file(fileSize) * kBlockSize; in verity_tree_size_for_file()
164 static off64_t CentralDirOffset(borrowed_fd fd, Size fileSize) { in CentralDirOffset() argument
172 off64_t maxEocdOffset = fileSize - kZipEocdRecMinSize; in CentralDirOffset()
176 for (int16_t commentLen = 0; commentLen < fileSize; ++commentLen) { in CentralDirOffset()
199 static off64_t SignerBlockOffset(borrowed_fd fd, Size fileSize) { in SignerBlockOffset() argument
205 off64_t cdOffset = CentralDirOffset(fd, fileSize); in SignerBlockOffset()
[all …]
Dincremental_utils.h41 Size fileSize);
43 Size verity_tree_blocks_for_file(Size fileSize);
44 Size verity_tree_size_for_file(Size fileSize);
/packages/modules/NeuralNetworks/driver/cache/nnCache/
DnnCache.cpp188 size_t fileSize = headerSize + cacheSize; in saveBlobCacheLocked() local
190 uint8_t* buf = new uint8_t[fileSize]; in saveBlobCacheLocked()
212 if (write(fd, buf, fileSize) == -1) { in saveBlobCacheLocked()
247 size_t fileSize = statBuf.st_size; in loadBlobCacheLocked() local
248 if (fileSize > mMaxTotalSize * 2) { in loadBlobCacheLocked()
255 reinterpret_cast<uint8_t*>(mmap(NULL, fileSize, PROT_READ, MAP_PRIVATE, fd, 0)); in loadBlobCacheLocked()
263 size_t cacheSize = fileSize - headerSize; in loadBlobCacheLocked()
279 munmap(buf, fileSize); in loadBlobCacheLocked()
284 munmap(buf, fileSize); in loadBlobCacheLocked()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DWordListMetadata.java56 final String description, final long lastUpdate, final long fileSize, in WordListMetadata() argument
65 mFileSize = fileSize; in WordListMetadata()
87 final Long fileSize = values.getAsLong(MetadataDbHelper.FILESIZE_COLUMN); in createFromContentValues() local
101 || null == fileSize in createFromContentValues()
111 return new WordListMetadata(id, type, description, lastUpdate, fileSize, rawChecksum, in createFromContentValues()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalMediaItem.java39 public long fileSize; field in LocalMediaItem
96 if (fileSize > 0) details.addDetail(MediaDetails.INDEX_SIZE, fileSize); in getDetails()
107 return fileSize; in getSize()
DLocalImage.java145 fileSize = cursor.getLong(INDEX_SIZE); in loadFromCursor()
167 fileSize = uh.update(fileSize, cursor.getLong(INDEX_SIZE)); in updateFromCursor()
291 fileSize = new File(filePath).length(); in rotate()
292 values.put(Images.Media.SIZE, fileSize); in rotate()
DLocalVideo.java113 fileSize = cursor.getLong(INDEX_SIZE); in loadFromCursor()
149 fileSize = uh.update(fileSize, cursor.getLong(INDEX_SIZE)); in updateFromCursor()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dmmapped_buffer.cpp62 const int fileSize = FileUtils::getFileSize(path); in openBuffer() local
63 if (fileSize == -1) { in openBuffer()
65 } else if (fileSize == 0) { in openBuffer()
68 return openBuffer(path, 0 /* bufferOffset */, fileSize, isUpdatable); in openBuffer()
/packages/services/Mtp/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.java295 long fileSize; in openDocument() local
297 fileSize = getFileSize(documentId); in openDocument()
299 fileSize = -1; in openDocument()
302 device.operationsSupported, fileSize)) { in openDocument()
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/
DUpdateParser.java63 long fileSize = entry.getCompressedSize(); in parse() local
74 payloadSize = fileSize; in parse()
83 payloadOffset += fileSize; in parse()
/packages/modules/StatsD/statsd/src/storage/
DStorageManager.cpp712 int fileSize = 0; in trimToFit() local
715 fileSize = file.tellg(); in trimToFit()
717 totalFileSize += fileSize; in trimToFit()
719 fileNames.emplace_back(file_name, output.mIsHistory, fileSize, fileAge); in trimToFit()
766 int fileSize = file.tellg(); in printDirStats() local
768 dprintf(outFd, ", File Size: %d bytes", fileSize); in printDirStats()
769 totalFileSize += fileSize; in printDirStats()
DStorageManager.h35 FileInfo(std::string name, bool isHistory, int fileSize, long fileAge) in FileInfo()
38 mFileSizeBytes(fileSize), in FileInfo()
/packages/modules/adb/fastdeploy/deployagent/src/com/android/fastdeploy/
DApkArchive.java99 final long fileSize = mChannel.size(); in findEndOfCDRecord() local
100 int sizeToRead = Math.toIntExact(Math.min(fileSize, EOCD_MAX_SIZE)); in findEndOfCDRecord()
101 final long readOffset = fileSize - sizeToRead; in findEndOfCDRecord()
/packages/apps/Messaging/src/com/android/messaging/util/
DGifTranscoder.java71 public static long estimateFileSizeAfterTranscode(long fileSize) { in estimateFileSizeAfterTranscode() argument
75 return (long) (fileSize * 0.35f); in estimateFileSizeAfterTranscode()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DContactAggregator2.java796 final int fileSize; field in ContactAggregator2.PhotoEntry
798 private PhotoEntry(int pixelCount, int fileSize) { in PhotoEntry() argument
800 this.fileSize = fileSize; in PhotoEntry()
809 return pe.fileSize - fileSize; in compareTo()
DAbstractContactAggregator.java1706 final int fileSize; field in AbstractContactAggregator.PhotoEntry
1708 private PhotoEntry(int pixelCount, int fileSize) { in PhotoEntry() argument
1710 this.fileSize = fileSize; in PhotoEntry()
1719 return pe.fileSize - fileSize; in compareTo()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiMonitorTest.java244 int fileSize = 0; in testBroadcastIconDoneEvent() local
246 WLAN_IFACE_NAME, new IconEvent(bssid, fileName, fileSize, null)); in testBroadcastIconDoneEvent()
254 assertEquals(fileSize, ((IconEvent) messageCaptor.getValue().obj).getSize()); in testBroadcastIconDoneEvent()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DStubProvider.java230 final long fileSize = document.file.length(); in deleteDocument() local
234 document.rootInfo.size -= fileSize; in deleteDocument()