Home
last modified time | relevance | path

Searched refs:adminUser (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DActionDisabledLearnMoreButtonLauncherImpl.java65 protected void launchShowAdminPolicies(Context context, UserHandle adminUser, in launchShowAdminPolicies() argument
68 requireNonNull(adminUser, "user cannot be null"); in launchShowAdminPolicies()
81 LOG.d("launching " + intent + " for admin user: " + adminUser); in launchShowAdminPolicies()
82 context.startActivityAsUser(intent, adminUser); in launchShowAdminPolicies()
DEnterpriseUtils.java247 int adminUser = hasDeviceOwner(context) in getActionDisabledByAdminDialog() local
251 .newInstance(restriction, restrictedPackage, adminUser); in getActionDisabledByAdminDialog()
299 public static EnforcedAdmin getEnforcedAdmin(Context context, @UserIdInt int adminUser, in getEnforcedAdmin() argument
308 LOG.v("getEnforcedAdmin(): " + adminUser + " restriction: " + restriction in getEnforcedAdmin()
311 if (admin.component == null && context.getUserId() != adminUser) { in getEnforcedAdmin()
315 context, restriction, adminUser); in getEnforcedAdmin()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/
DProfileHelperTest.java334 UserInfo adminUser = createAdminUser(baseId); in testRemoveUser_removesLastAdminUser_createsAndSwitchesToNewAdminUser() local
336 mockGetUsers(adminUser, nonAdminInfo); in testRemoveUser_removesLastAdminUser_createsAndSwitchesToNewAdminUser()
343 assertThat(mProfileHelper.removeProfile(mContext, adminUser)) in testRemoveUser_removesLastAdminUser_createsAndSwitchesToNewAdminUser()
348 verify(mMockCarUserManager).removeUser(adminUser.id); in testRemoveUser_removesLastAdminUser_createsAndSwitchesToNewAdminUser()
358 UserInfo adminUser = createAdminUser(baseId); in testRemoveUser_removesLastAdminUserFailsCreateNewUser_doesNotRemoveOrSwitchUser() local
360 mockGetUsers(adminUser, nonAdminInfo); in testRemoveUser_removesLastAdminUserFailsCreateNewUser_doesNotRemoveOrSwitchUser()
366 assertThat(mProfileHelper.removeProfile(mContext, adminUser)) in testRemoveUser_removesLastAdminUserFailsCreateNewUser_doesNotRemoveOrSwitchUser()
370 verify(mMockCarUserManager, never()).removeUser(adminUser.id); in testRemoveUser_removesLastAdminUserFailsCreateNewUser_doesNotRemoveOrSwitchUser()