Home
last modified time | relevance | path

Searched refs:getUserRestrictions (Results 1 – 3 of 3) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowUserManagerTest.java93 public void getUserRestrictions() { in getUserRestrictions() method in ShadowUserManagerTest
94 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()
DShadowDevicePolicyManagerTest.java249 Bundle restrictions = userManager.getUserRestrictions(); in addUserRestrictionShouldWorkAsIntendedForDeviceOwner()
266 Bundle restrictions = userManager.getUserRestrictions(); in addUserRestrictionShouldWorkAsIntendedForProfileOwner()
284 Bundle restrictions = userManager.getUserRestrictions(); in clearUserRestrictionShouldWorkAsIntendedForActiveAdmins()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowUserManager.java170 protected Bundle getUserRestrictions(UserHandle userHandle) { in getUserRestrictions() method in ShadowUserManager