Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserRestrictionsUtilsTest.java43 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 …]
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()
/frameworks/base/services/core/java/com/android/server/pm/
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()
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()
DUserManagerService.java2021 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 …]
DUserRestrictionsUtils.java66 public class UserRestrictionsUtils { class
69 private UserRestrictionsUtils() { in UserRestrictionsUtils() method in UserRestrictionsUtils
DUserTypeFactory.java384 final Bundle restrictions = UserRestrictionsUtils in customizeBuilders()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
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()
/frameworks/base/services/core/java/com/android/server/oemlock/
DOemLockService.java39 import com.android.server.pm.UserRestrictionsUtils;
96 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
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()
DDevicePolicyManagerService.java336 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 …]
/frameworks/base/services/core/java/com/android/server/
DBluetoothManagerService.java92 import com.android.server.pm.UserRestrictionsUtils;
280 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,
288 && UserRestrictionsUtils.restrictionsChanged(prevRestrictions,
/frameworks/base/services/
Dart-profile33459 HSPLcom/android/server/pm/UserRestrictionsUtils;-><clinit>()V
33460 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;)Z
33466 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 …]
/frameworks/proto_logging/stats/
Datoms.proto7507 // Allowed values are defined in UserRestrictionsUtils#USER_RESTRICTIONS.