Home
last modified time | relevance | path

Searched refs:userRestriction (Results 1 – 18 of 18) 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.java283 final String userRestriction = sa.getString( in parseAttributes() local
296 .setUserRestriction(userRestriction) in parseAttributes()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedPreferenceHelper.java66 final TypedValue userRestriction = in RestrictedPreferenceHelper() local
69 if (userRestriction != null && userRestriction.type == TypedValue.TYPE_STRING) { in RestrictedPreferenceHelper()
70 if (userRestriction.resourceId != 0) { in RestrictedPreferenceHelper()
71 data = context.getText(userRestriction.resourceId); in RestrictedPreferenceHelper()
73 data = userRestriction.string; in RestrictedPreferenceHelper()
169 public void checkRestrictionAndSetDisabled(String userRestriction, int userId) { in checkRestrictionAndSetDisabled() argument
171 userRestriction, userId); in checkRestrictionAndSetDisabled()
DRestrictedTopLevelPreference.java77 public void checkRestrictionAndSetDisabled(String userRestriction) { in checkRestrictionAndSetDisabled() argument
78 mHelper.checkRestrictionAndSetDisabled(userRestriction, UserHandle.myUserId()); in checkRestrictionAndSetDisabled()
87 public void checkRestrictionAndSetDisabled(String userRestriction, int userId) { in checkRestrictionAndSetDisabled() argument
88 mHelper.checkRestrictionAndSetDisabled(userRestriction, userId); in checkRestrictionAndSetDisabled()
DRestrictedPreference.java91 public void checkRestrictionAndSetDisabled(String userRestriction) { in checkRestrictionAndSetDisabled() argument
92 mHelper.checkRestrictionAndSetDisabled(userRestriction, UserHandle.myUserId()); in checkRestrictionAndSetDisabled()
95 public void checkRestrictionAndSetDisabled(String userRestriction, int userId) { in checkRestrictionAndSetDisabled() argument
96 mHelper.checkRestrictionAndSetDisabled(userRestriction, userId); in checkRestrictionAndSetDisabled()
DRestrictedLockUtilsInternal.java93 String userRestriction, int userId) { in checkIfRestrictionEnforced() argument
103 um.getUserRestrictionSources(userRestriction, userHandle); in checkIfRestrictionEnforced()
112 .createDefaultEnforcedAdminWithRestriction(userRestriction); in checkIfRestrictionEnforced()
116 + userRestriction + "' on user " + userHandle + "; returning default admin " in checkIfRestrictionEnforced()
127 return getProfileOwner(context, userRestriction, adminUserId); in checkIfRestrictionEnforced()
133 ? getProfileOwner(context, userRestriction, adminUserId) in checkIfRestrictionEnforced()
134 : EnforcedAdmin.createDefaultEnforcedAdminWithRestriction(userRestriction); in checkIfRestrictionEnforced()
140 ? getDeviceOwner(context, userRestriction) in checkIfRestrictionEnforced()
141 : EnforcedAdmin.createDefaultEnforcedAdminWithRestriction(userRestriction); in checkIfRestrictionEnforced()
149 String userRestriction, int userId) { in hasBaseUserRestriction() argument
[all …]
DRestrictedSwitchPreference.java194 public void checkRestrictionAndSetDisabled(String userRestriction) { in checkRestrictionAndSetDisabled() argument
195 mHelper.checkRestrictionAndSetDisabled(userRestriction, UserHandle.myUserId()); in checkRestrictionAndSetDisabled()
198 public void checkRestrictionAndSetDisabled(String userRestriction, int userId) { in checkRestrictionAndSetDisabled() argument
199 mHelper.checkRestrictionAndSetDisabled(userRestriction, userId); in checkRestrictionAndSetDisabled()
/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/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DBluetoothTileTest.kt169 userRestriction: String? in checkIfRestrictionEnforcedByAdminOnly()
171 restrictionChecked = userRestriction in checkIfRestrictionEnforcedByAdminOnly()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManagerInternal.java138 public abstract Intent createUserRestrictionSupportIntent(int userId, String userRestriction); in createUserRestrictionSupportIntent() argument
/frameworks/base/services/core/java/com/android/server/pm/
DUserTypeDetails.java375 for (String userRestriction : defaultFirstUserRestrictions) { in dump()
376 if (UserRestrictionsUtils.isValidRestriction(userRestriction)) { in dump()
377 restrictions.putBoolean(userRestriction, true); in dump()
DUserRestrictionsUtils.java888 String userRestriction, boolean newValue) { in getNewUserRestrictionSetting() argument
889 return (newValue || UserManager.get(context).hasUserRestriction(userRestriction, in getNewUserRestrictionSetting()
DUserManagerService.java3387 for (String userRestriction : defaultFirstUserRestrictions) { in fallbackToSingleUserLP()
3388 if (UserRestrictionsUtils.isValidRestriction(userRestriction)) { in fallbackToSingleUserLP()
3389 restrictions.putBoolean(userRestriction, true); in fallbackToSingleUserLP()
/frameworks/base/services/core/java/com/android/server/
DPersistentDataBlockService.java243 private void enforceUserRestriction(String userRestriction) { in enforceUserRestriction() argument
244 if (UserManager.get(mContext).hasUserRestriction(userRestriction)) { in enforceUserRestriction()
246 "OEM unlock is disallowed by user restriction: " + userRestriction); in enforceUserRestriction()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileImpl.java528 protected void checkIfRestrictionEnforcedByAdminOnly(State state, String userRestriction) { in checkIfRestrictionEnforcedByAdminOnly() argument
530 userRestriction, mHost.getUserId()); in checkIfRestrictionEnforcedByAdminOnly()
532 userRestriction, mHost.getUserId())) { in checkIfRestrictionEnforcedByAdminOnly()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java10997 ComponentName admin, String userRestriction, int userId) {
10998 switch(mUserManager.getUserRestrictionSource(userRestriction, UserHandle.of(userId))) {
13103 public Intent createUserRestrictionSupportIntent(int userId, String userRestriction) {
13105 if (getEnforcingAdminAndUserDetailsInternal(userId, userRestriction) != null) {
13107 intent.putExtra(DevicePolicyManager.EXTRA_RESTRICTION, userRestriction);
/frameworks/base/core/api/
Dsystem-current.txt384 field public static final int userRestriction = 16844164; // 0x1010584
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt76701 Lcom/android/internal/R$attr;->userRestriction:I