Home
last modified time | relevance | path

Searched refs:newRssi (Results 1 – 12 of 12) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiScoreReport.java131 int newRssi = pollResult.currentRssiDbm; in triggerUpdateOfWifiUsabilityStats() local
136 if (newRssi > WifiInfo.INVALID_RSSI && newRssi < WifiInfo.MAX_RSSI) { in triggerUpdateOfWifiUsabilityStats()
137 if (newRssi > (WifiInfo.INVALID_RSSI + 256)) { in triggerUpdateOfWifiUsabilityStats()
138 Log.wtf(TAG, "Error! +ve value RSSI: " + newRssi); in triggerUpdateOfWifiUsabilityStats()
139 newRssi -= 256; in triggerUpdateOfWifiUsabilityStats()
141 mWifiInfo.setRssi(newRssi); in triggerUpdateOfWifiUsabilityStats()
DClientModeImpl.java2425 int newRssi = pollResult.currentRssiDbm; in fetchRssiLinkSpeedAndFrequencyNative() local
2431 logd("fetchRssiLinkSpeedAndFrequencyNative rssi=" + newRssi in fetchRssiLinkSpeedAndFrequencyNative()
2436 if (newRssi > WifiInfo.INVALID_RSSI && newRssi < WifiInfo.MAX_RSSI) { in fetchRssiLinkSpeedAndFrequencyNative()
2443 if (newRssi > (WifiInfo.INVALID_RSSI + 256)) { in fetchRssiLinkSpeedAndFrequencyNative()
2444 Log.wtf(TAG, "Error! +ve value RSSI: " + newRssi); in fetchRssiLinkSpeedAndFrequencyNative()
2445 newRssi -= 256; in fetchRssiLinkSpeedAndFrequencyNative()
2447 mWifiInfo.setRssi(newRssi); in fetchRssiLinkSpeedAndFrequencyNative()
2458 int newSignalLevel = RssiUtil.calculateSignalLevel(mContext, newRssi); in fetchRssiLinkSpeedAndFrequencyNative()
2461 sendRssiChangeBroadcast(newRssi); in fetchRssiLinkSpeedAndFrequencyNative()
2546 private void sendRssiChangeBroadcast(final int newRssi) { in sendRssiChangeBroadcast() argument
[all …]
/frameworks/base/core/java/android/os/
DBatteryStatsManager.java169 public void reportWifiRssiChanged(@IntRange(from = -127, to = 0) int newRssi) { in reportWifiRssiChanged()
171 mBatteryStats.noteWifiRssiChanged(newRssi); in reportWifiRssiChanged()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DWifiTrackerTest.java749 int newRssi = CONNECTED_RSSI + 10; in rssiChangeBroadcastShouldUpdateConnectedAp() local
751 info.setRssi(newRssi); in rssiChangeBroadcastShouldUpdateConnectedAp()
761 assertThat(tracker.getAccessPoints().get(0).getRssi()).isEqualTo(newRssi); in rssiChangeBroadcastShouldUpdateConnectedAp()
1084 int newRssi = prevRssi + 10; in updatePasspointAccessPoints_usesCachedAccessPoints() local
1085 result.level = newRssi; in updatePasspointAccessPoints_usesCachedAccessPoints()
1096 .isEqualTo((prevRssi + newRssi) / 2); in updatePasspointAccessPoints_usesCachedAccessPoints()
1206 int newRssi = prevRssi + 10; in updateOsuAccessPoints_usesCachedAccessPoints() local
1207 result.level = newRssi; in updateOsuAccessPoints_usesCachedAccessPoints()
1216 .isEqualTo((prevRssi + newRssi) / 2); in updateOsuAccessPoints_usesCachedAccessPoints()
DAccessPointTest.java264 int newRssi = originalRssi - 10;
265 ap.setRssi(newRssi);
266 assertThat(ap.getRssi()).isEqualTo(newRssi);
273 int newRssi = -80;
274 int expectedRssi = (originalRssi + newRssi) / 2;
280 scanResult.level = newRssi;
891 int newRssi = -80;
896 scanResult.level = newRssi;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java204 private void updateRssi(int newRssi) { in updateRssi() argument
205 rssi = newRssi; in updateRssi()
/frameworks/base/core/java/com/android/internal/app/
DIBatteryStats.aidl118 void noteWifiRssiChanged(int newRssi); in noteWifiRssiChanged() argument
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java918 public void noteWifiRssiChanged(int newRssi) { in noteWifiRssiChanged() argument
921 mStats.noteWifiRssiChangedLocked(newRssi); in noteWifiRssiChanged()
/frameworks/base/wifi/api/
Dcurrent.txt369 field public static final String EXTRA_NEW_RSSI = "newRssi";
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java5839 public void noteWifiRssiChangedLocked(int newRssi) { in noteWifiRssiChangedLocked() argument
5840 int strengthBin = WifiManager.calculateSignalLevel(newRssi, NUM_WIFI_SIGNAL_STRENGTH_BINS); in noteWifiRssiChangedLocked()
5841 if (DEBUG) Log.i(TAG, "WiFi rssi -> " + newRssi + " bin=" + strengthBin); in noteWifiRssiChangedLocked()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt18068 field public static final java.lang.String EXTRA_NEW_RSSI = "newRssi";
/frameworks/base/api/
Dcurrent.txt31449 field public static final String EXTRA_NEW_RSSI = "newRssi";