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.java88 assertThat(userManager.getUserRestrictions().size()).isEqualTo(0); in verifyNoUserRestrictions()
104 public void getUserRestrictions() { in getUserRestrictions() method in ShadowUserManagerTest
108 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()
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.java282 protected Bundle getUserRestrictions(UserHandle userHandle) { in getUserRestrictions() method in ShadowUserManager