Searched refs:mConnectivityManager (Results 1 – 8 of 8) sorted by relevance
96 @Mock private ConnectivityManager mConnectivityManager; field in TetheringTest139 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 …]
41 private final ConnectivityManager mConnectivityManager; field in HotspotControllerImpl49 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()
75 private final ConnectivityManager mConnectivityManager; field in SecurityControllerImpl101 mConnectivityManager = (ConnectivityManager) in SecurityControllerImpl()117 mConnectivityManager.registerNetworkCallback(REQUEST, mNetworkCallback); in SecurityControllerImpl()
85 private final ConnectivityManager mConnectivityManager; field in NetworkControllerImpl177 mConnectivityManager = connectivityManager; in NetworkControllerImpl()179 mConnectivityManager.isNetworkSupported(ConnectivityManager.TYPE_MOBILE); in NetworkControllerImpl()657 mConnectivityManager.getDefaultNetworkCapabilitiesForUser(mCurrentUserId)) { in updateConnectivity()
60 private final ConnectivityManager mConnectivityManager; field in DataUsageController71 mConnectivityManager = ConnectivityManager.from(context); in DataUsageController()213 return mConnectivityManager.isNetworkSupported(TYPE_MOBILE) in isMobileDataSupported()
93 private final ConnectivityManager mConnectivityManager; field in WifiTracker203 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());
235 return mConnectivityManager; in getSystemService()509 private final ConnectivityManager mConnectivityManager = mock(ConnectivityManager.class); field in ContextFixture
239 mConnectivityManager); in getContext()372 @Mock ConnectivityManager mConnectivityManager; field in WifiStateMachineTest507 verify(mConnectivityManager, atLeast(2)).registerNetworkFactory( in initializeWsm()