Home
last modified time | relevance | path

Searched refs:rssi (Results 1 – 25 of 38) 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/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.java363 public void setRssi(int rssi) { in setRssi() argument
364 if (rssi < INVALID_RSSI) in setRssi()
365 rssi = INVALID_RSSI; in setRssi()
366 if (rssi > MAX_RSSI) in setRssi()
367 rssi = MAX_RSSI; in setRssi()
368 mRssi = rssi; in setRssi()
DWifiManager.java1496 public static int calculateSignalLevel(int rssi, int numLevels) {
1497 if (rssi <= MIN_RSSI) {
1499 } else if (rssi >= MAX_RSSI) {
1504 return (int)((float)(rssi - MIN_RSSI) * outputRange / inputRange);
/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()
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.java106 mCurrentState.rssi = mWifiTracker.rssi; in handleBroadcast()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java27 public int rssi; field in WifiStatusTracker
59 rssi = intent.getIntExtra(WifiManager.EXTRA_NEW_RSSI, -200); in handleBroadcast()
60 level = WifiManager.calculateSignalLevel(rssi, 5); in handleBroadcast()
DAccessPoint.java271 int rssi = Integer.MIN_VALUE; in getRssi() local
273 if (result.level > rssi) { in getRssi()
274 rssi = result.level; in getRssi()
278 return rssi; in getRssi()
758 void setRssi(int rssi) { in setRssi() argument
759 mRssi = rssi; in setRssi()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiScoreReport.java170 int rssi = wifiInfo.getRssi() - AGGRESSIVE_HANDOVER_PENALTY * aggressiveHandover in calculateScore() local
172 sb.append(String.format(" rssi=%d ag=%d", rssi, aggressiveHandover)); in calculateScore()
176 boolean isBadRSSI = (is24GHz && rssi < wifiConfigManager.mThresholdMinimumRssi24.get()) in calculateScore()
177 || (!is24GHz && rssi < wifiConfigManager.mThresholdMinimumRssi5.get()); in calculateScore()
178 boolean isLowRSSI = (is24GHz && rssi < wifiConfigManager.mThresholdQualifiedRssi24.get()) in calculateScore()
181 boolean isHighRSSI = (is24GHz && rssi >= wifiConfigManager.mThresholdSaturatedRssi24.get()) in calculateScore()
DWifiMetrics.java799 public void incrementRssiPollRssiCount(int rssi) { in incrementRssiPollRssiCount() argument
800 if (!(rssi >= MIN_RSSI_POLL && rssi <= MAX_RSSI_POLL)) { in incrementRssiPollRssiCount()
804 int count = mRssiPollCounts.get(rssi); in incrementRssiPollRssiCount()
805 mRssiPollCounts.put(rssi, count + 1); in incrementRssiPollRssiCount()
998 keyVal.rssi = mRssiPollCounts.keyAt(i); in consolidateProto()
DWifiNetworkHistory.java340 int rssi = WifiConfiguration.INVALID_RSSI; in readNetworkHistory() local
493 rssi = WifiConfiguration.INVALID_RSSI; in readNetworkHistory()
497 rssi = Integer.parseInt(value); in readNetworkHistory()
519 caps, rssi, freq, (long) 0, seen); in readNetworkHistory()
/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/core/java/android/bluetooth/le/
DScanResult.java51 public ScanResult(BluetoothDevice device, ScanRecord scanRecord, int rssi, in ScanResult() argument
55 mRssi = rssi; in ScanResult()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerWifiTest.java108 int rssi = (int)(MIN_RSSI + level * amountPerLevel); in setWifiLevel() local
110 rssi += amountPerLevel / 2; in setWifiLevel()
112 i.putExtra(WifiManager.EXTRA_NEW_RSSI, rssi); in setWifiLevel()
/frameworks/base/core/java/android/bluetooth/
DBluetoothGattCallback.java139 public void onReadRemoteRssi(BluetoothGatt gatt, int rssi, int status) { in onReadRemoteRssi() argument
DBluetoothGattCallbackWrapper.java82 public void onReadRemoteRssi(String address, int rssi, int status) throws RemoteException { in onReadRemoteRssi() argument
DIBluetoothGattCallback.aidl40 void onReadRemoteRssi(in String address, in int rssi, in int status); in onReadRemoteRssi() argument
DIBluetoothGattServerCallback.aidl27 void onScanResult(in String address, in int rssi, in byte[] advData); in onScanResult() 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/opt/net/wifi/service/proto/
Dwifi.proto344 // Number of occurrences of a specific RSSI poll rssi value
347 optional int32 rssi = 1; field
349 // Number of RSSI polls with 'rssi'
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDevice.java436 void setRssi(short rssi) { in setRssi() argument
437 if (mRssi != rssi) { in setRssi()
438 mRssi = rssi; in setRssi()
DBluetoothEventManager.java189 short rssi = intent.getShortExtra(BluetoothDevice.EXTRA_RSSI, Short.MIN_VALUE); in onReceive() local
200 cachedDevice.setRssi(rssi); in onReceive()

12