Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9dcb7cad authored by Andrew Scull's avatar Andrew Scull
Browse files

DPMS: expose password blacklist API for SDK

Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testPasswordBlacklist
Test: cts-tradefed run cts -m CtsAdminTestCases -t android.admin.cts.DevicePolicyManagerTest

Bug: 63578054
Change-Id: Ide58673ab22dcb4454a67300e8aa23b5fe343e3d
parent df392c9a
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -6365,6 +6365,7 @@ package android.app.admin {
    method public int getOrganizationColor(android.content.ComponentName);
    method public int getOrganizationColor(android.content.ComponentName);
    method public java.lang.CharSequence getOrganizationName(android.content.ComponentName);
    method public java.lang.CharSequence getOrganizationName(android.content.ComponentName);
    method public android.app.admin.DevicePolicyManager getParentProfileInstance(android.content.ComponentName);
    method public android.app.admin.DevicePolicyManager getParentProfileInstance(android.content.ComponentName);
    method public java.lang.String getPasswordBlacklistName(android.content.ComponentName);
    method public long getPasswordExpiration(android.content.ComponentName);
    method public long getPasswordExpiration(android.content.ComponentName);
    method public long getPasswordExpirationTimeout(android.content.ComponentName);
    method public long getPasswordExpirationTimeout(android.content.ComponentName);
    method public int getPasswordHistoryLength(android.content.ComponentName);
    method public int getPasswordHistoryLength(android.content.ComponentName);
@@ -6465,6 +6466,7 @@ package android.app.admin {
    method public void setOrganizationColor(android.content.ComponentName, int);
    method public void setOrganizationColor(android.content.ComponentName, int);
    method public void setOrganizationName(android.content.ComponentName, java.lang.CharSequence);
    method public void setOrganizationName(android.content.ComponentName, java.lang.CharSequence);
    method public java.lang.String[] setPackagesSuspended(android.content.ComponentName, java.lang.String[], boolean);
    method public java.lang.String[] setPackagesSuspended(android.content.ComponentName, java.lang.String[], boolean);
    method public boolean setPasswordBlacklist(android.content.ComponentName, java.lang.String, java.util.List<java.lang.String>);
    method public void setPasswordExpirationTimeout(android.content.ComponentName, long);
    method public void setPasswordExpirationTimeout(android.content.ComponentName, long);
    method public void setPasswordHistoryLength(android.content.ComponentName, int);
    method public void setPasswordHistoryLength(android.content.ComponentName, int);
    method public void setPasswordMinimumLength(android.content.ComponentName, int);
    method public void setPasswordMinimumLength(android.content.ComponentName, int);
+0 −6
Original line number Original line Diff line number Diff line
@@ -2690,9 +2690,6 @@ public class DevicePolicyManager {
     * @see #getPasswordBlacklistName
     * @see #getPasswordBlacklistName
     * @see #isActivePasswordSufficient
     * @see #isActivePasswordSufficient
     * @see #resetPasswordWithToken
     * @see #resetPasswordWithToken
     *
     * TODO(63578054): unhide for P
     * @hide
     */
     */
    public boolean setPasswordBlacklist(@NonNull ComponentName admin, @Nullable String name,
    public boolean setPasswordBlacklist(@NonNull ComponentName admin, @Nullable String name,
            @Nullable List<String> blacklist) {
            @Nullable List<String> blacklist) {
@@ -2712,9 +2709,6 @@ public class DevicePolicyManager {
     * @return the name of the blacklist or {@code null} if no blacklist is set
     * @return the name of the blacklist or {@code null} if no blacklist is set
     *
     *
     * @see #setPasswordBlacklist
     * @see #setPasswordBlacklist
     *
     * TODO(63578054): unhide for P
     * @hide
     */
     */
    public @Nullable String getPasswordBlacklistName(@NonNull ComponentName admin) {
    public @Nullable String getPasswordBlacklistName(@NonNull ComponentName admin) {
        try {
        try {