Home
last modified time | relevance | path

Searched refs:hasUserRestriction (Results 1 – 25 of 46) sorted by relevance

12

/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/
DDisallowAddUserTaskTest.java65 when(mockUserManager.hasUserRestriction(anyString(), any(UserHandle.class))) in setUp()
84 when(mockUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, in testMaybeDisallowAddUsers_normalSystem_restrictionAlreadySetupForOneUser()
/packages/apps/Settings/src/com/android/settings/
DRestrictedSettingsFragment.java185 return mUserManager.hasUserRestriction(mRestrictionKey) in isRestrictedAndNotProviderProtected()
201 || mUserManager.hasUserRestriction(mRestrictionKey); in shouldBeProviderProtected()
DDeviceInfoSettings.java211 if (mUm.hasUserRestriction(UserManager.DISALLOW_FUN)) { in onPreferenceTreeClick()
238 if (mUm.hasUserRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES)) { in onPreferenceTreeClick()
DSecuritySettings.java536 if (um.hasUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES)) { in setNonMarketAppsAllowed()
937 if (!um.hasUserRestriction(UserManager.DISALLOW_CONFIG_CREDENTIALS)) { in getRawDataToIndex()
979 if (um.hasUserRestriction(UserManager.DISALLOW_CONFIG_CREDENTIALS)) { in getNonIndexableKeys()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DDisallowAddUserTask.java48 if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, userHandle)) { in maybeDisallowAddUsers()
/packages/apps/Messaging/src/com/android/messaging/util/
DBugleActivityUtil.java70 if (userManager.hasUserRestriction(UserManager.DISALLOW_SMS)) { in checkHasSmsPermissionsForUser()
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/
DApnSettingsActivity.java156 if (!mUm.hasUserRestriction(UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS)) { in onCreate()
176 mUm.hasUserRestriction(UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS)) { in onActivityCreated()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/about/
DAboutFragment.java250 if (mUm.hasUserRestriction(UserManager.DISALLOW_FUN)) { in onPreferenceTreeClick()
270 if (mUm.hasUserRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES)) in onPreferenceTreeClick()
/packages/apps/Settings/src/com/android/settings/applications/
DDefaultPhonePreference.java82 return !um.hasUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS); in isAvailable()
/packages/services/Telephony/src/com/android/phone/
DRestrictedSwitchPreference.java72 boolean disabledByAdmin = um.hasUserRestriction(userRestriction, user) in checkRestrictionAndSetDisabled()
/packages/apps/Settings/src/com/android/settings/location/
DLocationSettingsBase.java90 return um.hasUserRestriction(UserManager.DISALLOW_SHARE_LOCATION); in isRestricted()
/packages/apps/Launcher2/src/com/android/launcher2/
DDeleteDropTarget.java159 if (userManager.hasUserRestriction(UserManager.DISALLOW_APPS_CONTROL) in onDragStart()
160 || userManager.hasUserRestriction(UserManager.DISALLOW_UNINSTALL_APPS)) { in onDragStart()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DDevicePickerFragment.java97 mStartScanOnResume = !um.hasUserRestriction(DISALLOW_CONFIG_BLUETOOTH) in onCreate()
DBluetoothDevicePreference.java92 if (! um.hasUserRestriction(DISALLOW_CONFIG_BLUETOOTH)) { in BluetoothDevicePreference()
/packages/apps/Nfc/src/com/android/nfc/
DNfcWifiProtectedSetup.java81 if (wifiConfiguration != null &&!UserManager.get(context).hasUserRestriction( in tryNfcWifiSetup()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DUsbBackend.java60 mRestricted = mUserManager.hasUserRestriction(UserManager.DISALLOW_USB_FILE_TRANSFER); in UsbBackend()
/packages/apps/Settings/src/com/android/settings/users/
DUserDetailsSettings.java94 mPhonePref.setChecked(!mUserManager.hasUserRestriction( in onCreate()
/packages/apps/Settings/src/com/android/settings/vpn2/
DAppDialogFragment.java166 return mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_VPN, userHandle); in isUiRestricted()
/packages/services/Telecomm/src/com/android/server/telecom/components/
DUserCallIntentProcessor.java119 } else if (userManager.hasUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS, in processOutgoingCallIntent()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCertInstallerMain.java75 if (userManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_CREDENTIALS)) { in onCreate()
/packages/apps/Settings/src/com/android/settings/accounts/
DAddAccountSettings.java144 if (um.hasUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS, mUserHandle)) { in onCreate()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DLocationFragment.java101 mLocationMode.setEnabled(!um.hasUserRestriction(UserManager.DISALLOW_SHARE_LOCATION)); in onCreatePreferences()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java227 public boolean hasUserRestriction(String restrictionKey) { in hasUserRestriction() method in ContactsActor.MockUserManager
232 public boolean hasUserRestriction(String restrictionKey, UserHandle userHandle) { in hasUserRestriction() method in ContactsActor.MockUserManager
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastSettings.java112 if (userManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_CELL_BROADCASTS)) { in onCreate()
/packages/services/Mms/src/com/android/mms/service/
DDownloadRequest.java218 if (userManager.hasUserRestriction(UserManager.DISALLOW_SMS, targetUser)) { in notifyOfDownload()

12