Home
last modified time | relevance | path

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

1234

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowRestrictedLockUtilsInternal.java44 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/users/
DUserCapabilities.java81 final boolean hasBaseUserRestriction = RestrictedLockUtilsInternal.hasBaseUserRestriction( in updateAddUserCapabilities()
83 mDisallowAddUserSetByAdmin = mEnforcedAdmin != null && !hasBaseUserRestriction; in updateAddUserCapabilities()
84 mDisallowAddUser = (mEnforcedAdmin != null || hasBaseUserRestriction); in updateAddUserCapabilities()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DEmergencyBroadcastPreferenceControllerTest.java93 when(mAccountHelper.hasBaseUserRestriction(anyString(), anyInt())).thenReturn(false); in isAvailable_notAdminUser_shouldReturnFalse()
105 when(mAccountHelper.hasBaseUserRestriction( in isAvailable_hasConfigCellBroadcastRestriction_shouldReturnFalse()
118 when(mAccountHelper.hasBaseUserRestriction(anyString(), anyInt())).thenReturn(false); in isAvailable_cellBroadcastAppLinkDisabled_shouldReturnFalse()
130 when(mAccountHelper.hasBaseUserRestriction(anyString(), anyInt())).thenReturn(false); in isAvailable_cellBroadcastReceiverDisabled_shouldReturnFalse()
DAdjustVolumeRestrictedPreferenceControllerTest.java66 when(mAccountHelper.hasBaseUserRestriction( in updateState_hasBaseRestriction_shouldDisable()
79 when(mAccountHelper.hasBaseUserRestriction( in updateState_NoBaseRestriction_shouldCheckRestriction()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountRestrictionHelper.java55 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/Car/Launcher/libs/hidden-apis-compat/hidden-apis-enabled/src/com/android/car/hidden/apis/
DHiddenApiAccess.java58 public static boolean hasBaseUserRestriction(UserManager userManager, String restriction, in hasBaseUserRestriction() method in HiddenApiAccess
60 return userManager.hasBaseUserRestriction(restriction, user); in hasBaseUserRestriction()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/
DBaseSettingsQCItemTestCase.java48 when(mUm.hasBaseUserRestriction(any(), any())).thenReturn(false); in baseSetUp()
54 when(mUm.hasBaseUserRestriction(eq(restriction), any())).thenReturn(restricted); in setBaseUserRestriction()
/packages/apps/Settings/src/com/android/settings/location/
DLocationSwitchBarController.java73 final boolean hasBaseUserRestriction = in onLocationModeChanged()
77 if (!hasBaseUserRestriction && admin != null) { in onLocationModeChanged()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DEnterpriseUtilsTest.java130 when(mUm.hasBaseUserRestriction(eq(TEST_RESTRICTION), any())).thenReturn(false); in testUserRestriction_notBaseRestricted_notUmRestricted()
139 when(mUm.hasBaseUserRestriction(eq(TEST_RESTRICTION), any())).thenReturn(true); in testUserRestriction_baseRestricted_umRestricted()
147 when(mUm.hasBaseUserRestriction(eq(TEST_RESTRICTION), any())).thenReturn(false); in testUserRestriction_notBaseRestricted_umRestricted()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/
DRestrictedPreferenceController.java42 if (RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, mAttrUserRestriction, in RestrictedPreferenceController()
56 if (RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, mAttrUserRestriction, in RestrictedPreferenceController()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/privacy/
DMicTogglePreferenceControllerTest.java115 when(mMockUserManager.hasBaseUserRestriction(eq(UserManager.DISALLOW_MICROPHONE_TOGGLE), in baseUserRestricted_preferenceIsDisabled()
129 when(mMockUserManager.hasBaseUserRestriction(eq(UserManager.DISALLOW_MICROPHONE_TOGGLE), in userRestricted_availableForViewing()
221 when(mMockUserManager.hasBaseUserRestriction(eq(UserManager.DISALLOW_MICROPHONE_TOGGLE), in setMicMuteFeatureAvailable()
DCameraTogglePreferenceControllerTest.java125 when(mMockUserManager.hasBaseUserRestriction(eq(UserManager.DISALLOW_CAMERA_TOGGLE), in baseUserRestricted_preferenceIsShown_zoneWrite()
139 when(mMockUserManager.hasBaseUserRestriction(eq(UserManager.DISALLOW_CAMERA_TOGGLE), in userRestricted_preferenceIsShown_zoneWrite()
233 when(mMockUserManager.hasBaseUserRestriction(eq(UserManager.DISALLOW_CAMERA_TOGGLE), in setCameraMuteFeatureAvailable()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DUserManagerCompat.java97 public boolean hasBaseUserRestriction( in hasBaseUserRestriction() method in UserManagerCompat
100 return mUserManager.hasBaseUserRestriction(restrictionKey, userHandle); in hasBaseUserRestriction()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DExternalSources.java115 return !um.hasBaseUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, userHandle) in canChange()
116 && !um.hasBaseUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES_GLOBALLY, in canChange()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbBackendTest.java163 when(mUserManager.hasBaseUserRestriction( in areFunctionsSupported_fileTransferDisallowed_shouldReturnFalse()
176 when(mUserManager.hasBaseUserRestriction( in areFunctionsSupported_fileTransferAllowed_shouldReturnTrue()
/packages/apps/Car/Launcher/libs/car-launcher-common/src/com/android/car/carlaunchercommon/shortcuts/
DForceStopShortcutItem.kt37 import com.android.car.hidden.apis.HiddenApiAccess.hasBaseUserRestriction in <lambda>()
173 if (hasBaseUserRestriction(userManager, restriction, user)) { in <lambda>()
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbBackend.java195 return userManager.hasBaseUserRestriction( in isUsbFileTransferRestrictedBySystem()
200 return userManager.hasBaseUserRestriction( in isUsbTetheringRestrictedBySystem()
/packages/apps/Settings/src/com/android/settings/security/
DRestrictedEncryptionPreferenceController.java43 return !mUserManager.hasBaseUserRestriction(mUserRestriction, mUserHandle); in isAvailable()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/
DEnterpriseTestUtils.java31 when(um.hasBaseUserRestriction(eq(restriction), any())) in mockUserRestrictionSetByUm()
/packages/apps/Car/Launcher/libs/hidden-apis-compat/hidden-apis-disabled/src/com/android/car/hidden/apis/
DHiddenApiAccess.java59 public static boolean hasBaseUserRestriction(UserManager userManager, String restriction, in hasBaseUserRestriction() method in HiddenApiAccess
/packages/apps/Settings/src/com/android/settings/network/
DNetworkResetRestrictionChecker.java39 return RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in hasUserBaseRestriction()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DDeveloperOptionsEntryPreferenceControllerTest.java279 when(mMockUserManager.hasBaseUserRestriction(eq(TEST_RESTRICTION), any())) in mockUserRestrictionSetByUm()
287 when(mMockUserManager.hasBaseUserRestriction(eq(TEST_RESTRICTION), any())) in mockUserRestrictionSetByDpm()
/packages/apps/Settings/src/com/android/settings/display/
DAutoBrightnessPreferenceController.java81 if (pref.isEnabled() && UserManager.get(mContext).hasBaseUserRestriction( in updateState()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DOemUnlockPreferenceController.java122 && !mUserManager.hasBaseUserRestriction( in isOemUnlockAllowedByUserAndCarrier()
/packages/apps/Settings/src/com/android/settings/development/
DEnable16kUtils.java66 if (userManager.hasBaseUserRestriction(UserManager.DISALLOW_FACTORY_RESET, userHandle)) { in isDeviceOEMUnlocked()

1234