Home
last modified time | relevance | path

Searched refs:mRssi (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/telephony/java/android/telephony/
DCellSignalStrengthGsm.java47 private int mRssi; // in dBm [-113, -51] or UNAVAILABLE field in CellSignalStrengthGsm
62 mRssi = inRangeOrUnavailable(rssi, GSM_RSSI_MIN, GSM_RSSI_MAX); in CellSignalStrengthGsm()
73 if (mRssi == CellInfo.UNAVAILABLE) { in CellSignalStrengthGsm()
85 mRssi = s.mRssi; in copyFrom()
100 mRssi = CellInfo.UNAVAILABLE; in setDefaultValues()
126 if (mRssi < GSM_RSSI_MIN || mRssi > GSM_RSSI_MAX) { in updateLevel()
130 while (level > 0 && mRssi < rssiThresholds[level - 1]) level--; in updateLevel()
150 return mRssi; in getDbm()
162 return getAsuFromRssiDbm(mRssi); in getAsuLevel()
173 return mRssi; in getRssi()
[all …]
DNeighboringCellInfo.java58 private int mRssi; field in NeighboringCellInfo
93 mRssi = UNKNOWN_RSSI; in NeighboringCellInfo()
111 mRssi = rssi; in NeighboringCellInfo()
119 mRssi = info.getCellSignalStrength().getAsuLevel(); in NeighboringCellInfo()
120 if (mRssi == Integer.MAX_VALUE) mRssi = UNKNOWN_RSSI; in NeighboringCellInfo()
135 mRssi = info.getCellSignalStrength().getAsuLevel(); in NeighboringCellInfo()
136 if (mRssi == Integer.MAX_VALUE) mRssi = UNKNOWN_RSSI; in NeighboringCellInfo()
160 mRssi = rssi; in NeighboringCellInfo()
208 mRssi = in.readInt(); in NeighboringCellInfo()
223 return mRssi; in getRssi()
[all …]
DCellSignalStrengthTdscdma.java47 private int mRssi; // in dBm [-113, -51], CellInfo.UNAVAILABLE field in CellSignalStrengthTdscdma
69 mRssi = inRangeOrUnavailable(rssi, -113, -51); in CellSignalStrengthTdscdma()
81 if (mRssi == CellInfo.UNAVAILABLE && mRscp == CellInfo.UNAVAILABLE) { in CellSignalStrengthTdscdma()
92 if (mRssi == CellInfo.UNAVAILABLE && mRscp == CellInfo.UNAVAILABLE) { in CellSignalStrengthTdscdma()
104 mRssi = s.mRssi; in copyFrom()
119 mRssi = CellInfo.UNAVAILABLE; in setDefaultValues()
165 return mRssi; in getRssi()
188 if (mRssi != CellInfo.UNAVAILABLE) return getAsuFromRssiDbm(mRssi); in getAsuLevel()
194 return Objects.hash(mRssi, mBitErrorRate, mRscp, mLevel); in hashCode()
210 return mRssi == s.mRssi in equals()
[all …]
DCellSignalStrengthWcdma.java73 private int mRssi; // in dBm [-113, 51] or CellInfo.UNAVAILABLE if unknown field in CellSignalStrengthWcdma
89 mRssi = inRangeOrUnavailable(rssi, WCDMA_RSSI_MIN, WCDMA_RSSI_MAX); in CellSignalStrengthWcdma()
102 if (mRssi == CellInfo.UNAVAILABLE && mRscp == CellInfo.UNAVAILABLE) { in CellSignalStrengthWcdma()
115 if (mRssi == CellInfo.UNAVAILABLE && mRscp == CellInfo.UNAVAILABLE) { in CellSignalStrengthWcdma()
127 mRssi = s.mRssi; in copyFrom()
143 mRssi = CellInfo.UNAVAILABLE; in setDefaultValues()
194 if (mRssi < WCDMA_RSSI_MIN || mRssi > WCDMA_RSSI_MAX) { in updateLevel()
198 while (level > 0 && mRssi < sRssiThresholds[level - 1]) level--; in updateLevel()
210 return mRssi; in getDbm()
225 if (mRssi != CellInfo.UNAVAILABLE) return getAsuFromRssiDbm(mRssi); in getAsuLevel()
[all …]
DCellSignalStrengthLte.java60 private int mRssi; field in CellSignalStrengthLte
94 mRssi = inRangeOrUnavailable(rssi, -113, -51); in CellSignalStrengthLte()
95 mSignalStrength = mRssi; in CellSignalStrengthLte()
121 mRssi = s.mRssi; in copyFrom()
140 mRssi = CellInfo.UNAVAILABLE; in setDefaultValues()
244 if (mRssi > -51) rssiIconLevel = SIGNAL_STRENGTH_NONE_OR_UNKNOWN; in updateLevel()
245 else if (mRssi >= -89) rssiIconLevel = SIGNAL_STRENGTH_GREAT; in updateLevel()
246 else if (mRssi >= -97) rssiIconLevel = SIGNAL_STRENGTH_GOOD; in updateLevel()
247 else if (mRssi >= -103) rssiIconLevel = SIGNAL_STRENGTH_MODERATE; in updateLevel()
248 else if (mRssi >= -113) rssiIconLevel = SIGNAL_STRENGTH_POOR; in updateLevel()
[all …]
/frameworks/base/core/java/android/bluetooth/le/
DPeriodicAdvertisingReport.java45 private int mRssi; field in PeriodicAdvertisingReport
62 mRssi = rssi; in PeriodicAdvertisingReport()
75 dest.writeInt(mRssi); in writeToParcel()
88 mRssi = in.readInt(); in readFromParcel()
119 return mRssi; in getRssi()
147 return Objects.hash(mSyncHandle, mTxPower, mRssi, mDataStatus, mData, mTimestampNanos); in hashCode()
161 && (mRssi == other.mRssi) in equals()
170 + ", txPower=" + mTxPower + ", rssi=" + mRssi + ", dataStatus=" + mDataStatus in toString()
DScanResult.java82 private int mRssi; field in ScanResult
109 mRssi = rssi; in ScanResult()
142 mRssi = rssi; in ScanResult()
166 dest.writeInt(mRssi); in writeToParcel()
183 mRssi = in.readInt(); in readFromParcel()
217 return mRssi; in getRssi()
305 return Objects.hash(mDevice, mRssi, mScanRecord, mTimestampNanos, in hashCode()
320 return Objects.equals(mDevice, other.mDevice) && (mRssi == other.mRssi) in equals()
334 + Objects.toString(mScanRecord) + ", rssi=" + mRssi in toString()
/frameworks/base/lowpan/java/android/net/lowpan/
DLowpanBeaconInfo.java38 private int mRssi = UNKNOWN_RSSI; field in LowpanBeaconInfo
81 mBeaconInfo.mRssi = x; in setRssi()
121 return mRssi; in getRssi()
146 if (mRssi != UNKNOWN_RSSI) { in toString()
147 sb.append(", RSSI:").append(mRssi).append("dBm"); in toString()
174 return Objects.hash(mIdentity, mRssi, mLqi, Arrays.hashCode(mBeaconAddress), mFlags); in hashCode()
185 && mRssi == rhs.mRssi in equals()
200 dest.writeInt(mRssi); in writeToParcel()
/frameworks/base/core/java/android/net/
DWifiLinkQualityInfo.java34 private int mRssi = UNKNOWN_INT; field in WifiLinkQualityInfo
49 dest.writeInt(mRssi); in writeToParcel()
66 li.mRssi = in.readInt(); in createFromParcelBody()
110 return mRssi; in getRssi()
117 mRssi = rssi; in setRssi()
DMobileLinkQualityInfo.java30 private int mRssi = UNKNOWN_INT; field in MobileLinkQualityInfo
52 dest.writeInt(mRssi); in writeToParcel()
77 li.mRssi = in.readInt(); in createFromParcelBody()
115 return mRssi; in getRssi()
123 mRssi = Rssi; in setRssi()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DTestAccessPointBuilder.java50 private int mRssi = AccessPoint.UNREACHABLE_RSSI; field in TestAccessPointBuilder
108 ap.setRssi(mRssi); in build()
136 mRssi = MIN_RSSI; in setLevel()
138 mRssi = MAX_RSSI; in setLevel()
142 mRssi = (int) (level * inputRange / outputRange + MIN_RSSI); in setLevel()
155 mRssi = rssi; in setRssi()
173 if (mRssi == AccessPoint.UNREACHABLE_RSSI) { in setReachable()
174 mRssi = MIN_RSSI; in setReachable()
177 mRssi = AccessPoint.UNREACHABLE_RSSI; in setReachable()
DAccessPoint.java235 private int mRssi = UNREACHABLE_RSSI; field in AccessPoint
441 int difference = WifiManager.calculateSignalLevel(other.mRssi, SIGNAL_LEVELS) in compareTo()
442 - WifiManager.calculateSignalLevel(mRssi, SIGNAL_LEVELS); in compareTo()
467 result += 19 * mRssi; in hashCode()
502 builder.append(",rssi=").append(mRssi); in toString()
609 int speed = timedScore.getScore().calculateBadge(mRssi); in generateAverageSpeedForSsid()
761 return WifiManager.calculateSignalLevel(mRssi, SIGNAL_LEVELS); in getLevel()
765 return mRssi; in getRssi()
812 if (bestRssi != UNREACHABLE_RSSI && mRssi != UNREACHABLE_RSSI) { in updateBestRssiInfo()
813 mRssi = (mRssi + bestRssi) / 2; in updateBestRssiInfo()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DAggressiveConnectedScore.java29 private int mRssi = 0; field in AggressiveConnectedScore
38 mRssi = rssi; in updateUsingRssi()
44 mRssi = wifiInfo.getRssi(); in updateUsingWifiInfo()
55 int score = (mRssi - threshRssi) + WIFI_TRANSITION_SCORE; in generateScore()
/frameworks/base/wifi/java/android/net/wifi/rtt/
DRangingResult.java80 private final int mRssi; field in RangingResult
98 mRssi = rssi; in RangingResult()
117 mRssi = rssi; in RangingResult()
204 return mRssi; in getRssi()
346 dest.writeInt(mRssi); in writeToParcel()
403 ", rssi=").append(mRssi).append(", numAttemptedMeasurements=").append( in toString()
424 && mDistanceStdDevMm == lhs.mDistanceStdDevMm && mRssi == lhs.mRssi in equals()
434 return Objects.hash(mStatus, mMac, mPeerHandle, mDistanceMm, mDistanceStdDevMm, mRssi, in hashCode()
/frameworks/base/wifi/java/android/net/wifi/
DWifiInfo.java96 private int mRssi; field in WifiInfo
222 mRssi = INVALID_RSSI; in WifiInfo()
265 mRssi = source.mRssi; in WifiInfo()
363 return mRssi; in getRssi()
373 mRssi = rssi; in setRssi()
682 .append(", RSSI: ").append(mRssi) in toString()
701 dest.writeInt(mRssi); in writeToParcel()
DWifiUsabilityStatsEntry.java57 private final int mRssi; field in WifiUsabilityStatsEntry
122 mRssi = rssi; in WifiUsabilityStatsEntry()
158 dest.writeInt(mRssi); in writeToParcel()
216 return mRssi; in getRssi()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDevice.java65 short mRssi; field in CachedBluetoothDevice
516 if (mRssi != rssi) { in setRssi()
517 mRssi = rssi; in setRssi()
737 comparison = another.mRssi - mRssi; in compareTo()
1102 short tmpRssi = mRssi; in switchSubDeviceContent()
1106 mRssi = mSubDevice.mRssi; in switchSubDeviceContent()
1110 mSubDevice.mRssi = tmpRssi; in switchSubDeviceContent()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceTest.java904 mCachedDevice.mRssi = RSSI_1; in switchSubDeviceContent()
906 subCachedDevice.mRssi = RSSI_2; in switchSubDeviceContent()
910 assertThat(mCachedDevice.mRssi).isEqualTo(RSSI_1); in switchSubDeviceContent()
913 assertThat(subCachedDevice.mRssi).isEqualTo(RSSI_2); in switchSubDeviceContent()
918 assertThat(mCachedDevice.mRssi).isEqualTo(RSSI_2); in switchSubDeviceContent()
921 assertThat(subCachedDevice.mRssi).isEqualTo(RSSI_1); in switchSubDeviceContent()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt13221 Landroid/bluetooth/le/PeriodicAdvertisingReport;->mRssi:I
13293 Landroid/bluetooth/le/ScanResult;->mRssi:I
47442 Landroid/net/MobileLinkQualityInfo;->mRssi:I
50327 Landroid/net/wifi/rtt/RangingResult;->mRssi:I
50666 Landroid/net/wifi/WifiInfo;->mRssi:I
51099 Landroid/net/WifiLinkQualityInfo;->mRssi:I