Home
last modified time | relevance | path

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

/packages/apps/TV/tuner/src/com/android/tv/tuner/dvb/
DDvbTunerHal.java187 int signalStrength; in getSignalStrength() local
188 signalStrength = nativeGetSignalStrength(getDeviceId()); in getSignalStrength()
189 if (signalStrength == -3) { in getSignalStrength()
190 mSignalStrength = signalStrength; in getSignalStrength()
193 if (signalStrength > 65535 || signalStrength < 0) { in getSignalStrength()
194 mSignalStrength = signalStrength; in getSignalStrength()
197 signalStrength = getCurvedSignalStrength(signalStrength); in getSignalStrength()
198 return updatingSignal(signalStrength); in getSignalStrength()
204 private int getCurvedSignalStrength(int signalStrength) { in getCurvedSignalStrength() argument
206 if (signalStrength < 65535 * 0.8) { in getCurvedSignalStrength()
[all …]
/packages/apps/Car/SystemUI/src/com/android/systemui/car/bluetooth/
DConnectedDeviceSignalController.java210 int signalStrength = intent.getIntExtra( in processActionAgEvent() local
212 if (signalStrength != INVALID_SIGNAL) { in processActionAgEvent()
214 Log.d(TAG, "EXTRA_NETWORK_SIGNAL_STRENGTH: " + signalStrength); in processActionAgEvent()
217 setNetworkSignalIcon(SIGNAL_STRENGTH_ICONS[signalStrength]); in processActionAgEvent()
254 int signalStrength = featuresBundle.getInt( in updateViewVisibility() local
256 if (signalStrength != INVALID_SIGNAL) { in updateViewVisibility()
258 Log.d(TAG, "EXTRA_NETWORK_SIGNAL_STRENGTH: " + signalStrength); in updateViewVisibility()
261 setNetworkSignalIcon(SIGNAL_STRENGTH_ICONS[signalStrength]); in updateViewVisibility()
/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/
DSimStatusDialogController.java250 final SignalStrength signalStrength = mTelephonyManager.getSignalStrength(); in updateSubscriptionStatus() local
254 updateSignalStrength(signalStrength); in updateSubscriptionStatus()
480 private void updateSignalStrength(SignalStrength signalStrength) { in updateSignalStrength() argument
481 if (signalStrength == null) { in updateSignalStrength()
506 int signalDbm = getDbm(signalStrength); in updateSignalStrength()
507 int signalAsu = getAsuLevel(signalStrength); in updateSignalStrength()
738 private int getDbm(SignalStrength signalStrength) { in getDbm() argument
739 List<CellSignalStrength> cellSignalStrengthList = signalStrength.getCellSignalStrengths(); in getDbm()
755 private int getAsuLevel(SignalStrength signalStrength) { in getAsuLevel() argument
756 List<CellSignalStrength> cellSignalStrengthList = signalStrength.getCellSignalStrengths(); in getAsuLevel()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java82 public void onSignalStrengthsChanged(SignalStrength signalStrength) {
83 mCellSignalStrength = signalStrength;
392 int signalStrength; in updateConnectivityStatus() local
395 signalStrength = WifiManager.calculateSignalLevel(wifiInfo.getRssi(), 4); in updateConnectivityStatus()
397 signalStrength = 0; in updateConnectivityStatus()
399 if (mWifiSignalStrength != signalStrength) { in updateConnectivityStatus()
400 mWifiSignalStrength = signalStrength; in updateConnectivityStatus()
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/
DDataStallDetectionStats.java104 data.signalStrength = UNKNOWN_SIGNAL_STRENGTH; in emptyCellDataIfNull()
122 data.signalStrength = UNKNOWN_SIGNAL_STRENGTH; in emptyWifiInfoIfNull()
255 data.signalStrength = (info != null) ? info.getRssi() : UNKNOWN_SIGNAL_STRENGTH; in setWiFiData()
292 data.signalStrength = ss; in setCellData()
/packages/apps/TV/common/src/com/android/tv/common/compat/internal/
DTvViewCompatProcessor.java81 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()
DTifSessionCompatProcessor.java65 NotifySignalStrength signalStrength = in notifySignalStrength() local
68 createSessionEvent().setNotifySignalStrength(signalStrength).build(); in notifySignalStrength()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DNetworkOperatorPreference.java134 final CellSignalStrength signalStrength = getCellSignalStrength(mCellInfo); in refresh() local
135 final int level = signalStrength != null ? signalStrength.getLevel() : LEVEL_NONE; in refresh()
DSignalStrengthListener.java90 public void onSignalStrengthsChanged(SignalStrength signalStrength) { in onSignalStrengthsChanged() argument
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DSubscriptionsPreferenceControllerTest.java793 final SignalStrength signalStrength = mock(SignalStrength.class); in setupMockSubscriptions() local
801 when(mgrForSub.getSignalStrength()).thenReturn(signalStrength); in setupMockSubscriptions()
802 when(signalStrength.getLevel()).thenReturn(SIGNAL_STRENGTH_GOOD); in setupMockSubscriptions()
823 final SignalStrength signalStrength = mock(SignalStrength.class); in setMockSubSignalStrength() local
824 doReturn(signalStrength).when(mTelephonyManagerForSub).getSignalStrength(); in setMockSubSignalStrength()
825 when(signalStrength.getLevel()).thenReturn(level); in setMockSubSignalStrength()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetPhoneState.java299 public void onSignalStrengthsChanged(SignalStrength signalStrength) { in onSignalStrengthsChanged() argument
304 mCindSignal = signalStrength.getLevel() + 1; in onSignalStrengthsChanged()
/packages/modules/Connectivity/framework/src/android/net/
DNetworkRequest.java486 public @NonNull Builder setSignalStrength(int signalStrength) { in setSignalStrength() argument
487 mNetworkCapabilities.setSignalStrength(signalStrength); in setSignalStrength()
DNetworkCapabilities.java1455 public @NonNull NetworkCapabilities setSignalStrength(int signalStrength) { in setSignalStrength() argument
1456 mSignalStrength = signalStrength; in setSignalStrength()
2690 public Builder setSignalStrength(final int signalStrength) { in setSignalStrength() argument
2691 mCaps.setSignalStrength(signalStrength); in setSignalStrength()
/packages/modules/Connectivity/tests/integration/util/com/android/server/
DNetworkAgentWrapper.java242 public void setSignalStrength(int signalStrength) { in setSignalStrength() argument
243 mNetworkCapabilities.setSignalStrength(signalStrength); in setSignalStrength()
/packages/services/Telephony/src/com/android/phone/settings/
DRadioInfo.java360 public void onSignalStrengthsChanged(SignalStrength signalStrength) { in onSignalStrengthsChanged() argument
361 log("onSignalStrengthChanged: SignalStrength=" + signalStrength); in onSignalStrengthsChanged()
362 updateSignalStrength(signalStrength); in onSignalStrengthsChanged()
852 private void updateSignalStrength(SignalStrength signalStrength) { in updateSignalStrength() argument
855 int signalDbm = signalStrength.getDbm(); in updateSignalStrength()
857 int signalAsu = signalStrength.getAsuLevel(); in updateSignalStrength()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/metrics/
DDataStallStatsUtilsTest.kt119 data.signalStrength = TEST_SIGNAL_STRENGTH in makeTestCellDataNano()
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkCapabilitiesTest.java1104 final int signalStrength = -80; in testBuilder() local
1124 .setSignalStrength(signalStrength) in testBuilder()
1141 assertEquals(signalStrength, nc.getSignalStrength()); in testBuilder()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkAgentTest.kt541 callbacks[0].expectCapabilitiesThat(agent.network!!) { it.signalStrength == 80 } in testSignalStrengthThresholds()
547 callbacks[0].expectCapabilitiesThat(agent.network!!) { it.signalStrength == 55 } in testSignalStrengthThresholds()
548 callbacks[1].expectCapabilitiesThat(agent.network!!) { it.signalStrength == 55 } in testSignalStrengthThresholds()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java2213 data.signalStrength = 0;
2220 data.signalStrength = TEST_SIGNAL_STRENGTH;
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiMetrics.java1179 sb.append(mConnectionEvent.signalStrength); in toString()
2033 wwFailureCode, currentConnectionEvent.mConnectionEvent.signalStrength, in endConnectionEvent()
2172 currentConnectionEvent.mConnectionEvent.signalStrength = scanResult.level; in updateMetricsFromScanResult()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiMetricsTest.java1850 assertEquals(SCAN_RESULT_LEVEL, mDecodedProto.connectionEvent[0].signalStrength); in setupNetworkAndVerify()
1860 assertEquals(SCAN_RESULT_LEVEL, mDecodedProto.connectionEvent[1].signalStrength); in setupNetworkAndVerify()