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

Commit 40dfa973 authored by Jack Yu's avatar Jack Yu
Browse files

Removed unused methods

Removed getAllSubscriptionInfoCount(), getDefaultSmsPhoneId(), and
getDefaultDataPhoneId().

Bug: 239607619
Test: Manual
Change-Id: I1e4110e4bb7dbbc05d51f75d67f451a8ce3bf229
parent 10b858c3
Loading
Loading
Loading
Loading
+0 −36
Original line number Diff line number Diff line
@@ -1905,30 +1905,6 @@ public class SubscriptionManager {
        }
    }

    /**
     * @return the count of all subscriptions in the database, this includes
     * all subscriptions that have been seen.
     * @hide
     */
    @UnsupportedAppUsage
    public int getAllSubscriptionInfoCount() {
        if (VDBG) logd("[getAllSubscriptionInfoCount]+");

        int result = 0;

        try {
            ISub iSub = TelephonyManager.getSubscriptionService();
            if (iSub != null) {
                result = iSub.getAllSubInfoCount(mContext.getOpPackageName(),
                        mContext.getAttributionTag());
            }
        } catch (RemoteException ex) {
            // ignore it
        }

        return result;
    }

    /**
     *
     * Requires Permission: {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}
@@ -2327,12 +2303,6 @@ public class SubscriptionManager {
        }
    }

    /** @hide */
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
    public int getDefaultSmsPhoneId() {
        return getPhoneId(getDefaultSmsSubscriptionId());
    }

    /**
     * Returns the system's default data subscription id.
     *
@@ -2380,12 +2350,6 @@ public class SubscriptionManager {
        return getActiveSubscriptionInfo(getDefaultDataSubscriptionId());
    }

    /** @hide */
    @UnsupportedAppUsage
    public int getDefaultDataPhoneId() {
        return getPhoneId(getDefaultDataSubscriptionId());
    }

    /** @hide */
    public void clearSubscriptionInfo() {
        try {
+0 −8
Original line number Diff line number Diff line
@@ -29,14 +29,6 @@ interface ISub {
     */
    List<SubscriptionInfo> getAllSubInfoList(String callingPackage, String callingFeatureId);

    /**
     * @param callingPackage The package maing the call.
     * @param callingFeatureId The feature in the package
     * @return the count of all subscriptions in the database, this includes
     * all subscriptions that have been seen.
     */
    int getAllSubInfoCount(String callingPackage, String callingFeatureId);

    /**
     * Get the active SubscriptionInfo with the subId key
     * @param subId The unique SubscriptionInfo key in database