Searched refs:getUserRestrictions (Results 1 – 3 of 3) sorted by relevance
93 public void getUserRestrictions() { in getUserRestrictions() method in ShadowUserManagerTest94 assertThat(userManager.getUserRestrictions().size()).isEqualTo(0); in getUserRestrictions()99 Bundle restrictions = userManager.getUserRestrictions(); in getUserRestrictions()105 restrictions = userManager.getUserRestrictions(); in getUserRestrictions()116 assertThat(userManager.getUserRestrictions().size()).isEqualTo(0); in clearUserRestrictions()119 assertThat(userManager.getUserRestrictions().size()).isEqualTo(1); in clearUserRestrictions()122 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()
170 protected Bundle getUserRestrictions(UserHandle userHandle) { in getUserRestrictions() method in ShadowUserManager