Home
last modified time | relevance | path

Searched refs:mAppState (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DRecentAppStatsMixinTest.java65 private ApplicationsState mAppState; field in RecentAppStatsMixinTest
82 ReflectionHelpers.setStaticField(ApplicationsState.class, "sInstance", mAppState); in setUp()
100 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp()
131 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
133 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
135 when(mAppState.getEntry(stat3.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
167 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
169 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
171 when(mAppState.getEntry(stat3.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
198 when(mAppState.getEntry(stat.mPackageName, UserHandle.myUserId())).thenReturn(statEntry); in loadDisplayableRecentApps_oneInstantAppSet_shouldHaveOneRecentApp()
[all …]
DRecentAppsPreferenceControllerTest.java71 private ApplicationsState mAppState; field in RecentAppsPreferenceControllerTest
88 ReflectionHelpers.setStaticField(ApplicationsState.class, "sInstance", mAppState); in setUp()
142 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in onReloadDataCompleted_threeValidRecentOpenAppsSet_setAppEntityThreeTime()
144 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in onReloadDataCompleted_threeValidRecentOpenAppsSet_setAppEntityThreeTime()
146 when(mAppState.getEntry(stat3.mPackageName, UserHandle.myUserId())) in onReloadDataCompleted_threeValidRecentOpenAppsSet_setAppEntityThreeTime()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/
DRecentAppsPreferenceControllerTest.java86 private ApplicationsState mAppState; field in RecentAppsPreferenceControllerTest
105 mController = new RecentAppsPreferenceController(mContext, mAppState); in setUp()
157 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in display_showRecents()
159 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in display_showRecents()
161 when(mAppState.getEntry(stat3.mPackageName, UserHandle.myUserId())) in display_showRecents()
196 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())).thenReturn(stat1Entry); in display_showRecentsWithInstantApp()
197 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())).thenReturn(stat2Entry); in display_showRecentsWithInstantApp()
234 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in display_showRecentsWithNullAppEntryOrInfo()
236 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in display_showRecentsWithNullAppEntryOrInfo()
260 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in display_hasRecentButNoneDisplayable_showAllApps()
[all …]
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DAppStateBaseBridge.java33 protected final ApplicationsState mAppState; field in AppStateBaseBridge
40 mAppState = appState; in AppStateBaseBridge()
41 mAppSession = mAppState != null ? mAppState.newSession(this) : null; in AppStateBaseBridge()
46 mHandler = new BackgroundHandler(mAppState != null ? mAppState.getBackgroundLooper() in AppStateBaseBridge()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateBaseBridge.java33 protected final ApplicationsState mAppState; field in AppStateBaseBridge
40 mAppState = appState; in AppStateBaseBridge()
41 mAppSession = mAppState != null ? mAppState.newSession(this) : null; in AppStateBaseBridge()
46 mHandler = new BackgroundHandler(mAppState != null ? mAppState.getBackgroundLooper() in AppStateBaseBridge()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStateBaseBridge.java33 protected final ApplicationsState mAppState; field in AppStateBaseBridge
40 mAppState = appState; in AppStateBaseBridge()
41 mAppSession = mAppState != null ? mAppState.newSession(this) : null; in AppStateBaseBridge()
46 mHandler = new BackgroundHandler(mAppState != null ? mAppState.getBackgroundLooper() in AppStateBaseBridge()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DRecentNotifyingAppsPreferenceControllerTest.java90 private ApplicationsState mAppState; field in RecentNotifyingAppsPreferenceControllerTest
118 mContext, mBackend, mIUsageStatsManager, mUserManager, mAppState, mHost); in setUp()
189 when(mAppState.getEntry(app.getPackageName(), UserHandle.myUserId())) in display_showRecents()
191 when(mAppState.getEntry(app1.getPackageName(), UserHandle.myUserId())) in display_showRecents()
193 when(mAppState.getEntry(app2.getPackageName(), UserHandle.myUserId())) in display_showRecents()
240 when(mAppState.getEntry( in display_showRecentsWithInstantApp()
242 when(mAppState.getEntry( in display_showRecentsWithInstantApp()
284 when(mAppState.getEntry(app.getPackageName(), UserHandle.myUserId())) in display_showRecents_formatSummary()
301 mContext, mBackend, mIUsageStatsManager, mUserManager, mAppState, mHost); in reloadData()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationDetailsFragment.java99 private ApplicationsState mAppState; field in ApplicationDetailsFragment
139 mAppState = ApplicationsState.getInstance(requireActivity().getApplication()); in onAttach()
140 mSession = mAppState.newSession(mApplicationStateCallbacks, getLifecycle()); in onAttach()
146 .setAppEntry(mAppEntry).setAppState(mAppState); in onAttach()
204 mAppEntry = mAppState.getEntry(mPackageName, in retrieveAppEntry()
422 mAppState.invalidatePackage(mPackageName, userId);
DApplicationListItemManager.java50 private final ApplicationsState mAppState; field in ApplicationListItemManager
61 mAppState = appState; in ApplicationListItemManager()
111 mSession = mAppState.newSession(this, mLifecycle); in startLoading()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationListItemManagerTest.java59 private ApplicationsState mAppState; field in ApplicationListItemManagerTest
72 mAppState); in setUp()
79 verify(mAppState).newSession(any(), eq(mLifecycle)); in startLoading_shouldStartNewSession()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DAppStorageSettingsDetailsFragment.java90 private ApplicationsState mAppState; field in AppStorageSettingsDetailsFragment
149 mAppState = ApplicationsState.getInstance(requireActivity().getApplication()); in onAttach()
150 mAppEntry = mAppState.getEntry(mPackageName, mUserId); in onAttach()
166 .setAppState(mAppState); in onAttach()