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

Commit c515235f authored by Liahav Eitan's avatar Liahav Eitan
Browse files

Rename getSubscriptionsIds -> getSubscriptionID

Renaming API and fixing typo in new API to address feedback.

Bug: 327275543
Test: btest android.devicepolicy.cts.EmbeddedSubscriptionTest
Change-Id: I51d13521e5c5fd715dc4cddccd2e5d9bd1fce854
parent 83c29fa5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8086,7 +8086,7 @@ package android.app.admin {
    method public CharSequence getStartUserSessionMessage(@NonNull android.content.ComponentName);
    method @Deprecated public boolean getStorageEncryption(@Nullable android.content.ComponentName);
    method public int getStorageEncryptionStatus();
    method @FlaggedApi("android.app.admin.flags.esim_management_enabled") @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_DEVICE_POLICY_MANAGED_SUBSCRIPTIONS) public java.util.Set<java.lang.Integer> getSubscriptionsIds();
    method @FlaggedApi("android.app.admin.flags.esim_management_enabled") @NonNull @RequiresPermission(android.Manifest.permission.MANAGE_DEVICE_POLICY_MANAGED_SUBSCRIPTIONS) public java.util.Set<java.lang.Integer> getSubscriptionIds();
    method @Nullable public android.app.admin.SystemUpdatePolicy getSystemUpdatePolicy();
    method @Nullable public android.os.PersistableBundle getTransferOwnershipBundle();
    method @Nullable public java.util.List<android.os.PersistableBundle> getTrustAgentConfiguration(@Nullable android.content.ComponentName, @NonNull android.content.ComponentName);
+6 −6
Original line number Diff line number Diff line
@@ -17442,24 +17442,24 @@ public class DevicePolicyManager {
    }
    /**
     * Returns the subscription ids of all subscriptions which was downloaded by the calling
     * Returns the subscription ids of all subscriptions which were downloaded by the calling
     * admin.
     *
     * <p> This returns only the subscriptions which were downloaded by the calling admin via
     *      {@link android.telephony.euicc.EuiccManager#downloadSubscription}.
     *      If a susbcription is returned by this method then in it subject to management controls
     *      If a subscription is returned by this method then in it subject to management controls
     *      and cannot be removed by users.
     *
     * <p> Callable by device owners and profile owners.
     *
     * @throws SecurityException if the caller is not authorized to call this method
     * @return ids of all managed subscriptions currently downloaded by an admin on the device
     * @throws SecurityException if the caller is not authorized to call this method.
     * @return ids of all managed subscriptions currently downloaded by an admin on the device.
     */
    @FlaggedApi(FLAG_ESIM_MANAGEMENT_ENABLED)
    @RequiresPermission(android.Manifest.permission.MANAGE_DEVICE_POLICY_MANAGED_SUBSCRIPTIONS)
    @NonNull
    public Set<Integer> getSubscriptionsIds() {
        throwIfParentInstance("getSubscriptionsIds");
    public Set<Integer> getSubscriptionIds() {
        throwIfParentInstance("getSubscriptionIds");
        if (mService != null) {
            try {
                return intArrayToSet(mService.getSubscriptionIds(mContext.getPackageName()));