Loading src/java/com/android/internal/telephony/DefaultPhoneNotifier.java +8 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ import android.telephony.CallQuality; import android.telephony.CellIdentity; import android.telephony.CellInfo; import android.telephony.PhoneCapability; import android.telephony.PhysicalChannelConfig; import android.telephony.PreciseCallState; import android.telephony.PreciseDataConnectionState; import android.telephony.ServiceState; Loading Loading @@ -235,6 +236,13 @@ public class DefaultPhoneNotifier implements PhoneNotifier { barringInfo); } @Override public void notifyPhysicalChannelConfig(Phone sender, List<PhysicalChannelConfig> configs) { int subId = sender.getSubId(); mTelephonyRegistryMgr.notifyPhysicalChannelConfigForSubscriber(subId, configs); } /** * Convert the {@link DataActivityState} enum into the TelephonyManager.DATA_* constants for the * public API. Loading src/java/com/android/internal/telephony/Phone.java +2 −1 Original line number Diff line number Diff line Loading @@ -2690,8 +2690,9 @@ public abstract class Phone extends Handler implements PhoneInternalInterface { } /** Notify {@link PhysicalChannelConfig} changes. */ public void notifyPhysicalChannelConfiguration(List<PhysicalChannelConfig> configs) { public void notifyPhysicalChannelConfig(List<PhysicalChannelConfig> configs) { mPhysicalChannelConfigRegistrants.notifyRegistrants(new AsyncResult(null, configs, null)); mNotifier.notifyPhysicalChannelConfig(this, configs); } public List<PhysicalChannelConfig> getPhysicalChannelConfigList() { Loading src/java/com/android/internal/telephony/PhoneNotifier.java +4 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ import android.telephony.CallQuality; import android.telephony.CellIdentity; import android.telephony.CellInfo; import android.telephony.PhoneCapability; import android.telephony.PhysicalChannelConfig; import android.telephony.PreciseDataConnectionState; import android.telephony.ServiceState; import android.telephony.TelephonyDisplayInfo; Loading Loading @@ -116,4 +117,7 @@ public interface PhoneNotifier { /** Notify barring info has changed */ void notifyBarringInfoChanged(Phone sender, @NonNull BarringInfo barringInfo); /** Notify of change to PhysicalChannelConfig. */ void notifyPhysicalChannelConfig(Phone sender, List<PhysicalChannelConfig> configs); } src/java/com/android/internal/telephony/ServiceStateTracker.java +2 −2 Original line number Diff line number Diff line Loading @@ -1702,7 +1702,7 @@ public class ServiceStateTracker extends Handler { log("EVENT_PHYSICAL_CHANNEL_CONFIG: size=" + list.size() + " list=" + list); } mPhone.notifyPhysicalChannelConfiguration(list); mPhone.notifyPhysicalChannelConfig(list); mLastPhysicalChannelConfigList = list; boolean hasChanged = false; if (updateNrStateFromPhysicalChannelConfigs(list, mSS)) { Loading Loading @@ -2153,7 +2153,7 @@ public class ServiceStateTracker extends Handler { } private boolean isNrPhysicalChannelConfig(PhysicalChannelConfig config) { return config.getRat() == TelephonyManager.NETWORK_TYPE_NR; return config.getNetworkType() == TelephonyManager.NETWORK_TYPE_NR; } /** Loading tests/telephonytests/src/com/android/internal/telephony/PhysicalChannelConfigTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ public class PhysicalChannelConfigTest { .setPhysicalCellId(PHYSICAL_CELL_ID) .build(); assertThat(config.getRat()).isEqualTo(RAT); assertThat(config.getNetworkType()).isEqualTo(RAT); assertThat(config.getConnectionStatus()).isEqualTo(CONNECTION_STATUS); assertThat(config.getCellBandwidthDownlink()).isEqualTo(CELL_BANDWIDTH); assertThat(config.getFrequencyRange()).isEqualTo(FREQUENCY_RANGE); Loading Loading
src/java/com/android/internal/telephony/DefaultPhoneNotifier.java +8 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ import android.telephony.CallQuality; import android.telephony.CellIdentity; import android.telephony.CellInfo; import android.telephony.PhoneCapability; import android.telephony.PhysicalChannelConfig; import android.telephony.PreciseCallState; import android.telephony.PreciseDataConnectionState; import android.telephony.ServiceState; Loading Loading @@ -235,6 +236,13 @@ public class DefaultPhoneNotifier implements PhoneNotifier { barringInfo); } @Override public void notifyPhysicalChannelConfig(Phone sender, List<PhysicalChannelConfig> configs) { int subId = sender.getSubId(); mTelephonyRegistryMgr.notifyPhysicalChannelConfigForSubscriber(subId, configs); } /** * Convert the {@link DataActivityState} enum into the TelephonyManager.DATA_* constants for the * public API. Loading
src/java/com/android/internal/telephony/Phone.java +2 −1 Original line number Diff line number Diff line Loading @@ -2690,8 +2690,9 @@ public abstract class Phone extends Handler implements PhoneInternalInterface { } /** Notify {@link PhysicalChannelConfig} changes. */ public void notifyPhysicalChannelConfiguration(List<PhysicalChannelConfig> configs) { public void notifyPhysicalChannelConfig(List<PhysicalChannelConfig> configs) { mPhysicalChannelConfigRegistrants.notifyRegistrants(new AsyncResult(null, configs, null)); mNotifier.notifyPhysicalChannelConfig(this, configs); } public List<PhysicalChannelConfig> getPhysicalChannelConfigList() { Loading
src/java/com/android/internal/telephony/PhoneNotifier.java +4 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ import android.telephony.CallQuality; import android.telephony.CellIdentity; import android.telephony.CellInfo; import android.telephony.PhoneCapability; import android.telephony.PhysicalChannelConfig; import android.telephony.PreciseDataConnectionState; import android.telephony.ServiceState; import android.telephony.TelephonyDisplayInfo; Loading Loading @@ -116,4 +117,7 @@ public interface PhoneNotifier { /** Notify barring info has changed */ void notifyBarringInfoChanged(Phone sender, @NonNull BarringInfo barringInfo); /** Notify of change to PhysicalChannelConfig. */ void notifyPhysicalChannelConfig(Phone sender, List<PhysicalChannelConfig> configs); }
src/java/com/android/internal/telephony/ServiceStateTracker.java +2 −2 Original line number Diff line number Diff line Loading @@ -1702,7 +1702,7 @@ public class ServiceStateTracker extends Handler { log("EVENT_PHYSICAL_CHANNEL_CONFIG: size=" + list.size() + " list=" + list); } mPhone.notifyPhysicalChannelConfiguration(list); mPhone.notifyPhysicalChannelConfig(list); mLastPhysicalChannelConfigList = list; boolean hasChanged = false; if (updateNrStateFromPhysicalChannelConfigs(list, mSS)) { Loading Loading @@ -2153,7 +2153,7 @@ public class ServiceStateTracker extends Handler { } private boolean isNrPhysicalChannelConfig(PhysicalChannelConfig config) { return config.getRat() == TelephonyManager.NETWORK_TYPE_NR; return config.getNetworkType() == TelephonyManager.NETWORK_TYPE_NR; } /** Loading
tests/telephonytests/src/com/android/internal/telephony/PhysicalChannelConfigTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ public class PhysicalChannelConfigTest { .setPhysicalCellId(PHYSICAL_CELL_ID) .build(); assertThat(config.getRat()).isEqualTo(RAT); assertThat(config.getNetworkType()).isEqualTo(RAT); assertThat(config.getConnectionStatus()).isEqualTo(CONNECTION_STATUS); assertThat(config.getCellBandwidthDownlink()).isEqualTo(CELL_BANDWIDTH); assertThat(config.getFrequencyRange()).isEqualTo(FREQUENCY_RANGE); Loading