Home
last modified time | relevance | path

Searched refs:hasBaseUserRestriction (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DTetherUtil.java30 final boolean hasBaseUserRestriction = RestrictedLockUtilsInternal.hasBaseUserRestriction( in isTetherAvailable()
32 return (cm.isTetheringSupported() || tetherConfigDisallowed) && !hasBaseUserRestriction; in isTetherAvailable()
DRestrictedPreferenceHelper.java92 if (RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, mAttrUserRestriction, in RestrictedPreferenceHelper()
DRestrictedLockUtilsInternal.java213 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/
DUserRestrictionChecker.kt22 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/
DDisabledByPolicyInteractor.kt86 !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/
DBrightnessPolicyRepositoryImplTest.kt62 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/
DDisabledByPolicyInteractorTest.kt90 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/
DApplicationInfos.kt47 context.userManager.hasBaseUserRestriction(UserManager.DISALLOW_APPS_CONTROL, userHandle)
/frameworks/base/packages/SystemUI/src/com/android/systemui/brightness/data/repository/
DBrightnessPolicyRepository.kt73 userRestrictionChecker.hasBaseUserRestriction( in user()
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/model/enterprise/
DRestrictionsProvider.kt80 if (userManager.hasBaseUserRestriction(key, UserHandle.of(restrictions.userId))) { in restrictedModeState()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DTetherUtilTest.java138 when(mUserManager.hasBaseUserRestriction( in setupIsTetherAvailable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/legacyhelper/data/
DLegacyUserDataHelper.kt119 !userRestrictionChecker.hasBaseUserRestriction( in getEnforcedAdmin()
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/model/app/
DApplicationInfosTest.kt120 userManager.hasBaseUserRestriction(UserManager.DISALLOW_APPS_CONTROL, app.userHandle) in isDisallowControl()
/frameworks/base/core/java/android/os/
DIUserManager.aidl94 boolean hasBaseUserRestriction(String restrictionKey, int userId); in hasBaseUserRestriction() method
DUserManager.java4031 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/
DEditUserInfoController.java223 return RestrictedLockUtilsInternal.hasBaseUserRestriction( in isChangePhotoRestrictedByBase()
DCreateUserDialogController.java377 return RestrictedLockUtilsInternal.hasBaseUserRestriction( in isChangePhotoRestrictedByBase()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceUserInfoTest.java332 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/
DBrightnessController.java381 && RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in checkRestrictionAndSetEnabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileImpl.java526 if (admin != null && !RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in checkIfRestrictionEnforcedByAdminOnly()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
DMediaOutputController.java895 return um.hasBaseUserRestriction(UserManager.DISALLOW_ADJUST_VOLUME, in hasAdjustVolumeUserRestriction()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java3422 if (hasBaseUserRestriction(restrictionKey, userId)) { in getUserRestrictionSources()
3445 public boolean hasBaseUserRestriction(String restrictionKey, @UserIdInt int userId) { in hasBaseUserRestriction() method in UserManagerService
/frameworks/base/core/api/
Dtest-current.txt2510 …USERS, android.Manifest.permission.CREATE_USERS}) public boolean hasBaseUserRestriction(@NonNull S…
/frameworks/base/boot/
Dboot-image-profile.txt12140 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/
Dboot-image-profile.txt12143 HSPLandroid/os/IUserManager$Stub$Proxy;->hasBaseUserRestriction(Ljava/lang/String;I)Z
12985 HSPLandroid/os/UserManager;->hasBaseUserRestriction(Ljava/lang/String;Landroid/os/UserHandle;)Z

12