Searched refs:UserRestrictionsUtils (Results 1 – 14 of 14) sorted by relevance
55 UserRestrictionsUtils.merge(a, b); in testMerge()59 UserRestrictionsUtils.merge(a, null); in testMerge()64 UserRestrictionsUtils.merge(a, a); in testMerge()118 UserRestrictionsUtils.moveRestriction( in testMoveRestriction()143 assertTrue(UserRestrictionsUtils.areEqual( in testAreEqual()147 assertTrue(UserRestrictionsUtils.areEqual( in testAreEqual()151 assertTrue(UserRestrictionsUtils.areEqual( in testAreEqual()155 assertTrue(UserRestrictionsUtils.areEqual( in testAreEqual()159 assertTrue(UserRestrictionsUtils.areEqual( in testAreEqual()163 assertFalse(UserRestrictionsUtils.areEqual( in testAreEqual()[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()
2031 UserRestrictionsUtils.merge(effective, global); in computeEffectiveUserRestrictionsLR()2189 if (!UserRestrictionsUtils.isValidRestriction(key)) { in setUserRestriction()2275 UserRestrictionsUtils.applyUserRestrictions( in propagateUserRestrictionsLR()2693 UserRestrictionsUtils in readUserListLP()2983 UserRestrictionsUtils.merge(newRestrictions, in upgradeProfileToTypeLU()3153 UserRestrictionsUtils.writeRestrictions(serializer, in writeUserLP()3157 UserRestrictionsUtils.writeRestrictions(serializer, in writeUserLP()3213 UserRestrictionsUtils in writeUserListLP()5203 UserRestrictionsUtils.dumpRestrictions( in dump()5206 UserRestrictionsUtils.dumpRestrictions( in dump()[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()
339 import com.android.server.pm.UserRestrictionsUtils;1028 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions, in resetCrossProfileIntentFiltersIfNeeded()2243 UserRestrictionsUtils.getDefaultEnabledForManagedProfiles()); in maybeSetDefaultProfileOwnerUserRestrictions()2437 ? UserRestrictionsUtils.canDeviceOwnerChange(key) in migrateUserRestrictionsForUser()2438 : UserRestrictionsUtils.canProfileOwnerChange(key, user.getIdentifier()); in migrateUserRestrictionsForUser()8856 UserRestrictionsUtils.getDefaultEnabledForManagedProfiles());11281 if (!UserRestrictionsUtils.isValidRestriction(key)) {11291 if (!UserRestrictionsUtils.canDeviceOwnerChange(key)) {11298 && UserRestrictionsUtils.canProfileOwnerChange(key, userHandle);11301 && UserRestrictionsUtils.canProfileOwnerOfOrganizationOwnedDeviceChange([all …]
92 import com.android.server.pm.UserRestrictionsUtils;274 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,282 && UserRestrictionsUtils.restrictionsChanged(prevRestrictions,
33459 HSPLcom/android/server/pm/UserRestrictionsUtils;-><clinit>()V33460 HSPLcom/android/server/pm/UserRestrictionsUtils;->applyUserRestriction(Landroid/content/Context;ILj…33465 HPLcom/android/server/pm/UserRestrictionsUtils;->contains(Landroid/os/Bundle;Ljava/lang/String;)Z33467 HSPLcom/android/server/pm/UserRestrictionsUtils;->getDefaultEnabledForManagedProfiles()Ljava/util/S…33470 HSPLcom/android/server/pm/UserRestrictionsUtils;->isLocal(ILjava/lang/String;)Z33472 PLcom/android/server/pm/UserRestrictionsUtils;->isSystemApp(I[Ljava/lang/String;)Z33474 HSPLcom/android/server/pm/UserRestrictionsUtils;->merge(Landroid/os/Bundle;Landroid/os/Bundle;)V33475 HSPLcom/android/server/pm/UserRestrictionsUtils;->newSetWithUniqueCheck([Ljava/lang/String;)Ljava/u…33476 HSPLcom/android/server/pm/UserRestrictionsUtils;->nonNull(Landroid/os/Bundle;)Landroid/os/Bundle;33479 HSPLcom/android/server/pm/UserRestrictionsUtils;->readRestrictions(Lorg/xmlpull/v1/XmlPullParser;)L…[all …]
7708 // Allowed values are defined in UserRestrictionsUtils#USER_RESTRICTIONS.