Home
last modified time | relevance | path

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

12

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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.java562 long cacheSize = result.getCacheBytes();
563 long dataSize = result.getDataBytes() - cacheSize;
571 if (cacheSize <= 0 || mCacheCleared) {
/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.java566 long cacheSize = result.getCacheBytes();
567 long dataSize = result.getDataBytes() - cacheSize;
575 if (cacheSize <= 0 || mCacheCleared) {
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/storage/
DCachedStorageValuesHelper.java90 final long cacheSize = mSharedPreferences.getLong(CACHE_APPS_SIZE_KEY, -1); in getCachedAppsStorageResult() local
96 || cacheSize < 0) { in getCachedAppsStorageResult()
127 result.cacheSize = cacheSize; in getCachedAppsStorageResult()
145 .putLong(CACHE_APPS_SIZE_KEY, result.cacheSize) in cacheResult()
DStorageAsyncLoader.java173 public long cacheSize; field in StorageAsyncLoader.AppsStorageResult
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DCachedStorageValuesHelper.java90 final long cacheSize = mSharedPreferences.getLong(CACHE_APPS_SIZE_KEY, -1); in getCachedAppsStorageResult() local
96 || cacheSize < 0) { in getCachedAppsStorageResult()
127 result.cacheSize = cacheSize; in getCachedAppsStorageResult()
145 .putLong(CACHE_APPS_SIZE_KEY, result.cacheSize) in cacheResult()
DStorageAsyncLoader.java173 public long cacheSize; field in StorageAsyncLoader.AppsStorageResult
/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/Launcher3/quickstep/src/com/android/quickstep/
DTaskIconCache.java74 int cacheSize = res.getInteger(R.integer.recentsIconCacheSize); in TaskIconCache() local
75 mIconCache = new TaskKeyLruCache<>(cacheSize, mClearActivityInfoOnEviction); in TaskIconCache()
76 mContentDescriptionCache = new TaskKeyLruCache<>(cacheSize, mClearActivityInfoOnEviction); in TaskIconCache()
77 mActivityInfoCache = new LruCache<>(cacheSize); in TaskIconCache()
DTaskThumbnailCache.java228 public ThumbnailCache(int cacheSize) { in ThumbnailCache() argument
229 super(cacheSize); in ThumbnailCache()
/packages/apps/Car/Radio/src/com/android/car/radio/platform/
DImageMemoryCache.java34 public ImageMemoryCache(@NonNull RadioManagerExt radioManager, int cacheSize) { in ImageMemoryCache() argument
36 mCache = new CacheMap<>(cacheSize); in ImageMemoryCache()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DClearCachePreference.java43 : Formatter.formatFileSize(context, mEntry.cacheSize + mEntry.externalCacheSize)); in refresh()
44 setEnabled(!mClearingCache && mEntry.cacheSize > 0); in refresh()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DBitmapCachingAsset.java64 private static int cacheSize = 100 * 1024 * 1024; // 100MiB field in BitmapCachingAsset
65 private static LruCache<CacheKey, Bitmap> sCache = new LruCache<CacheKey, Bitmap>(cacheSize) {
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/
DStorageAsyncLoaderTest.java224 private ApplicationInfo addPackage(String packageName, long cacheSize, long codeSize, in addPackage() argument
229 when(storageStats.getDataBytes()).thenReturn(dataSize + cacheSize); in addPackage()
230 when(storageStats.getCacheBytes()).thenReturn(cacheSize); in addPackage()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DStorageAsyncLoaderTest.java231 private ApplicationInfo addPackage(String packageName, long cacheSize, long codeSize, in addPackage() argument
235 stats.dataBytes = dataSize + cacheSize; in addPackage()
236 stats.cacheBytes = cacheSize; in addPackage()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DAppStorageSettingsDetailsFragment.java241 long cacheSize = data.getCacheBytes(); in onDataLoaded() local
242 long dataSize = data.getDataBytes() - cacheSize; in onDataLoaded()
250 if (cacheSize <= 0 || mCacheCleared) { in onDataLoaded()
DStorageAsyncLoader.java222 public void setCacheSize(long cacheSize) { in setCacheSize() argument
223 this.mCacheSize = cacheSize; in setCacheSize()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DBitmapDownloader.java111 int cacheSize = 1024 * 1024 * memClass; in BitmapDownloader() local
112 mMemoryCache = new LruCache<String, BitmapItem>(cacheSize) { in BitmapDownloader()
DDrawableDownloader.java185 int cacheSize = 1024 * 1024 * memClass; in DrawableDownloader() local
186 mMemoryCache = new LruCache<String, BitmapItem>(cacheSize) { in DrawableDownloader()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DAlbumSlidingWindow.java92 AlbumDataLoader source, int cacheSize) { in AlbumSlidingWindow() argument
95 mData = new AlbumEntry[cacheSize]; in AlbumSlidingWindow()
DAlbumSetSlidingWindow.java95 AlbumSetDataLoader source, AlbumSetSlotRenderer.LabelSpec labelSpec, int cacheSize) { in AlbumSetSlidingWindow() argument
98 mData = new AlbumSetEntry[cacheSize]; in AlbumSetSlidingWindow()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DCachedStorageValuesHelperTest.java137 assertThat(primaryResult.cacheSize).isEqualTo(100000L); in getCachedAppsStorageResult_cachedValuesAreLoaded()
276 result.cacheSize = 100000L; in cacheResult_succeeds()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DPrivateVolumeSettings.java628 updatePreference(item, details.cacheSize); in updateDetails()
629 accountedSize += details.cacheSize; in updateDetails()
631 Log.v(TAG, "cacheSize: " + details.cacheSize + " accountedSize: " in updateDetails()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DPrivateVolumeSettings.java628 updatePreference(item, details.cacheSize); in updateDetails()
629 accountedSize += details.cacheSize; in updateDetails()
631 Log.v(TAG, "cacheSize: " + details.cacheSize + " accountedSize: " in updateDetails()

12