Loading telephony/java/android/telephony/ServiceState.java +8 −7 Original line number Diff line number Diff line Loading @@ -16,8 +16,6 @@ package android.telephony; import com.android.telephony.Rlog; import android.annotation.IntDef; import android.annotation.NonNull; import android.annotation.Nullable; Loading @@ -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; Loading Loading @@ -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; } Loading Loading @@ -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 */ Loading Loading
telephony/java/android/telephony/ServiceState.java +8 −7 Original line number Diff line number Diff line Loading @@ -16,8 +16,6 @@ package android.telephony; import com.android.telephony.Rlog; import android.annotation.IntDef; import android.annotation.NonNull; import android.annotation.Nullable; Loading @@ -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; Loading Loading @@ -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; } Loading Loading @@ -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 */ Loading