diff options
| author | 2020-01-17 20:03:38 +0000 | |
|---|---|---|
| committer | 2020-01-17 20:03:38 +0000 | |
| commit | 400ee161ad24376a1e034784cf9b51d0dc0d80b9 (patch) | |
| tree | c7f8bde5f61f822cbff03901fefad91a625a8d78 | |
| parent | 663cc563a45aba393783d70fe8d5140fd2977593 (diff) | |
| parent | ad189b5e606a525ad905fd212675c232fc8e3858 (diff) | |
Merge "Add NR to ServiceState#isLte and rename to isPsOnlyTech" am: ad189b5e60
Change-Id: I213587114b84db9a5faed350d2fda5df3f4d8c7a
| -rw-r--r-- | telephony/java/android/telephony/ServiceState.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/telephony/java/android/telephony/ServiceState.java b/telephony/java/android/telephony/ServiceState.java index a26845357626..ed003ed81ddc 100644 --- a/telephony/java/android/telephony/ServiceState.java +++ b/telephony/java/android/telephony/ServiceState.java @@ -16,8 +16,6 @@ package android.telephony; -import com.android.telephony.Rlog; - import android.annotation.IntDef; import android.annotation.NonNull; import android.annotation.Nullable; @@ -36,6 +34,8 @@ import android.telephony.NetworkRegistrationInfo.Domain; import android.telephony.NetworkRegistrationInfo.NRState; import android.text.TextUtils; +import com.android.telephony.Rlog; + import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.util.ArrayList; @@ -584,8 +584,8 @@ public class ServiceState implements Parcelable { */ @DuplexMode public int getDuplexMode() { - // only support LTE duplex mode - if (!isLte(getRilDataRadioTechnology())) { + // support LTE/NR duplex mode + if (!isPsOnlyTech(getRilDataRadioTechnology())) { return DUPLEX_MODE_UNKNOWN; } @@ -1718,9 +1718,10 @@ public class ServiceState implements Parcelable { } /** @hide */ - public static boolean isLte(int radioTechnology) { - return radioTechnology == RIL_RADIO_TECHNOLOGY_LTE || - radioTechnology == RIL_RADIO_TECHNOLOGY_LTE_CA; + public static boolean isPsOnlyTech(int radioTechnology) { + return radioTechnology == RIL_RADIO_TECHNOLOGY_LTE + || radioTechnology == RIL_RADIO_TECHNOLOGY_LTE_CA + || radioTechnology == RIL_RADIO_TECHNOLOGY_NR; } /** @hide */ |