Searched refs:UserRestrictionsUtils (Results 1 – 13 of 13) sorted by relevance
57 UserRestrictionsUtils.merge(a, b); in testMerge()61 UserRestrictionsUtils.merge(a, null); in testMerge()66 UserRestrictionsUtils.merge(a, a); in testMerge()120 UserRestrictionsUtils.moveRestriction( in testMoveRestriction()145 assertTrue(UserRestrictionsUtils.areEqual( in testAreEqual()149 assertTrue(UserRestrictionsUtils.areEqual( in testAreEqual()153 assertTrue(UserRestrictionsUtils.areEqual( in testAreEqual()157 assertTrue(UserRestrictionsUtils.areEqual( in testAreEqual()161 assertTrue(UserRestrictionsUtils.areEqual( in testAreEqual()165 assertFalse(UserRestrictionsUtils.areEqual( in testAreEqual()[all …]
126 assertTrue(UserRestrictionsUtils.areEqual(restrictions, type.getDefaultRestrictions())); in testUserTypeBuilder_createUserType()326 assertTrue(UserRestrictionsUtils.areEqual(restrictions, aospType.getDefaultRestrictions())); in testUserTypeFactoryCustomize_profile()367 assertTrue(UserRestrictionsUtils.areEqual( in testUserTypeFactoryCustomize_profile()414 assertTrue(UserRestrictionsUtils.areEqual( in testUserTypeFactoryCustomize_full()
78 !UserRestrictionsUtils.areEqual(mUserRestrictions.get(userId), restrictions); in updateRestrictions()100 if (UserRestrictionsUtils.contains(restrictions, restriction)) { in removeRestrictionsForAllUsers()116 if (UserRestrictionsUtils.contains(from, restriction)) { in moveRestriction()151 UserRestrictionsUtils.merge(result, mUserRestrictions.valueAt(i)); in mergeAll()185 return UserRestrictionsUtils.nonNull(mUserRestrictions.get(userId)); in getRestrictionsNonNull()214 UserRestrictionsUtils.writeRestrictions(serializer, mUserRestrictions.valueAt(i), in writeRestrictions()237 Bundle restrictions = UserRestrictionsUtils.readRestrictions(parser); in readRestrictions()251 UserRestrictionsUtils.dumpRestrictions(pw, prefix + " ", mUserRestrictions.valueAt(i)); in dumpRestrictions()
322 UserRestrictionsUtils.merge(currentRestrictions, mDefaultRestrictions); in addDefaultRestrictionsTo()362 if (UserRestrictionsUtils.isValidRestriction(userRestriction)) { in dump()366 UserRestrictionsUtils.dumpRestrictions(pw, restrictionsPrefix, restrictions); in dump()372 UserRestrictionsUtils.dumpRestrictions(pw, restrictionsPrefix, mDefaultRestrictions); in dump()
2671 if (!UserRestrictionsUtils.isValidRestriction(key)) { in setUserRestrictionInner()2735 UserRestrictionsUtils.merge(effective, global); in computeEffectiveUserRestrictionsLR()2736 UserRestrictionsUtils.merge(effective, local); in computeEffectiveUserRestrictionsLR()2889 if (!UserRestrictionsUtils.isValidRestriction(key)) { in setUserRestriction()2979 UserRestrictionsUtils.applyUserRestrictions( in propagateUserRestrictionsLR()4059 UserRestrictionsUtils.merge(newRestrictions, in upgradeProfileToTypeLU()4361 UserRestrictionsUtils6541 UserRestrictionsUtils.dumpRestrictions(6720 UserRestrictionsUtils.dumpRestrictions(6723 UserRestrictionsUtils.dumpRestrictions([all …]
67 public class UserRestrictionsUtils { class70 private UserRestrictionsUtils() { in UserRestrictionsUtils() method in UserRestrictionsUtils
439 final Bundle restrictions = UserRestrictionsUtils in customizeBuilders()
26 import com.android.server.pm.UserRestrictionsUtils;126 return UserRestrictionsUtils.areEqual((Bundle) item, expected); in createUserRestrictionsBundleMatcher()154 return UserRestrictionsUtils.areEqual(expected.getRestrictions(userId), in createUserRestrictionsSetMatcher()
161 import com.android.server.pm.UserRestrictionsUtils;7789 for (String restriction : UserRestrictionsUtils.USER_RESTRICTIONS) { in testSetUserRestriction_financeDo_invalidRestrictions_restrictionNotSet()7790 if (!UserRestrictionsUtils.canFinancedDeviceOwnerChange(restriction)) { in testSetUserRestriction_financeDo_invalidRestrictions_restrictionNotSet()7809 for (String restriction : UserRestrictionsUtils.USER_RESTRICTIONS) { in testSetUserRestriction_financeDo_validRestrictions_setsRestriction()7810 if (UserRestrictionsUtils.canFinancedDeviceOwnerChange(restriction)) { in testSetUserRestriction_financeDo_validRestrictions_setsRestriction()
42 import com.android.server.pm.UserRestrictionsUtils;102 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,
57 import com.android.server.pm.UserRestrictionsUtils;569 UserRestrictionsUtils.writeRestrictions( in writeToXml()871 userRestrictions = UserRestrictionsUtils.readRestrictions(parser); in readFromXml()1174 for (String deprecatedRestriction: UserRestrictionsUtils.DEPRECATED_USER_RESTRICTIONS) { in removeDeprecatedRestrictions()1200 key -> UserRestrictionsUtils.isLocal(adminType, key)); in getLocalUserRestrictions()1205 key -> UserRestrictionsUtils.isGlobal(adminType, key)); in getGlobalUserRestrictions()1372 UserRestrictionsUtils.dumpRestrictions(pw, " ", userRestrictions); in dump()
502 import com.android.server.pm.UserRestrictionsUtils;2665 UserRestrictionsUtils.getDefaultEnabledForManagedProfiles(); in maybeSetDefaultRestrictionsForAdminLocked()13399 if (!UserRestrictionsUtils.isValidRestriction(key)) {13424 if (!UserRestrictionsUtils.isValidRestriction(key)) {13434 if (!UserRestrictionsUtils.isValidRestriction(key)) {13465 if (!UserRestrictionsUtils.canDeviceOwnerChange(key)) {13472 if (!UserRestrictionsUtils.canFinancedDeviceOwnerChange(key)) {13481 && UserRestrictionsUtils.canProfileOwnerChange(13508 && UserRestrictionsUtils.isGlobal(13546 if (!UserRestrictionsUtils.isValidRestriction(key)) {[all …]
7157 HSPLcom/android/server/pm/UserRestrictionsUtils;-><clinit>()V7158 HSPLcom/android/server/pm/UserRestrictionsUtils;->areEqual(Landroid/os/Bundle;Landroid/os/Bundle;)Z…7159 HSPLcom/android/server/pm/UserRestrictionsUtils;->isGlobal(ILjava/lang/String;)Z7160 HSPLcom/android/server/pm/UserRestrictionsUtils;->isSettingRestrictedForUser(Landroid/content/Conte…7161 HSPLcom/android/server/pm/UserRestrictionsUtils;->isValidRestriction(Ljava/lang/String;)Z+]Ljava/la…7162 HSPLcom/android/server/pm/UserRestrictionsUtils;->merge(Landroid/os/Bundle;Landroid/os/Bundle;)V+]L…7163 HSPLcom/android/server/pm/UserRestrictionsUtils;->newSetWithUniqueCheck([Ljava/lang/String;)Ljava/u…7164 HSPLcom/android/server/pm/UserRestrictionsUtils;->readRestrictions(Lcom/android/modules/utils/Typed…7165 HSPLcom/android/server/pm/UserRestrictionsUtils;->readRestrictions(Lcom/android/modules/utils/Typed…7166 HPLcom/android/server/pm/UserRestrictionsUtils;->writeRestrictions(Lcom/android/modules/utils/Typed…[all …]