Home
last modified time | relevance | path

Searched refs:userRestriction (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DInjectedSetting.java72 public final String userRestriction; field in InjectedSetting
81 this.userRestriction = builder.mUserRestriction; in InjectedSetting()
93 ", userRestriction='" + userRestriction + in toString()
119 && Objects.equals(userRestriction, that.userRestriction); in equals()
130 result = 31 * result + (userRestriction == null ? 0 : userRestriction.hashCode()); in hashCode()
173 public Builder setUserRestriction(String userRestriction) { in setUserRestriction() argument
174 mUserRestriction = userRestriction; in setUserRestriction()
DSettingsInjector.java273 final String userRestriction = sa.getString( in parseAttributes() local
286 .setUserRestriction(userRestriction) in parseAttributes()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedPreferenceHelper.java53 final TypedValue userRestriction = in RestrictedPreferenceHelper() local
56 if (userRestriction != null && userRestriction.type == TypedValue.TYPE_STRING) { in RestrictedPreferenceHelper()
57 if (userRestriction.resourceId != 0) { in RestrictedPreferenceHelper()
58 data = context.getText(userRestriction.resourceId); in RestrictedPreferenceHelper()
60 data = userRestriction.string; in RestrictedPreferenceHelper()
135 public void checkRestrictionAndSetDisabled(String userRestriction, int userId) { in checkRestrictionAndSetDisabled() argument
137 userRestriction, userId); in checkRestrictionAndSetDisabled()
DRestrictedPreference.java93 public void checkRestrictionAndSetDisabled(String userRestriction) { in checkRestrictionAndSetDisabled() argument
94 mHelper.checkRestrictionAndSetDisabled(userRestriction, UserHandle.myUserId()); in checkRestrictionAndSetDisabled()
97 public void checkRestrictionAndSetDisabled(String userRestriction, int userId) { in checkRestrictionAndSetDisabled() argument
98 mHelper.checkRestrictionAndSetDisabled(userRestriction, userId); in checkRestrictionAndSetDisabled()
DRestrictedSwitchPreference.java153 public void checkRestrictionAndSetDisabled(String userRestriction) { in checkRestrictionAndSetDisabled() argument
154 mHelper.checkRestrictionAndSetDisabled(userRestriction, UserHandle.myUserId()); in checkRestrictionAndSetDisabled()
157 public void checkRestrictionAndSetDisabled(String userRestriction, int userId) { in checkRestrictionAndSetDisabled() argument
158 mHelper.checkRestrictionAndSetDisabled(userRestriction, userId); in checkRestrictionAndSetDisabled()
DRestrictedLockUtilsInternal.java87 String userRestriction, int userId) { in checkIfRestrictionEnforced() argument
96 um.getUserRestrictionSources(userRestriction, UserHandle.of(userId)); in checkIfRestrictionEnforced()
102 return EnforcedAdmin.createDefaultEnforcedAdminWithRestriction(userRestriction); in checkIfRestrictionEnforced()
110 return getProfileOwner(context, userRestriction, adminUserId); in checkIfRestrictionEnforced()
116 ? getProfileOwner(context, userRestriction, adminUserId) in checkIfRestrictionEnforced()
117 : EnforcedAdmin.createDefaultEnforcedAdminWithRestriction(userRestriction); in checkIfRestrictionEnforced()
123 ? getDeviceOwner(context, userRestriction) in checkIfRestrictionEnforced()
124 : EnforcedAdmin.createDefaultEnforcedAdminWithRestriction(userRestriction); in checkIfRestrictionEnforced()
132 String userRestriction, int userId) { in hasBaseUserRestriction() argument
134 return um.hasBaseUserRestriction(userRestriction, UserHandle.of(userId)); in hasBaseUserRestriction()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DRestrictedLockUtilsTest.java93 final String userRestriction = UserManager.DISALLOW_UNINSTALL_APPS; in checkIfRestrictionEnforced_deviceOwner() local
94 when(mUserManager.getUserRestrictionSources(userRestriction, in checkIfRestrictionEnforced_deviceOwner()
100 .checkIfRestrictionEnforced(mContext, userRestriction, mUserId); in checkIfRestrictionEnforced_deviceOwner()
103 assertThat(enforcedAdmin.enforcedRestriction).isEqualTo(userRestriction); in checkIfRestrictionEnforced_deviceOwner()
111 final String userRestriction = UserManager.DISALLOW_UNINSTALL_APPS; in checkIfRestrictionEnforced_profileOwner() local
112 when(mUserManager.getUserRestrictionSources(userRestriction, in checkIfRestrictionEnforced_profileOwner()
118 .checkIfRestrictionEnforced(mContext, userRestriction, mUserId); in checkIfRestrictionEnforced_profileOwner()
121 assertThat(enforcedAdmin.enforcedRestriction).isEqualTo(userRestriction); in checkIfRestrictionEnforced_profileOwner()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManagerInternal.java104 public abstract Intent createUserRestrictionSupportIntent(int userId, String userRestriction); in createUserRestrictionSupportIntent() argument
/frameworks/base/services/core/java/com/android/server/
DPersistentDataBlockService.java233 private void enforceUserRestriction(String userRestriction) { in enforceUserRestriction() argument
234 if (UserManager.get(mContext).hasUserRestriction(userRestriction)) { in enforceUserRestriction()
236 "OEM unlock is disallowed by user restriction: " + userRestriction); in enforceUserRestriction()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileImpl.java396 protected void checkIfRestrictionEnforcedByAdminOnly(State state, String userRestriction) { in checkIfRestrictionEnforcedByAdminOnly() argument
398 userRestriction, ActivityManager.getCurrentUser()); in checkIfRestrictionEnforcedByAdminOnly()
400 userRestriction, ActivityManager.getCurrentUser())) { in checkIfRestrictionEnforcedByAdminOnly()
/frameworks/base/services/core/java/com/android/server/pm/
DUserRestrictionsUtils.java894 String userRestriction, boolean newValue) { in getNewUserRestrictionSetting() argument
895 return (newValue || UserManager.get(context).hasUserRestriction(userRestriction, in getNewUserRestrictionSetting()
DUserManagerService.java2234 for (String userRestriction : defaultFirstUserRestrictions) { in fallbackToSingleUserLP()
2235 if (UserRestrictionsUtils.isValidRestriction(userRestriction)) { in fallbackToSingleUserLP()
2236 restrictions.putBoolean(userRestriction, true); in fallbackToSingleUserLP()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java9792 ComponentName admin, String userRestriction, int userId) { in isAdminAffectedByRestriction() argument
9793 switch(mUserManager.getUserRestrictionSource(userRestriction, UserHandle.of(userId))) { in isAdminAffectedByRestriction()
11295 public Intent createUserRestrictionSupportIntent(int userId, String userRestriction) { in createUserRestrictionSupportIntent() argument
11299 .getUserRestrictionSources(userRestriction, UserHandle.of(userId)); in createUserRestrictionSupportIntent()
/frameworks/base/api/
Dsystem-current.txt226 field public static final int userRestriction = 16844164; // 0x1010584