/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | RecentAppStatsMixinTest.java | 73 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 …]
|
D | AppsPreferenceControllerTest.java | 62 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/ |
D | AppStateBaseBridge.java | 33 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/ |
D | RecentAppsPreferenceControllerTest.java | 86 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/ |
D | AppStateBaseBridge.java | 33 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/ |
D | ApplicationDetailsFragment.java | 45 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()
|
D | ApplicationListItemManager.java | 53 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/ |
D | RecentAppsItemManagerTest.java | 64 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/ |
D | AppStorageSettingsDetailsFragment.java | 53 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/ |
D | QuickstepModelDelegate.java | 533 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/ |
D | DefaultAppSearchAlgorithm.java | 43 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/ |
D | ApplicationListItemManagerTest.java | 62 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/ |
D | AbstractWorkspaceModelTest.kt | 45 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/ |
D | BridgedAppsPreferenceControllerTest.java | 66 ApplicationsState mAppState; field in BridgedAppsPreferenceControllerTest 100 mController.setAppState(mAppState); in setUp()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
D | WorkspaceItemSpaceFinderTest.kt | 47 mAppState, in findSpace()
|
D | AddWorkspaceItemsTaskTest.kt | 168 same(mAppState), in verifyItemSpaceFinderCall()
|