/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowUserManagerTest.java | 97 shadowOf(userManager).setUserRestriction(userHandle, UserManager.ENSURE_VERIFY_APPS, true); in hasUserRestriction() 106 shadowOf(userManager).setUserRestriction(userHandle, UserManager.ENSURE_VERIFY_APPS, true); in getUserRestrictions() 117 shadowOf(userManager).setUserRestriction(newUserHandle(10), UserManager.DISALLOW_CAMERA, true); in getUserRestrictions() 125 userManager.setUserRestriction(UserManager.ENSURE_VERIFY_APPS, true); in setUserRestrictions() 136 .setUserRestriction(Process.myUserHandle(), UserManager.ENSURE_VERIFY_APPS, true); in clearUserRestrictions()
|
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowUserManager.java | 501 protected void setUserRestriction(String key, boolean value, UserHandle userHandle) { in setUserRestriction() method in ShadowUserManager 509 protected void setUserRestriction(String key, boolean value) { in setUserRestriction() method in ShadowUserManager 510 setUserRestriction(key, value, Process.myUserHandle()); in setUserRestriction() 518 public void setUserRestriction(UserHandle userHandle, String restrictionKey, boolean value) { in setUserRestriction() method in ShadowUserManager 519 setUserRestriction(restrictionKey, value, userHandle); in setUserRestriction()
|
D | ShadowDevicePolicyManager.java | 235 getShadowUserManager().setUserRestriction(Process.myUserHandle(), key, true); in addUserRestriction() 241 getShadowUserManager().setUserRestriction(Process.myUserHandle(), key, false); in clearUserRestriction()
|
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowUserManagerTest.java | 126 shadowOf(userManager).setUserRestriction(userHandle, UserManager.ENSURE_VERIFY_APPS, true); in hasUserRestriction() 137 shadowOf(userManager).setUserRestriction(UserManager.ENSURE_VERIFY_APPS, true, userHandle); in setUserRestriction_forGivenUserHandle_setsTheRestriction() 147 userManager.setUserRestriction(UserManager.ENSURE_VERIFY_APPS, true); in setUserRestriction_forCurrentUser_setsTheRestriction() 158 shadowOf(userManager).setUserRestriction(userHandle, UserManager.ENSURE_VERIFY_APPS, true); in getUserRestrictions() 169 shadowOf(userManager).setUserRestriction(newUserHandle(10), UserManager.DISALLOW_CAMERA, true); in getUserRestrictions() 179 .setUserRestriction(Process.myUserHandle(), UserManager.ENSURE_VERIFY_APPS, true); in clearUserRestrictions()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowUserManager.java | 277 public void setUserRestriction(UserHandle userHandle, String restrictionKey, boolean value) { in setUserRestriction() method in ShadowUserManager 283 protected void setUserRestriction(String key, boolean value) { in setUserRestriction() method in ShadowUserManager
|
D | ShadowDevicePolicyManager.java | 182 getShadowUserManager().setUserRestriction(Process.myUserHandle(), key, true); in addUserRestriction() 188 getShadowUserManager().setUserRestriction(Process.myUserHandle(), key, false); in clearUserRestriction()
|