Home
last modified time | relevance | path

Searched refs:MANAGED_PROFILE_ID (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DInstalledAppListerTest.java71 private final int MANAGED_PROFILE_ID = 10; field in InstalledAppListerTest
75 private final int MANAGED_PROFILE_APP_UID = MANAGED_PROFILE_ID * PER_USER_UID_RANGE;
102 new UserInfo(MANAGED_PROFILE_ID, "managed profile", 0))); in testCountInstalledAppsAcrossAllUsers()
142 MANAGED_PROFILE_ID)).thenReturn(Arrays.asList( in testCountInstalledAppsAcrossAllUsers()
147 expectQueryIntentActivities(MANAGED_PROFILE_ID, APP_6, true /* launchable */); in testCountInstalledAppsAcrossAllUsers()
150 final UserHandle managedProfileUser = new UserHandle(MANAGED_PROFILE_ID); in testCountInstalledAppsAcrossAllUsers()
169 assertThat(checkAppFound(mInstalledAppList, APP_5, MANAGED_PROFILE_ID)).isTrue(); in testCountInstalledAppsAcrossAllUsers()
170 assertThat(checkAppFound(mInstalledAppList, APP_6, MANAGED_PROFILE_ID)).isFalse(); in testCountInstalledAppsAcrossAllUsers()
175 verify(mPackageManager).getInstalledApplicationsAsUser(anyInt(), eq(MANAGED_PROFILE_ID)); in testCountInstalledAppsAcrossAllUsers()
DApplicationFeatureProviderImplTest.java87 private final int MANAGED_PROFILE_ID = 10; field in ApplicationFeatureProviderImplTest
91 private final int APP_2_UID = MANAGED_PROFILE_ID * PER_USER_UID_RANGE + 1;
143 when(mPackageManager.getInstallReason(APP_2, new UserHandle(MANAGED_PROFILE_ID))) in verifyCalculateNumberOfPolicyInstalledApps()
160 when(mPackageManager.getInstallReason(APP_2, new UserHandle(MANAGED_PROFILE_ID))) in testListPolicyInstalledApps()
198 when(mPackageManager.getInstallReason(APP_2, new UserHandle(MANAGED_PROFILE_ID))) in verifyCalculateNumberOfAppsWithAdminGrantedPermissions()
237 when(mPackageManager.getInstallReason(APP_2, new UserHandle(MANAGED_PROFILE_ID))) in testListAppsWithAdminGrantedPermissions()
256 final UserInfo managedUser = new UserInfo(MANAGED_PROFILE_ID, "managed", in testFindPersistentPreferredActivities()
260 new UserHandle(MANAGED_PROFILE_ID))); in testFindPersistentPreferredActivities()
262 when(mUserManager.getUserInfo(MANAGED_PROFILE_ID)).thenReturn(managedUser); in testFindPersistentPreferredActivities()
272 when(mPackageManagerService.findPersistentPreferredActivity(viewIntent, MANAGED_PROFILE_ID)) in testFindPersistentPreferredActivities()
[all …]
DAppWithAdminGrantedPermissionsListerTest.java69 private final int MANAGED_PROFILE_ID = 10; field in AppWithAdminGrantedPermissionsListerTest
77 private final int APP_6_UID = MANAGED_PROFILE_ID * PER_USER_UID_RANGE + 1;
106 new UserInfo(MANAGED_PROFILE_ID, "managed profile", 0))); in verifyListInstalledApps()
176 MANAGED_PROFILE_ID)).thenReturn(Arrays.asList( in verifyListInstalledApps()
188 final UserHandle managedProfileUser = new UserHandle(MANAGED_PROFILE_ID); in verifyListInstalledApps()
206 assertThat(InstalledAppListerTest.checkAppFound(mAppList, APP_6, MANAGED_PROFILE_ID)). in verifyListInstalledApps()
213 eq(MANAGED_PROFILE_ID)); in verifyListInstalledApps()
DInstalledAppCounterTest.java79 private final int MANAGED_PROFILE_ID = 10; field in InstalledAppCounterTest
83 private final int MANAGED_PROFILE_APP_UID = MANAGED_PROFILE_ID * PER_USER_UID_RANGE;
143 new UserInfo(MANAGED_PROFILE_ID, "managed profile", 0))); in testCountInstalledAppsAcrossAllUsers()
159 eq(MANAGED_PROFILE_ID)); in testCountInstalledAppsAcrossAllUsers()
310 argThat(isApplicationInfoFlagsEqualTo(infoFlags2)), eq(MANAGED_PROFILE_ID)) in configurePackageManager()
312 expectQueryIntentActivities(MANAGED_PROFILE_ID, APP_6, true /* launchable */); in configurePackageManager()
315 final UserHandle managedProfileUser = new UserHandle(MANAGED_PROFILE_ID); in configurePackageManager()
DAppWithAdminGrantedPermissionsCounterTest.java70 private final int MANAGED_PROFILE_ID = 10; field in AppWithAdminGrantedPermissionsCounterTest
78 private final int APP_6_UID = MANAGED_PROFILE_ID * PER_USER_UID_RANGE + 1;
136 eq(MANAGED_PROFILE_ID)); in verifyCountInstalledApps()
231 MANAGED_PROFILE_ID)).thenReturn(Collections.singletonList(mApp6)); in configurePackageManager()
246 final UserHandle managedProfileUser = new UserHandle(MANAGED_PROFILE_ID); in configurePackageManager()
255 new UserInfo(MANAGED_PROFILE_ID, "managed profile", 0))); in configureUserManager()
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DAutoSyncWorkDataPreferenceControllerTest.java45 private static final int MANAGED_PROFILE_ID = 10; field in AutoSyncWorkDataPreferenceControllerTest
114 MANAGED_PROFILE_ID, "work profile", UserInfo.FLAG_MANAGED_PROFILE)); in multipleProfile_shouldInitWithWorkProfileUserHandle()
119 assertThat(mController.mUserHandle.getIdentifier()).isEqualTo(MANAGED_PROFILE_ID); in multipleProfile_shouldInitWithWorkProfileUserHandle()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DApplicationListPreferenceControllerTest.java65 private static final int MANAGED_PROFILE_ID = 10; field in ApplicationListPreferenceControllerTest
68 private static final int MANAGED_PROFILE_APP_UID = MANAGED_PROFILE_ID * PER_USER_UID_RANGE;