/packages/apps/Messaging/src/com/android/messaging/util/ |
D | ConnectivityUtil.java | 140 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/TV/tuner/src/com/android/tv/tuner/ |
D | DvbTunerHal.java | 186 int signalStrength; in getSignalStrength() local 187 signalStrength = nativeGetSignalStrength(getDeviceId()); in getSignalStrength() 188 if (signalStrength == -3) { in getSignalStrength() 189 mSignalStrength = signalStrength; in getSignalStrength() 192 if (signalStrength > 65535 || signalStrength < 0) { in getSignalStrength() 193 mSignalStrength = signalStrength; in getSignalStrength() 196 signalStrength = getCurvedSignalStrength(signalStrength); in getSignalStrength() 197 return updatingSignal(signalStrength); in getSignalStrength() 203 private int getCurvedSignalStrength(int signalStrength) { in getCurvedSignalStrength() argument 205 if (signalStrength < 65535 * 0.8) { in getCurvedSignalStrength() [all …]
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/ |
D | SimStatusDialogController.java | 299 private void updateSignalStrength(SignalStrength signalStrength) { in updateSignalStrength() argument 300 if (signalStrength == null) { in updateSignalStrength() 323 int signalDbm = getDbm(signalStrength); in updateSignalStrength() 324 int signalAsu = getAsuLevel(signalStrength); in updateSignalStrength() 436 private int getDbm(SignalStrength signalStrength) { in getDbm() argument 437 return signalStrength.getDbm(); in getDbm() 440 private int getAsuLevel(SignalStrength signalStrength) { in getAsuLevel() argument 441 return signalStrength.getAsuLevel(); in getAsuLevel() 454 public void onSignalStrengthsChanged(SignalStrength signalStrength) { in getPhoneStateListener() argument 455 updateSignalStrength(signalStrength); in getPhoneStateListener()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/simstatus/ |
D | SimStatusDialogController.java | 284 private void updateSignalStrength(SignalStrength signalStrength) { in updateSignalStrength() argument 305 int signalDbm = getDbm(signalStrength); in updateSignalStrength() 306 int signalAsu = getAsuLevel(signalStrength); in updateSignalStrength() 425 int getDbm(SignalStrength signalStrength) { in getDbm() argument 426 return signalStrength.getDbm(); in getDbm() 430 int getAsuLevel(SignalStrength signalStrength) { in getAsuLevel() argument 431 return signalStrength.getAsuLevel(); in getAsuLevel() 444 public void onSignalStrengthsChanged(SignalStrength signalStrength) { in getPhoneStateListener() argument 445 updateSignalStrength(signalStrength); in getPhoneStateListener()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | ConnectivityListener.java | 83 public void onSignalStrengthsChanged(SignalStrength signalStrength) { 84 mCellSignalStrength = signalStrength; 319 int signalStrength; in updateConnectivityStatus() local 322 signalStrength = WifiManager.calculateSignalLevel(wifiInfo.getRssi(), 4); in updateConnectivityStatus() 324 signalStrength = 0; in updateConnectivityStatus() 326 if (mWifiSignalStrength != signalStrength) { in updateConnectivityStatus() 327 mWifiSignalStrength = signalStrength; in updateConnectivityStatus()
|
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/ |
D | DataStallDetectionStats.java | 73 data.signalStrength = UNKNOWN_SIGNAL_STRENGTH; in emptyCellDataIfNull() 82 data.signalStrength = UNKNOWN_SIGNAL_STRENGTH; in emptyWifiInfoIfNull() 178 data.signalStrength = (info != null) ? info.getRssi() : UNKNOWN_SIGNAL_STRENGTH; in setWiFiData() 213 data.signalStrength = ss; in setCellData()
|
/packages/apps/TV/common/src/com/android/tv/common/compat/internal/ |
D | TvViewCompatProcessor.java | 81 private void handle(String inputId, NotifySignalStrength signalStrength) { in handle() argument 82 if (signalStrength != null && mCallback != null) { in handle() 83 mCallback.onSignalStrength(inputId, signalStrength.getSignalStrength()); in handle()
|
D | TifSessionCompatProcessor.java | 65 NotifySignalStrength signalStrength = in notifySignalStrength() local 68 createSessionEvent().setNotifySignalStrength(signalStrength).build(); in notifySignalStrength()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | NetworkOperatorPreference.java | 75 final CellSignalStrength signalStrength = mCellInfo.getCellSignalStrength(); in refresh() local 76 final int level = signalStrength != null ? signalStrength.getLevel() : LEVEL_NONE; in refresh()
|
D | SignalStrengthListener.java | 75 public void onSignalStrengthsChanged(SignalStrength signalStrength) { in updateSubscriptionIds()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/ |
D | NetworkOperatorPreference.java | 82 final CellSignalStrength signalStrength = mCellInfo.getCellSignalStrength(); in refresh() local 83 final int level = signalStrength != null ? signalStrength.getLevel() : LEVEL_NONE; in refresh()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
D | SubscriptionsPreferenceControllerTest.java | 503 final SignalStrength signalStrength = mock(SignalStrength.class); in setupMockSubscriptions() local 511 when(mgrForSub.getSignalStrength()).thenReturn(signalStrength); in setupMockSubscriptions() 512 when(signalStrength.getLevel()).thenReturn(SIGNAL_STRENGTH_GOOD); in setupMockSubscriptions() 533 final SignalStrength signalStrength = mgrForSub.getSignalStrength(); in setMockSubSignalStrength() local 534 when(signalStrength.getLevel()).thenReturn(level); in setMockSubSignalStrength()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetPhoneState.java | 325 public void onSignalStrengthsChanged(SignalStrength signalStrength) { in onSignalStrengthsChanged() argument 330 mCindSignal = signalStrength.getLevel() + 1; in onSignalStrengthsChanged()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | RadioInfo.java | 302 public void onSignalStrengthsChanged(SignalStrength signalStrength) { 303 log("onSignalStrengthChanged: SignalStrength=" +signalStrength); 304 updateSignalStrength(signalStrength); 686 updateSignalStrength(SignalStrength signalStrength) { in updateSignalStrength() argument 689 int signalDbm = signalStrength.getDbm(); in updateSignalStrength() 691 int signalAsu = signalStrength.getAsuLevel(); in updateSignalStrength()
|
/packages/apps/Settings/src/com/android/settings/ |
D | RadioInfo.java | 317 public void onSignalStrengthsChanged(SignalStrength signalStrength) { in onSignalStrengthsChanged() argument 318 log("onSignalStrengthChanged: SignalStrength=" +signalStrength); in onSignalStrengthsChanged() 319 updateSignalStrength(signalStrength); in onSignalStrengthsChanged() 779 updateSignalStrength(SignalStrength signalStrength) { in updateSignalStrength() argument 782 int signalDbm = signalStrength.getDbm(); in updateSignalStrength() 784 int signalAsu = signalStrength.getAsuLevel(); in updateSignalStrength()
|