/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/users/ |
D | UserCapabilities.java | 81 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/ |
D | EmergencyBroadcastPreferenceControllerTest.java | 93 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()
|
D | AdjustVolumeRestrictedPreferenceControllerTest.java | 66 when(mAccountHelper.hasBaseUserRestriction( in updateState_hasBaseRestriction_shouldDisable() 79 when(mAccountHelper.hasBaseUserRestriction( in updateState_NoBaseRestriction_shouldCheckRestriction()
|
/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/Car/Launcher/libs/hidden-apis-compat/hidden-apis-enabled/src/com/android/car/hidden/apis/ |
D | HiddenApiAccess.java | 58 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/ |
D | BaseSettingsQCItemTestCase.java | 48 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/ |
D | LocationSwitchBarController.java | 73 final boolean hasBaseUserRestriction = in onLocationModeChanged() 77 if (!hasBaseUserRestriction && admin != null) { in onLocationModeChanged()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/ |
D | EnterpriseUtilsTest.java | 130 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/ |
D | RestrictedPreferenceController.java | 42 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/ |
D | MicTogglePreferenceControllerTest.java | 115 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()
|
D | CameraTogglePreferenceControllerTest.java | 125 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/ |
D | UserManagerCompat.java | 97 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/ |
D | ExternalSources.java | 115 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/ |
D | UsbBackendTest.java | 163 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/ |
D | ForceStopShortcutItem.kt | 37 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/ |
D | UsbBackend.java | 195 return userManager.hasBaseUserRestriction( in isUsbFileTransferRestrictedBySystem() 200 return userManager.hasBaseUserRestriction( in isUsbTetheringRestrictedBySystem()
|
/packages/apps/Settings/src/com/android/settings/security/ |
D | RestrictedEncryptionPreferenceController.java | 43 return !mUserManager.hasBaseUserRestriction(mUserRestriction, mUserHandle); in isAvailable()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/ |
D | EnterpriseTestUtils.java | 31 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/ |
D | HiddenApiAccess.java | 59 public static boolean hasBaseUserRestriction(UserManager userManager, String restriction, in hasBaseUserRestriction() method in HiddenApiAccess
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | NetworkResetRestrictionChecker.java | 39 return RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in hasUserBaseRestriction()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/ |
D | DeveloperOptionsEntryPreferenceControllerTest.java | 279 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/ |
D | AutoBrightnessPreferenceController.java | 81 if (pref.isEnabled() && UserManager.get(mContext).hasBaseUserRestriction( in updateState()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/ |
D | OemUnlockPreferenceController.java | 122 && !mUserManager.hasBaseUserRestriction( in isOemUnlockAllowedByUserAndCarrier()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | Enable16kUtils.java | 66 if (userManager.hasBaseUserRestriction(UserManager.DISALLOW_FACTORY_RESET, userHandle)) { in isDeviceOEMUnlocked()
|