Merge "Coerce Unreported BER from ASU=99 to UNAVAILABLE" am: fde347156d
am: 9d448beb41
Change-Id: Icb8c1a1fab70dac4694ccd058e82d41e547fc00f
This commit is contained in:
@@ -63,6 +63,10 @@ public final class CellSignalStrengthGsm extends CellSignalStrength implements P
|
|||||||
public CellSignalStrengthGsm(android.hardware.radio.V1_0.GsmSignalStrength gsm) {
|
public CellSignalStrengthGsm(android.hardware.radio.V1_0.GsmSignalStrength gsm) {
|
||||||
// Convert from HAL values as part of construction.
|
// Convert from HAL values as part of construction.
|
||||||
this(getRssiDbmFromAsu(gsm.signalStrength), gsm.bitErrorRate, gsm.timingAdvance);
|
this(getRssiDbmFromAsu(gsm.signalStrength), gsm.bitErrorRate, gsm.timingAdvance);
|
||||||
|
|
||||||
|
if (mRssi == CellInfo.UNAVAILABLE) {
|
||||||
|
setDefaultValues();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
|
|||||||
@@ -72,6 +72,10 @@ public final class CellSignalStrengthTdscdma extends CellSignalStrength implemen
|
|||||||
// Convert from HAL values as part of construction.
|
// Convert from HAL values as part of construction.
|
||||||
this(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE,
|
this(CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE,
|
||||||
tdscdma.rscp != CellInfo.UNAVAILABLE ? -tdscdma.rscp : tdscdma.rscp);
|
tdscdma.rscp != CellInfo.UNAVAILABLE ? -tdscdma.rscp : tdscdma.rscp);
|
||||||
|
|
||||||
|
if (mRssi == CellInfo.UNAVAILABLE && mRscp == CellInfo.UNAVAILABLE) {
|
||||||
|
setDefaultValues();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
@@ -79,6 +83,10 @@ public final class CellSignalStrengthTdscdma extends CellSignalStrength implemen
|
|||||||
// Convert from HAL values as part of construction.
|
// Convert from HAL values as part of construction.
|
||||||
this(getRssiDbmFromAsu(tdscdma.signalStrength),
|
this(getRssiDbmFromAsu(tdscdma.signalStrength),
|
||||||
tdscdma.bitErrorRate, getRscpDbmFromAsu(tdscdma.rscp));
|
tdscdma.bitErrorRate, getRscpDbmFromAsu(tdscdma.rscp));
|
||||||
|
|
||||||
|
if (mRssi == CellInfo.UNAVAILABLE && mRscp == CellInfo.UNAVAILABLE) {
|
||||||
|
setDefaultValues();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
|
|||||||
@@ -92,8 +92,12 @@ public final class CellSignalStrengthWcdma extends CellSignalStrength implements
|
|||||||
/** @hide */
|
/** @hide */
|
||||||
public CellSignalStrengthWcdma(android.hardware.radio.V1_0.WcdmaSignalStrength wcdma) {
|
public CellSignalStrengthWcdma(android.hardware.radio.V1_0.WcdmaSignalStrength wcdma) {
|
||||||
// Convert from HAL values as part of construction.
|
// Convert from HAL values as part of construction.
|
||||||
this(getRssiDbmFromAsu(wcdma.signalStrength),
|
this(getRssiDbmFromAsu(wcdma.signalStrength), wcdma.bitErrorRate,
|
||||||
wcdma.bitErrorRate, CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE);
|
CellInfo.UNAVAILABLE, CellInfo.UNAVAILABLE);
|
||||||
|
|
||||||
|
if (mRssi == CellInfo.UNAVAILABLE && mRscp == CellInfo.UNAVAILABLE) {
|
||||||
|
setDefaultValues();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
@@ -103,6 +107,10 @@ public final class CellSignalStrengthWcdma extends CellSignalStrength implements
|
|||||||
wcdma.base.bitErrorRate,
|
wcdma.base.bitErrorRate,
|
||||||
getRscpDbmFromAsu(wcdma.rscp),
|
getRscpDbmFromAsu(wcdma.rscp),
|
||||||
getEcNoDbFromAsu(wcdma.ecno));
|
getEcNoDbFromAsu(wcdma.ecno));
|
||||||
|
|
||||||
|
if (mRssi == CellInfo.UNAVAILABLE && mRscp == CellInfo.UNAVAILABLE) {
|
||||||
|
setDefaultValues();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
|
|||||||
Reference in New Issue
Block a user