Searched refs:UserRestrictionsUtils (Results 1 – 11 of 11) sorted by relevance
44 Bundle out = UserRestrictionsUtils.nonNull(null); in testNonNull()49 assertSame(in, UserRestrictionsUtils.nonNull(in)); in testNonNull()53 assertTrue(UserRestrictionsUtils.isEmpty(null)); in testIsEmpty()54 assertTrue(UserRestrictionsUtils.isEmpty(new Bundle())); in testIsEmpty()55 assertFalse(UserRestrictionsUtils.isEmpty(newRestrictions("a"))); in testIsEmpty()60 Bundle out = UserRestrictionsUtils.clone(in); in testClone()64 out = UserRestrictionsUtils.clone(null); in testClone()73 UserRestrictionsUtils.merge(a, b); in testMerge()77 UserRestrictionsUtils.merge(a, null); in testMerge()82 UserRestrictionsUtils.merge(a, a); in testMerge()[all …]
1504 UserRestrictionsUtils.sortToGlobalAndLocal(restrictions, isDeviceOwner, in setDevicePolicyUserRestrictionsInner()1559 !UserRestrictionsUtils.areEqual(restrictionsArray.get(userId), restrictions); in updateRestrictionsIfNeededLR()1561 if (!UserRestrictionsUtils.isEmpty(restrictions)) { in updateRestrictionsIfNeededLR()1573 UserRestrictionsUtils.nonNull(mBaseUserRestrictions.get(userId)); in computeEffectiveUserRestrictionsLR()1574 final Bundle global = UserRestrictionsUtils.mergeAll(mDevicePolicyGlobalUserRestrictions); in computeEffectiveUserRestrictionsLR()1577 if (UserRestrictionsUtils.isEmpty(global) && UserRestrictionsUtils.isEmpty(local)) { in computeEffectiveUserRestrictionsLR()1581 final Bundle effective = UserRestrictionsUtils.clone(baseRestrictions); in computeEffectiveUserRestrictionsLR()1582 UserRestrictionsUtils.merge(effective, global); in computeEffectiveUserRestrictionsLR()1583 UserRestrictionsUtils.merge(effective, local); in computeEffectiveUserRestrictionsLR()1610 if (!UserRestrictionsUtils.isValidRestriction(restrictionKey)) { in hasUserRestriction()[all …]
34 per-file UserRestrictionsUtils.java = omakoto@google.com, rubinxu@google.com, sandness@google.com, …
62 public class UserRestrictionsUtils { class65 private UserRestrictionsUtils() { in UserRestrictionsUtils() method in UserRestrictionsUtils
21 import com.android.server.pm.UserRestrictionsUtils;115 return UserRestrictionsUtils.areEqual((Bundle) item, expected); in checkUserRestrictions()
99 import com.android.server.pm.UserRestrictionsUtils;1642 final String[] defaultRestrictions = UserRestrictionsUtils in testSetUserRestriction_asDo()1910 String[] defaultRestrictions = UserRestrictionsUtils in testDefaultEnabledUserRestrictions()1946 assertFalse(UserRestrictionsUtils in testDefaultEnabledUserRestrictions()1948 UserRestrictionsUtils in testDefaultEnabledUserRestrictions()1981 UserRestrictionsUtils in testDefaultEnabledUserRestrictions()
39 import com.android.server.pm.UserRestrictionsUtils;96 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,
74 import com.android.server.pm.UserRestrictionsUtils;250 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,258 && UserRestrictionsUtils.restrictionsChanged(prevRestrictions,
260 import com.android.server.pm.UserRestrictionsUtils;1307 UserRestrictionsUtils.writeRestrictions( in writeToXml()1508 userRestrictions = UserRestrictionsUtils.readRestrictions(parser); in readFromXml()1767 UserRestrictionsUtils.dumpRestrictions(pw, prefix + " ", userRestrictions); in dump()2383 deviceOwner, UserRestrictionsUtils.getDefaultEnabledForDeviceOwner()); in maybeSetDefaultDeviceOwnerUserRestrictionsLocked()2400 UserRestrictionsUtils.getDefaultEnabledForManagedProfiles()); in maybeSetDefaultProfileOwnerUserRestrictions()2592 ? UserRestrictionsUtils.canDeviceOwnerChange(key) in migrateUserRestrictionsForUser()2593 : UserRestrictionsUtils.canProfileOwnerChange(key, user.getIdentifier()); in migrateUserRestrictionsForUser()7850 UserRestrictionsUtils.getDefaultEnabledForDeviceOwner(); in setDeviceOwner()8122 UserRestrictionsUtils.getDefaultEnabledForManagedProfiles()); in setProfileOwner()[all …]
11841 HSPLcom/android/server/pm/UserRestrictionsUtils;->applyUserRestriction(Landroid/content/Context;ILj…11842 HSPLcom/android/server/pm/UserRestrictionsUtils;->applyUserRestrictions(Landroid/content/Context;IL…11843 HSPLcom/android/server/pm/UserRestrictionsUtils;->areEqual(Landroid/os/Bundle;Landroid/os/Bundle;)Z11844 HSPLcom/android/server/pm/UserRestrictionsUtils;->dumpRestrictions(Ljava/io/PrintWriter;Ljava/lang/…11845 HSPLcom/android/server/pm/UserRestrictionsUtils;->isGlobal(ZLjava/lang/String;)Z11846 HSPLcom/android/server/pm/UserRestrictionsUtils;->isSettingRestrictedForUser(Landroid/content/Conte…11847 HSPLcom/android/server/pm/UserRestrictionsUtils;->isValidRestriction(Ljava/lang/String;)Z11848 HSPLcom/android/server/pm/UserRestrictionsUtils;->merge(Landroid/os/Bundle;Landroid/os/Bundle;)V11849 HSPLcom/android/server/pm/UserRestrictionsUtils;->mergeAll(Landroid/util/SparseArray;)Landroid/os/B…11850 HSPLcom/android/server/pm/UserRestrictionsUtils;->newSetWithUniqueCheck([Ljava/lang/String;)Ljava/u…[all …]
5371 // Allowed values are defined in UserRestrictionsUtils#USER_RESTRICTIONS.