Searched refs:UserRestrictionsUtils (Results 1 – 13 of 13) sorted by relevance
43 Bundle out = UserRestrictionsUtils.nonNull(null); in testNonNull()48 assertSame(in, UserRestrictionsUtils.nonNull(in)); in testNonNull()52 assertTrue(UserRestrictionsUtils.isEmpty(null)); in testIsEmpty()53 assertTrue(UserRestrictionsUtils.isEmpty(new Bundle())); in testIsEmpty()54 assertFalse(UserRestrictionsUtils.isEmpty(newRestrictions("a"))); in testIsEmpty()59 Bundle out = UserRestrictionsUtils.clone(in); in testClone()63 out = UserRestrictionsUtils.clone(null); in testClone()72 UserRestrictionsUtils.merge(a, b); in testMerge()76 UserRestrictionsUtils.merge(a, null); in testMerge()81 UserRestrictionsUtils.merge(a, a); in testMerge()[all …]
98 assertTrue(UserRestrictionsUtils.areEqual(restrictions, type.getDefaultRestrictions())); in testUserTypeBuilder_createUserType()235 assertTrue(UserRestrictionsUtils.areEqual(restrictions, aospType.getDefaultRestrictions())); in testUserTypeFactoryCustomize_profile()261 assertTrue(UserRestrictionsUtils.areEqual( in testUserTypeFactoryCustomize_profile()289 assertTrue(UserRestrictionsUtils.areEqual( in testUserTypeFactoryCustomize_full()
76 !UserRestrictionsUtils.areEqual(mUserRestrictions.get(userId), restrictions); in updateRestrictions()80 if (!UserRestrictionsUtils.isEmpty(restrictions)) { in updateRestrictions()96 if (UserRestrictionsUtils.contains(from, restriction)) { in moveRestriction()131 UserRestrictionsUtils.merge(result, mUserRestrictions.valueAt(i)); in mergeAll()143 if (UserRestrictionsUtils.contains(mUserRestrictions.valueAt(i), restriction)) { in getEnforcingUsers()192 UserRestrictionsUtils.writeRestrictions(serializer, mUserRestrictions.valueAt(i), in writeRestrictions()215 Bundle restrictions = UserRestrictionsUtils.readRestrictions(parser); in readRestrictions()229 UserRestrictionsUtils.dumpRestrictions(pw, prefix + " ", mUserRestrictions.valueAt(i)); in dumpRestrictions()
265 return UserRestrictionsUtils.clone(mDefaultRestrictions); in getDefaultRestrictions()270 UserRestrictionsUtils.merge(currentRestrictions, mDefaultRestrictions); in addDefaultRestrictionsTo()292 if (UserRestrictionsUtils.isValidRestriction(userRestriction)) { in dump()296 UserRestrictionsUtils.dumpRestrictions(pw, prefix + " ", restrictions); in dump()302 UserRestrictionsUtils.dumpRestrictions(pw, prefix + " ", mDefaultRestrictions); in dump()
1899 UserRestrictionsUtils.nonNull(mBaseUserRestrictions.getRestrictions(userId)); in computeEffectiveUserRestrictionsLR()1903 if (UserRestrictionsUtils.isEmpty(global) && local.isEmpty()) { in computeEffectiveUserRestrictionsLR()1907 final Bundle effective = UserRestrictionsUtils.clone(baseRestrictions); in computeEffectiveUserRestrictionsLR()1908 UserRestrictionsUtils.merge(effective, global); in computeEffectiveUserRestrictionsLR()1909 UserRestrictionsUtils.merge(effective, local.mergeAll()); in computeEffectiveUserRestrictionsLR()1943 if (!UserRestrictionsUtils.isValidRestriction(restrictionKey)) { in hasUserRestrictionOnAnyUser()1963 return UserRestrictionsUtils.isSettingRestrictedForUser(mContext, setting, userId, in isSettingRestrictedForUser()2048 return UserRestrictionsUtils.clone(getEffectiveUserRestrictions(userId)); in getUserRestrictions()2054 if (!UserRestrictionsUtils.isValidRestriction(restrictionKey)) { in hasBaseUserRestriction()2066 if (!UserRestrictionsUtils.isValidRestriction(key)) { in setUserRestriction()[all …]
34 per-file UserRestrictionsUtils.java = omakoto@google.com, rubinxu@google.com, sandness@google.com, …
64 public class UserRestrictionsUtils { class67 private UserRestrictionsUtils() { in UserRestrictionsUtils() method in UserRestrictionsUtils
293 final Bundle restrictions = UserRestrictionsUtils.readRestrictions(parser); 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,
78 import com.android.server.pm.UserRestrictionsUtils;258 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,266 && UserRestrictionsUtils.restrictionsChanged(prevRestrictions,
26654 HSPLcom/android/server/pm/UserRestrictionsUtils;-><clinit>()V26655 HSPLcom/android/server/pm/UserRestrictionsUtils;->applyUserRestriction(Landroid/content/Context;ILj…26656 HSPLcom/android/server/pm/UserRestrictionsUtils;->applyUserRestrictions(Landroid/content/Context;IL…26657 HSPLcom/android/server/pm/UserRestrictionsUtils;->areEqual(Landroid/os/Bundle;Landroid/os/Bundle;)Z26658 HPLcom/android/server/pm/UserRestrictionsUtils;->canDeviceOwnerChange(Ljava/lang/String;)Z26659 HPLcom/android/server/pm/UserRestrictionsUtils;->canProfileOwnerChange(Ljava/lang/String;I)Z26660 HSPLcom/android/server/pm/UserRestrictionsUtils;->clone(Landroid/os/Bundle;)Landroid/os/Bundle;26661 PLcom/android/server/pm/UserRestrictionsUtils;->contains(Landroid/os/Bundle;Ljava/lang/String;)Z26662 HPLcom/android/server/pm/UserRestrictionsUtils;->dumpRestrictions(Ljava/io/PrintWriter;Ljava/lang/S…26663 HSPLcom/android/server/pm/UserRestrictionsUtils;->getDefaultEnabledForManagedProfiles()Ljava/util/S…[all …]
6443 // Allowed values are defined in UserRestrictionsUtils#USER_RESTRICTIONS.