NR is lower priority than all other signal strengths
aosp/891956 introduced signal strengths support for NR. In the
method SignalStrength.getPrimary, NR is the lowest priority.
This is against the policy which is in the comment, saying
"prioritizing newer faster RATs".
Bug: 148634820
Test: atest com.android.internal.telephony.SignalStrengthTest
Change-Id: Ia9055c9e8cd8d09cdd3f101750c9f9cea983a9f8
Merged-In: Ia9055c9e8cd8d09cdd3f101750c9f9cea983a9f8
(cherry picked from commit 8e56e11eab)
This commit is contained in:
committed by
SongFerng Wang
parent
abc1066887
commit
105fe9349a
@@ -190,12 +190,12 @@ public class SignalStrength implements Parcelable {
|
||||
private CellSignalStrength getPrimary() {
|
||||
// This behavior is intended to replicate the legacy behavior of getLevel() by prioritizing
|
||||
// newer faster RATs for default/for display purposes.
|
||||
if (mNr.isValid()) return mNr;
|
||||
if (mLte.isValid()) return mLte;
|
||||
if (mCdma.isValid()) return mCdma;
|
||||
if (mTdscdma.isValid()) return mTdscdma;
|
||||
if (mWcdma.isValid()) return mWcdma;
|
||||
if (mGsm.isValid()) return mGsm;
|
||||
if (mNr.isValid()) return mNr;
|
||||
return mLte;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user