Home
last modified time | relevance | path

Searched refs:RestrictionsSet (Results 1 – 12 of 12) sorted by relevance

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DMockUtils.java25 import com.android.server.pm.RestrictionsSet;
137 public static RestrictionsSet checkUserRestrictions(int userId, String... keys) { in checkUserRestrictions()
138 final RestrictionsSet expected = DpmTestUtils.newRestrictions(userId, in checkUserRestrictions()
143 public static RestrictionsSet checkUserRestrictions(int userId, RestrictionsSet expected) { in checkUserRestrictions()
147 private static RestrictionsSet createUserRestrictionsSetMatcher( in createUserRestrictionsSetMatcher()
148 int userId, RestrictionsSet expected) { in createUserRestrictionsSetMatcher()
149 final Matcher<RestrictionsSet> m = new BaseMatcher<RestrictionsSet>() { in createUserRestrictionsSetMatcher()
153 RestrictionsSet actual = (RestrictionsSet) item; in createUserRestrictionsSetMatcher()
190 private static String getRestrictionsAsString(RestrictionsSet r) { in getRestrictionsAsString()
H A DDpmTestUtils.java28 import com.android.server.pm.RestrictionsSet;
62 public static RestrictionsSet newRestrictions(int userId, String... restrictions) { in newRestrictions()
64 RestrictionsSet localRestrictions = new RestrictionsSet(); in newRestrictions()
77 public static void assertRestrictions(RestrictionsSet expected, RestrictionsSet actual) { in assertRestrictions()
H A DDevicePolicyManagerTest.java159 import com.android.server.pm.RestrictionsSet;
7817 RestrictionsSet localRestrictions = new RestrictionsSet(); in testSetUserRestriction_financeDo_validRestrictions_setsRestriction()
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
H A DRestrictionsSetTest.java46 private RestrictionsSet mRestrictionsSet = new RestrictionsSet();
78 RestrictionsSet destRestrictionsSet = new RestrictionsSet(); in testMoveRestriction_containsRestriction()
94 RestrictionsSet destRestrictionsSet = new RestrictionsSet(); in testMoveRestriction_doesNotContainRestriction()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DRestrictionsSet.java46 public class RestrictionsSet { class
60 public RestrictionsSet() { in RestrictionsSet() method in RestrictionsSet
63 public RestrictionsSet(@UserIdInt int userId, @NonNull Bundle restrictions) { in RestrictionsSet() method in RestrictionsSet
111 public void moveRestriction(@NonNull RestrictionsSet destRestrictions, String restriction) { in moveRestriction()
224 public static RestrictionsSet readRestrictions(@NonNull TypedXmlPullParser parser, in readRestrictions()
226 RestrictionsSet restrictionsSet = new RestrictionsSet(); in readRestrictions()
H A DUserRestrictionsUtils.java862 SparseArray<RestrictionsSet> sourceRestrictionsSets, in moveRestriction()
863 RestrictionsSet destRestrictionSet) { in moveRestriction()
865 final RestrictionsSet sourceRestrictionsSet = sourceRestrictionsSets.valueAt(i); in moveRestriction()
H A DUserManagerInternal.java167 @Nullable Bundle global, @Nullable RestrictionsSet local, boolean isDeviceOwner); in setDevicePolicyUserRestrictions()
H A DOWNERS28 per-file RestrictionsSet.java = file:MULTIUSER_AND_ENTERPRISE_OWNERS
H A DUserManagerService.java449 private final RestrictionsSet mBaseUserRestrictions = new RestrictionsSet();
464 private final RestrictionsSet mCachedEffectiveUserRestrictions = new RestrictionsSet();
473 private final RestrictionsSet mAppliedUserRestrictions = new RestrictionsSet();
482 private final RestrictionsSet mDevicePolicyUserRestrictions = new RestrictionsSet();
2694 @NonNull Bundle global, @NonNull RestrictionsSet local, in setDevicePolicyUserRestrictionsInner()
4509 RestrictionsSet oldLocalRestrictions =
4510 RestrictionsSet.readRestrictions(
6809 @NonNull Bundle global, @NonNull RestrictionsSet local,
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DUserRestrictionsUtilsTest.java106 SparseArray<RestrictionsSet> localRestrictions = new SparseArray<>(); in testMoveRestriction()
107 RestrictionsSet globalRestrictions = new RestrictionsSet(); in testMoveRestriction()
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DDevicePolicyManagerService.java499 import com.android.server.pm.RestrictionsSet;
2761 new Bundle(), new RestrictionsSet(), /* isDeviceOwner */ false); in fixupAutoTimeRestrictionDuringOrganizationOwnedDeviceMigration()
13632 final RestrictionsSet local = new RestrictionsSet();
/aosp14/frameworks/base/services/
H A Dart-profile6676 HSPLcom/android/server/pm/RestrictionsSet;-><init>()V
6677 HSPLcom/android/server/pm/RestrictionsSet;->getRestrictions(I)Landroid/os/Bundle;+]Landroid/util/Sp…
6678 HSPLcom/android/server/pm/RestrictionsSet;->getRestrictionsNonNull(I)Landroid/os/Bundle;
6679 HSPLcom/android/server/pm/RestrictionsSet;->getUserIds()Landroid/util/IntArray;
6680 HSPLcom/android/server/pm/RestrictionsSet;->updateRestrictions(ILandroid/os/Bundle;)Z
7084 …er/pm/UserManagerService;]Lcom/android/server/pm/RestrictionsSet;Lcom/android/server/pm/Restrictio…
7146 …setDevicePolicyUserRestrictionsInner(ILandroid/os/Bundle;Lcom/android/server/pm/RestrictionsSet;Z)V
13134 Lcom/android/server/pm/RestrictionsSet;