Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DRecentAppStatsMixinTest.java73 private ApplicationsState mAppState; field in RecentAppStatsMixinTest
96 ReflectionHelpers.setStaticField(ApplicationsState.class, "sInstance", mAppState); in setUp()
119 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp()
150 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
152 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
154 when(mAppState.getEntry(stat3.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
186 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
188 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
190 when(mAppState.getEntry(stat3.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
217 when(mAppState.getEntry(stat.mPackageName, UserHandle.myUserId())).thenReturn(statEntry); in loadDisplayableRecentApps_oneInstantAppSet_shouldHaveOneRecentApp()
[all …]
DAppsPreferenceControllerTest.java62 private ApplicationsState mAppState; field in AppsPreferenceControllerTest
83 ReflectionHelpers.setStaticField(ApplicationsState.class, "sInstance", mAppState); in setUp()
159 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in initRecentApps()
161 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in initRecentApps()
163 when(mAppState.getEntry(stat3.mPackageName, UserHandle.myUserId())) in initRecentApps()
/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/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/Settings/src/com/android/settings/applications/
DAppStateBaseBridge.java33 protected final ApplicationsState mAppState; field in AppStateBaseBridge
42 mAppState = appState; in AppStateBaseBridge()
43 mAppSession = mAppState != null ? mAppState.newSession(this) : null; in AppStateBaseBridge()
48 mHandler = new BackgroundHandler(mAppState != null ? mAppState.getBackgroundLooper() in AppStateBaseBridge()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationDetailsFragment.java45 private ApplicationsState mAppState; field in ApplicationDetailsFragment
71 mAppState = ApplicationsState.getInstance(requireActivity().getApplication()); in onAttach()
77 .setAppEntry(mAppEntry).setAppState(mAppState); in onAttach()
80 .setAppEntry(mAppEntry).setAppState(mAppState).setPackageName(mPackageName); in onAttach()
89 .setAppEntry(mAppEntry).setAppState(mAppState).setPackageName(mPackageName); in onAttach()
101 mAppEntry = mAppState.getEntry(mPackageName, UserHandle.myUserId()); in retrieveAppEntry()
DApplicationListItemManager.java53 private final ApplicationsState mAppState; field in ApplicationListItemManager
82 mAppState = appState; in ApplicationListItemManager()
136 mSession = mAppState.newSession(this, mLifecycle); in startLoading()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DRecentAppsItemManagerTest.java64 private ApplicationsState mAppState; field in RecentAppsItemManagerTest
80 3 /* maximumApps */, mAppState); in setUp()
89 when(mAppState.getEntry(eq(stat1.mPackageName), anyInt())) in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp()
113 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
115 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
117 when(mAppState.getEntry(stat3.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DAppStorageSettingsDetailsFragment.java53 private ApplicationsState mAppState; field in AppStorageSettingsDetailsFragment
80 mAppState = ApplicationsState.getInstance(requireActivity().getApplication()); in onAttach()
81 mAppEntry = mAppState.getEntry(mPackageName, mUserId); in onAttach()
96 .setAppState(mAppState); in onAttach()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DQuickstepModelDelegate.java533 private final LauncherAppState mAppState; field in QuickstepModelDelegate.WorkspaceItemFactory
545 mAppState = appState; in WorkspaceItemFactory()
561 LauncherActivityInfo lai = mAppState.getContext() in createInfo()
569 UserCache.INSTANCE.get(mAppState.getContext()).getUserInfo(user), in createInfo()
570 ApiWrapper.INSTANCE.get(mAppState.getContext()), in createInfo()
574 mAppState.getIconCache().getTitleAndIcon(info, lai, false); in createInfo()
576 return info.makeWorkspaceItem(mAppState.getContext()); in createInfo()
587 WorkspaceItemInfo wii = new WorkspaceItemInfo(si, mAppState.getContext()); in createInfo()
589 mAppState.getIconCache().getShortcutIcon(wii, si); in createInfo()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/
DDefaultAppSearchAlgorithm.java43 private final LauncherAppState mAppState; field in DefaultAppSearchAlgorithm
52 mAppState = LauncherAppState.getInstance(context); in DefaultAppSearchAlgorithm()
66 mAppState.getModel().enqueueModelUpdateTask((taskController, dataModel, apps) -> { in doSearch()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationListItemManagerTest.java62 private ApplicationsState mAppState; field in ApplicationListItemManagerTest
75 mAppState, MILLISECOND_UPDATE_INTERVAL, MILLISECOND_MAX_APP_LOAD_WAIT_INTERVAL); in setUp()
82 verify(mAppState).newSession(any(), eq(mLifecycle)); in startLoading_shouldStartNewSession()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/model/
DAbstractWorkspaceModelTest.kt45 protected lateinit var mAppState: LauncherAppState in <lambda>() variable in com.android.launcher3.model.AbstractWorkspaceModelTest
58 mAppState = LauncherAppState.getInstance(mTargetContext) in <lambda>()
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/specialaccess/notificationaccess/
DBridgedAppsPreferenceControllerTest.java66 ApplicationsState mAppState; field in BridgedAppsPreferenceControllerTest
100 mController.setAppState(mAppState); in setUp()
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DWorkspaceItemSpaceFinderTest.kt47 mAppState, in findSpace()
DAddWorkspaceItemsTaskTest.kt168 same(mAppState), in verifyItemSpaceFinderCall()