/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/ |
D | InjectedSetting.java | 72 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()
|
D | SettingsInjector.java | 273 final String userRestriction = sa.getString( in parseAttributes() local 286 .setUserRestriction(userRestriction) in parseAttributes()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | RestrictedPreferenceHelper.java | 53 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()
|
D | RestrictedPreference.java | 93 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()
|
D | RestrictedSwitchPreference.java | 153 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()
|
D | RestrictedLockUtilsInternal.java | 87 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/ |
D | RestrictedLockUtilsTest.java | 93 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/ |
D | DevicePolicyManagerInternal.java | 104 public abstract Intent createUserRestrictionSupportIntent(int userId, String userRestriction); in createUserRestrictionSupportIntent() argument
|
/frameworks/base/services/core/java/com/android/server/ |
D | PersistentDataBlockService.java | 233 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/ |
D | QSTileImpl.java | 396 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/ |
D | UserRestrictionsUtils.java | 894 String userRestriction, boolean newValue) { in getNewUserRestrictionSetting() argument 895 return (newValue || UserManager.get(context).hasUserRestriction(userRestriction, in getNewUserRestrictionSetting()
|
D | UserManagerService.java | 2234 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/ |
D | DevicePolicyManagerService.java | 9792 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/ |
D | system-current.txt | 226 field public static final int userRestriction = 16844164; // 0x1010584
|