Home
last modified time | relevance | path

Searched refs:UserRestrictionsUtils (Results 1 – 14 of 14) sorted by relevance

/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DUserRestrictionsUtilsTest.java55 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 …]
H A DUserManagerServiceUserTypeTest.java111 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()
/aosp12/frameworks/base/services/core/java/com/android/server/pm/
H A DRestrictionsSet.java78 !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()
H A DUserTypeDetails.java317 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()
H A DUserManagerService.java2031 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 …]
H A DUserRestrictionsUtils.java66 public class UserRestrictionsUtils { class
69 private UserRestrictionsUtils() { in UserRestrictionsUtils() method in UserRestrictionsUtils
H A DUserTypeFactory.java384 final Bundle restrictions = UserRestrictionsUtils in customizeBuilders()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DMockUtils.java26 import com.android.server.pm.UserRestrictionsUtils;
118 return UserRestrictionsUtils.areEqual((Bundle) item, expected); in checkUserRestrictions()
137 return UserRestrictionsUtils.areEqual(expected.getRestrictions(userId), in checkUserRestrictions()
/aosp12/frameworks/base/services/core/java/com/android/server/oemlock/
H A DOemLockService.java39 import com.android.server.pm.UserRestrictionsUtils;
96 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,
/aosp12/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DActiveAdmin.java49 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()
H A DDevicePolicyManagerService.java339 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 …]
/aosp12/frameworks/base/services/core/java/com/android/server/
H A DBluetoothManagerService.java92 import com.android.server.pm.UserRestrictionsUtils;
274 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,
282 && UserRestrictionsUtils.restrictionsChanged(prevRestrictions,
/aosp12/frameworks/base/services/
H A Dart-profile33459 HSPLcom/android/server/pm/UserRestrictionsUtils;-><clinit>()V
33460 HSPLcom/android/server/pm/UserRestrictionsUtils;->applyUserRestriction(Landroid/content/Context;ILj…
33465 HPLcom/android/server/pm/UserRestrictionsUtils;->contains(Landroid/os/Bundle;Ljava/lang/String;)Z
33467 HSPLcom/android/server/pm/UserRestrictionsUtils;->getDefaultEnabledForManagedProfiles()Ljava/util/S…
33470 HSPLcom/android/server/pm/UserRestrictionsUtils;->isLocal(ILjava/lang/String;)Z
33472 PLcom/android/server/pm/UserRestrictionsUtils;->isSystemApp(I[Ljava/lang/String;)Z
33474 HSPLcom/android/server/pm/UserRestrictionsUtils;->merge(Landroid/os/Bundle;Landroid/os/Bundle;)V
33475 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 …]
/aosp12/frameworks/proto_logging/stats/
H A Datoms.proto7708 // Allowed values are defined in UserRestrictionsUtils#USER_RESTRICTIONS.