Home
last modified time | relevance | path

Searched refs:originatingUserId (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DRestrictionsSetTest.java47 private final int originatingUserId = 0; field in RestrictionsSetTest
53 assertTrue(mRestrictionsSet.updateRestrictions(originatingUserId, restrictions)); in testUpdateRestrictions_addRestrictions()
55 assertRestrictions(restrictions, mRestrictionsSet.getRestrictions(originatingUserId)); in testUpdateRestrictions_addRestrictions()
61 mRestrictionsSet.updateRestrictions(originatingUserId, restrictions); in testUpdateRestrictions_removeRestrictions()
63 assertTrue(mRestrictionsSet.updateRestrictions(originatingUserId, new Bundle())); in testUpdateRestrictions_removeRestrictions()
65 assertNull(mRestrictionsSet.getRestrictions(originatingUserId)); in testUpdateRestrictions_removeRestrictions()
71 mRestrictionsSet.updateRestrictions(originatingUserId, restrictions); in testUpdateRestrictions_noChange()
73 assertFalse(mRestrictionsSet.updateRestrictions(originatingUserId, restrictions)); in testUpdateRestrictions_noChange()
81 mRestrictionsSet.updateRestrictions(originatingUserId, in testMoveRestriction_containsRestriction()
86 assertNull(mRestrictionsSet.getRestrictions(originatingUserId)); in testMoveRestriction_containsRestriction()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestUtils.java81 int originatingUserId = expected.keyAt(i); in assertRestrictions() local
82 Bundle actualRestrictions = actual.getRestrictions(originatingUserId); in assertRestrictions()
84 assertRestrictions(expected.getRestrictions(originatingUserId), actualRestrictions); in assertRestrictions()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerInternal.java167 public abstract void setDevicePolicyUserRestrictions(int originatingUserId, in setDevicePolicyUserRestrictions() argument
DUserManagerService.java3261 private void setDevicePolicyUserRestrictionsInner(@UserIdInt int originatingUserId, in setDevicePolicyUserRestrictionsInner() argument
7429 public void setDevicePolicyUserRestrictions(@UserIdInt int originatingUserId,
7432 UserManagerService.this.setDevicePolicyUserRestrictionsInner(originatingUserId,