Searched refs:UserRestrictionsUtils (Results 1 – 15 of 15) sorted by relevance
65 Bundle out = UserRestrictionsUtils.nonNull(null); in testNonNull()70 assertSame(in, UserRestrictionsUtils.nonNull(in)); in testNonNull()78 UserRestrictionsUtils.merge(a, b); in testMerge()82 UserRestrictionsUtils.merge(a, null); in testMerge()86 assertThrows(IllegalArgumentException.class, () -> UserRestrictionsUtils.merge(a, a)); in testMerge()91 assertFalse(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_RECORD_AUDIO)); in testCanDeviceOwnerChange()92 assertFalse(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_WALLPAPER)); in testCanDeviceOwnerChange()93 assertTrue(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_ADD_USER)); in testCanDeviceOwnerChange()94 assertTrue(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_USER_SWITCH)); in testCanDeviceOwnerChange()99 assertFalse(UserRestrictionsUtils.canProfileOwnerChange( in testCanProfileOwnerChange_mainUser()[all …]
137 assertTrue(UserRestrictionsUtils.areEqual(restrictions, type.getDefaultRestrictions())); in testUserTypeBuilder_createUserType()367 assertTrue(UserRestrictionsUtils.areEqual(restrictions, aospType.getDefaultRestrictions())); in testUserTypeFactoryCustomize_profile()422 assertTrue(UserRestrictionsUtils.areEqual( in testUserTypeFactoryCustomize_profile()481 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()
357 UserRestrictionsUtils.merge(currentRestrictions, mDefaultRestrictions); in addDefaultRestrictionsTo()396 if (UserRestrictionsUtils.isValidRestriction(userRestriction)) { in dump()400 UserRestrictionsUtils.dumpRestrictions(pw, restrictionsPrefix, restrictions); in dump()406 UserRestrictionsUtils.dumpRestrictions(pw, restrictionsPrefix, mDefaultRestrictions); in dump()
3239 if (!UserRestrictionsUtils.isValidRestriction(key)) { in setUserRestrictionInner()3303 UserRestrictionsUtils.merge(effective, global); in computeEffectiveUserRestrictionsLR()3304 UserRestrictionsUtils.merge(effective, local); in computeEffectiveUserRestrictionsLR()3341 if (!UserRestrictionsUtils.isValidRestriction(restrictionKey)) { in hasUserRestrictionOnAnyUser()3361 return UserRestrictionsUtils.isSettingRestrictedForUser(mContext, setting, userId, in isSettingRestrictedForUser()3447 if (!UserRestrictionsUtils.isValidRestriction(restrictionKey)) { in hasBaseUserRestriction()3459 if (!UserRestrictionsUtils.isValidRestriction(key)) { in setUserRestriction()3490 final Bundle prevAppliedRestrictions = UserRestrictionsUtils.nonNull( in updateUserRestrictionsInternalLR()3539 if (UserRestrictionsUtils.areEqual(newRestrictions, prevRestrictions)) { in propagateUserRestrictionsLR()3549 UserRestrictionsUtils.applyUserRestrictions( in propagateUserRestrictionsLR()[all …]
67 public class UserRestrictionsUtils { class70 private UserRestrictionsUtils() { in UserRestrictionsUtils() method in UserRestrictionsUtils
568 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()
159 import com.android.server.pm.UserRestrictionsUtils;7806 for (String restriction : UserRestrictionsUtils.USER_RESTRICTIONS) { in testSetUserRestriction_financeDo_invalidRestrictions_restrictionNotSet()7807 if (!UserRestrictionsUtils.canFinancedDeviceOwnerChange(restriction)) { in testSetUserRestriction_financeDo_invalidRestrictions_restrictionNotSet()7826 for (String restriction : UserRestrictionsUtils.USER_RESTRICTIONS) { in testSetUserRestriction_financeDo_validRestrictions_setsRestriction()7827 if (UserRestrictionsUtils.canFinancedDeviceOwnerChange(restriction)) { in testSetUserRestriction_financeDo_validRestrictions_setsRestriction()
42 import com.android.server.pm.UserRestrictionsUtils;102 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,
58 import com.android.server.pm.UserRestrictionsUtils;570 UserRestrictionsUtils.writeRestrictions( in writeToXml()872 userRestrictions = UserRestrictionsUtils.readRestrictions(parser); in readFromXml()1175 for (String deprecatedRestriction: UserRestrictionsUtils.DEPRECATED_USER_RESTRICTIONS) { in removeDeprecatedRestrictions()1201 key -> UserRestrictionsUtils.isLocal(adminType, key)); in getLocalUserRestrictions()1206 key -> UserRestrictionsUtils.isGlobal(adminType, key)); in getGlobalUserRestrictions()1315 UserRestrictionsUtils.dumpRestrictions(pw, " ", userRestrictions); in dump()
529 import com.android.server.pm.UserRestrictionsUtils;1321 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions, in resetCrossProfileIntentFiltersIfNeeded()2594 if (UserRestrictionsUtils.canParentOfProfileOwnerOfOrganizationOwnedDeviceChange( in moveDoUserRestrictionsToCopeParent()2685 UserRestrictionsUtils.getDefaultEnabledForManagedProfiles(); in maybeSetDefaultRestrictionsForAdminLocked()13441 if (!UserRestrictionsUtils.isValidRestriction(key)) {13466 if (!UserRestrictionsUtils.isValidRestriction(key)) {13490 if (!UserRestrictionsUtils.canDeviceOwnerChange(key)) {13497 if (!UserRestrictionsUtils.canFinancedDeviceOwnerChange(key)) {13506 && UserRestrictionsUtils.canProfileOwnerChange(13512 && UserRestrictionsUtils[all …]
974 Lcom/android/server/pm/UserRestrictionsUtils;20080 HSPLcom/android/server/pm/UserRestrictionsUtils;-><clinit>()V20081 PLcom/android/server/pm/UserRestrictionsUtils;->applyUserRestrictions(Landroid/content/Context;ILan…20082 HSPLcom/android/server/pm/UserRestrictionsUtils;->areEqual(Landroid/os/Bundle;Landroid/os/Bundle;)Z20083 HPLcom/android/server/pm/UserRestrictionsUtils;->isSettingRestrictedForUser(Landroid/content/Contex…20084 HPLcom/android/server/pm/UserRestrictionsUtils;->isValidRestriction(Ljava/lang/String;)Z20085 HSPLcom/android/server/pm/UserRestrictionsUtils;->merge(Landroid/os/Bundle;Landroid/os/Bundle;)V20086 HSPLcom/android/server/pm/UserRestrictionsUtils;->newSetWithUniqueCheck([Ljava/lang/String;)Ljava/u…20087 PLcom/android/server/pm/UserRestrictionsUtils;->nonNull(Landroid/os/Bundle;)Landroid/os/Bundle;20088 HSPLcom/android/server/pm/UserRestrictionsUtils;->readRestrictions(Lcom/android/modules/utils/Typed…[all …]
2720 HSPLcom/android/server/pm/UserRestrictionsUtils;->areEqual(Landroid/os/Bundle;Landroid/os/Bundle;)Z…2721 HSPLcom/android/server/pm/UserRestrictionsUtils;->isSettingRestrictedForUser(Landroid/content/Conte…2722 HSPLcom/android/server/pm/UserRestrictionsUtils;->isValidRestriction(Ljava/lang/String;)Z+]Landroid…
9355 // Allowed values are defined in UserRestrictionsUtils#USER_RESTRICTIONS.