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

Commit 7c773837 authored by Nazanin Bakhshi's avatar Nazanin Bakhshi
Browse files

make onActiveDataSubId in PhoneStateListener public API

Bug: 124260187
Test: CTS
Change-Id: I3fbd62bac3a07b9d5bc1925e4babf5b54d18a13b
parent 51f3b337
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -15,7 +15,7 @@
 */
 */
package com.android.internal.telephony;
package com.android.internal.telephony;


import static android.telephony.PhoneStateListener.LISTEN_ACTIVE_DATA_SUBID_CHANGE;
import static android.telephony.PhoneStateListener.LISTEN_ACTIVE_DATA_SUBSCRIPTION_ID_CHANGE;
import static android.telephony.PhoneStateListener.LISTEN_PHONE_CAPABILITY_CHANGE;
import static android.telephony.PhoneStateListener.LISTEN_PHONE_CAPABILITY_CHANGE;
import static android.telephony.PhoneStateListener.LISTEN_SRVCC_STATE_CHANGED;
import static android.telephony.PhoneStateListener.LISTEN_SRVCC_STATE_CHANGED;


@@ -60,7 +60,7 @@ public class TelephonyRegistryTest extends TelephonyTest {
            setReady(true);
            setReady(true);
        }
        }
        @Override
        @Override
        public void onActiveDataSubIdChanged(int activeSubId) {
        public void onActiveDataSubscriptionIdChanged(int activeSubId) {
            mActiveSubId = activeSubId;
            mActiveSubId = activeSubId;
            setReady(true);
            setReady(true);
        }
        }
@@ -128,7 +128,7 @@ public class TelephonyRegistryTest extends TelephonyTest {
        mTelephonyRegistry.notifyActiveDataSubIdChanged(activeSubId);
        mTelephonyRegistry.notifyActiveDataSubIdChanged(activeSubId);
        mTelephonyRegistry.listen(mContext.getOpPackageName(),
        mTelephonyRegistry.listen(mContext.getOpPackageName(),
                mPhoneStateListener.callback,
                mPhoneStateListener.callback,
                LISTEN_ACTIVE_DATA_SUBID_CHANGE, true);
                LISTEN_ACTIVE_DATA_SUBSCRIPTION_ID_CHANGE, true);
        waitUntilReady();
        waitUntilReady();
        assertEquals(activeSubId, mActiveSubId);
        assertEquals(activeSubId, mActiveSubId);