2024年3月13日发(作者:邝品)
47. if (rsrpIconLevel != -1) return rsrpIconLevel;
48.
49. /* Valid values are (0-63, 99) as defined in TS 36.331 */
50. if (mLteSignalStrength > 63) rssiIconLevel = SIGNAL_STRENGTH_NONE_OR_UNKNOWN;
51. else if (mLteSignalStrength >= 12) rssiIconLevel = SIGNAL_STRENGTH_GREAT;
52. else if (mLteSignalStrength >= 8) rssiIconLevel = SIGNAL_STRENGTH_GOOD;
53. else if (mLteSignalStrength >= 5) rssiIconLevel = SIGNAL_STRENGTH_MODERATE;
54. else if (mLteSignalStrength >= 0) rssiIconLevel = SIGNAL_STRENGTH_POOR;
55. if (DBG) log("getLTELevel - rssi:" + mLteSignalStrength + " rssiIconLevel:"
56. + rssiIconLevel);
57. return rssiIconLevel;
58.
59. }
2024年3月13日发(作者:邝品)
47. if (rsrpIconLevel != -1) return rsrpIconLevel;
48.
49. /* Valid values are (0-63, 99) as defined in TS 36.331 */
50. if (mLteSignalStrength > 63) rssiIconLevel = SIGNAL_STRENGTH_NONE_OR_UNKNOWN;
51. else if (mLteSignalStrength >= 12) rssiIconLevel = SIGNAL_STRENGTH_GREAT;
52. else if (mLteSignalStrength >= 8) rssiIconLevel = SIGNAL_STRENGTH_GOOD;
53. else if (mLteSignalStrength >= 5) rssiIconLevel = SIGNAL_STRENGTH_MODERATE;
54. else if (mLteSignalStrength >= 0) rssiIconLevel = SIGNAL_STRENGTH_POOR;
55. if (DBG) log("getLTELevel - rssi:" + mLteSignalStrength + " rssiIconLevel:"
56. + rssiIconLevel);
57. return rssiIconLevel;
58.
59. }