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

Commit e68cb73e authored by Zoey Chen's avatar Zoey Chen
Browse files

[Telephony] Fix test fail in PhysicalChannelConfig

Miss the phone Id when notify

Bug: 185451283
Test: atest TelephonyRegistryTest
Change-Id: I5a1771647dfd4adebdf7c3efc22c6800c47be456
Merged-In: I7e004e660f5a89edd3c026d466de0d40adaa8af7
parent a7719379
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -241,8 +241,8 @@ public class DefaultPhoneNotifier implements PhoneNotifier {
    @Override
    @Override
    public void notifyPhysicalChannelConfig(Phone sender,
    public void notifyPhysicalChannelConfig(Phone sender,
                                                   List<PhysicalChannelConfig> configs) {
                                                   List<PhysicalChannelConfig> configs) {
        int subId = sender.getSubId();
        mTelephonyRegistryMgr.notifyPhysicalChannelConfigForSubscriber(
        mTelephonyRegistryMgr.notifyPhysicalChannelConfigForSubscriber(subId, configs);
                sender.getPhoneId(), sender.getSubId(), configs);
    }
    }


    @Override
    @Override
+1 −1
Original line number Original line Diff line number Diff line
@@ -468,7 +468,7 @@ public class TelephonyRegistryTest extends TelephonyTest {
        List<PhysicalChannelConfig> configs = new ArrayList<>(1);
        List<PhysicalChannelConfig> configs = new ArrayList<>(1);
        configs.add(config);
        configs.add(config);


        mTelephonyRegistry.notifyPhysicalChannelConfigForSubscriber(subId, configs);
        mTelephonyRegistry.notifyPhysicalChannelConfigForSubscriber(0, subId, configs);
        mTelephonyRegistry.listenWithEventList(subId, mContext.getOpPackageName(),
        mTelephonyRegistry.listenWithEventList(subId, mContext.getOpPackageName(),
                mContext.getAttributionTag(), mTelephonyCallback.callback, events, true);
                mContext.getAttributionTag(), mTelephonyCallback.callback, events, true);
        processAllMessages();
        processAllMessages();