OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:hasUserRestriction
(Results
1 - 25
of
110
) sorted by null
1
2
3
4
5
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/
CheckNoOwnerRestrictionsTest.java
28
mContext.getSystemService(UserManager.class).
hasUserRestriction
(
ProfileGlobalRestrictionsTest.java
25
expected, mUserManager.
hasUserRestriction
(restriction));
BaseUserRestrictionsTest.java
105
expected, mUserManager.
hasUserRestriction
(restriction));
124
final boolean hadRestriction = mUserManager.
hasUserRestriction
(restriction);
162
final boolean hadRestriction = mUserManager.
hasUserRestriction
(restriction);
/packages/apps/Settings/src/com/android/settings/network/
NetworkResetRestrictionChecker.java
48
boolean
hasUserRestriction
() {
54
return
hasUserRestriction
()
NetworkResetPreferenceController.java
36
return !mRestrictionChecker.
hasUserRestriction
();
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/
DefaultPhonePreferenceController.java
42
final boolean
hasUserRestriction
=
43
um.
hasUserRestriction
(UserManager.DISALLOW_OUTGOING_CALLS);
45
if (
hasUserRestriction
) {
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
BugReportInPowerPreferenceControllerTest.java
80
when(mUserManager.
hasUserRestriction
(anyString())).thenReturn(true);
91
when(mUserManager.
hasUserRestriction
(anyString())).thenReturn(false);
100
when(mUserManager.
hasUserRestriction
(anyString())).thenReturn(true);
111
when(mUserManager.
hasUserRestriction
(anyString())).thenReturn(false);
122
when(mUserManager.
hasUserRestriction
(anyString())).thenReturn(false);
133
when(mUserManager.
hasUserRestriction
(anyString())).thenReturn(false);
147
when(mUserManager.
hasUserRestriction
(anyString())).thenReturn(false);
160
when(mUserManager.
hasUserRestriction
(anyString())).thenReturn(false);
173
when(mUserManager.
hasUserRestriction
(anyString())).thenReturn(false);
186
when(mUserManager.
hasUserRestriction
(anyString())).thenReturn(false)
[
all
...]
BugReportPreferenceControllerTest.java
67
when(mUserManager.
hasUserRestriction
(anyString())).thenReturn(true);
79
when(mUserManager.
hasUserRestriction
(anyString())).thenReturn(false);
88
when(mUserManager.
hasUserRestriction
(anyString())).thenReturn(true);
98
when(mUserManager.
hasUserRestriction
(anyString())).thenReturn(false);
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
NetworkResetPreferenceControllerTest.java
60
when(mRestrictionChecker.
hasUserRestriction
()).thenReturn(true);
64
when(mRestrictionChecker.
hasUserRestriction
()).thenReturn(false);
MobileNetworkPreferenceControllerTest.java
85
when(mUserManager.
hasUserRestriction
(anyString(), any(UserHandle.class)))
97
when(mUserManager.
hasUserRestriction
(anyString(), any(UserHandle.class)))
/packages/apps/Settings/src/com/android/settings/development/
BugReportPreferenceController.java
55
return !mUserManager.
hasUserRestriction
(UserManager.DISALLOW_DEBUGGING_FEATURES);
BugReportInPowerPreferenceController.java
72
return !mUserManager.
hasUserRestriction
(UserManager.DISALLOW_DEBUGGING_FEATURES);
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
Features.java
110
return !mUserMgr.
hasUserRestriction
(UserManager.DISALLOW_DEBUGGING_FEATURES);
124
return !mUserMgr.
hasUserRestriction
(UserManager.DISALLOW_FUN);
/cts/hostsidetests/devicepolicy/app/CustomizationApp/src/com/android/cts/customizationapp/
CustomizationTest.java
43
assertTrue(userManager.
hasUserRestriction
(UserManager.DISALLOW_SET_WALLPAPER));
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
CustomizationRestrictionsTest.java
130
assertTrue(mUserManager.
hasUserRestriction
(UserManager.DISALLOW_SET_WALLPAPER));
156
assertFalse(mUserManager.
hasUserRestriction
(UserManager.DISALLOW_SET_WALLPAPER));
168
assertTrue(mUserManager.
hasUserRestriction
(UserManager.DISALLOW_SET_USER_ICON));
184
assertFalse(mUserManager.
hasUserRestriction
(UserManager.DISALLOW_SET_USER_ICON));
/frameworks/base/services/core/java/com/android/server/oemlock/
PersistentDataBlockLock.java
61
.
hasUserRestriction
(UserManager.DISALLOW_OEM_UNLOCK, UserHandle.SYSTEM);
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DisallowAddUserTask.java
64
if (!mUserManager.
hasUserRestriction
(UserManager.DISALLOW_ADD_USER, userHandle)) {
/packages/apps/Messaging/src/com/android/messaging/util/
BugleActivityUtil.java
70
if (userManager.
hasUserRestriction
(UserManager.DISALLOW_SMS)) {
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DisallowAddUserTaskTest.java
65
when(mockUserManager.
hasUserRestriction
(anyString(), any(UserHandle.class)))
95
when(mockUserManager.
hasUserRestriction
(UserManager.DISALLOW_ADD_USER,
/packages/apps/Settings/src/com/android/settings/deviceinfo/
FirmwareVersionPreferenceController.java
93
if (mUserManager.
hasUserRestriction
(UserManager.DISALLOW_FUN)) {
/packages/apps/Settings/src/com/android/settings/location/
LocationSettingsBase.java
90
return um.
hasUserRestriction
(UserManager.DISALLOW_SHARE_LOCATION);
/packages/services/Telephony/src/com/android/phone/
RestrictedSwitchPreference.java
72
boolean disabledByAdmin = um.
hasUserRestriction
(userRestriction, user)
/frameworks/base/core/java/android/os/
IUserManager.aidl
69
boolean
hasUserRestriction
(in String restrictionKey, int userHandle);
/packages/apps/Settings/src/com/android/settings/
RestrictedSettingsFragment.java
42
* {@link UserManager.
hasUserRestriction
()}, then the user will have to enter the restrictions
187
return mUserManager.
hasUserRestriction
(mRestrictionKey)
203
|| mUserManager.
hasUserRestriction
(mRestrictionKey);
/packages/apps/Settings/src/com/android/settings/dashboard/
RestrictedDashboardFragment.java
44
* {@link UserManager.
hasUserRestriction
()}, then the user will have to enter the restrictions
189
return mUserManager.
hasUserRestriction
(mRestrictionKey)
205
|| mUserManager.
hasUserRestriction
(mRestrictionKey);
Completed in 354 milliseconds
1
2
3
4
5