/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/ |
D | DisallowAddUserTaskTest.java | 65 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/ |
D | RestrictedSettingsFragment.java | 185 return mUserManager.hasUserRestriction(mRestrictionKey) in isRestrictedAndNotProviderProtected() 201 || mUserManager.hasUserRestriction(mRestrictionKey); in shouldBeProviderProtected()
|
D | DeviceInfoSettings.java | 211 if (mUm.hasUserRestriction(UserManager.DISALLOW_FUN)) { in onPreferenceTreeClick() 238 if (mUm.hasUserRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES)) { in onPreferenceTreeClick()
|
D | SecuritySettings.java | 536 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/ |
D | DisallowAddUserTask.java | 48 if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, userHandle)) { in maybeDisallowAddUsers()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | BugleActivityUtil.java | 70 if (userManager.hasUserRestriction(UserManager.DISALLOW_SMS)) { in checkHasSmsPermissionsForUser()
|
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/ |
D | ApnSettingsActivity.java | 156 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/ |
D | AboutFragment.java | 250 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/ |
D | DefaultPhonePreference.java | 82 return !um.hasUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS); in isAvailable()
|
/packages/services/Telephony/src/com/android/phone/ |
D | RestrictedSwitchPreference.java | 72 boolean disabledByAdmin = um.hasUserRestriction(userRestriction, user) in checkRestrictionAndSetDisabled()
|
/packages/apps/Settings/src/com/android/settings/location/ |
D | LocationSettingsBase.java | 90 return um.hasUserRestriction(UserManager.DISALLOW_SHARE_LOCATION); in isRestricted()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | DeleteDropTarget.java | 159 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/ |
D | DevicePickerFragment.java | 97 mStartScanOnResume = !um.hasUserRestriction(DISALLOW_CONFIG_BLUETOOTH) in onCreate()
|
D | BluetoothDevicePreference.java | 92 if (! um.hasUserRestriction(DISALLOW_CONFIG_BLUETOOTH)) { in BluetoothDevicePreference()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | NfcWifiProtectedSetup.java | 81 if (wifiConfiguration != null &&!UserManager.get(context).hasUserRestriction( in tryNfcWifiSetup()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | UsbBackend.java | 60 mRestricted = mUserManager.hasUserRestriction(UserManager.DISALLOW_USB_FILE_TRANSFER); in UsbBackend()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | UserDetailsSettings.java | 94 mPhonePref.setChecked(!mUserManager.hasUserRestriction( in onCreate()
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | AppDialogFragment.java | 166 return mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_VPN, userHandle); in isUiRestricted()
|
/packages/services/Telecomm/src/com/android/server/telecom/components/ |
D | UserCallIntentProcessor.java | 119 } else if (userManager.hasUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS, in processOutgoingCallIntent()
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
D | CertInstallerMain.java | 75 if (userManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_CREDENTIALS)) { in onCreate()
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AddAccountSettings.java | 144 if (um.hasUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS, mUserHandle)) { in onCreate()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
D | LocationFragment.java | 101 mLocationMode.setEnabled(!um.hasUserRestriction(UserManager.DISALLOW_SHARE_LOCATION)); in onCreatePreferences()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsActor.java | 227 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/ |
D | CellBroadcastSettings.java | 112 if (userManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_CELL_BROADCASTS)) { in onCreate()
|
/packages/services/Mms/src/com/android/mms/service/ |
D | DownloadRequest.java | 218 if (userManager.hasUserRestriction(UserManager.DISALLOW_SMS, targetUser)) { in notifyOfDownload()
|