Home
last modified time | relevance | path

Searched refs:mConnectivityListener (Results 1 – 6 of 6) sorted by relevance

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DNetworkFragment.java63 private ConnectivityListener mConnectivityListener; field in NetworkFragment
92 mConnectivityListener = new ConnectivityListener(getContext(), this, getLifecycle()); in onCreate()
101 mConnectivityListener.setWifiListener(this); in onStart()
143 mConnectivityListener.setWifiEnabled(mEnableWifiPref.isChecked()); in onPreferenceTreeClick()
152 mConnectivityListener.isWifiConnected()); in onPreferenceTreeClick()
182 final boolean wifiEnabled = mConnectivityListener.isWifiEnabledOrEnabling(); in updateConnectivity()
202 final boolean ethernetAvailable = mConnectivityListener.isEthernetAvailable(); in updateConnectivity()
210 mConnectivityListener.isEthernetConnected(); in updateConnectivity()
213 mEthernetStatusPref.setSummary(mConnectivityListener.getEthernetIpAddress()); in updateConnectivity()
222 if (!mConnectivityListener.isWifiEnabledOrEnabling()) { in updateWifiList()
[all …]
DWifiDetailsFragment.java63 private ConnectivityListener mConnectivityListener; field in WifiDetailsFragment
79 mConnectivityListener = new ConnectivityListener(getContext(), this, getLifecycle()); in onCreate()
89 mConnectivityListener.setWifiListener(this); in onStart()
125 final List<AccessPoint> accessPoints = mConnectivityListener.getAvailableNetworks(); in onWifiListChanged()
151 mIpAddressPref.setSummary(mConnectivityListener.getWifiIpAddress()); in update()
152 mMacAddressPref.setSummary(mConnectivityListener.getWifiMacAddress()); in update()
181 int strength = mConnectivityListener.getWifiSignalStrength(signalLevels.length); in getSignalStrength()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DConnectState.java108 private ConnectivityListener mConnectivityListener; field in ConnectState.ConnectToWifiFragment
129 mConnectivityListener = new ConnectivityListener(getActivity(), null); in onCreate()
130 mConnectivityListener.start(); in onCreate()
140 mConnectivityListener.setWifiListener(this); in onCreate()
165 mConnectivityListener.stop(); in onDestroy()
166 mConnectivityListener.destroy(); in onDestroy()
173 List<AccessPoint> accessPointList = mConnectivityListener.getAvailableNetworks(); in onWifiListChanged()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DMainFragment.java81 ConnectivityListener mConnectivityListener; field in MainFragment
125 mConnectivityListener = in onCreate()
259 if (mConnectivityListener.isCellConnected()) { in updateWifi()
260 final int signal = mConnectivityListener.getCellSignalStrength(); in updateWifi()
279 } else if (mConnectivityListener.isEthernetConnected()) { in updateWifi()
282 } else if (mConnectivityListener.isWifiEnabledOrEnabling()) { in updateWifi()
283 if (mConnectivityListener.isWifiConnected()) { in updateWifi()
284 final int signal = mConnectivityListener.getWifiSignalStrength(5); in updateWifi()
303 networkPref.setSummary(mConnectivityListener.getSsid()); in updateWifi()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/
DMainFragmentTest.java76 mMainFragment.mConnectivityListener = listener; in testUpdateWifi_NoNetwork()
93 mMainFragment.mConnectivityListener = listener; in testUpdateWifi_hasEthernet()
110 mMainFragment.mConnectivityListener = listener; in testUpdateWifi_hasEthernetConnected()
127 mMainFragment.mConnectivityListener = listener; in testUpdateWifi_wifiSignal()
176 mMainFragment.mConnectivityListener = listener; in testUpdateWifi_notConnected()
193 mMainFragment.mConnectivityListener = listener; in testUpdateWifi_cellSignal()
/packages/apps/Settings/src/com/android/settings/network/
DSubscriptionsPreferenceController.java76 private DataConnectivityListener mConnectivityListener; field in SubscriptionsPreferenceController
118 mConnectivityListener = new DataConnectivityListener(context, this); in SubscriptionsPreferenceController()
127 mConnectivityListener.start(); in onResume()
136 mConnectivityListener.stop(); in onPause()