/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | TetherUtil.java | 30 final boolean hasBaseUserRestriction = RestrictedLockUtilsInternal.hasBaseUserRestriction( in isTetherAvailable() 32 return (cm.isTetheringSupported() || tetherConfigDisallowed) && !hasBaseUserRestriction; in isTetherAvailable()
|
D | RestrictedPreferenceHelper.java | 92 if (RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, mAttrUserRestriction, in RestrictedPreferenceHelper()
|
D | RestrictedLockUtilsInternal.java | 213 public static boolean hasBaseUserRestriction(Context context, in hasBaseUserRestriction() method in RestrictedLockUtilsInternal 216 return um.hasBaseUserRestriction(userRestriction, UserHandle.of(userId)); in hasBaseUserRestriction()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/utils/ |
D | UserRestrictionChecker.kt | 22 fun hasBaseUserRestriction(context: Context, userRestriction: String, userId: Int): Boolean { in hasBaseUserRestriction() method 23 return RestrictedLockUtilsInternal.hasBaseUserRestriction(context, userRestriction, userId) in hasBaseUserRestriction()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/base/interactor/ |
D | DisabledByPolicyInteractor.kt | 86 !restrictedLockProxy.hasBaseUserRestriction(user.identifier, userRestriction) in isDisabled() 111 fun hasBaseUserRestriction(userId: Int, userRestriction: String?): Boolean = method in com.android.systemui.qs.tiles.base.interactor.RestrictedLockProxy 112 RestrictedLockUtilsInternal.hasBaseUserRestriction(
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/brightness/data/repository/ |
D | BrightnessPolicyRepositoryImplTest.kt | 62 whenever(hasBaseUserRestriction(any(), anyString(), anyInt())).thenReturn(false) in <lambda>() 147 mockUserRestrictionChecker.hasBaseUserRestriction( in brightnessBaseUserRestriction_flagOff_noRestriction() 178 mockUserRestrictionChecker.hasBaseUserRestriction( in bothRestrictions_returnsSetEnforcedAdminFromCheck() 198 mockUserRestrictionChecker.hasBaseUserRestriction( in brightnessBaseUserRestriction_flagOn_emptyRestriction()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/base/interactor/ |
D | DisabledByPolicyInteractorTest.kt | 90 whenever(restrictedLockProxy.hasBaseUserRestriction(anyInt(), anyString())) in testDisabledWhenAdminWithNoRestrictions() 103 whenever(restrictedLockProxy.hasBaseUserRestriction(anyInt(), anyString())) in testEnabledWhenAdminWithRestrictions()
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/model/app/ |
D | ApplicationInfos.kt | 47 context.userManager.hasBaseUserRestriction(UserManager.DISALLOW_APPS_CONTROL, userHandle)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/brightness/data/repository/ |
D | BrightnessPolicyRepository.kt | 73 userRestrictionChecker.hasBaseUserRestriction( in user()
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/model/enterprise/ |
D | RestrictionsProvider.kt | 80 if (userManager.hasBaseUserRestriction(key, UserHandle.of(restrictions.userId))) { in restrictedModeState()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | TetherUtilTest.java | 138 when(mUserManager.hasBaseUserRestriction( in setupIsTetherAvailable()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/legacyhelper/data/ |
D | LegacyUserDataHelper.kt | 119 !userRestrictionChecker.hasBaseUserRestriction( in getEnforcedAdmin()
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/model/app/ |
D | ApplicationInfosTest.kt | 120 userManager.hasBaseUserRestriction(UserManager.DISALLOW_APPS_CONTROL, app.userHandle) in isDisallowControl()
|
/frameworks/base/core/java/android/os/ |
D | IUserManager.aidl | 94 boolean hasBaseUserRestriction(String restrictionKey, int userId); in hasBaseUserRestriction() method
|
D | UserManager.java | 4031 public boolean hasBaseUserRestriction(@UserRestrictionKey @NonNull String restrictionKey, in hasBaseUserRestriction() method in UserManager 4034 return mService.hasBaseUserRestriction(restrictionKey, userHandle.getIdentifier()); in hasBaseUserRestriction()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/ |
D | EditUserInfoController.java | 223 return RestrictedLockUtilsInternal.hasBaseUserRestriction( in isChangePhotoRestrictedByBase()
|
D | CreateUserDialogController.java | 377 return RestrictedLockUtilsInternal.hasBaseUserRestriction( in isChangePhotoRestrictedByBase()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerServiceUserInfoTest.java | 332 assertFalse(mUserManagerService.hasBaseUserRestriction(restriction, userId)); in testUserRestrictionsUpgradeFromV9() 351 assertFalse(mUserManagerService.hasBaseUserRestriction(restriction, userId)); in testUserRestrictionsUpgradeFromV9()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/brightness/ |
D | BrightnessController.java | 381 && RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in checkRestrictionAndSetEnabled()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/ |
D | QSTileImpl.java | 526 if (admin != null && !RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in checkIfRestrictionEnforcedByAdminOnly()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/ |
D | MediaOutputController.java | 895 return um.hasBaseUserRestriction(UserManager.DISALLOW_ADJUST_VOLUME, in hasAdjustVolumeUserRestriction()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserManagerService.java | 3422 if (hasBaseUserRestriction(restrictionKey, userId)) { in getUserRestrictionSources() 3445 public boolean hasBaseUserRestriction(String restrictionKey, @UserIdInt int userId) { in hasBaseUserRestriction() method in UserManagerService
|
/frameworks/base/core/api/ |
D | test-current.txt | 2510 …USERS, android.Manifest.permission.CREATE_USERS}) public boolean hasBaseUserRestriction(@NonNull S…
|
/frameworks/base/boot/ |
D | boot-image-profile.txt | 12140 HSPLandroid/os/IUserManager$Stub$Proxy;->hasBaseUserRestriction(Ljava/lang/String;I)Z 12982 HSPLandroid/os/UserManager;->hasBaseUserRestriction(Ljava/lang/String;Landroid/os/UserHandle;)Z
|
/frameworks/base/config/ |
D | boot-image-profile.txt | 12143 HSPLandroid/os/IUserManager$Stub$Proxy;->hasBaseUserRestriction(Ljava/lang/String;I)Z 12985 HSPLandroid/os/UserManager;->hasBaseUserRestriction(Ljava/lang/String;Landroid/os/UserHandle;)Z
|