Home
last modified time | relevance | path

Searched refs:rssi (Results 1 – 25 of 28) 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/opt/net/wifi/service/java/com/android/server/wifi/
DWifiWatchdogStateMachine.java646 int rssi = info.rssi; in processMessage() local
647 if (DBG) logd("Fetch RSSI succeed, rssi=" + rssi); in processMessage()
655 if (rssi >= mCurrentBssid.mGoodLinkTargetRssi) { in processMessage()
658 if (DBG) logd("Good link detected, rssi=" + rssi); in processMessage()
793 int rssi = info.rssi; in processMessage() local
794 int mrssi = (mLastRssi + rssi) / 2; in processMessage()
797 if (DBG) logd("Fetch RSSI succeed, rssi=" + rssi + " mrssi=" + mrssi + " txbad=" in processMessage()
828 if (mCurrentBssid.poorLinkDetected(rssi)) { in processMessage()
841 mLastRssi = rssi; in processMessage()
907 private int calculateSignalLevel(int rssi) { in calculateSignalLevel() argument
[all …]
DWifiAutoJoinController.java946 public int rssiBoostFrom5GHzRssi(int rssi, String dbg) { in rssiBoostFrom5GHzRssi() argument
950 if (rssi in rssiBoostFrom5GHzRssi()
957 *(rssi - mWifiConfigStore.bandPreferenceBoostThreshold5); in rssiBoostFrom5GHzRssi()
964 logDbg(" " + dbg + ": rssi5 " + rssi + " 5GHz-boost " + boost); in rssiBoostFrom5GHzRssi()
969 if (rssi in rssiBoostFrom5GHzRssi()
973 *(rssi - mWifiConfigStore.bandPreferencePenaltyThreshold5); in rssiBoostFrom5GHzRssi()
DWifiStateMachine.java3692 int rssi = mWifiInfo.getRssi() - 6 * mAggressiveHandover in calculateWifiScore() local
3694 sb.append(String.format(" rssi=%d ag=%d", rssi, mAggressiveHandover)); in calculateWifiScore()
3698 boolean isBadRSSI = (is24GHz && rssi < mWifiConfigStore.thresholdBadRssi24) in calculateWifiScore()
3699 || (!is24GHz && rssi < mWifiConfigStore.thresholdBadRssi5); in calculateWifiScore()
3700 boolean isLowRSSI = (is24GHz && rssi < mWifiConfigStore.thresholdLowRssi24) in calculateWifiScore()
3702 boolean isHighRSSI = (is24GHz && rssi >= mWifiConfigStore.thresholdGoodRssi24) in calculateWifiScore()
6173 int rssi = mWifiInfo.getRssi(); in noteWifiDisabledWhileAssociated() local
6176 && rssi != WifiInfo.INVALID_RSSI in noteWifiDisabledWhileAssociated()
6179 boolean isBadRSSI = (is24GHz && rssi < mWifiConfigStore.thresholdBadRssi24) in noteWifiDisabledWhileAssociated()
6180 || (!is24GHz && rssi < mWifiConfigStore.thresholdBadRssi5); in noteWifiDisabledWhileAssociated()
[all …]
DWifiConfigStore.java1874 int rssi = WifiConfiguration.INVALID_RSSI; in readNetworkHistory() local
1904 rssi = WifiConfiguration.INVALID_RSSI; in readNetworkHistory()
2093 rssi = WifiConfiguration.INVALID_RSSI; in readNetworkHistory()
2101 rssi = Integer.parseInt(lvl); in readNetworkHistory()
2136 caps, rssi, freq, (long) 0); 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.java337 public void setRssi(int rssi) { in setRssi() argument
338 if (rssi < INVALID_RSSI) in setRssi()
339 rssi = INVALID_RSSI; in setRssi()
340 if (rssi > MAX_RSSI) in setRssi()
341 rssi = MAX_RSSI; in setRssi()
342 mRssi = rssi; in setRssi()
DRttManager.java183 public int rssi; field in RttManager.RttResult
234 dest.writeInt(result.rssi); in writeToParcel()
267 results[i].rssi = in.readInt();
DWifiManager.java1357 public static int calculateSignalLevel(int rssi, int numLevels) { in calculateSignalLevel() argument
1358 if (rssi <= MIN_RSSI) { in calculateSignalLevel()
1360 } else if (rssi >= MAX_RSSI) { in calculateSignalLevel()
1365 return (int)((float)(rssi - MIN_RSSI) * outputRange / inputRange); in calculateSignalLevel()
/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/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.java104 int rssi = (int)(MIN_RSSI + level * amountPerLevel); in setWifiLevel() local
106 rssi += amountPerLevel / 2; in setWifiLevel()
108 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
DIBluetoothGattServerCallback.aidl27 void onScanResult(in String address, in int rssi, in byte[] advData); in onScanResult() argument
DBluetoothGattCallbackWrapper.java110 public void onReadRemoteRssi(String address, int rssi, int status) throws RemoteException { in onReadRemoteRssi() argument
DIBluetoothGattCallback.aidl67 void onReadRemoteRssi(in String address, in int rssi, in int status); in onReadRemoteRssi() argument
DBluetoothGatt.java580 public void onReadRemoteRssi(String address, int rssi, int status) {
582 " rssi=" + rssi + " status=" + status);
587 mCallback.onReadRemoteRssi(BluetoothGatt.this, rssi, status);
DBluetoothGattServer.java86 public void onScanResult(String address, int rssi, byte[] advData) {
87 if (VDBG) Log.d(TAG, "onScanResult() - Device=" + address + " RSSI=" +rssi);
DBluetoothAdapter.java1639 public void onLeScan(BluetoothDevice device, int rssi, byte[] scanRecord); in onLeScan() argument
/frameworks/opt/net/wifi/service/tools/halutil/
Dhalutil.cpp201 printMsg("%d\t", result.rssi); in printScanResult()
217 printMsg("%d,", result.rssi[i]); in printSignificantChangeResult()
521 if (result1->rssi < result2->rssi) { in compareScanResultsByRssi()
523 } else if (result1->rssi == result2->rssi) { in compareScanResultsByRssi()
568 result[i].addr[4], result[i].addr[5], result[i].ts, result[i].rssi, in onRTTResults()
814 params.ap[i].low = results[i].rssi - swctest_rssi_ch_threshold; in SelectSignificantAPsFromScanResults()
815 params.ap[i].high = results[i].rssi + swctest_rssi_ch_threshold; in SelectSignificantAPsFromScanResults()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNetworkControllerImpl.java914 mCurrentState.rssi = intent.getIntExtra(WifiManager.EXTRA_NEW_RSSI, -200); in handleBroadcast()
916 mCurrentState.rssi, WifiIcons.WIFI_LEVEL_COUNT); in handleBroadcast()
1725 int rssi; // Only for logging. field in NetworkControllerImpl.SignalController.State
1738 rssi = state.rssi; in copyFrom()
1761 .append("rssi=").append(rssi).append(',') in toString()
1778 && other.rssi == rssi; in equals()
/frameworks/opt/net/wifi/service/jni/
Dcom_android_server_wifi_WifiNative.cpp188 setIntField(env, scanResult, "level", result->rssi); in createScanResult()
457 setIntField(env, scanResult, "level", results[i].rssi); in android_net_wifi_getScanResults()
589 setIntField(env, scanResult, "level", results[i].rssi); in onHotlistApFound()
703 setIntField(env, scanResult, "level", result.rssi[0]); in onSignificantWifiChange()
919 setIntField(env, rttResult, "rssi", result.rssi); in onRttResults()

12