Home
last modified time | relevance | path

Searched refs:mThumbnailCache (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DRecentsModel.java80 private final TaskThumbnailCache mThumbnailCache; field in RecentsModel
109 mThumbnailCache = thumbnailCache; in RecentsModel()
136 return mThumbnailCache; in getThumbnailCache()
204 if (!mThumbnailCache.isPreloadingEnabled()) { in onTaskStackChangedBackground()
219 mTaskList.getTaskKeys(mThumbnailCache.getCacheSize(), taskGroups -> { in onTaskStackChangedBackground()
226 mThumbnailCache.updateThumbnailInCache(group.task1, /* lowResolution= */ true); in onTaskStackChangedBackground()
227 mThumbnailCache.updateThumbnailInCache(group.task2, /* lowResolution= */ true); in onTaskStackChangedBackground()
234 mThumbnailCache.updateTaskSnapShot(taskId, snapshot); in onTaskSnapshotChanged()
248 mThumbnailCache.remove(stubKey); in onTaskRemoved()
254 mThumbnailCache.getHighResLoadingState().setVisible(false); in onTrimMemory()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DIconHelperTest.java51 private ThumbnailCache mThumbnailCache = new ThumbnailCache(1000); field in IconHelperTest
80 mThumbnailCache, null, mTestUserManagerState, mTestConfigStore) in setUp()
82 mThumbnailCache, mManagedUser, null, mTestConfigStore); in setUp()
108 mThumbnailCache, mManagedUser, null, mTestConfigStore); in testShouldShowBadge_returnFalse_onManagedUser_doNotShowBadge()
116 mThumbnailCache, null, mTestUserManagerState, mTestConfigStore); in testShouldShowBadge_returnFalseOnPrivateUser_doNotShowBadge()
124 mThumbnailCache, /* mManagedUser= */ null, null, mTestConfigStore); in testShouldShowBadge_returnFalseOnManagedUser_withoutManagedUser()
135 mThumbnailCache, /* mManagedUser= */ null, mTestUserManagerState, mTestConfigStore); in testShouldShowBadge_returnFalseOnManagedUser_withoutMultipleUsers()
144 mThumbnailCache, /* mManagedUser= */ null, mTestUserManagerState, mTestConfigStore); in testShouldShowBadge_returnFalseOnPrivateUser_withoutMultipleUsers()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DRecentsModelTest.java64 private TaskThumbnailCache mThumbnailCache; field in RecentsModelTest
93 when(mThumbnailCache.getHighResLoadingState()).thenReturn(mHighResLoadingState); in setup()
94 when(mThumbnailCache.isPreloadingEnabled()).thenReturn(true); in setup()
97 mThumbnailCache, mock(IconProvider.class), mock(TaskStackChangeListeners.class)); in setup()
123 when(mThumbnailCache.isPreloadingEnabled()).thenReturn(true); in notPreloadOnHighResolutionDisabled()
131 when(mThumbnailCache.isPreloadingEnabled()).thenReturn(false); in notPreloadOnPreloadDisabled()
141 when(mThumbnailCache.updateCacheSizeAndRemoveExcess()).thenReturn(true); in increaseCacheSizeAndPreload()
152 when(mThumbnailCache.updateCacheSizeAndRemoveExcess()).thenReturn(false); in decreaseCacheSizeAndNotPreload()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDocumentsApplication.java77 private ThumbnailCache mThumbnailCache; field in DocumentsApplication
91 return app.mThumbnailCache; in getThumbnailCache()
201 mThumbnailCache = new ThumbnailCache(memoryClassBytes / 4); in onCreate()
244 mThumbnailCache.onTrimMemory(level); in onTrimMemory()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DIconHelper.java64 private final ThumbnailCache mThumbnailCache; field in IconHelper
94 mThumbnailCache = thumbnailCache; in IconHelper()
209 final Result result = mThumbnailCache.getThumbnail(uri, userId, mCurrentSize); in loadThumbnail()