Searched refs:rssi (Results 1 - 25 of 51) sorted by relevance

123

/frameworks/base/lowpan/java/android/net/lowpan/
H A DILowpanEnergyScanCallback.aidl21 oneway void onEnergyScanResult(int channel, int rssi);
H A DLowpanScanner.java258 public void onEnergyScanResult(int channel, int rssi) {
272 result.setMaxRssi(rssi);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DConnectedScore.java68 * @param rssi signal strength (dB).
71 public void updateUsingRssi(int rssi, long millis) { argument
72 updateUsingRssi(rssi, millis, mDefaultRssiStandardDeviation);
81 * @param rssi signal strength (dB).
85 public abstract void updateUsingRssi(int rssi, long millis, double standardDeviation); argument
H A DAggressiveConnectedScore.java37 public void updateUsingRssi(int rssi, long millis, double standardDeviation) { argument
38 mRssi = rssi;
H A DVelocityBasedConnectedScore.java75 * @param rssi signal strength (dB).
80 public void updateUsingRssi(int rssi, long millis, double standardDeviation) { argument
84 mFilter.mx = new Matrix(1, new double[]{rssi, 0.0});
91 mFilter.update(new Matrix(1, new double[]{rssi}));
143 * If the (filtered) rssi is near or below the current effective threshold, and the
144 * rate of rssi change is small, and there is traffic, and the error rate is looking
167 * Velocity scorer - predict the rssi a few seconds from now
H A DScoringParams.java106 private void validateRssiArray(int[] rssi) throws IllegalArgumentException { argument
109 for (int i = 0; i < rssi.length; i++) {
110 validateRange(rssi[i], low, high);
111 low = rssi[i];
337 * Returns the number of seconds to use for rssi forecast.
/frameworks/base/wifi/java/android/net/wifi/
H A DRssiPacketCountInfo.java31 public int rssi; field in class:RssiPacketCountInfo
40 rssi = txgood = txbad = rxgood = 0;
44 rssi = in.readInt();
52 out.writeInt(rssi);
H A DWifiInfo.java283 public void setRssi(int rssi) { argument
284 if (rssi < INVALID_RSSI)
285 rssi = INVALID_RSSI;
286 if (rssi > MAX_RSSI)
287 rssi = MAX_RSSI;
288 mRssi = rssi;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DNeighboringCellInfoTest.java31 int rssi = 31;
34 nc = new NeighboringCellInfo(rssi, "FFFFFFF", NETWORK_TYPE_EDGE);
36 assertEquals(rssi, nc.getRssi());
41 nc = new NeighboringCellInfo(rssi, "1FF", NETWORK_TYPE_UMTS);
43 assertEquals(rssi, nc.getRssi());
48 nc = new NeighboringCellInfo(rssi, "1FF", NETWORK_TYPE_UNKNOWN);
50 assertEquals(rssi, nc.getRssi());
58 int rssi = 20;
60 NeighboringCellInfo nc = new NeighboringCellInfo(rssi, "12345678", NETWORK_TYPE_GPRS);
62 assertEquals(rssi, n
[all...]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
H A DScanResultTest.java43 int rssi = -10;
46 ScanResult result = new ScanResult(device, ScanRecord.parseFromBytes(scanRecord), rssi,
/frameworks/base/core/java/android/net/
H A DRssiCurve.java130 * @param rssi The RSSI to lookup. If the RSSI falls below the start of the curve, the score at
135 public byte lookupScore(int rssi) { argument
136 return lookupScore(rssi, false /* isActiveNetwork */);
142 * @param rssi The RSSI to lookup. If the RSSI falls below the start of the curve, the score at
148 public byte lookupScore(int rssi, boolean isActiveNetwork) { argument
150 rssi += activeNetworkRssiBoost;
153 int index = (rssi - start) / bucketWidth;
H A DWifiLinkQualityInfo.java116 public void setRssi(int rssi) { argument
117 mRssi = rssi;
H A DScoredNetwork.java265 public int calculateRankingScore(int rssi) throws UnsupportedOperationException { argument
277 int score = (rssiCurve == null) ? 0 : rssiCurve.lookupScore(rssi) << Byte.SIZE;
292 * @param rssi The rssi level for which the badge should be calculated
295 public int calculateBadge(int rssi) { argument
299 return badgingCurve.lookupScore(rssi);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DWifiScoreReportTest.java164 * Test for no score report if rssi is invalid
242 for (int rssi = -60; rssi >= -83; rssi -= 1) {
243 mWifiInfo.setRssi(rssi);
244 oops += " " + mClock.mWallClockMillis + "," + rssi;
269 int rssi = Math.max(r, -80);
270 mWifiInfo.setRssi(rssi);
271 oops += " " + mClock.mWallClockMillis + "," + rssi;
316 for (int rssi
[all...]
/frameworks/base/telephony/java/android/telephony/
H A DNeighboringCellInfo.java89 * Initialize the object from rssi and cid.
98 public NeighboringCellInfo(int rssi, int cid) { argument
99 mRssi = rssi;
104 * Initialize the object from rssi, location string, and radioType
113 public NeighboringCellInfo(int rssi, String location, int radioType) { argument
115 mRssi = rssi;
251 * @deprecated initial rssi value passed as parameter to constructor
255 public void setRssi(int rssi) { argument
256 mRssi = rssi;
/frameworks/base/wifi/java/android/net/wifi/rtt/
H A DRangingResult.java89 int distanceStdDevMm, int rssi, int numAttemptedMeasurements,
96 mRssi = rssi;
106 int distanceStdDevMm, int rssi, int numAttemptedMeasurements,
113 mRssi = rssi;
349 int rssi = in.readInt();
356 return new RangingResult(status, peerHandle, distanceMm, distanceStdDevMm, rssi,
359 return new RangingResult(status, mac, distanceMm, distanceStdDevMm, rssi,
372 ", rssi=").append(mRssi).append(", numAttemptedMeasurements=").append(
88 RangingResult(@angeResultStatus int status, @NonNull MacAddress mac, int distanceMm, int distanceStdDevMm, int rssi, int numAttemptedMeasurements, int numSuccessfulMeasurements, byte[] lci, byte[] lcr, long timestamp) argument
105 RangingResult(@angeResultStatus int status, PeerHandle peerHandle, int distanceMm, int distanceStdDevMm, int rssi, int numAttemptedMeasurements, int numSuccessfulMeasurements, byte[] lci, byte[] lcr, long timestamp) argument
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothGattCallback.java160 * @param rssi The RSSI value for the remote device
163 public void onReadRemoteRssi(BluetoothGatt gatt, int rssi, int status) { argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DSignalController.java263 int rssi; // Only for logging. field in class:SignalController.State
276 rssi = state.rssi;
299 .append("rssi=").append(rssi).append(',')
316 && other.rssi == rssi;
/frameworks/base/core/java/android/bluetooth/le/
H A DPeriodicAdvertisingReport.java58 public PeriodicAdvertisingReport(int syncHandle, int txPower, int rssi, argument
62 mRssi = rssi;
170 + ", txPower=" + mTxPower + ", rssi=" + mRssi + ", dataStatus=" + mDataStatus
H A DScanResult.java99 * @param rssi Received signal strength.
105 public ScanResult(BluetoothDevice device, ScanRecord scanRecord, int rssi, argument
109 mRssi = rssi;
128 * @param rssi Received signal strength.
134 int advertisingSid, int txPower, int rssi, int periodicAdvertisingInterval,
142 mRssi = rssi;
334 + Objects.toString(mScanRecord) + ", rssi=" + mRssi
133 ScanResult(BluetoothDevice device, int eventType, int primaryPhy, int secondaryPhy, int advertisingSid, int txPower, int rssi, int periodicAdvertisingInterval, ScanRecord scanRecord, long timestampNanos) argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
H A DWifiStatusTracker.java73 public int rssi; field in class:WifiStatusTracker
136 rssi = newRssi;
137 level = WifiManager.calculateSignalLevel(rssi, WifiManager.RSSI_LEVELS);
163 ? null : AccessPoint.getSpeedLabel(mContext, scoredNetwork, rssi);
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
H A DAccessPointTest.java89 private static ScanResult createScanResult(String ssid, String bssid, int rssi) { argument
92 scanResult.level = rssi;
467 int rssi = -55;
473 wifiInfo.setRssi(rssi);
482 .setRssi(rssi)
662 int rssi = -55;
667 wifiInfo.setRssi(rssi);
676 .setRssi(rssi)
688 int rssi = -55;
693 wifiInfo.setRssi(rssi);
[all...]
/frameworks/base/wifi/tests/src/android/net/wifi/rtt/
H A DWifiRttManagerTest.java234 int rssi = 5;
242 RangingResult result = new RangingResult(status, mac, distanceCm, distanceStdDevCm, rssi,
258 result = new RangingResult(status, peerHandle, distanceCm, distanceStdDevCm, rssi,
284 int rssi = 5;
291 RangingResult rr1 = new RangingResult(status, mac, distanceCm, distanceStdDevCm, rssi,
293 RangingResult rr2 = new RangingResult(status, mac, distanceCm, distanceStdDevCm, rssi,
/frameworks/base/wifi/tests/src/android/net/wifi/
H A DWifiNetworkScoreCacheTest.java167 final int rssi = -70;
169 result.level = rssi;
171 when(mockRssiCurve.lookupScore(rssi)).thenReturn(score);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DNetworkControllerWifiTest.java179 int rssi = (int)(MIN_RSSI + level * amountPerLevel);
181 rssi += amountPerLevel / 2;
183 i.putExtra(WifiManager.EXTRA_NEW_RSSI, rssi);

Completed in 495 milliseconds

123