/packages/apps/Settings/src/com/android/settings/users/ |
D | UserCapabilities.java | 73 final boolean hasBaseUserRestriction = RestrictedLockUtilsInternal.hasBaseUserRestriction( in updateAddUserCapabilities() 75 mDisallowAddUserSetByAdmin = mEnforcedAdmin != null && !hasBaseUserRestriction; in updateAddUserCapabilities() 76 mDisallowAddUser = (mEnforcedAdmin != null || hasBaseUserRestriction); in updateAddUserCapabilities()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | EmergencyBroadcastPreferenceControllerTest.java | 88 when(mAccountHelper.hasBaseUserRestriction(anyString(), anyInt())).thenReturn(false); in isAvailable_notAdminUser_shouldReturnFalse() 100 when(mAccountHelper.hasBaseUserRestriction( in isAvailable_hasConfigCellBroadcastRestriction_shouldReturnFalse() 113 when(mAccountHelper.hasBaseUserRestriction(anyString(), anyInt())).thenReturn(false); in isAvailable_cellBroadcastAppLinkDisabled_shouldReturnFalse() 125 when(mAccountHelper.hasBaseUserRestriction(anyString(), anyInt())).thenReturn(false); in isAvailable_cellBroadcastReceiverDisabled_shouldReturnFalse()
|
D | AdjustVolumeRestrictedPreferenceControllerTest.java | 66 when(mAccountHelper.hasBaseUserRestriction( in updateState_hasBaseRestriction_shouldDisable() 79 when(mAccountHelper.hasBaseUserRestriction( in updateState_NoBaseRestriction_shouldCheckRestriction()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowRestrictedLockUtilsInternal.java | 44 public static void setHasBaseUserRestriction(boolean hasBaseUserRestriction) { in setHasBaseUserRestriction() argument 45 sHasBaseUserRestriction = hasBaseUserRestriction; in setHasBaseUserRestriction() 60 protected static boolean hasBaseUserRestriction(Context context, in hasBaseUserRestriction() method in ShadowRestrictedLockUtilsInternal
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AccountRestrictionHelper.java | 55 if (hasBaseUserRestriction(userRestriction, userId)) { in enforceRestrictionOnPreference() 67 public boolean hasBaseUserRestriction(String userRestriction, @UserIdInt int userId) { in hasBaseUserRestriction() method in AccountRestrictionHelper 68 return RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, userRestriction, in hasBaseUserRestriction()
|
/packages/apps/Settings/src/com/android/settings/location/ |
D | LocationSwitchBarController.java | 72 final boolean hasBaseUserRestriction = in onLocationModeChanged() 76 if (!hasBaseUserRestriction && admin != null) { in onLocationModeChanged()
|
D | LocationEnabler.java | 153 return RestrictedLockUtilsInternal.hasBaseUserRestriction( in hasShareLocationRestriction()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/ |
D | ExternalSources.java | 114 return !um.hasBaseUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, userHandle) in canChange() 115 && !um.hasBaseUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES_GLOBALLY, in canChange()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | MobilePlanPreferenceController.java | 23 import static com.android.settingslib.RestrictedLockUtilsInternal.hasBaseUserRestriction; 121 && !hasBaseUserRestriction(mContext, DISALLOW_CONFIG_MOBILE_NETWORKS, myUserId()); in isAvailable()
|
D | NetworkResetRestrictionChecker.java | 39 return RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in hasUserBaseRestriction()
|
D | MobileNetworkPreferenceController.java | 84 RestrictedLockUtilsInternal.hasBaseUserRestriction( in isUserRestricted()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/ |
D | AndroidBeamPreferenceControllerTest.java | 79 when(RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in setUp() 122 when(RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in isBeamEnable_disAllowBeam_shouldReturnFalse()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/ |
D | UsbBackend.java | 191 return userManager.hasBaseUserRestriction( in isUsbFileTransferRestrictedBySystem() 196 return userManager.hasBaseUserRestriction( in isUsbTetheringRestrictedBySystem()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/ |
D | UsbBackendTest.java | 163 when(mUserManager.hasBaseUserRestriction( in areFunctionsSupported_fileTransferDisallowed_shouldReturnFalse() 176 when(mUserManager.hasBaseUserRestriction( in areFunctionsSupported_fileTransferAllowed_shouldReturnTrue()
|
/packages/apps/Settings/src/com/android/settings/security/ |
D | RestrictedEncryptionPreferenceController.java | 43 return !mUserManager.hasBaseUserRestriction(mUserRestriction, mUserHandle); in isAvailable()
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
D | AndroidBeamEnabler.java | 39 mBeamDisallowedBySystem = RestrictedLockUtilsInternal.hasBaseUserRestriction(context, in AndroidBeamEnabler()
|
/packages/apps/Car/Settings/src/com/android/car/settings/system/ |
D | FactoryResetEntryPreferenceController.java | 85 return mUserManager.hasBaseUserRestriction(DISALLOW_FACTORY_RESET, userHandle); in shouldDisable()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/ |
D | OemUnlockPreferenceController.java | 124 && !mUserManager.hasBaseUserRestriction( in isOemUnlockAllowedByUserAndCarrier()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | EmergencyBroadcastPreferenceController.java | 82 && !mHelper.hasBaseUserRestriction( in isAvailable()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowRestrictedLockUtilsInternal.java | 88 protected static boolean hasBaseUserRestriction(Context context, in hasBaseUserRestriction() method in ShadowRestrictedLockUtilsInternal
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/firmwareversion/ |
D | FirmwareVersionDetailPreferenceController.java | 125 mFunDisallowedBySystem = RestrictedLockUtilsInternal.hasBaseUserRestriction( in initializeAdminPermissions()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/ |
D | UserRestrictionsFragment.java | 97 userManager.hasBaseUserRestriction(key, user))) in createUserRestrictionItems()
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | TopLevelWallpaperPreferenceController.java | 127 if (RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in disablePreferenceIfManaged()
|
D | WallpaperPreferenceController.java | 131 if (RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in disablePreferenceIfManaged()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/ |
D | UninstallPreference.java | 102 RestrictedLockUtilsInternal.hasBaseUserRestriction( in isUninstallRestricted()
|