Home
last modified time | relevance | path

Searched refs:sUserManager (Results 1 – 6 of 6) sorted by relevance

/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DNetworkResetTest.java55 private static final UserManager sUserManager = sContext.getSystemService(UserManager.class); field in NetworkResetTest
81 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()
DStartProfilesTest.java61 private static final UserManager sUserManager = sContext.getSystemService(UserManager.class); field in StartProfilesTest
104 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()
DManagedProfileTest.java59 private static final UserManager sUserManager = sContext.getSystemService(UserManager.class); field in ManagedProfileTest
87 profile = sUserManager.createProfile("testProfile", in createProfile_noProfileExists_creates()
110 assertThat(sUserManager.isManagedProfile(TestApis.users().instrumented().id())) in isManagedProfile_runOnUser_returnsFalse()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/
DUserRestrictions.java36 private static final UserManager sUserManager = field in UserRestrictions
59 return sUserManager.hasUserRestrictionForUser(restriction, mUser.userHandle()); in isSet()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/
DUsers.java88 private static final UserManager sUserManager = field in Users
203 mainUser = sUserManager.getMainUser(); in main()
517 return TestApisReflectionKt.canAddPrivateProfile(sUserManager);
540 return TestApisReflectionKt.isVisibleBackgroundUsersSupported(sUserManager);
551 sUserManager);
609 return TestApisReflectionKt.getUsers(sUserManager,
/cts/common/device-side/bedstead/modules/multiuser/src/test/kotlin/com/android/bedstead/multiuser/
DUserReferenceTest.java70 private static final UserManager sUserManager = sContext.getSystemService(UserManager.class); field in UserReferenceTest
259 .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()