Searched refs:getUserRestrictions (Results 1 – 3 of 3) sorted by relevance
88 assertThat(userManager.getUserRestrictions().size()).isEqualTo(0); in verifyNoUserRestrictions()104 public void getUserRestrictions() { in getUserRestrictions() method in ShadowUserManagerTest108 Bundle restrictions = userManager.getUserRestrictions(); in getUserRestrictions()114 restrictions = userManager.getUserRestrictions(); in getUserRestrictions()127 Bundle restrictions = userManager.getUserRestrictions(); in setUserRestrictions()137 assertThat(userManager.getUserRestrictions().size()).isEqualTo(1); in clearUserRestrictions()140 assertThat(userManager.getUserRestrictions().size()).isEqualTo(0); in clearUserRestrictions()
249 Bundle restrictions = userManager.getUserRestrictions(); in addUserRestrictionShouldWorkAsIntendedForDeviceOwner()266 Bundle restrictions = userManager.getUserRestrictions(); in addUserRestrictionShouldWorkAsIntendedForProfileOwner()284 Bundle restrictions = userManager.getUserRestrictions(); in clearUserRestrictionShouldWorkAsIntendedForActiveAdmins()
282 protected Bundle getUserRestrictions(UserHandle userHandle) { in getUserRestrictions() method in ShadowUserManager