Searched refs:setUserRestriction (Results 1 – 3 of 3) sorted by relevance
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowUserManagerTest.java | 86 shadowOf(userManager).setUserRestriction(userHandle, UserManager.ENSURE_VERIFY_APPS, true); in hasUserRestriction() 97 shadowOf(userManager).setUserRestriction(userHandle, UserManager.ENSURE_VERIFY_APPS, true); in getUserRestrictions() 108 shadowOf(userManager).setUserRestriction(newUserHandle(10), UserManager.DISALLOW_CAMERA, true); in getUserRestrictions() 118 .setUserRestriction(Process.myUserHandle(), UserManager.ENSURE_VERIFY_APPS, true); in clearUserRestrictions()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowDevicePolicyManager.java | 179 getShadowUserManager().setUserRestriction(Process.myUserHandle(), key, true); in addUserRestriction() 185 getShadowUserManager().setUserRestriction(Process.myUserHandle(), key, false); in clearUserRestriction()
|
D | ShadowUserManager.java | 157 public void setUserRestriction(UserHandle userHandle, String restrictionKey, boolean value) { in setUserRestriction() method in ShadowUserManager
|