Home
last modified time | relevance | path

Searched refs:cacheSize (Results 1 – 25 of 29) sorted by relevance

12

/packages/modules/NeuralNetworks/driver/cache/nnCache/
DnnCache.cpp165 size_t cacheSize = mBlobCache->getFlattenedSize(); in saveBlobCacheLocked() local
189 size_t fileSize = headerSize + cacheSize; in saveBlobCacheLocked()
199 int err = mBlobCache->flatten(buf + headerSize, cacheSize); in saveBlobCacheLocked()
211 *crc = crc32c(buf + headerSize, cacheSize); in saveBlobCacheLocked()
264 size_t cacheSize = fileSize - headerSize; in loadBlobCacheLocked() local
271 if (crc32c(buf + headerSize, cacheSize) != *crc) { in loadBlobCacheLocked()
277 int err = mBlobCache->unflatten(buf + headerSize, cacheSize); in loadBlobCacheLocked()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/
DImagePreviewImageLoader.kt63 cacheSize: Int, in <lambda>()
74 @PreviewCacheSize cacheSize: Int, in <lambda>()
86 cacheSize, in <lambda>()
93 cacheSize: Int, in <lambda>()
95 ) : this(scope, thumbnailSize, contentResolver, cacheSize, Semaphore(maxSimultaneousRequests)) in <lambda>()
100 @GuardedBy("lock") private val cache = LruCache<Uri, RequestRecord>(cacheSize) in <lambda>()
DCachingImagePreviewImageLoader.kt57 @PreviewCacheSize cacheSize: Int, in <lambda>()
65 maxSize = cacheSize, in <lambda>()
DImageLoaderModule.kt46 @Provides @PreviewCacheSize fun cacheSize() = 16 in imageLoader() method
DPreviewViewModel.kt62 cacheSize = 16 in <lambda>()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DClearCachedDataPreference.java105 final long cacheSize = getAllAppsCacheSize(); in refresh() local
108 Formatter.formatFileSize(context, cacheSize))); in refresh()
109 setEnabled(!mClearingCache && cacheSize > 0); in refresh()
214 long cacheSize = 0; in getAllAppsCacheSize() local
216 cacheSize += app.cacheSize + app.externalCacheSize; in getAllAppsCacheSize()
218 return cacheSize; in getAllAppsCacheSize()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStorageSizesController.java84 long cacheSize = (mDataCleared || mCachedCleared) ? 0 : mLastResult.getCacheBytes(); in updateUi() local
85 if (mLastCacheSize != cacheSize) { in updateUi()
86 mLastCacheSize = cacheSize; in updateUi()
87 mCacheSize.setSummary(getSizeStr(context, cacheSize)); in updateUi()
90 long totalSize = codeSize + dataSize + cacheSize; in updateUi()
DAppStorageSettings.java568 long cacheSize = result.getCacheBytes();
569 long dataSize = result.getDataBytes() - cacheSize;
577 if (cacheSize <= 0 || mCacheCleared) {
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/
DImagePreviewImageLoaderTest.kt78 cacheSize = 1,
120 cacheSize = 1, in invoke_overlappedRequests_Deduplicate()
162 cacheSize = 1, in invoke_onClosedImageLoaderScope_throwsCancellationException()
178 cacheSize = 1, in invoke_imageLoaderScopeClosedMidflight_throwsCancellationException()
198 cacheSize = 1, in invoke_multipleCallsWithDifferentCacheInstructions_cachingPrevails()
243 cacheSize = 1, in invoke_semaphoreGuardsContentResolverCalls()
281 cacheSize = 1, in invoke_semaphoreIsReleasedAfterContentResolverFailure()
322 cacheSize = 1, in invoke_multipleSimultaneousCalls_limitOnNumberOfSimultaneousOutgoingCallsIsRespected()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DAlbumSetDataLoader.java77 public AlbumSetDataLoader(AbstractGalleryActivity activity, MediaSet albumSet, int cacheSize) { in AlbumSetDataLoader() argument
79 mCoverItem = new MediaItem[cacheSize]; in AlbumSetDataLoader()
80 mData = new MediaSet[cacheSize]; in AlbumSetDataLoader()
81 mTotalCount = new int[cacheSize]; in AlbumSetDataLoader()
82 mItemVersion = new long[cacheSize]; in AlbumSetDataLoader()
83 mSetVersion = new long[cacheSize]; in AlbumSetDataLoader()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/
DClearCachePreferenceController.java57 mAppEntry.cacheSize + mAppEntry.externalCacheSize)); in update()
58 mPreferenceCompat.setEnabled(!mClearingCache && mAppEntry.cacheSize > 0); in update()
DApplicationsState.java545 legacy.cacheSize = Math.min(stats.getCacheBytes(), cacheQuota); in requestSize()
571 sum += mAppEntries.get(i).cacheSize; in sumCacheSizes()
756 return ps.codeSize + ps.dataSize - ps.cacheSize; in getTotalInternalSize()
1359 legacy.cacheSize = stats.getCacheBytes(); in handleMessage()
1438 entry.cacheSize != stats.cacheSize ||
1445 entry.cacheSize = stats.cacheSize;
1584 public long cacheSize; field in ApplicationsState.SizeInfo
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DTaskThumbnailCache.java106 private TaskThumbnailCache(Context context, Executor bgExecutor, int cacheSize) { in TaskThumbnailCache() argument
108 enableGridOnlyOverview() ? new TaskKeyByLastActiveTimeCache<>(cacheSize) in TaskThumbnailCache()
109 : new TaskKeyLruCache<>(cacheSize)); in TaskThumbnailCache()
DTaskIconCache.java85 int cacheSize = res.getInteger(R.integer.recentsIconCacheSize); in TaskIconCache() local
87 mIconCache = new TaskKeyLruCache<>(cacheSize); in TaskIconCache()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/
DStorageMeasurement.java53 public long cacheSize; field in StorageMeasurement.MeasurementDetails
87 + " cacheSize: " + cacheSize + " mediaSize: " + mediaSize in toString()
223 details.cacheSize += stats.getCacheBytes(); in measureExactStorage()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/icons/
DCachingTargetDataLoader.kt35 private val cacheSize: Int = 100, in <lambda>() constant in com.android.intentresolver.icons.CachingTargetDataLoader
77 perProfileIconCache.getOrPut(userHandle) { IconCache(cacheSize) } in <lambda>()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DClearCachePreference.java61 : Formatter.formatFileSize(context, mEntry.cacheSize + mEntry.externalCacheSize)); in refresh()
62 setEnabled(!mClearingCache && mEntry.cacheSize > 0); in refresh()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DTaskKeyByLastActiveTimeCache.java145 public synchronized void updateCacheSizeAndRemoveExcess(int cacheSize) { in updateCacheSizeAndRemoveExcess() argument
146 mMaxSize.compareAndSet(mMaxSize.get(), cacheSize); in updateCacheSizeAndRemoveExcess() local
DTaskKeyCache.java63 default void updateCacheSizeAndRemoveExcess(int cacheSize) { } in updateCacheSizeAndRemoveExcess() argument
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/
DStorageAsyncLoaderTest.java213 private ApplicationInfo addPackage(String packageName, long cacheSize, long codeSize, in addPackage() argument
218 when(storageStats.getDataBytes()).thenReturn(dataSize + cacheSize); in addPackage()
219 when(storageStats.getCacheBytes()).thenReturn(cacheSize); in addPackage()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DStorageApplicationActionButtonsPreferenceController.java224 long cacheSize = data.getCacheBytes(); in onDataLoaded() local
225 long dataSize = data.getDataBytes() - cacheSize; in onDataLoaded()
228 mClearCacheButton.setEnabled(cacheSize > 0 && !mCacheCleared); in onDataLoaded()
DStorageAsyncLoader.java229 public void setCacheSize(long cacheSize) { in setCacheSize() argument
230 this.mCacheSize = cacheSize; in setCacheSize()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DBitmapCachingAsset.java79 private static int cacheSize = 100 * 1024 * 1024; // 100MiB field in BitmapCachingAsset
80 private static LruCache<CacheKey, Bitmap> sCache = new LruCache<CacheKey, Bitmap>(cacheSize) {
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/
DStorageAsyncLoaderTest.java259 private ApplicationInfo createAppInfo(String packageName, long cacheSize, long codeSize, in createAppInfo() argument
263 stats.dataBytes = dataSize + cacheSize; in createAppInfo()
264 stats.cacheBytes = cacheSize; in createAppInfo()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DAlbumSlidingWindow.java92 AlbumDataLoader source, int cacheSize) { in AlbumSlidingWindow() argument
95 mData = new AlbumEntry[cacheSize]; in AlbumSlidingWindow()

12