Home
last modified time | relevance | path

Searched refs:signalStrength (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/util/
DConnectivityUtil.java140 public void onSignalStrengthsChanged(final SignalStrength signalStrength) {
141 mSignalLevel = getLevel(signalStrength);
172 private static int getLevel(final SignalStrength signalStrength) { in getLevel() argument
173 if (signalStrength.isGsm()) { in getLevel()
180 final int asu = signalStrength.getGsmSignalStrength(); in getLevel()
189 final int cdmaLevel = getCdmaLevel(signalStrength); in getLevel()
190 final int evdoLevel = getEvdoLevel(signalStrength); in getLevel()
193 return getCdmaLevel(signalStrength); in getLevel()
196 return getEvdoLevel(signalStrength); in getLevel()
207 private static int getCdmaLevel(final SignalStrength signalStrength) { in getCdmaLevel() argument
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetPhoneState.java249 public void onSignalStrengthsChanged(SignalStrength signalStrength) { in getPhoneStateListener()
254 } else if (signalStrength.isGsm()) { in getPhoneStateListener()
255 mSignal = signalStrength.getLteLevel(); in getPhoneStateListener()
257 mSignal = gsmAsuToSignal(signalStrength); in getPhoneStateListener()
265 mSignal = cdmaDbmEcioToSignal(signalStrength); in getPhoneStateListener()
278 private int gsmAsuToSignal(SignalStrength signalStrength) { in getPhoneStateListener()
279 int asu = signalStrength.getGsmSignalStrength(); in getPhoneStateListener()
295 private int cdmaDbmEcioToSignal(SignalStrength signalStrength) { in getPhoneStateListener()
300 int cdmaDbm = signalStrength.getCdmaDbm(); in getPhoneStateListener()
301 int cdmaEcio = signalStrength.getCdmaEcio(); in getPhoneStateListener()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java333 int signalStrength; in updateConnectivityStatus() local
336 signalStrength = WifiManager.calculateSignalLevel(wifiInfo.getRssi(), 4); in updateConnectivityStatus()
338 signalStrength = 0; in updateConnectivityStatus()
340 if (mConnectivityStatus.mWifiSignalStrength != signalStrength) { in updateConnectivityStatus()
342 mConnectivityStatus.mWifiSignalStrength = signalStrength; in updateConnectivityStatus()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DSimStatus.java355 void updateSignalStrength(SignalStrength signalStrength) { in updateSignalStrength() argument
366 int signalDbm = signalStrength.getDbm(); in updateSignalStrength()
367 int signalAsu = signalStrength.getAsuLevel(); in updateSignalStrength()
439 public void onSignalStrengthsChanged(SignalStrength signalStrength) { in updatePhoneInfos()
440 updateSignalStrength(signalStrength); in updatePhoneInfos()
/packages/apps/Settings/src/com/android/settings/
DRadioInfo.java262 public void onSignalStrengthsChanged(SignalStrength signalStrength) {
263 log("onSignalStrengthChanged: SignalStrength=" +signalStrength);
264 updateSignalStrength(signalStrength);
557 updateSignalStrength(SignalStrength signalStrength) { in updateSignalStrength() argument
560 int signalDbm = signalStrength.getDbm(); in updateSignalStrength()
562 int signalAsu = signalStrength.getAsuLevel(); in updateSignalStrength()