/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | RecentAppStatsMixinTest.java | 65 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 …]
|
D | RecentAppsPreferenceControllerTest.java | 71 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/ |
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/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/Settings/src/com/android/settings/applications/ |
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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
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/Settings/tests/robotests/src/com/android/settings/notification/ |
D | RecentNotifyingAppsPreferenceControllerTest.java | 88 private ApplicationsState mAppState; field in RecentNotifyingAppsPreferenceControllerTest 116 mContext, mBackend, mIUsageStatsManager, mUserManager, mAppState, mHost); in setUp() 174 when(mAppState.getEntry(app.getPackageName(), UserHandle.myUserId())) in display_showRecents() 176 when(mAppState.getEntry(app1.getPackageName(), UserHandle.myUserId())) in display_showRecents() 178 when(mAppState.getEntry(app2.getPackageName(), UserHandle.myUserId())) in display_showRecents() 224 when(mAppState.getEntry( in display_showRecentsWithInstantApp() 226 when(mAppState.getEntry( in display_showRecentsWithInstantApp() 268 when(mAppState.getEntry(app.getPackageName(), UserHandle.myUserId())) in display_showRecents_formatSummary() 285 mContext, mBackend, mIUsageStatsManager, mUserManager, mAppState, mHost); in reloadData()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/ |
D | AddWorkspaceItemsTaskTest.java | 53 private LauncherAppState mAppState; field in AddWorkspaceItemsTaskTest 66 mAppState = LauncherAppState.getInstance(mTargetContext); in setup() 90 mAppState, mModelHelper.getBgDataModel(), mExistingScreens, mNewScreens, 1, 1); in testFindSpaceForItem_prefers_second() 97 mAppState, mModelHelper.getBgDataModel(), mExistingScreens, mNewScreens, 2, 3); in testFindSpaceForItem_prefers_second() 110 mAppState, mModelHelper.getBgDataModel(), mExistingScreens, mNewScreens, 3, 3); in testFindSpaceForItem_adds_new_screen()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/ |
D | ApplicationDetailsFragment.java | 99 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() 206 mAppEntry = mAppState.getEntry(mPackageName, UserHandle.myUserId()); in retrieveAppEntry() 409 mAppState.invalidatePackage(mPackageName, userId);
|
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/src/com/android/car/settings/storage/ |
D | AppStorageSettingsDetailsFragment.java | 87 private ApplicationsState mAppState; field in AppStorageSettingsDetailsFragment 138 mAppState = ApplicationsState.getInstance(requireActivity().getApplication()); in onAttach() 139 mAppEntry = mAppState.getEntry(mPackageName, mUserId); in onAttach() 155 .setAppState(mAppState); in onAttach()
|
/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()
|