Home
last modified time | relevance | path

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

123

/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/tests/wifitests/src/com/android/server/wifi/
DWifiScoreReportTest.java254 for (int rssi = -60; rssi >= -83; rssi -= 1) {
255 mWifiInfo.setRssi(rssi);
256 oops += " " + mClock.mWallClockMillis + "," + rssi;
281 int rssi = Math.max(r, -80); in stayOnIfRssiDoesNotGetBelowEntryThreshold() local
282 mWifiInfo.setRssi(rssi); in stayOnIfRssiDoesNotGetBelowEntryThreshold()
283 oops += " " + mClock.mWallClockMillis + "," + rssi; in stayOnIfRssiDoesNotGetBelowEntryThreshold()
328 for (int rssi = -30; rssi >= -120; rssi -= 1) {
329 mWifiInfo.setRssi(rssi);
346 for (int rssi = -40; rssi >= -120; rssi -= 1) {
347 mWifiInfo.setRssi(rssi);
[all …]
DWifiScoreCardTest.java177 assertEquals(2, perBssid.lookupSignal(Event.SIGNAL_POLL, 5805).rssi.count); in testRssiPollUpdates()
179 .rssi.sum, TOL); in testRssiPollUpdates()
181 .rssi.sumOfSquares, TOL); in testRssiPollUpdates()
183 .rssi.minValue, TOL); in testRssiPollUpdates()
185 .rssi.maxValue, TOL); in testRssiPollUpdates()
187 assertEquals(1, perBssid.lookupSignal(Event.SIGNAL_POLL, 5290).rssi.count); in testRssiPollUpdates()
260 perBssid.lookupSignal(Event.SIGNAL_POLL, 2412).rssi.historicalMean = -42.0; in makeSerializedAccessPointExample()
261 perBssid.lookupSignal(Event.SIGNAL_POLL, 2412).rssi.historicalVariance = 4.0; in makeSerializedAccessPointExample()
272 assertEquals(diag, 2, perBssid.lookupSignal(Event.SIGNAL_POLL, 5805).rssi.count); in checkSerializationExample()
274 .rssi.minValue, TOL); in checkSerializationExample()
[all …]
DLinkProbeManagerTest.java122 int rssi = LinkProbeManager.RSSI_THRESHOLD - 5; in testLinkProbeTriggeredAndAcked() local
123 mWifiInfo.setRssi(rssi); in testLinkProbeTriggeredAndAcked()
145 verify(mWifiMetrics).logLinkProbeSuccess(timeDelta, rssi, linkSpeed, TEST_ELAPSED_TIME_MS); in testLinkProbeTriggeredAndAcked()
165 int rssi = LinkProbeManager.RSSI_THRESHOLD + 5; in testLinkProbeTriggeredAndFailed() local
166 mWifiInfo.setRssi(rssi); in testLinkProbeTriggeredAndFailed()
181 verify(mWifiMetrics).logLinkProbeFailure(timeDelta, rssi, linkSpeed, in testLinkProbeTriggeredAndFailed()
311 int rssi = LinkProbeManager.RSSI_THRESHOLD - 5; in testLinkProbeFeatureDisabled() local
312 mWifiInfo.setRssi(rssi); in testLinkProbeFeatureDisabled()
343 int rssi = LinkProbeManager.RSSI_THRESHOLD - 5; in testLinkProbeFeatureUnsupported() local
344 mWifiInfo.setRssi(rssi); in testLinkProbeFeatureUnsupported()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DBubbleFunScorer.java60 final int rssi = candidate.getScanRssi(); in scoreCandidate() local
63 double score = shapeFunction(rssi) - shapeFunction(rssiEntryThreshold); in scoreCandidate()
82 double gain = shapeFunction(rssi + 0.5) in scoreCandidate()
83 - shapeFunction(rssi - 0.5); in scoreCandidate()
105 private static double unscaledShapeFunction(double rssi) { in unscaledShapeFunction() argument
106 return -Math.exp(-rssi * BELS_PER_DECIBEL); in unscaledShapeFunction()
112 private static double shapeFunction(double rssi) { in shapeFunction() argument
113 return unscaledShapeFunction(rssi) * RESCALE_FACTOR; in shapeFunction()
DLinkProbeManager.java224 int rssi = wifiInfo.getRssi(); in updateConnectionStats() local
226 if (rssi != WifiInfo.INVALID_RSSI && rssi > RSSI_THRESHOLD in updateConnectionStats()
241 rssi, linkSpeed)); in updateConnectionStats()
256 timeSinceLastTxSuccessIncreaseMs, rssi, linkSpeed, in updateConnectionStats()
266 timeSinceLastTxSuccessIncreaseMs, rssi, linkSpeed, reason); in updateConnectionStats()
365 int rssi = wifiInfo.getRssi(); in updateConnectionStats() local
367 if (rssi != WifiInfo.INVALID_RSSI && rssi > mRssiThreshold in updateConnectionStats()
DConnectedScore.java70 public void updateUsingRssi(int rssi, long millis) { in updateUsingRssi() argument
71 updateUsingRssi(rssi, millis, mDefaultRssiStandardDeviation); in updateUsingRssi()
84 public abstract void updateUsingRssi(int rssi, long millis, double standardDeviation); in updateUsingRssi() argument
DAggressiveConnectedScore.java37 public void updateUsingRssi(int rssi, long millis, double standardDeviation) { in updateUsingRssi() argument
38 mRssi = rssi; in updateUsingRssi()
DVelocityBasedConnectedScore.java80 public void updateUsingRssi(int rssi, long millis, double standardDeviation) { in updateUsingRssi() argument
84 mFilter.mx = new Matrix(1, new double[]{rssi, 0.0}); in updateUsingRssi()
91 mFilter.update(new Matrix(1, new double[]{rssi})); in updateUsingRssi()
DCompatibilityScorer.java74 int rssi = Math.min(candidate.getScanRssi(), rssiSaturationThreshold); in scoreCandidate() local
75 int score = (rssi + RSSI_SCORE_OFFSET) * RSSI_SCORE_SLOPE_IS_4; in scoreCandidate()
DWifiScoreCard.java385 void updateEventStats(Event event, int frequency, int rssi, int linkspeed) { in updateEventStats() argument
387 if (rssi != INVALID_RSSI) { in updateEventStats()
388 perSignal.rssi.update(rssi); in updateEventStats()
644 public final PerUnivariateStatistic rssi; field in WifiScoreCard.PerSignal
650 this.rssi = new PerUnivariateStatistic(); in PerSignal()
669 this.rssi = new PerUnivariateStatistic(signal.getRssi()); in PerSignal()
680 rssi.merge(signal.getRssi()); in merge()
690 .setRssi(rssi.toUnivariateStatistic()) in toSignal()
/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.java368 public void setRssi(int rssi) { in setRssi() argument
369 if (rssi < INVALID_RSSI) in setRssi()
370 rssi = INVALID_RSSI; in setRssi()
371 if (rssi > MAX_RSSI) in setRssi()
372 rssi = MAX_RSSI; in setRssi()
373 mRssi = rssi; in setRssi()
/frameworks/base/core/java/android/net/
DRssiCurve.java137 public byte lookupScore(int rssi) { in lookupScore() argument
138 return lookupScore(rssi, false /* isActiveNetwork */); in lookupScore()
150 public byte lookupScore(int rssi, boolean isActiveNetwork) { in lookupScore() argument
152 rssi += activeNetworkRssiBoost; in lookupScore()
155 int index = (rssi - start) / bucketWidth; in lookupScore()
DScoredNetwork.java267 public int calculateRankingScore(int rssi) throws UnsupportedOperationException { in calculateRankingScore() argument
279 int score = (rssiCurve == null) ? 0 : rssiCurve.lookupScore(rssi) << Byte.SIZE; in calculateRankingScore()
297 public int calculateBadge(int rssi) { in calculateBadge() argument
301 return badgingCurve.lookupScore(rssi); in calculateBadge()
DWifiLinkQualityInfo.java116 public void setRssi(int rssi) { in setRssi() argument
117 mRssi = rssi; in setRssi()
/frameworks/base/telephony/java/android/telephony/
DNeighboringCellInfo.java110 public NeighboringCellInfo(int rssi, int cid) { in NeighboringCellInfo() argument
111 mRssi = rssi; in NeighboringCellInfo()
158 public NeighboringCellInfo(int rssi, String location, int radioType) { in NeighboringCellInfo() argument
160 mRssi = rssi; in NeighboringCellInfo()
300 public void setRssi(int rssi) { in setRssi() argument
301 mRssi = rssi; in setRssi()
/frameworks/base/wifi/java/android/net/wifi/rtt/
DRangingResult.java90 int distanceStdDevMm, int rssi, int numAttemptedMeasurements, in RangingResult() argument
98 mRssi = rssi; in RangingResult()
109 int distanceStdDevMm, int rssi, int numAttemptedMeasurements, in RangingResult() argument
117 mRssi = rssi; in RangingResult()
376 int rssi = in.readInt();
385 return new RangingResult(status, peerHandle, distanceMm, distanceStdDevMm, rssi,
389 return new RangingResult(status, mac, distanceMm, distanceStdDevMm, rssi,
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSignalController.java265 int rssi; // Only for logging. field in SignalController.State
278 rssi = state.rssi; in copyFrom()
301 .append("rssi=").append(rssi).append(',') in toString()
318 && other.rssi == rssi; in equals()
/frameworks/base/core/java/android/bluetooth/le/
DScanResult.java105 public ScanResult(BluetoothDevice device, ScanRecord scanRecord, int rssi, in ScanResult() argument
109 mRssi = rssi; in ScanResult()
134 int advertisingSid, int txPower, int rssi, int periodicAdvertisingInterval, in ScanResult() argument
142 mRssi = rssi; in ScanResult()
DPeriodicAdvertisingReport.java58 public PeriodicAdvertisingReport(int syncHandle, int txPower, int rssi, in PeriodicAdvertisingReport() argument
62 mRssi = rssi; in PeriodicAdvertisingReport()
/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/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java75 public int rssi; field in WifiStatusTracker
145 rssi = newRssi; in updateRssi()
146 level = WifiManager.calculateSignalLevel(rssi, WifiManager.RSSI_LEVELS); in updateRssi()
181 ? null : AccessPoint.getSpeedLabel(mContext, scoredNetwork, rssi); in updateStatusLabel()
/frameworks/base/wifi/tests/src/android/net/wifi/rtt/
DWifiRttManagerTest.java237 int rssi = 5; in testRangingResultsParcel() local
245 RangingResult result = new RangingResult(status, mac, distanceCm, distanceStdDevCm, rssi, in testRangingResultsParcel()
261 result = new RangingResult(status, peerHandle, distanceCm, distanceStdDevCm, rssi, in testRangingResultsParcel()
287 int rssi = 5; in testRangingResultsEqualityLciLcr() local
294 RangingResult rr1 = new RangingResult(status, mac, distanceCm, distanceStdDevCm, rssi, in testRangingResultsEqualityLciLcr()
296 RangingResult rr2 = new RangingResult(status, mac, distanceCm, distanceStdDevCm, rssi, in testRangingResultsEqualityLciLcr()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java111 private ScanResult createScanResult(String ssid, String bssid, int rssi) { in createScanResult() argument
114 scanResult.level = rssi; in createScanResult()
495 int rssi = -55;
501 wifiInfo.setRssi(rssi);
510 .setRssi(rssi)
545 final int rssi = -55;
554 wifiInfo.setRssi(rssi);
575 .setRssi(rssi)
753 int rssi = -55;
758 wifiInfo.setRssi(rssi);
[all …]

123