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.java57 private static final UserManager sUserManager = sContext.getSystemService(UserManager.class); field in NetworkResetTest
84 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()
DStartProfilesTest.java60 private static final UserManager sUserManager = sContext.getSystemService(UserManager.class); field in StartProfilesTest
99 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()
DDevicePolicyManagerTest.java78 private static final UserManager sUserManager = sContext.getSystemService(UserManager.class); field in DevicePolicyManagerTest
147 assertThat(sUserManager.isManagedProfile(profile.getIdentifier())).isTrue(); in newlyProvisionedManagedProfile_createsManagedProfile()
331 for (UserHandle profile : sUserManager.getUserProfiles()) { in assertIsCrossProfilePackageIfInstalled()
DCrossProfileAppsTest.java75 private static final UserManager sUserManager = sContext.getSystemService(UserManager.class); field in CrossProfileAppsTest
173 .isEqualTo(String.valueOf(sUserManager.getSerialNumberForUser(user))); in assertMainActivityLaunchedForUser()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/users/
DUserReferenceTest.java59 private static final UserManager sUserManager = sContext.getSystemService(UserManager.class); field in UserReferenceTest
185 .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()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/
DUsers.java74 private static final UserManager sUserManager = field in Users
466 return sUserManager.getUsers(
473 return sUserManager.getUsers(