Home
last modified time | relevance | path

Searched refs:rssi (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DNeighboringCellInfoTest.java32 int rssi = 31; in testConstructor() local
35 nc = new NeighboringCellInfo(rssi, "FFFFFFF", NETWORK_TYPE_EDGE); in testConstructor()
37 assertEquals(rssi, nc.getRssi()); in testConstructor()
42 nc = new NeighboringCellInfo(rssi, "1FF", NETWORK_TYPE_UMTS); in testConstructor()
44 assertEquals(rssi, nc.getRssi()); in testConstructor()
49 nc = new NeighboringCellInfo(rssi, "1FF", NETWORK_TYPE_UNKNOWN); in testConstructor()
51 assertEquals(rssi, nc.getRssi()); in testConstructor()
59 int rssi = 20; in testParcel() local
61 NeighboringCellInfo nc = new NeighboringCellInfo(rssi, "12345678", NETWORK_TYPE_GPRS); in testParcel()
63 assertEquals(rssi, nc.getRssi()); in testParcel()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/
DConnectivityState.kt35 @JvmField var rssi = 0 variable in com.android.systemui.statusbar.connectivity.ConnectivityState
71 rssi, in tableData()
85 rssi = other.rssi in copyFrom()
97 .append("rssi=$rssi,") in toString()
113 o.rssi == rssi in equals()
124 result = 31 * result + rssi in hashCode()
DWifiSignalController.java233 mCurrentState.rssi = mWifiTracker.rssi; in copyWifiStates()
/frameworks/base/core/java/android/net/
DRssiCurve.java139 public byte lookupScore(int rssi) { in lookupScore() argument
140 return lookupScore(rssi, false /* isActiveNetwork */); in lookupScore()
152 public byte lookupScore(int rssi, boolean isActiveNetwork) { in lookupScore() argument
154 rssi += activeNetworkRssiBoost; in lookupScore()
157 int index = (rssi - start) / bucketWidth; in lookupScore()
DScoredNetwork.java269 public int calculateRankingScore(int rssi) throws UnsupportedOperationException { in calculateRankingScore() argument
281 int score = (rssiCurve == null) ? 0 : rssiCurve.lookupScore(rssi) << Byte.SIZE; in calculateRankingScore()
299 public int calculateBadge(int rssi) { in calculateBadge() argument
303 return badgingCurve.lookupScore(rssi); in calculateBadge()
DWifiLinkQualityInfo.java116 public void setRssi(int rssi) { in setRssi() argument
117 mRssi = rssi; in setRssi()
/frameworks/base/telephony/java/android/telephony/
DNeighboringCellInfo.java110 public NeighboringCellInfo(int rssi, int cid) { in NeighboringCellInfo() argument
111 mRssi = rssi; in NeighboringCellInfo()
158 public NeighboringCellInfo(int rssi, String location, int radioType) { in NeighboringCellInfo() argument
160 mRssi = rssi; in NeighboringCellInfo()
300 public void setRssi(int rssi) { in setRssi() argument
301 mRssi = rssi; in setRssi()
DCellSignalStrengthLte.java138 public CellSignalStrengthLte(int rssi, int rsrp, int rsrq, int rssnr, int cqiTableIndex, in CellSignalStrengthLte() argument
140 mRssi = inRangeOrUnavailable(rssi, -113, -51); in CellSignalStrengthLte()
163 public CellSignalStrengthLte(int rssi, int rsrp, int rsrq, int rssnr, int cqi, in CellSignalStrengthLte() argument
165 this(rssi, rsrp, rsrq, rssnr, CellInfo.UNAVAILABLE, cqi, timingAdvance); in CellSignalStrengthLte()
DCellSignalStrengthTdscdma.java70 public CellSignalStrengthTdscdma(int rssi, int ber, int rscp) { in CellSignalStrengthTdscdma() argument
71 mRssi = inRangeOrUnavailable(rssi, -113, -51); in CellSignalStrengthTdscdma()
DCellSignalStrengthGsm.java62 public CellSignalStrengthGsm(int rssi, int ber, int ta) { in CellSignalStrengthGsm() argument
63 mRssi = inRangeOrUnavailable(rssi, GSM_RSSI_MIN, GSM_RSSI_MAX); in CellSignalStrengthGsm()
DCellSignalStrengthWcdma.java89 public CellSignalStrengthWcdma(int rssi, int ber, int rscp, int ecno) { in CellSignalStrengthWcdma() argument
90 mRssi = inRangeOrUnavailable(rssi, WCDMA_RSSI_MIN, WCDMA_RSSI_MAX); in CellSignalStrengthWcdma()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DTestUtils.java53 String utf8Ssid, String bssid, long timestampMillis, int rssi) { in buildScanResult() argument
55 result.level = rssi; in buildScanResult()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkScoreCacheTest.java167 final int rssi = -70; in getNetworkScoreShouldReturnScore() local
169 result.level = rssi; in getNetworkScoreShouldReturnScore()
171 when(mockRssiCurve.lookupScore(rssi)).thenReturn(score); in getNetworkScoreShouldReturnScore()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java111 private ScanResult createScanResult(String ssid, String bssid, int rssi) { in createScanResult() argument
114 scanResult.level = rssi; in createScanResult()
515 final int rssi = -55;
524 wifiInfo.setRssi(rssi);
538 when(mMockWifiManager.calculateSignalLevel(rssi)).thenReturn(4);
547 .setRssi(rssi)
710 int rssi = -55;
715 wifiInfo.setRssi(rssi);
724 .setRssi(rssi)
736 int rssi = -55;
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/connectivity/
DNetworkControllerWifiTest.java323 int rssi = calculateRssiForLevel(testLevel); in vcnOnlyOnUnderlyingNetwork() local
324 when(underlyingCarrierMergedInfo.getRssi()).thenReturn(rssi); in vcnOnlyOnUnderlyingNetwork()
405 int rssi = (int) (MIN_RSSI + level * amountPerLevel); in calculateRssiForLevel() local
407 rssi += amountPerLevel / 2; in calculateRssiForLevel()
408 return rssi; in calculateRssiForLevel()
DNetworkControllerBaseTest.java194 int rssi = invocation.getArgument(0); in setUp()
195 if (rssi < -88) return 0; in setUp()
196 if (rssi < -77) return 1; in setUp()
197 if (rssi < -66) return 2; in setUp()
198 if (rssi < -55) return 3; in setUp()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java169 public int rssi; field in WifiStatusTracker
289 rssi = newRssi; in updateRssi()
290 level = mWifiManager.calculateSignalLevel(rssi); in updateRssi()
343 ? null : AccessPoint.getSpeedLabel(mContext, scoredNetwork, rssi); in updateStatusLabel()
DTestAccessPointBuilder.java151 public TestAccessPointBuilder setRssi(int rssi) { in setRssi() argument
152 mRssi = rssi; in setRssi()
DAccessPoint.java1578 void setRssi(int rssi) { in setRssi() argument
1579 mRssi = rssi; in setRssi()
1633 public static String getSpeedLabel(Context context, ScoredNetwork scoredNetwork, int rssi) { in getSpeedLabel() argument
1634 return getSpeedLabel(context, roundToClosestSpeedEnum(scoredNetwork.calculateBadge(rssi))); in getSpeedLabel()
DWifiUtils.kt228 visibility.append(" rssi=").append(info.rssi) in <lambda>()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiStatusTrackerTest.java104 assertThat(mWifiStatusTracker.rssi).isEqualTo(primaryRssi); in testWifiInfoClearedOnPrimaryNetworkLost()
124 assertThat(mWifiStatusTracker.rssi).isEqualTo(primaryRssi); in testWifiInfoClearedOnPrimaryNetworkLost()
131 assertThat(mWifiStatusTracker.rssi).isEqualTo(primaryRssi); in testWifiInfoClearedOnPrimaryNetworkLost()
DWifiUtilsTest.java247 private static ScanResult createScanResult(String ssid, String bssid, int rssi) { in createScanResult() argument
250 scanResult.level = rssi; in createScanResult()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothEventManager.java345 short rssi = intent.getShortExtra(BluetoothDevice.EXTRA_RSSI, Short.MIN_VALUE); in onReceive() local
362 cachedDevice.setRssi(rssi); in onReceive()
DCachedBluetoothDevice.java867 void setRssi(short rssi) { in setRssi() argument
868 if (mRssi != rssi) { in setRssi()
869 mRssi = rssi; in setRssi()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRadioResponse.java2410 int rssi; in responseCellList() local
2421 rssi = cells.get(i).rssi; in responseCellList()
2423 cell = new NeighboringCellInfo(rssi, location, radioType); in responseCellList()

12