Home
last modified time | relevance | path

Searched refs:setUserRestriction (Results 1 – 6 of 6) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowUserManagerTest.java97 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/
DShadowUserManager.java501 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()
DShadowDevicePolicyManager.java235 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/
DShadowUserManagerTest.java126 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/
DShadowUserManager.java277 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
DShadowDevicePolicyManager.java182 getShadowUserManager().setUserRestriction(Process.myUserHandle(), key, true); in addUserRestriction()
188 getShadowUserManager().setUserRestriction(Process.myUserHandle(), key, false); in clearUserRestriction()