Home
last modified time | relevance | path

Searched refs:storageCache (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DStorageCacheHelperTest.java72 StorageCacheHelper.StorageCache storageCache = mHelper.retrieveCachedSize(); in cacheSizeInfo_shouldSaveToSharedPreference() local
74 assertThat(storageCache.imagesSize).isEqualTo(FAKE_IMAGES_SIZE); in cacheSizeInfo_shouldSaveToSharedPreference()
75 assertThat(storageCache.temporaryFilesSize).isEqualTo(FAKE_TEMPORARY_FILES_SIZE); in cacheSizeInfo_shouldSaveToSharedPreference()
76 assertThat(storageCache.documentsSize).isEqualTo(FAKE_DOCS_SIZE); in cacheSizeInfo_shouldSaveToSharedPreference()
77 assertThat(storageCache.otherSize).isEqualTo(FAKE_OTHER_SIZE); in cacheSizeInfo_shouldSaveToSharedPreference()
78 assertThat(storageCache.totalSize).isEqualTo(0); in cacheSizeInfo_shouldSaveToSharedPreference()
85 StorageCacheHelper.StorageCache storageCache = mHelper.retrieveCachedSize(); in cacheTotalSizeAndUsedSize_shouldSaveToSharedPreference() local
87 assertThat(storageCache.totalSize).isEqualTo(FAKE_TOTAL_SIZE); in cacheTotalSizeAndUsedSize_shouldSaveToSharedPreference()
88 assertThat(storageCache.totalUsedSize).isEqualTo(FAKE_TOTAL_USED_SIZE); in cacheTotalSizeAndUsedSize_shouldSaveToSharedPreference()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DStorageItemPreferenceController.java449 StorageCacheHelper.StorageCache storageCache = getSizeInfo(result, userId); in onLoadFinished() local
451 mImagesPreference.setStorageSize(storageCache.imagesSize, mTotalSize, animate); in onLoadFinished()
452 mVideosPreference.setStorageSize(storageCache.videosSize, mTotalSize, animate); in onLoadFinished()
453 mAudioPreference.setStorageSize(storageCache.audioSize, mTotalSize, animate); in onLoadFinished()
454 mAppsPreference.setStorageSize(storageCache.allAppsExceptGamesSize, mTotalSize, animate); in onLoadFinished()
455 mGamesPreference.setStorageSize(storageCache.gamesSize, mTotalSize, animate); in onLoadFinished()
456 mDocumentsPreference.setStorageSize(storageCache.documentsSize, mTotalSize, animate); in onLoadFinished()
457 mOtherPreference.setStorageSize(storageCache.otherSize, mTotalSize, animate); in onLoadFinished()
458 mTrashPreference.setStorageSize(storageCache.trashSize, mTotalSize, animate); in onLoadFinished()
460 mSystemPreference.setStorageSize(storageCache.systemSize, mTotalSize, animate); in onLoadFinished()
[all …]