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

Commit 96edf5f4 authored by Amit Mahajan's avatar Amit Mahajan Committed by android-build-merger
Browse files

Merge "Copy over logic from IccCardProxy to UiccProfile."

am: 96435130

Change-Id: I0f24a7d1f4dd4e6258e278badfe1f41e3b20ff41
parents 2031d477 96435130
Loading
Loading
Loading
Loading
+0 −23
Original line number Diff line number Diff line
@@ -82,8 +82,6 @@ public class IccCardProxy extends Handler implements IccCard {
    private static final int EVENT_NETWORK_LOCKED = 9;

    private static final int EVENT_ICC_RECORD_EVENTS = 500;
    private static final int EVENT_SUBSCRIPTION_ACTIVATED = 501;
    private static final int EVENT_SUBSCRIPTION_DEACTIVATED = 502;
    private static final int EVENT_CARRIER_PRIVILEGES_LOADED = 503;

    private Integer mPhoneId = null;
@@ -242,16 +240,6 @@ public class IccCardProxy extends Handler implements IccCard {
                mNetworkLockedRegistrants.notifyRegistrants();
                setExternalState(State.NETWORK_LOCKED);
                break;
            case EVENT_SUBSCRIPTION_ACTIVATED:
                log("EVENT_SUBSCRIPTION_ACTIVATED");
                onSubscriptionActivated();
                break;

            case EVENT_SUBSCRIPTION_DEACTIVATED:
                log("EVENT_SUBSCRIPTION_DEACTIVATED");
                onSubscriptionDeactivated();
                break;

            case EVENT_ICC_RECORD_EVENTS:
                if ((mCurrentAppType == UiccController.APP_FAM_3GPP) && (mIccRecords != null)) {
                    AsyncResult ar = (AsyncResult)msg.obj;
@@ -277,17 +265,6 @@ public class IccCardProxy extends Handler implements IccCard {
        }
    }

    private void onSubscriptionActivated() {
        updateIccAvailability();
        updateStateProperty();
    }

    private void onSubscriptionDeactivated() {
        resetProperties();
        updateIccAvailability();
        updateStateProperty();
    }

    private void onRecordsLoaded() {
        broadcastInternalIccStateChangedIntent(IccCardConstants.INTENT_VALUE_ICC_LOADED, null);
    }