Searched refs:sUserManager (Results 1 – 6 of 6) sorted by relevance
55 private static final UserManager sUserManager = sContext.getSystemService(UserManager.class); field in NetworkResetTest81 sUserManager.hasUserRestriction(DISALLOW_NETWORK_RESET); in factoryReset_disallowedByNetworkResetPolicy_doesNotFactoryReset()102 sUserManager.hasUserRestriction(DISALLOW_CONFIG_PRIVATE_DNS); in factoryReset_disallowedByConfigPrivateDnsPolicy_doesPartialFactoryReset()127 sUserManager.hasUserRestriction(DISALLOW_CONFIG_PRIVATE_DNS); in factoryReset_noPolicyRestrictions_resetsToDefault()129 sUserManager.hasUserRestriction(DISALLOW_NETWORK_RESET); in factoryReset_noPolicyRestrictions_resetsToDefault()
61 private static final UserManager sUserManager = sContext.getSystemService(UserManager.class); field in StartProfilesTest104 assertThat(sUserManager.isUserRunning(sDeviceState.workProfile().userHandle())).isTrue(); in startProfile_broadcastIsReceived_profileIsStarted()131 sUserManager.isUserRunning(sDeviceState.workProfile().userHandle())).isFalse(); in stopProfile_profileIsStopped()156 sUserManager.isUserRunning(sDeviceState.workProfile().userHandle())).isTrue(); in startUser_immediatelyAfterStopped_profileIsStarted()173 () -> sUserManager.isUserRunning(sDeviceState.workProfile().userHandle())) in startUser_userIsStopping_profileIsStarted()238 assertThat(sUserManager.isUserRunning(sDeviceState.tvProfile().userHandle())).isTrue(); in startProfile_tvProfile_profileIsStarted()254 assertThat(sUserManager.isUserRunning(sDeviceState.tvProfile().userHandle())).isFalse(); in stopProfile_tvProfile_profileIsStopped()
59 private static final UserManager sUserManager = sContext.getSystemService(UserManager.class); field in ManagedProfileTest87 profile = sUserManager.createProfile("testProfile", in createProfile_noProfileExists_creates()110 assertThat(sUserManager.isManagedProfile(TestApis.users().instrumented().id())) in isManagedProfile_runOnUser_returnsFalse()
36 private static final UserManager sUserManager = field in UserRestrictions59 return sUserManager.hasUserRestrictionForUser(restriction, mUser.userHandle()); in isSet()
88 private static final UserManager sUserManager = field in Users203 mainUser = sUserManager.getMainUser(); in main()517 return TestApisReflectionKt.canAddPrivateProfile(sUserManager);540 return TestApisReflectionKt.isVisibleBackgroundUsersSupported(sUserManager);551 sUserManager);609 return TestApisReflectionKt.getUsers(sUserManager,
70 private static final UserManager sUserManager = sContext.getSystemService(UserManager.class); field in UserReferenceTest259 .isEqualTo(sUserManager.getSerialNumberForUser(Process.myUserHandle())); in serialNo_returnsSerialNo()275 assertThat(user.name()).isEqualTo(sUserManager.getUserName()); in name_returnsName()291 assertThat(user.type().name()).isEqualTo(sUserManager.getUserType()); in type_returnsType()