Home
last modified time | relevance | path

Searched refs:UserRestrictionsUtils (Results 1 – 13 of 13) 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()
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 …]
DUserManagerServiceUserTypeTest.java98 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()
/frameworks/base/services/core/java/com/android/server/pm/
DRestrictionsSet.java76 !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()
DUserTypeDetails.java265 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()
DUserManagerService.java1899 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 …]
DOWNERS34 per-file UserRestrictionsUtils.java = omakoto@google.com, rubinxu@google.com, sandness@google.com, …
DUserRestrictionsUtils.java64 public class UserRestrictionsUtils { class
67 private UserRestrictionsUtils() { in UserRestrictionsUtils() method in UserRestrictionsUtils
DUserTypeFactory.java293 final Bundle restrictions = UserRestrictionsUtils.readRestrictions(parser); 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/core/java/com/android/server/
DBluetoothManagerService.java78 import com.android.server.pm.UserRestrictionsUtils;
258 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,
266 && UserRestrictionsUtils.restrictionsChanged(prevRestrictions,
/frameworks/base/services/
Dart-profile26654 HSPLcom/android/server/pm/UserRestrictionsUtils;-><clinit>()V
26655 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;)Z
26658 HPLcom/android/server/pm/UserRestrictionsUtils;->canDeviceOwnerChange(Ljava/lang/String;)Z
26659 HPLcom/android/server/pm/UserRestrictionsUtils;->canProfileOwnerChange(Ljava/lang/String;I)Z
26660 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;)Z
26662 HPLcom/android/server/pm/UserRestrictionsUtils;->dumpRestrictions(Ljava/io/PrintWriter;Ljava/lang/S…
26663 HSPLcom/android/server/pm/UserRestrictionsUtils;->getDefaultEnabledForManagedProfiles()Ljava/util/S…
[all …]
/frameworks/base/cmds/statsd/src/
Datoms.proto6443 // Allowed values are defined in UserRestrictionsUtils#USER_RESTRICTIONS.