Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/com/android/server/connectivity/
DTetheringTest.java96 @Mock private ConnectivityManager mConnectivityManager; field in TetheringTest
139 if (Context.CONNECTIVITY_SERVICE.equals(name)) return mConnectivityManager; in getSystemService()
281 when(mConnectivityManager.isTetheringSupported()).thenReturn(true); in failingLocalOnlyHotspotLegacyApBroadcast()
296 verify(mConnectivityManager, atLeastOnce()).isTetheringSupported(); in failingLocalOnlyHotspotLegacyApBroadcast()
299 verifyNoMoreInteractions(mConnectivityManager); in failingLocalOnlyHotspotLegacyApBroadcast()
306 when(mConnectivityManager.isTetheringSupported()).thenReturn(true); in testUsbConfiguredBroadcastStartsTethering()
319 verifyNoMoreInteractions(mConnectivityManager); in testUsbConfiguredBroadcastStartsTethering()
342 when(mConnectivityManager.isTetheringSupported()).thenReturn(true); in workingLocalOnlyHotspotEnrichedApBroadcast()
364 verify(mConnectivityManager, times(1)).registerNetworkCallback( in workingLocalOnlyHotspotEnrichedApBroadcast()
366 verify(mConnectivityManager, times(1)).registerDefaultNetworkCallback( in workingLocalOnlyHotspotEnrichedApBroadcast()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DHotspotControllerImpl.java41 private final ConnectivityManager mConnectivityManager; field in HotspotControllerImpl
49 mConnectivityManager = (ConnectivityManager) context.getSystemService( in HotspotControllerImpl()
55 return mConnectivityManager.isTetheringSupported() in isHotspotSupported()
56 && mConnectivityManager.getTetherableWifiRegexs().length != 0 in isHotspotSupported()
117 mConnectivityManager.startTethering( in setHotspotEnabled()
121 mConnectivityManager.stopTethering(ConnectivityManager.TETHERING_WIFI); in setHotspotEnabled()
DSecurityControllerImpl.java75 private final ConnectivityManager mConnectivityManager; field in SecurityControllerImpl
101 mConnectivityManager = (ConnectivityManager) in SecurityControllerImpl()
117 mConnectivityManager.registerNetworkCallback(REQUEST, mNetworkCallback); in SecurityControllerImpl()
DNetworkControllerImpl.java85 private final ConnectivityManager mConnectivityManager; field in NetworkControllerImpl
177 mConnectivityManager = connectivityManager; in NetworkControllerImpl()
179 mConnectivityManager.isNetworkSupported(ConnectivityManager.TYPE_MOBILE); in NetworkControllerImpl()
657 mConnectivityManager.getDefaultNetworkCapabilitiesForUser(mCurrentUserId)) { in updateConnectivity()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageController.java60 private final ConnectivityManager mConnectivityManager; field in DataUsageController
71 mConnectivityManager = ConnectivityManager.from(context); in DataUsageController()
213 return mConnectivityManager.isNetworkSupported(TYPE_MOBILE) in isMobileDataSupported()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiTracker.java93 private final ConnectivityManager mConnectivityManager; field in WifiTracker
203 mConnectivityManager = connectivityManager; in WifiTracker()
246 … mLastNetworkInfo = mConnectivityManager.getNetworkInfo(mWifiManager.getCurrentNetwork()); in forceUpdate()
329 mConnectivityManager.registerNetworkCallback(mNetworkRequest, mNetworkCallback); in startTracking()
369 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in stopTracking()
805 mConnectivityManager.getNetworkInfo(mWifiManager.getCurrentNetwork());
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DContextFixture.java235 return mConnectivityManager; in getSystemService()
509 private final ConnectivityManager mConnectivityManager = mock(ConnectivityManager.class); field in ContextFixture
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiStateMachineTest.java239 mConnectivityManager); in getContext()
372 @Mock ConnectivityManager mConnectivityManager; field in WifiStateMachineTest
507 verify(mConnectivityManager, atLeast(2)).registerNetworkFactory( in initializeWsm()