Home
last modified time | relevance | path

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

123456789

/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DRssiUtil.java32 public static int calculateAdjustedRssi(int rssi) { in calculateAdjustedRssi() argument
33 if (rssi > WifiInfo.INVALID_RSSI && rssi < WifiInfo.MAX_RSSI) { in calculateAdjustedRssi()
40 if (rssi > (WifiInfo.INVALID_RSSI + 256)) { in calculateAdjustedRssi()
41 return rssi - 256; in calculateAdjustedRssi()
43 return rssi; in calculateAdjustedRssi()
49 public static int calculateSignalLevel(Context context, int rssi) { in calculateSignalLevel() argument
53 if (rssi < thresholds[level]) { in calculateSignalLevel()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DBubbleFunScorer.java63 final int rssi = candidate.getScanRssi(); in scoreCandidate() local
66 double score = shapeFunction(rssi) - shapeFunction(rssiEntryThreshold); in scoreCandidate()
73 double gain = shapeFunction(rssi + 0.5) in scoreCandidate()
74 - shapeFunction(rssi - 0.5); in scoreCandidate()
109 private static double unscaledShapeFunction(double rssi) { in unscaledShapeFunction() argument
110 return -Math.exp(-rssi * BELS_PER_DECIBEL); in unscaledShapeFunction()
116 private static double shapeFunction(double rssi) { in shapeFunction() argument
117 return unscaledShapeFunction(rssi) * RESCALE_FACTOR; in shapeFunction()
DThroughputScorer.java218 int rssi = candidate.getScanRssi(); in calculateRssiScore() local
223 rssi += 3; in calculateRssiScore()
226 rssi += 6; in calculateRssiScore()
229 rssi += 9; in calculateRssiScore()
232 rssi += 12; in calculateRssiScore()
239 rssi = Math.min(rssi, rssiSaturationThreshold); in calculateRssiScore()
240 return (rssi + RSSI_SCORE_OFFSET) * RSSI_SCORE_SLOPE_IS_4; in calculateRssiScore()
DConnectedScore.java90 public void updateUsingRssi(int rssi, long millis) { in updateUsingRssi() argument
91 updateUsingRssi(rssi, millis, mDefaultRssiStandardDeviation); in updateUsingRssi()
104 public abstract void updateUsingRssi(int rssi, long millis, double standardDeviation); in updateUsingRssi() argument
DWifiBlocklistMonitor.java308 @FailureReason int reason, int rssi) { in addToBlocklist() argument
309 entry.setAsBlocked(durationMs, reason, rssi); in addToBlocklist()
312 + ", rssi=" + rssi); in addToBlocklist()
402 long durationMs, @FailureReason int blockReason, int rssi) { in blockBssidForDurationMs() argument
407 + ", rssi=" + rssi); in blockBssidForDurationMs()
416 addToBlocklist(status, durationMs, blockReason, rssi); in blockBssidForDurationMs()
423 addToBlocklist(status, durationMs, blockReason, rssi); in blockBssidForDurationMs()
480 @FailureReason int reasonCode, int rssi) { in handleBssidConnectionFailureInternal() argument
494 if (rssi == WifiConfiguration.INVALID_RSSI && bssid != null) { in handleBssidConnectionFailureInternal()
498 rssi = scanResult.level; in handleBssidConnectionFailureInternal()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DRssiUtilTest.java69 for (int rssi = -100; rssi <= 0; rssi++) { in testCalculateSignalLevelImplementationsConsistent()
70 int expected = WifiManager.calculateSignalLevel(rssi, WifiManager.RSSI_LEVELS); in testCalculateSignalLevelImplementationsConsistent()
71 int actual = RssiUtil.calculateSignalLevel(mContext, rssi); in testCalculateSignalLevelImplementationsConsistent()
72 assertWithMessage("RSSI: %s", rssi).that(actual).isEqualTo(expected); in testCalculateSignalLevelImplementationsConsistent()
110 int rssi = invocation.getArgument(0); in testGetMaxSignalLevel()
111 return RssiUtil.calculateSignalLevel(mContext, rssi); in testGetMaxSignalLevel()
/packages/modules/Bluetooth/tools/rootcanal/test/LL/DDI/ADV/
DBV_08_C.py98 rssi=-16)
115 rssi=-16)
136 rssi=-16)
161 rssi=-16)
174 rssi=-16)
187 rssi=-16)
231 rssi=-16)
244 rssi=-16)
257 rssi=-16)
284 rssi=-16)
[all …]
DBV_05_C.py83 rssi=-16)
117 rssi=-16)
155 rssi=-16)
183 rssi=-16)
/packages/modules/Bluetooth/tools/rootcanal/test/LL/
Dscan_timeout.py57 rssi=-16)
65 rssi=0xf0)
82 rssi=-16)
90 rssi=0xf0)
102 rssi=-16)
110 rssi=0xf0)
/packages/modules/Bluetooth/tools/rootcanal/model/setup/
Dphy_layer.cc53 static uint8_t rssi = 0; in ComputeRssi() local
54 rssi = (rssi + 5) % 128; in ComputeRssi()
55 return static_cast<int8_t>(-rssi); in ComputeRssi()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiScoreReportTest.java639 for (int rssi = -60; rssi >= -83; rssi -= 1) {
640 mWifiInfo.setRssi(rssi);
662 for (int rssi = -60; rssi >= -83; rssi -= 1) {
663 mWifiInfo.setRssi(rssi);
664 oops += " " + mClock.mWallClockMillis + "," + rssi;
690 int rssi = Math.max(r, -80);
691 mWifiInfo.setRssi(rssi);
692 oops += " " + mClock.mWallClockMillis + "," + rssi;
742 for (int rssi = -30; rssi >= -120; rssi -= 1) {
743 mWifiInfo.setRssi(rssi);
[all …]
/packages/modules/Bluetooth/system/stack/btm/
Dbtm_inq.cc1242 if (p_ent->inq_info.results.rssi < i_rssi) { in btm_inq_db_new()
1244 i_rssi = p_ent->inq_info.results.rssi; in btm_inq_db_new()
1333 p_i->inq_info.results.rssi = BTM_INQ_RES_IGNORE_RSSI; in btm_process_inq_results_standard()
1403 uint8_t rssi = 0; in btm_process_inq_results_rssi() local
1436 rssi = response.rssi_; in btm_process_inq_results_rssi()
1443 i_rssi = (int8_t)rssi; in btm_process_inq_results_rssi()
1446 if ((rssi != 0) && p_i && in btm_process_inq_results_rssi()
1447 (i_rssi > p_i->inq_info.results.rssi || in btm_process_inq_results_rssi()
1448 p_i->inq_info.results.rssi == 0 in btm_process_inq_results_rssi()
1453 log::verbose("update RSSI new:{}, old:{}", i_rssi, p_cur->rssi); in btm_process_inq_results_rssi()
[all …]
/packages/modules/Bluetooth/tools/rootcanal/test/LL/DDI/SCN/
DBV_18_C.py100 rssi=-16)
122 rssi=0xf0)
131 rssi=-16)
141 rssi=0xf0)
DBV_13_C.py88 rssi=-16)
99 rssi=0xf0)
127 rssi=-16)
138 rssi=0xf0)
DBV_79_C.py92 rssi=0x10)
112 rssi=0x10,
181 rssi=0x10)
198 rssi=0x10,
DBV_20_C.py164 controller.send_ll(pdu, rssi=0)
186 rssi=0,
219 rssi=0)
252 rssi=0,
/packages/modules/Connectivity/nearby/framework/java/android/nearby/
DPresenceDevice.java186 private PresenceDevice(String deviceName, List<Integer> mMediums, int rssi, String deviceId, in PresenceDevice() argument
190 super(deviceName, mMediums, rssi); in PresenceDevice()
251 int rssi = in.readInt();
273 .setRssi(rssi)
362 public Builder setRssi(int rssi) { in setRssi() argument
363 mRssi = rssi; in setRssi()
DFastPairDevice.java98 int rssi, in FastPairDevice() argument
103 super(name, mediums, rssi); in FastPairDevice()
272 public Builder setRssi(@IntRange(from = -127, to = 126) int rssi) { in setRssi()
273 mRssi = rssi; in setRssi()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothLeBroadcastMetadata.java132 int rssi, in BluetoothLeBroadcastMetadata() argument
146 mRssi = rssi; in BluetoothLeBroadcastMetadata()
757 public Builder setRssi(@IntRange(from = -127, to = 127) int rssi) { in setRssi()
758 if (rssi < -127 || rssi > 127) { in setRssi()
759 throw new IllegalArgumentException("illegal rssi " + rssi); in setRssi()
761 mRssi = rssi; in setRssi()
/packages/modules/Wifi/framework/java/android/net/wifi/
DMloLink.java317 public void setRssi(int rssi) { in setRssi() argument
318 if (rssi < WifiInfo.INVALID_RSSI) rssi = WifiInfo.INVALID_RSSI; in setRssi()
319 if (rssi > WifiInfo.MAX_RSSI) rssi = WifiInfo.MAX_RSSI; in setRssi()
320 mRssi = rssi; in setRssi()
/packages/modules/Uwb/service/uci/jni/src/
Dnotification_manager_android.rs85 rssi: u8, field
116 rssi: (measurement.rssi), in from()
137 rssi: (measurement.rssi), in from()
186 pub rssi: u8, field
212 rssi: (measurement.measurement.rssi), in from()
240 rssi: (measurement.measurement.rssi), in from()
609 JValue::Int(measurement.rssi as i32), in on_session_dl_tdoa_range_data_notification()
760 JValue::Int(measurement.rssi as i32), in on_two_way_range_data_notification()
1397 rssi: 11, in test_get_two_way_ranigng_measurement_from_short_address_two_way_ranging_measurement()
1428 assert_eq!(measurement.rssi, short_address_measurement.rssi); in test_get_two_way_ranigng_measurement_from_short_address_two_way_ranging_measurement()
[all …]
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/presence/
DPresenceDiscoveryResult.java80 int rssi, in PresenceDiscoveryResult() argument
87 mRssi = rssi; in PresenceDiscoveryResult()
183 public Builder setRssi(int rssi) { in setRssi() argument
184 mRssi = rssi; in setRssi()
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DWifiQCUtils.java77 int rssi = wifiInfo.getRssi(); in getIcon() local
78 if (rssi == WifiInfo.INVALID_RSSI) { in getIcon()
81 int level = wifiManager.calculateSignalLevel(rssi); in getIcon()
/packages/modules/Bluetooth/framework/java/android/bluetooth/le/
DScanResult.java93 BluetoothDevice device, ScanRecord scanRecord, int rssi, long timestampNanos) { in ScanResult() argument
96 mRssi = rssi; in ScanResult()
127 int rssi, in ScanResult() argument
137 mRssi = rssi; in ScanResult()
/packages/modules/Bluetooth/system/include/hardware/
Dble_scanner.h48 int8_t rssi, uint16_t periodic_adv_int,
70 int8_t rssi; variable
92 int8_t tx_power, int8_t rssi,
107 int8_t rssi, uint8_t status,

123456789