Searched refs:UserRestrictionsUtils (Results 1 – 14 of 14) sorted by relevance
43 Bundle out = UserRestrictionsUtils.nonNull(null); in testNonNull()48 assertSame(in, UserRestrictionsUtils.nonNull(in)); in testNonNull()55 UserRestrictionsUtils.merge(a, b); in testMerge()59 UserRestrictionsUtils.merge(a, null); in testMerge()64 UserRestrictionsUtils.merge(a, a); in testMerge()71 assertFalse(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_RECORD_AUDIO)); in testCanDeviceOwnerChange()72 assertFalse(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_WALLPAPER)); in testCanDeviceOwnerChange()73 assertTrue(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_ADD_USER)); in testCanDeviceOwnerChange()74 assertTrue(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_USER_SWITCH)); in testCanDeviceOwnerChange()79 assertFalse(UserRestrictionsUtils.canProfileOwnerChange( in testCanProfileOwnerChange()[all …]
111 assertTrue(UserRestrictionsUtils.areEqual(restrictions, type.getDefaultRestrictions())); in testUserTypeBuilder_createUserType()272 assertTrue(UserRestrictionsUtils.areEqual(restrictions, aospType.getDefaultRestrictions())); in testUserTypeFactoryCustomize_profile()298 assertTrue(UserRestrictionsUtils.areEqual( in testUserTypeFactoryCustomize_profile()326 assertTrue(UserRestrictionsUtils.areEqual( in testUserTypeFactoryCustomize_full()
78 !UserRestrictionsUtils.areEqual(mUserRestrictions.get(userId), restrictions); in updateRestrictions()98 if (UserRestrictionsUtils.contains(from, restriction)) { in moveRestriction()133 UserRestrictionsUtils.merge(result, mUserRestrictions.valueAt(i)); in mergeAll()145 if (UserRestrictionsUtils.contains(mUserRestrictions.valueAt(i), restriction)) { in getEnforcingUsers()194 UserRestrictionsUtils.writeRestrictions(serializer, mUserRestrictions.valueAt(i), in writeRestrictions()217 Bundle restrictions = UserRestrictionsUtils.readRestrictions(parser); in readRestrictions()231 UserRestrictionsUtils.dumpRestrictions(pw, prefix + " ", mUserRestrictions.valueAt(i)); in dumpRestrictions()
317 UserRestrictionsUtils.merge(currentRestrictions, mDefaultRestrictions); in addDefaultRestrictionsTo()356 if (UserRestrictionsUtils.isValidRestriction(userRestriction)) { in dump()360 UserRestrictionsUtils.dumpRestrictions(pw, restrictionsPrefix, restrictions); in dump()366 UserRestrictionsUtils.dumpRestrictions(pw, restrictionsPrefix, mDefaultRestrictions); in dump()
2021 UserRestrictionsUtils.nonNull(mBaseUserRestrictions.getRestrictions(userId)); in computeEffectiveUserRestrictionsLR()2030 UserRestrictionsUtils.merge(effective, global); in computeEffectiveUserRestrictionsLR()2031 UserRestrictionsUtils.merge(effective, local.mergeAll()); in computeEffectiveUserRestrictionsLR()2065 if (!UserRestrictionsUtils.isValidRestriction(restrictionKey)) { in hasUserRestrictionOnAnyUser()2085 return UserRestrictionsUtils.isSettingRestrictedForUser(mContext, setting, userId, in isSettingRestrictedForUser()2176 if (!UserRestrictionsUtils.isValidRestriction(restrictionKey)) { in hasBaseUserRestriction()2188 if (!UserRestrictionsUtils.isValidRestriction(key)) { in setUserRestriction()2213 final Bundle prevAppliedRestrictions = UserRestrictionsUtils.nonNull( in updateUserRestrictionsInternalLR()2264 if (UserRestrictionsUtils.areEqual(newRestrictions, prevRestrictions)) { in propagateUserRestrictionsLR()2274 UserRestrictionsUtils.applyUserRestrictions( in propagateUserRestrictionsLR()[all …]
66 public class UserRestrictionsUtils { class69 private UserRestrictionsUtils() { in UserRestrictionsUtils() method in UserRestrictionsUtils
384 final Bundle restrictions = UserRestrictionsUtils in customizeBuilders()
26 import com.android.server.pm.UserRestrictionsUtils;118 return UserRestrictionsUtils.areEqual((Bundle) item, expected); in checkUserRestrictions()137 return UserRestrictionsUtils.areEqual(expected.getRestrictions(userId), in checkUserRestrictions()
39 import com.android.server.pm.UserRestrictionsUtils;96 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,
49 import com.android.server.pm.UserRestrictionsUtils;486 UserRestrictionsUtils.writeRestrictions( in writeToXml()730 userRestrictions = UserRestrictionsUtils.readRestrictions(parser); in readFromXml()953 for (String deprecatedRestriction: UserRestrictionsUtils.DEPRECATED_USER_RESTRICTIONS) { in removeDeprecatedRestrictions()979 key -> UserRestrictionsUtils.isLocal(adminType, key)); in getLocalUserRestrictions()984 key -> UserRestrictionsUtils.isGlobal(adminType, key)); in getGlobalUserRestrictions()1119 UserRestrictionsUtils.dumpRestrictions(pw, " ", userRestrictions); in dump()
336 import com.android.server.pm.UserRestrictionsUtils;1011 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions, in resetCrossProfileIntentFiltersIfNeeded()2166 if (UserRestrictionsUtils.canProfileOwnerOfOrganizationOwnedDeviceChange(restriction)) { in moveDoUserRestrictionsToCopeParent()2207 UserRestrictionsUtils.getDefaultEnabledForManagedProfiles()); in maybeSetDefaultProfileOwnerUserRestrictions()2401 ? UserRestrictionsUtils.canDeviceOwnerChange(key) in migrateUserRestrictionsForUser()2402 : UserRestrictionsUtils.canProfileOwnerChange(key, user.getIdentifier()); in migrateUserRestrictionsForUser()8787 UserRestrictionsUtils.getDefaultEnabledForManagedProfiles());11086 if (!UserRestrictionsUtils.isValidRestriction(key)) {11096 if (!UserRestrictionsUtils.canDeviceOwnerChange(key)) {11103 && UserRestrictionsUtils.canProfileOwnerChange(key, userHandle);[all …]
92 import com.android.server.pm.UserRestrictionsUtils;280 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,288 && UserRestrictionsUtils.restrictionsChanged(prevRestrictions,
33459 HSPLcom/android/server/pm/UserRestrictionsUtils;-><clinit>()V33460 HSPLcom/android/server/pm/UserRestrictionsUtils;->applyUserRestriction(Landroid/content/Context;ILj…33461 HSPLcom/android/server/pm/UserRestrictionsUtils;->applyUserRestrictions(Landroid/content/Context;IL…33462 HSPLcom/android/server/pm/UserRestrictionsUtils;->areEqual(Landroid/os/Bundle;Landroid/os/Bundle;)Z…33463 HPLcom/android/server/pm/UserRestrictionsUtils;->canDeviceOwnerChange(Ljava/lang/String;)Z+]Ljava/u…33464 HPLcom/android/server/pm/UserRestrictionsUtils;->canProfileOwnerChange(Ljava/lang/String;I)Z+]Ljava…33465 HPLcom/android/server/pm/UserRestrictionsUtils;->contains(Landroid/os/Bundle;Ljava/lang/String;)Z33466 HPLcom/android/server/pm/UserRestrictionsUtils;->dumpRestrictions(Ljava/io/PrintWriter;Ljava/lang/S…33467 HSPLcom/android/server/pm/UserRestrictionsUtils;->getDefaultEnabledForManagedProfiles()Ljava/util/S…33468 HSPLcom/android/server/pm/UserRestrictionsUtils;->getNewUserRestrictionSetting(Landroid/content/Con…[all …]
7507 // Allowed values are defined in UserRestrictionsUtils#USER_RESTRICTIONS.