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

Commit 8c6969b6 authored by Tony Mak's avatar Tony Mak
Browse files

Remove the old version of setAffiliationIds

Test: Can build

Build: 37622682

Change-Id: I07e630e96f5aed5d450652c465e00ffed13a2a2c
parent 9363d332
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -72,7 +72,6 @@ package android.app.admin {
    method public deprecated android.os.UserHandle createUser(android.content.ComponentName, java.lang.String);
    method public deprecated java.lang.String getDeviceInitializerApp();
    method public deprecated android.content.ComponentName getDeviceInitializerComponent();
    method public void setAffiliationIds(android.content.ComponentName, java.util.List<java.lang.String>);
  }

}
+0 −1
Original line number Diff line number Diff line
@@ -70,7 +70,6 @@ package android.app.admin {
  public class DevicePolicyManager {
    method public deprecated android.os.UserHandle createAndInitializeUser(android.content.ComponentName, java.lang.String, java.lang.String, android.content.ComponentName, android.os.Bundle);
    method public deprecated android.os.UserHandle createUser(android.content.ComponentName, java.lang.String);
    method public void setAffiliationIds(android.content.ComponentName, java.util.List<java.lang.String>);
  }

}
+0 −1
Original line number Diff line number Diff line
@@ -72,7 +72,6 @@ package android.app.admin {
    method public deprecated android.os.UserHandle createUser(android.content.ComponentName, java.lang.String);
    method public deprecated java.lang.String getDeviceInitializerApp();
    method public deprecated android.content.ComponentName getDeviceInitializerComponent();
    method public void setAffiliationIds(android.content.ComponentName, java.util.List<java.lang.String>);
  }

}
+0 −16
Original line number Diff line number Diff line
@@ -7608,22 +7608,6 @@ public class DevicePolicyManager {
        }
    }

    /**
     * STOPSHIP (b/37622682) Remove it before release.
     * @removed
     */
    public void setAffiliationIds(@NonNull ComponentName admin, @NonNull List<String> ids) {
        throwIfParentInstance("setAffiliationIds");
        if (ids == null) {
            throw new IllegalArgumentException("ids must not be null");
        }
        try {
            mService.setAffiliationIds(admin, ids);
        } catch (RemoteException e) {
            throw e.rethrowFromSystemServer();
        }
    }

    /**
     * Returns the set of affiliation ids previously set via {@link #setAffiliationIds}, or an
     * empty set if none have been set.