Home
last modified time | relevance | path

Searched refs:mConnectivityManager (Results 1 – 25 of 82) sorted by relevance

1234

/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DTetherPreferenceControllerTest.java59 private ConnectivityManager mConnectivityManager; field in TetherPreferenceControllerTest
72 ReflectionHelpers.setField(mController, "mConnectivityManager", mConnectivityManager); in setUp()
112 verifyNoMoreInteractions(mConnectivityManager); in updateSummary_noPreference_noInteractionWithConnectivityManager()
117 when(mConnectivityManager.getTetheredIfaces()).thenReturn(new String[]{"123"}); in updateSummary_wifiTethered_shouldShowHotspotMessage()
118 when(mConnectivityManager.getTetherableWifiRegexs()).thenReturn(new String[]{"123"}); in updateSummary_wifiTethered_shouldShowHotspotMessage()
126 when(mConnectivityManager.getTetheredIfaces()).thenReturn(new String[]{"123"}); in updateSummary_btThetherOn_shouldShowTetherMessage()
127 when(mConnectivityManager.getTetherableBluetoothRegexs()).thenReturn(new String[]{"123"}); in updateSummary_btThetherOn_shouldShowTetherMessage()
135 when(mConnectivityManager.getTetherableBluetoothRegexs()).thenReturn(new String[]{"123"}); in updateSummary_tetherOff_shouldShowTetherOffMessage()
136 when(mConnectivityManager.getTetherableWifiRegexs()).thenReturn(new String[]{"456"}); in updateSummary_tetherOff_shouldShowTetherOffMessage()
144 when(mConnectivityManager.getTetheredIfaces()).thenReturn(new String[]{"123", "456"}); in updateSummary_wifiBtTetherOn_shouldShowHotspotAndTetherMessage()
[all …]
DDataConnectivityListenerTest.java49 private ConnectivityManager mConnectivityManager; field in DataConnectivityListenerTest
60 when(mContext.getSystemService(ConnectivityManager.class)).thenReturn(mConnectivityManager); in setUp()
61 when(mConnectivityManager.getActiveNetwork()).thenReturn(mActiveNetwork); in setUp()
67 verify(mConnectivityManager, never()).registerNetworkCallback(any(NetworkRequest.class), in noStart_doesNotRegister()
74 verify(mConnectivityManager).registerNetworkCallback(any(NetworkRequest.class), in start_doesRegister()
DVpnPreferenceControllerTest.java61 private ConnectivityManager mConnectivityManager; field in VpnPreferenceControllerTest
78 .thenReturn(mConnectivityManager); in setUp()
103 verify(mConnectivityManager).registerNetworkCallback( in goThroughLifecycle_shouldRegisterUnregisterListener()
107 verify(mConnectivityManager).unregisterNetworkCallback( in goThroughLifecycle_shouldRegisterUnregisterListener()
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsNetworkManager.java74 private final ConnectivityManager mConnectivityManager; field in MmsNetworkManager
104 mConnectivityManager = (ConnectivityManager) mContext.getSystemService( in MmsNetworkManager()
114 return mConnectivityManager; in getConnectivityManager()
197 final NetworkInfo mmsNetworkInfo = mConnectivityManager.getNetworkInfo( in getApnName()
217 mConnectivityManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE_MMS); in onMmsConnectivityChange()
299 final Method method = mConnectivityManager.getClass().getMethod( in startMmsConnectivity()
303 mConnectivityManager, ConnectivityManager.TYPE_MOBILE, FEATURE_ENABLE_MMS); in startMmsConnectivity()
314 final Method method = mConnectivityManager.getClass().getMethod( in endMmsConnectivity()
318 mConnectivityManager, ConnectivityManager.TYPE_MOBILE, FEATURE_ENABLE_MMS); in endMmsConnectivity()
372 final Class cmClass = mConnectivityManager.getClass(); in isMobileDataEnabled()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DTetherSettingsTest.java47 private ConnectivityManager mConnectivityManager; field in TetherSettingsTest
56 doReturn(mConnectivityManager) in setUp()
63 when(mConnectivityManager.getTetherableUsbRegexs()).thenReturn(new String[0]); in setUp()
64 when(mConnectivityManager.getTetherableBluetoothRegexs()).thenReturn(new String[0]); in setUp()
93 when(mConnectivityManager.getTetherableUsbRegexs()).thenReturn(new String[0]); in testTetherNonIndexableKeys_usbNotAvailable_usbKeyReturned()
105 when(mConnectivityManager.getTetherableUsbRegexs()).thenReturn(new String[]{"dummyRegex"}); in testTetherNonIndexableKeys_usbAvailable_usbKeyNotReturned()
115 when(mConnectivityManager.getTetherableBluetoothRegexs()).thenReturn(new String[0]); in testTetherNonIndexableKeys_bluetoothNotAvailable_bluetoothKeyReturned()
125 when(mConnectivityManager.getTetherableBluetoothRegexs()) in testTetherNonIndexableKeys_bluetoothAvailable_bluetoothKeyNotReturned()
135 when(mConnectivityManager.isTetheringSupported()).thenReturn(true); in setupIsTetherAvailable()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DConnectivityFragment.java63 private ConnectivityManager mConnectivityManager; field in ConnectivityFragment
153 NetworkCapabilities nc = mConnectivityManager.getNetworkCapabilities(n); in getRequestForNetwork()
199 mConnectivityManager.requestNetwork(request, cb); in requestNetworkById()
206 mConnectivityManager.unregisterNetworkCallback(cb); in releaseNetworkById()
224 Network def = mConnectivityManager.getBoundNetworkForProcess(); in bindToNetwork()
228 mConnectivityManager.bindProcessToNetwork(network); in bindToNetwork()
233 mConnectivityManager.bindProcessToNetwork(null); in clearBoundNetwork()
242 mConnectivityManager.reportNetworkConnectivity(network, false); in reportNetworkbyId()
366 Network defNetwork = mConnectivityManager.getBoundNetworkForProcess(); in getNetworkItem()
369 NetworkInfo nInfo = mConnectivityManager.getNetworkInfo(n); in getNetworkItem()
[all …]
/packages/apps/Settings/src/com/android/settings/network/telephony/
DDataConnectivityListener.java30 private ConnectivityManager mConnectivityManager; field in DataConnectivityListener
40 mConnectivityManager = mContext.getSystemService(ConnectivityManager.class); in DataConnectivityListener()
48 mConnectivityManager.registerNetworkCallback(mNetworkRequest, this, in start()
53 mConnectivityManager.unregisterNetworkCallback(this); in stop()
58 final Network activeNetwork = mConnectivityManager.getActiveNetwork(); in onCapabilitiesChanged()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiInfoProviderImpl.java62 private final ConnectivityManager mConnectivityManager; field in WifiInfoProviderImpl
156 mConnectivityManager = in WifiInfoProviderImpl()
161 mLinkProperties = mConnectivityManager.getLinkProperties(mNetwork); in WifiInfoProviderImpl()
162 mNetworkCapabilities = mConnectivityManager.getNetworkCapabilities(mNetwork); in WifiInfoProviderImpl()
192 mConnectivityManager.registerNetworkCallback(mNetworkRequest, mNetworkCallback, in onStart()
207 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onStop()
248 mNetworkInfo = mConnectivityManager.getNetworkInfo(mNetwork); in updateInfo()
/packages/services/Mms/src/com/android/mms/service/
DMmsNetworkManager.java66 private volatile ConnectivityManager mConnectivityManager; field in MmsNetworkManager
120 mConnectivityManager = null; in MmsNetworkManager()
276 if (mConnectivityManager == null) { in getConnectivityManager()
277 mConnectivityManager = (ConnectivityManager) mContext.getSystemService( in getConnectivityManager()
280 return mConnectivityManager; in getConnectivityManager()
293 mMmsHttpClient = new MmsHttpClient(mContext, mNetwork, mConnectivityManager); in getOrCreateHttpClient()
/packages/apps/Settings/src/com/android/settings/network/
DTetherPreferenceController.java61 private final ConnectivityManager mConnectivityManager; field in TetherPreferenceController
85 mConnectivityManager = null; in TetherPreferenceController()
93 mConnectivityManager = in TetherPreferenceController()
107 com.android.settingslib.Utils.getTetheringLabel(mConnectivityManager)); in displayPreference()
178 String[] allTethered = mConnectivityManager.getTetheredIfaces(); in updateSummary()
179 String[] wifiTetherRegex = mConnectivityManager.getTetherableWifiRegexs(); in updateSummary()
180 String[] bluetoothRegex = mConnectivityManager.getTetherableBluetoothRegexs(); in updateSummary()
DPrivateDnsPreferenceController.java69 private final ConnectivityManager mConnectivityManager; field in PrivateDnsPreferenceController
77 mConnectivityManager = context.getSystemService(ConnectivityManager.class); in PrivateDnsPreferenceController()
104 final Network defaultNetwork = mConnectivityManager.getActiveNetwork(); in onStart()
106 mLatestLinkProperties = mConnectivityManager.getLinkProperties(defaultNetwork); in onStart()
108 mConnectivityManager.registerDefaultNetworkCallback(mNetworkCallback, mHandler); in onStart()
114 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onStop()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DTetherPreferenceController.java61 private final ConnectivityManager mConnectivityManager; field in TetherPreferenceController
85 mConnectivityManager = null; in TetherPreferenceController()
93 mConnectivityManager = in TetherPreferenceController()
107 com.android.settingslib.Utils.getTetheringLabel(mConnectivityManager)); in displayPreference()
178 String[] allTethered = mConnectivityManager.getTetheredIfaces(); in updateSummary()
179 String[] wifiTetherRegex = mConnectivityManager.getTetherableWifiRegexs(); in updateSummary()
180 String[] bluetoothRegex = mConnectivityManager.getTetherableBluetoothRegexs(); in updateSummary()
DPrivateDnsPreferenceController.java69 private final ConnectivityManager mConnectivityManager; field in PrivateDnsPreferenceController
77 mConnectivityManager = context.getSystemService(ConnectivityManager.class); in PrivateDnsPreferenceController()
104 final Network defaultNetwork = mConnectivityManager.getActiveNetwork(); in onStart()
106 mLatestLinkProperties = mConnectivityManager.getLinkProperties(defaultNetwork); in onStart()
108 mConnectivityManager.registerDefaultNetworkCallback(mNetworkCallback, mHandler); in onStart()
114 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onStop()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java63 private final ConnectivityManager mConnectivityManager; field in ConnectivityListener
99 mConnectivityManager = (ConnectivityManager) mContext.getSystemService( in ConnectivityListener()
228 return mConnectivityManager.isNetworkSupported(ConnectivityManager.TYPE_ETHERNET) in isEthernetAvailable()
233 final Network[] networks = mConnectivityManager.getAllNetworks(); in getFirstEthernet()
235 NetworkInfo networkInfo = mConnectivityManager.getNetworkInfo(network); in getFirstEthernet()
250 final LinkProperties linkProperties = mConnectivityManager.getLinkProperties(network); in getEthernetIpAddress()
296 NetworkInfo networkInfo = mConnectivityManager.getActiveNetworkInfo(); in updateConnectivityStatus()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiScanWorkerTest.java75 private ConnectivityManager mConnectivityManager; field in WifiScanWorkerTest
87 mConnectivityManager = mContext.getSystemService(ConnectivityManager.class); in setUp()
135 final Network network = mConnectivityManager.getActiveNetwork(); in NetworkCallback_onCapabilitiesChanged_shouldNotifyChange()
148 final Network network = mConnectivityManager.getActiveNetwork(); in NetworkCallback_onCapabilitiesChanged_isClickedWifi_shouldSendBroadcast()
162 final Network network = mConnectivityManager.getActiveNetwork(); in NetworkCallback_onCapabilitiesChanged_isNotClickedWifi_shouldNotSendBroadcast()
175 final Network network = mConnectivityManager.getActiveNetwork(); in NetworkCallback_onCapabilitiesChanged_neverClickWifi_shouldNotSendBroadcast()
188 final Network network = mConnectivityManager.getActiveNetwork(); in NetworkCallback_onCapabilitiesChanged_sliceIsUnpinned_shouldNotSendBroadcast()
DContextualWifiScanWorkerTest.java54 private ConnectivityManager mConnectivityManager; field in ContextualWifiScanWorkerTest
64 mConnectivityManager = mContext.getSystemService(ConnectivityManager.class); in setUp()
78 final Network network = mConnectivityManager.getActiveNetwork(); in NetworkCallback_onCapabilitiesChanged_sliceIsUnpinned_shouldSendBroadcast()
95 final Network network = mConnectivityManager.getActiveNetwork(); in NetworkCallback_onCapabilitiesChanged_newSession_shouldNotSendBroadcast()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DJobPreconditionsTest.java48 @Mock private ConnectivityManager mConnectivityManager; field in JobPreconditionsTest
62 mConnectivityManager); in setUp()
112 .when(mConnectivityManager).getAllNetworks(); in hookUpMocks()
113 when(mConnectivityManager.getNetworkInfo(any(Network.class))).thenAnswer( in hookUpMocks()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/
DWifiTetherSwitchBarControllerTest.java53 private ConnectivityManager mConnectivityManager; field in WifiTetherSwitchBarControllerTest
69 mConnectivityManager); in setUp()
108 verify(mConnectivityManager, never()).startTethering(anyInt(), anyBoolean(), any(), any()); in onSwitchToggled_onlyStartsTetherWhenNeeded()
113 verify(mConnectivityManager, times(1)) in onSwitchToggled_onlyStartsTetherWhenNeeded()
DWifiTetherPreferenceControllerTest.java65 private ConnectivityManager mConnectivityManager; field in WifiTetherPreferenceControllerTest
88 .thenReturn(mConnectivityManager); in setUp()
94 when(mConnectivityManager.getTetherableWifiRegexs()).thenReturn(new String[]{"1", "2"}); in setUp()
102 when(mConnectivityManager.getTetherableWifiRegexs()).thenReturn(new String[]{}); in isAvailable_noTetherRegex_shouldReturnFalse()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiTetherFragment.java45 private ConnectivityManager mConnectivityManager; field in WifiTetherFragment
73 mConnectivityManager.stopTethering(ConnectivityManager.TETHERING_WIFI); in onCreate()
75 mConnectivityManager.startTethering(ConnectivityManager.TETHERING_WIFI, in onCreate()
94 mConnectivityManager = (ConnectivityManager) getContext().getSystemService( in onAttach()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/tether/
DWifiTetherSwitchBarController.java46 private final ConnectivityManager mConnectivityManager; field in WifiTetherSwitchBarController
70 mConnectivityManager = in WifiTetherSwitchBarController()
104 mConnectivityManager.stopTethering(TETHERING_WIFI); in stopTether()
109 mConnectivityManager.startTethering(TETHERING_WIFI, true /* showProvisioningUi */, in startTether()
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherSwitchBarController.java46 private final ConnectivityManager mConnectivityManager; field in WifiTetherSwitchBarController
70 mConnectivityManager = in WifiTetherSwitchBarController()
104 mConnectivityManager.stopTethering(TETHERING_WIFI); in stopTether()
109 mConnectivityManager.startTethering(TETHERING_WIFI, true /* showProvisioningUi */, in startTether()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiMasterSwitchPreferenceControllerTest.java63 private ConnectivityManager mConnectivityManager; field in WifiMasterSwitchPreferenceControllerTest
76 when(mContext.getSystemService(ConnectivityManager.class)).thenReturn(mConnectivityManager); in setUp()
100 verify(mConnectivityManager).registerNetworkCallback( in onResume_shouldRegisterCallback()
112 verify(mConnectivityManager).unregisterNetworkCallback( in onPause_shouldUnregisterCallback()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDefaultFragmentTest.java48 private ConnectivityManager mConnectivityManager; field in UsbDefaultFragmentTest
57 mFragment.mConnectivityManager = mConnectivityManager; in setUp()
134 verify(mConnectivityManager).startTethering(TETHERING_USB, true, in setDefaultKey_functionRndis_startTetheringInvoked()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/slice/
DWifiScanWorker.java60 private ConnectivityManager mConnectivityManager; field in WifiScanWorker
65 mConnectivityManager = context.getSystemService(ConnectivityManager.class); in WifiScanWorker()
162 mConnectivityManager.registerNetworkCallback( in registerCaptivePortalNetworkCallback()
174 mConnectivityManager.unregisterNetworkCallback(mCaptivePortalNetworkCallback); in unregisterCaptivePortalNetworkCallback()

1234