Home
last modified time | relevance | path

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

1234

/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DTetherUtil.java30 final boolean hasBaseUserRestriction = RestrictedLockUtilsInternal.hasBaseUserRestriction( in isTetherAvailable()
32 return (cm.isTetheringSupported() || tetherConfigDisallowed) && !hasBaseUserRestriction; in isTetherAvailable()
H A DRestrictedPreferenceHelper.java65 if (RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, mAttrUserRestriction, in RestrictedPreferenceHelper()
/aosp12/packages/apps/Settings/src/com/android/settings/users/
H A DUserCapabilities.java73 final boolean hasBaseUserRestriction = RestrictedLockUtilsInternal.hasBaseUserRestriction( in updateAddUserCapabilities()
75 mDisallowAddUserSetByAdmin = mEnforcedAdmin != null && !hasBaseUserRestriction; in updateAddUserCapabilities()
76 mDisallowAddUser = (mEnforcedAdmin != null || hasBaseUserRestriction); in updateAddUserCapabilities()
/aosp12/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
H A 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
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
H A DEmergencyBroadcastPreferenceControllerTest.java88 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()
H A DAdjustVolumeRestrictedPreferenceControllerTest.java66 when(mAccountHelper.hasBaseUserRestriction( in updateState_hasBaseRestriction_shouldDisable()
79 when(mAccountHelper.hasBaseUserRestriction( in updateState_NoBaseRestriction_shouldCheckRestriction()
/aosp12/packages/apps/Settings/src/com/android/settings/accounts/
H A 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()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
H A DEnterpriseUtilsTest.java118 when(mUm.hasBaseUserRestriction(eq(TEST_RESTRICTION), any())).thenReturn(false); in testUserRestriction_notBaseRestricted_notUmRestricted()
127 when(mUm.hasBaseUserRestriction(eq(TEST_RESTRICTION), any())).thenReturn(true); in testUserRestriction_baseRestricted_umRestricted()
135 when(mUm.hasBaseUserRestriction(eq(TEST_RESTRICTION), any())).thenReturn(false); in testUserRestriction_notBaseRestricted_umRestricted()
/aosp12/packages/apps/Settings/src/com/android/settings/location/
H A DLocationSwitchBarController.java72 final boolean hasBaseUserRestriction = in onLocationModeChanged()
76 if (!hasBaseUserRestriction && admin != null) { in onLocationModeChanged()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
H A DExternalSources.java114 return !um.hasBaseUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, userHandle) in canChange()
115 && !um.hasBaseUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES_GLOBALLY, in canChange()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
H A DAndroidBeamPreferenceControllerTest.java79 when(RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in setUp()
122 when(RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in isBeamEnable_disAllowBeam_shouldReturnFalse()
/aosp12/packages/apps/Settings/src/com/android/settings/network/
H A DMobilePlanPreferenceController.java23 import static com.android.settingslib.RestrictedLockUtilsInternal.hasBaseUserRestriction;
121 && !hasBaseUserRestriction(mContext, DISALLOW_CONFIG_MOBILE_NETWORKS, myUserId()); in isAvailable()
H A DNetworkResetRestrictionChecker.java39 return RestrictedLockUtilsInternal.hasBaseUserRestriction(mContext, in hasUserBaseRestriction()
/aosp12/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
H A DUsbBackend.java191 return userManager.hasBaseUserRestriction( in isUsbFileTransferRestrictedBySystem()
196 return userManager.hasBaseUserRestriction( in isUsbTetheringRestrictedBySystem()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
H A DUsbBackendTest.java163 when(mUserManager.hasBaseUserRestriction( in areFunctionsSupported_fileTransferDisallowed_shouldReturnFalse()
176 when(mUserManager.hasBaseUserRestriction( in areFunctionsSupported_fileTransferAllowed_shouldReturnTrue()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
H A DDeveloperOptionsEntryPreferenceControllerTest.java172 when(mMockUserManager.hasBaseUserRestriction(eq(TEST_RESTRICTION), any())) in mockUserRestrictionSetByUm()
180 when(mMockUserManager.hasBaseUserRestriction(eq(TEST_RESTRICTION), any())) in mockUserRestrictionSetByDpm()
/aosp12/packages/apps/Settings/src/com/android/settings/security/
H A DRestrictedEncryptionPreferenceController.java43 return !mUserManager.hasBaseUserRestriction(mUserRestriction, mUserHandle); in isAvailable()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/
H A DEnterpriseTestUtils.java31 when(um.hasBaseUserRestriction(eq(restriction), any())) in mockUserRestrictionSetByUm()
/aosp12/packages/apps/Settings/src/com/android/settings/nfc/
H A DAndroidBeamEnabler.java39 mBeamDisallowedBySystem = RestrictedLockUtilsInternal.hasBaseUserRestriction(context, in AndroidBeamEnabler()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
H A DOemUnlockPreferenceController.java124 && !mUserManager.hasBaseUserRestriction( in isOemUnlockAllowedByUserAndCarrier()
/aosp12/packages/apps/Settings/src/com/android/settings/notification/
H A DEmergencyBroadcastPreferenceController.java82 && !mHelper.hasBaseUserRestriction( in isAvailable()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
H A DShadowRestrictedLockUtilsInternal.java88 protected static boolean hasBaseUserRestriction(Context context, in hasBaseUserRestriction() method in ShadowRestrictedLockUtilsInternal
/aosp12/packages/apps/Settings/src/com/android/settings/deviceinfo/firmwareversion/
H A DFirmwareVersionDetailPreferenceController.java125 mFunDisallowedBySystem = RestrictedLockUtilsInternal.hasBaseUserRestriction( in initializeAdminPermissions()
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
H A DTetherUtilTest.java138 when(mUserManager.hasBaseUserRestriction( in setupIsTetherAvailable()
/aosp12/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
H A DUserRestrictionsFragment.java104 userManager.hasBaseUserRestriction(key, user))) in createUserRestrictionItems()

1234