Searched refs:enforcedRestriction (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/ |
D | RestrictedLockUtils.java | 52 Context context, String enforcedRestriction, UserHandle user) { in getProfileOrDeviceOwner() argument 72 return new EnforcedAdmin(adminComponent, enforcedRestriction, user); in getProfileOrDeviceOwner() 77 return new EnforcedAdmin(adminComponent, enforcedRestriction, user); in getProfileOrDeviceOwner() 95 intent.putExtra(DevicePolicyManager.EXTRA_RESTRICTION, admin.enforcedRestriction); in sendShowAdminSupportDetailsIntent() 128 public String enforcedRestriction = null; field in RestrictedLockUtils.EnforcedAdmin 136 String enforcedRestriction) { in createDefaultEnforcedAdminWithRestriction() argument 138 enforcedAdmin.enforcedRestriction = enforcedRestriction; in createDefaultEnforcedAdminWithRestriction() 147 public EnforcedAdmin(ComponentName component, String enforcedRestriction, UserHandle user) { in EnforcedAdmin() argument 149 this.enforcedRestriction = enforcedRestriction; in EnforcedAdmin() 158 this.enforcedRestriction = other.enforcedRestriction; in EnforcedAdmin() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | RestrictedLockUtilsTest.java | 103 assertThat(enforcedAdmin.enforcedRestriction).isEqualTo(userRestriction); in checkIfRestrictionEnforced_deviceOwner() 121 assertThat(enforcedAdmin.enforcedRestriction).isEqualTo(userRestriction); in checkIfRestrictionEnforced_profileOwner() 293 enforcedAdmin.enforcedRestriction = "Fake"; in sendShowAdminSupportDetailsIntent_extraRestrictionProvided()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | RestrictedLockUtilsInternal.java | 606 private static EnforcedAdmin getDeviceOwner(Context context, String enforcedRestriction) { in getDeviceOwner() argument 615 adminComponent, enforcedRestriction, dpm.getDeviceOwnerUser()); in getDeviceOwner() 625 Context context, String enforcedRestriction, int userId) { in getProfileOwner() argument 636 return new EnforcedAdmin(adminComponent, enforcedRestriction, getUserHandleOf(userId)); in getProfileOwner()
|