Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppWithAdminGrantedPermissionsListerTest.java152 final UserHandle mainUser = new UserHandle(MAIN_USER_ID); in verifyListInstalledApps() local
153 when(mPackageManager.getInstallReason(APP_1, mainUser)) in verifyListInstalledApps()
155 when(mPackageManager.getInstallReason(APP_2, mainUser)) in verifyListInstalledApps()
157 when(mPackageManager.getInstallReason(APP_3, mainUser)) in verifyListInstalledApps()
159 when(mPackageManager.getInstallReason(APP_4, mainUser)) in verifyListInstalledApps()
161 when(mPackageManager.getInstallReason(APP_5, mainUser)) in verifyListInstalledApps()
DAppWithAdminGrantedPermissionsCounterTest.java226 final UserHandle mainUser = new UserHandle(MAIN_USER_ID); in configurePackageManager() local
227 when(mPackageManager.getInstallReason(APP_1, mainUser)) in configurePackageManager()
229 when(mPackageManager.getInstallReason(APP_2, mainUser)) in configurePackageManager()
231 when(mPackageManager.getInstallReason(APP_3, mainUser)) in configurePackageManager()
233 when(mPackageManager.getInstallReason(APP_4, mainUser)) in configurePackageManager()
235 when(mPackageManager.getInstallReason(APP_5, mainUser)) in configurePackageManager()
DInstalledAppListerTest.java127 final UserHandle mainUser = new UserHandle(MAIN_USER_ID); in testCountInstalledAppsAcrossAllUsers() local
128 when(mPackageManager.getInstallReason(APP_1, mainUser)) in testCountInstalledAppsAcrossAllUsers()
130 when(mPackageManager.getInstallReason(APP_2, mainUser)) in testCountInstalledAppsAcrossAllUsers()
132 when(mPackageManager.getInstallReason(APP_3, mainUser)) in testCountInstalledAppsAcrossAllUsers()
134 when(mPackageManager.getInstallReason(APP_4, mainUser)) in testCountInstalledAppsAcrossAllUsers()
DInstalledAppCounterTest.java216 final UserHandle mainUser = new UserHandle(MAIN_USER_ID); in configurePackageManager() local
217 when(mPackageManager.getInstallReason(APP_1, mainUser)) in configurePackageManager()
219 when(mPackageManager.getInstallReason(APP_2, mainUser)) in configurePackageManager()
221 when(mPackageManager.getInstallReason(APP_3, mainUser)) in configurePackageManager()
223 when(mPackageManager.getInstallReason(APP_4, mainUser)) in configurePackageManager()
DApplicationFeatureProviderImplTest.java203 final UserInfo mainUser = new UserInfo(MAIN_USER_ID, "main", UserInfo.FLAG_ADMIN); in testFindPersistentPreferredActivities() local
209 when(mUserManager.getUserInfo(MAIN_USER_ID)).thenReturn(mainUser); in testFindPersistentPreferredActivities()
232 expectedMainUserActivities.add(new UserAppInfo(mainUser, in testFindPersistentPreferredActivities()