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

Commit 91126ffd 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: I7e004e660f5a89edd3c026d466de0d40adaa8af7
parent a0364b05
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -241,8 +241,8 @@ public class DefaultPhoneNotifier implements PhoneNotifier {
    @Override
    public void notifyPhysicalChannelConfig(Phone sender,
                                                   List<PhysicalChannelConfig> configs) {
        int subId = sender.getSubId();
        mTelephonyRegistryMgr.notifyPhysicalChannelConfigForSubscriber(subId, configs);
        mTelephonyRegistryMgr.notifyPhysicalChannelConfigForSubscriber(
                sender.getPhoneId(), sender.getSubId(), configs);
    }

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

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