Home
last modified time | relevance | path

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

12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DNeighboringCellInfoTest.java31 int rssi = 31; in testConstructor() local
34 nc = new NeighboringCellInfo(rssi, "FFFFFFF", NETWORK_TYPE_EDGE); in testConstructor()
36 assertEquals(rssi, nc.getRssi()); in testConstructor()
41 nc = new NeighboringCellInfo(rssi, "1FF", NETWORK_TYPE_UMTS); in testConstructor()
43 assertEquals(rssi, nc.getRssi()); in testConstructor()
48 nc = new NeighboringCellInfo(rssi, "1FF", NETWORK_TYPE_UNKNOWN); in testConstructor()
50 assertEquals(rssi, nc.getRssi()); in testConstructor()
58 int rssi = 20; in testParcel() local
60 NeighboringCellInfo nc = new NeighboringCellInfo(rssi, "12345678", NETWORK_TYPE_GPRS); in testParcel()
62 assertEquals(rssi, nc.getRssi()); in testParcel()
[all …]
/frameworks/base/core/java/android/bluetooth/le/
DPeriodicAdvertisingReport.java44 private int rssi; field in PeriodicAdvertisingReport
58 public PeriodicAdvertisingReport(int syncHandle, int txPower, int rssi, in PeriodicAdvertisingReport() argument
62 this.rssi = rssi; in PeriodicAdvertisingReport()
75 dest.writeInt(rssi); in writeToParcel()
88 rssi = in.readInt(); in readFromParcel()
119 return rssi; in getRssi()
147 return Objects.hash(syncHandle, txPower, rssi, dataStatus, data, timestampNanos); in hashCode()
161 (rssi == other.rssi) && in equals()
170 ", txPower=" + txPower + ", rssi=" + rssi + ", dataStatus=" + dataStatus + in toString()
DScanResult.java103 public ScanResult(BluetoothDevice device, ScanRecord scanRecord, int rssi, in ScanResult() argument
107 mRssi = rssi; in ScanResult()
132 int advertisingSid, int txPower, int rssi, int periodicAdvertisingInterval, in ScanResult() argument
140 mRssi = rssi; in ScanResult()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiScoreReport.java193 int rssi = wifiInfo.getRssi(); in updateScoringState() local
195 rssi -= AGGRESSIVE_HANDOVER_PENALTY * aggressiveHandover; in updateScoringState()
198 rssi += WifiConfiguration.HOME_NETWORK_RSSI_BOOST; in updateScoringState()
203 && rssi < rssiThreshLow) { in updateScoringState()
214 if (rssi < rssiThreshBad) { in updateScoringState()
218 } else if (rssi < rssiThreshLow) { in updateScoringState()
249 int rssi = wifiInfo.getRssi(); in calculateScore() local
251 rssi -= AGGRESSIVE_HANDOVER_PENALTY * aggressiveHandover; in calculateScore()
254 rssi += WifiConfiguration.HOME_NETWORK_RSSI_BOOST; in calculateScore()
272 if (rssi >= rssiThreshSaturated) score += 5; in calculateScore()
DWifiMetrics.java831 public void incrementRssiPollRssiCount(int rssi) { in incrementRssiPollRssiCount() argument
832 if (!(rssi >= MIN_RSSI_POLL && rssi <= MAX_RSSI_POLL)) { in incrementRssiPollRssiCount()
836 int count = mRssiPollCounts.get(rssi); in incrementRssiPollRssiCount()
837 mRssiPollCounts.put(rssi, count + 1); in incrementRssiPollRssiCount()
838 maybeIncrementRssiDeltaCount(rssi - mScanResultRssi); in incrementRssiPollRssiCount()
847 private void maybeIncrementRssiDeltaCount(int rssi) { in maybeIncrementRssiDeltaCount() argument
852 if (rssi >= MIN_RSSI_DELTA && rssi <= MAX_RSSI_DELTA) { in maybeIncrementRssiDeltaCount()
853 int count = mRssiDeltaCounts.get(rssi); in maybeIncrementRssiDeltaCount()
854 mRssiDeltaCounts.put(rssi, count + 1); in maybeIncrementRssiDeltaCount()
1333 keyVal.rssi = mRssiPollCounts.keyAt(i); in consolidateProto()
[all …]
DWifiNetworkHistory.java336 int rssi = WifiConfiguration.INVALID_RSSI; in readNetworkHistory() local
489 rssi = WifiConfiguration.INVALID_RSSI; in readNetworkHistory()
493 rssi = Integer.parseInt(value); in readNetworkHistory()
515 caps, rssi, freq, (long) 0, seen); in readNetworkHistory()
/frameworks/base/wifi/java/android/net/wifi/
DRssiPacketCountInfo.java31 public int rssi; field in RssiPacketCountInfo
40 rssi = txgood = txbad = rxgood = 0; in RssiPacketCountInfo()
44 rssi = in.readInt(); in RssiPacketCountInfo()
52 out.writeInt(rssi); in writeToParcel()
DWifiInfo.java388 public void setRssi(int rssi) { in setRssi() argument
389 if (rssi < INVALID_RSSI) in setRssi()
390 rssi = INVALID_RSSI; in setRssi()
391 if (rssi > MAX_RSSI) in setRssi()
392 rssi = MAX_RSSI; in setRssi()
393 mRssi = rssi; in setRssi()
/frameworks/base/telephony/java/android/telephony/
DNeighboringCellInfo.java98 public NeighboringCellInfo(int rssi, int cid) { in NeighboringCellInfo() argument
99 mRssi = rssi; in NeighboringCellInfo()
113 public NeighboringCellInfo(int rssi, String location, int radioType) { in NeighboringCellInfo() argument
115 mRssi = rssi; in NeighboringCellInfo()
255 public void setRssi(int rssi) { in setRssi() argument
256 mRssi = rssi; in setRssi()
/frameworks/base/core/java/android/net/
DRssiCurve.java135 public byte lookupScore(int rssi) { in lookupScore() argument
136 return lookupScore(rssi, false /* isActiveNetwork */); in lookupScore()
148 public byte lookupScore(int rssi, boolean isActiveNetwork) { in lookupScore() argument
150 rssi += activeNetworkRssiBoost; in lookupScore()
153 int index = (rssi - start) / bucketWidth; in lookupScore()
DScoredNetwork.java248 public int calculateRankingScore(int rssi) throws UnsupportedOperationException { in calculateRankingScore() argument
260 int score = (rssiCurve == null) ? 0 : rssiCurve.lookupScore(rssi) << Byte.SIZE; in calculateRankingScore()
278 public int calculateBadge(int rssi) { in calculateBadge() argument
282 return badgingCurve.lookupScore(rssi); in calculateBadge()
DWifiLinkQualityInfo.java116 public void setRssi(int rssi) { in setRssi() argument
117 mRssi = rssi; in setRssi()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSignalController.java263 int rssi; // Only for logging. field in SignalController.State
276 rssi = state.rssi; in copyFrom()
299 .append("rssi=").append(rssi).append(',') in toString()
316 && other.rssi == rssi; in equals()
DWifiSignalController.java179 mCurrentState.rssi = mWifiTracker.rssi; in handleBroadcast()
212 return score.calculateBadge(mWifiTracker.rssi); in getWifiBadgeEnum()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
DScanResultTest.java43 int rssi = -10; in testScanResultParceling() local
46 ScanResult result = new ScanResult(device, ScanRecord.parseFromBytes(scanRecord), rssi, in testScanResultParceling()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java33 public int rssi; field in WifiStatusTracker
86 rssi = intent.getIntExtra(WifiManager.EXTRA_NEW_RSSI, -200); in handleBroadcast()
87 level = WifiManager.calculateSignalLevel(rssi, 5); in handleBroadcast()
DAccessPoint.java483 int rssi = UNREACHABLE_RSSI; in updateRssi() local
485 if (result.level > rssi) { in updateRssi()
486 rssi = result.level; in updateRssi()
490 if (rssi != UNREACHABLE_RSSI && mRssi != UNREACHABLE_RSSI) { in updateRssi()
491 mRssi = (mRssi + rssi) / 2; // half-life previous value in updateRssi()
493 mRssi = rssi; in updateRssi()
1042 void setRssi(int rssi) { in setRssi() argument
1043 mRssi = rssi; in setRssi()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkScoreCacheTest.java166 final int rssi = -70; in getNetworkScoreShouldReturnScore() local
168 result.level = rssi; in getNetworkScoreShouldReturnScore()
170 when(mockRssiCurve.lookupScore(rssi)).thenReturn(score); in getNetworkScoreShouldReturnScore()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DTestAccessPointBuilder.java113 public TestAccessPointBuilder setRssi(int rssi) { in setRssi() argument
114 mRssi = rssi; in setRssi()
DAccessPointTest.java443 int rssi = -55;
448 wifiInfo.setRssi(rssi);
457 .setRssi(rssi)
469 int rssi = -55;
474 wifiInfo.setRssi(rssi);
483 .setRssi(rssi)
/frameworks/base/core/java/android/bluetooth/
DBluetoothGattCallback.java168 public void onReadRemoteRssi(BluetoothGatt gatt, int rssi, int status) { in onReadRemoteRssi() argument
DIBluetoothGattCallback.aidl38 void onReadRemoteRssi(in String address, in int rssi, in int status); in onReadRemoteRssi() argument
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanResults.java109 int rssi = r.nextInt(40) - 99; // -99 to -60 in generateNativeResults() local
120 bssid, "", rssi, freq, in generateNativeResults()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerWifiTest.java228 int rssi = (int)(MIN_RSSI + level * amountPerLevel); in setWifiLevel() local
230 rssi += amountPerLevel / 2; in setWifiLevel()
232 i.putExtra(WifiManager.EXTRA_NEW_RSSI, rssi); in setWifiLevel()
/frameworks/base/proto/src/
Dwifi.proto413 // Number of occurrences of a specific RSSI poll rssi value
416 optional int32 rssi = 1; field
418 // Number of RSSI polls with 'rssi'
626 // RSSI from the last rssi poll (Only valid for active connections)
629 // Link speed from the last rssi poll (Only valid for active connections)
632 // Frequency from the last rssi poll (Only valid for active connections)

12