Searched refs:sUserManager (Results 1 – 6 of 6) sorted by relevance
57 private static final UserManager sUserManager = sContext.getSystemService(UserManager.class); field in NetworkResetTest84 sUserManager.hasUserRestriction(DISALLOW_NETWORK_RESET); in factoryReset_disallowedByNetworkResetPolicy_doesNotFactoryReset()105 sUserManager.hasUserRestriction(DISALLOW_CONFIG_PRIVATE_DNS); in factoryReset_disallowedByConfigPrivateDnsPolicy_doesPartialFactoryReset()129 sUserManager.hasUserRestriction(DISALLOW_CONFIG_PRIVATE_DNS); in factoryReset_noPolicyRestrictions_resetsToDefault()131 sUserManager.hasUserRestriction(DISALLOW_NETWORK_RESET); in factoryReset_noPolicyRestrictions_resetsToDefault()
60 private static final UserManager sUserManager = sContext.getSystemService(UserManager.class); field in StartProfilesTest99 assertThat(sUserManager.isUserRunning(sDeviceState.workProfile().userHandle())).isTrue(); in startProfile_broadcastIsReceived_profileIsStarted()126 sUserManager.isUserRunning(sDeviceState.workProfile().userHandle())).isFalse(); in stopProfile_profileIsStopped()151 sUserManager.isUserRunning(sDeviceState.workProfile().userHandle())).isTrue(); in startUser_immediatelyAfterStopped_profileIsStarted()167 assertThat(sUserManager.isUserRunning(sDeviceState.workProfile().userHandle())).isTrue(); in startUser_userIsStopping_profileIsStarted()227 assertThat(sUserManager.isUserRunning(sDeviceState.tvProfile().userHandle())).isTrue(); in startProfile_tvProfile_profileIsStarted()243 assertThat(sUserManager.isUserRunning(sDeviceState.tvProfile().userHandle())).isFalse(); in stopProfile_tvProfile_profileIsStopped()
78 private static final UserManager sUserManager = sContext.getSystemService(UserManager.class); field in DevicePolicyManagerTest147 assertThat(sUserManager.isManagedProfile(profile.getIdentifier())).isTrue(); in newlyProvisionedManagedProfile_createsManagedProfile()331 for (UserHandle profile : sUserManager.getUserProfiles()) { in assertIsCrossProfilePackageIfInstalled()
75 private static final UserManager sUserManager = sContext.getSystemService(UserManager.class); field in CrossProfileAppsTest173 .isEqualTo(String.valueOf(sUserManager.getSerialNumberForUser(user))); in assertMainActivityLaunchedForUser()
59 private static final UserManager sUserManager = sContext.getSystemService(UserManager.class); field in UserReferenceTest185 .isEqualTo(sUserManager.getSerialNumberForUser(Process.myUserHandle())); in serialNo_returnsSerialNo()201 assertThat(user.name()).isEqualTo(sUserManager.getUserName()); in name_returnsName()217 assertThat(user.type().name()).isEqualTo(sUserManager.getUserType()); in type_returnsType()
74 private static final UserManager sUserManager = field in Users466 return sUserManager.getUsers(473 return sUserManager.getUsers(