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 …]
1445 UserRestrictionsUtils.sortToGlobalAndLocal(restrictions, isDeviceOwner, in setDevicePolicyUserRestrictionsInner()1500 !UserRestrictionsUtils.areEqual(restrictionsArray.get(userId), restrictions); in updateRestrictionsIfNeededLR()1502 if (!UserRestrictionsUtils.isEmpty(restrictions)) { in updateRestrictionsIfNeededLR()1514 UserRestrictionsUtils.nonNull(mBaseUserRestrictions.get(userId)); in computeEffectiveUserRestrictionsLR()1515 final Bundle global = UserRestrictionsUtils.mergeAll(mDevicePolicyGlobalUserRestrictions); in computeEffectiveUserRestrictionsLR()1518 if (UserRestrictionsUtils.isEmpty(global) && UserRestrictionsUtils.isEmpty(local)) { in computeEffectiveUserRestrictionsLR()1522 final Bundle effective = UserRestrictionsUtils.clone(baseRestrictions); in computeEffectiveUserRestrictionsLR()1523 UserRestrictionsUtils.merge(effective, global); in computeEffectiveUserRestrictionsLR()1524 UserRestrictionsUtils.merge(effective, local); in computeEffectiveUserRestrictionsLR()1551 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
39 import com.android.server.pm.UserRestrictionsUtils;96 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,
21 import com.android.server.pm.UserRestrictionsUtils;115 return UserRestrictionsUtils.areEqual((Bundle) item, expected); in checkUserRestrictions()
99 import com.android.server.pm.UserRestrictionsUtils;1615 final String[] defaultRestrictions = UserRestrictionsUtils in testSetUserRestriction_asDo()1883 String[] defaultRestrictions = UserRestrictionsUtils in testDefaultEnabledUserRestrictions()1919 assertFalse(UserRestrictionsUtils in testDefaultEnabledUserRestrictions()1921 UserRestrictionsUtils in testDefaultEnabledUserRestrictions()1954 UserRestrictionsUtils in testDefaultEnabledUserRestrictions()
72 import com.android.server.pm.UserRestrictionsUtils;237 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,245 && UserRestrictionsUtils.restrictionsChanged(prevRestrictions,
257 import com.android.server.pm.UserRestrictionsUtils;1303 UserRestrictionsUtils.writeRestrictions( in writeToXml()1504 userRestrictions = UserRestrictionsUtils.readRestrictions(parser); in readFromXml()1763 UserRestrictionsUtils.dumpRestrictions(pw, prefix + " ", userRestrictions); in dump()2375 deviceOwner, UserRestrictionsUtils.getDefaultEnabledForDeviceOwner()); in maybeSetDefaultDeviceOwnerUserRestrictionsLocked()2392 UserRestrictionsUtils.getDefaultEnabledForManagedProfiles()); in maybeSetDefaultProfileOwnerUserRestrictions()2584 ? UserRestrictionsUtils.canDeviceOwnerChange(key) in migrateUserRestrictionsForUser()2585 : UserRestrictionsUtils.canProfileOwnerChange(key, user.getIdentifier()); in migrateUserRestrictionsForUser()7834 UserRestrictionsUtils.getDefaultEnabledForDeviceOwner(); in setDeviceOwner()8114 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 …]
4792 // Allowed values are defined in UserRestrictionsUtils#USER_RESTRICTIONS.