/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | HotspotControllerImpl.java | 46 private final ConnectivityManager mConnectivityManager; field in HotspotControllerImpl 60 mConnectivityManager = in HotspotControllerImpl() 68 return mConnectivityManager.isTetheringSupported() in isHotspotSupported() 69 && mConnectivityManager.getTetherableWifiRegexs().length != 0 in isHotspotSupported() 152 mConnectivityManager.startTethering(ConnectivityManager.TETHERING_WIFI, false, in setHotspotEnabled() 162 mConnectivityManager.stopTethering(ConnectivityManager.TETHERING_WIFI); in setHotspotEnabled() 206 mConnectivityManager.stopTethering(ConnectivityManager.TETHERING_WIFI); in maybeResetSoftApState()
|
D | SecurityControllerImpl.java | 84 private final ConnectivityManager mConnectivityManager; field in SecurityControllerImpl 116 mConnectivityManager = (ConnectivityManager) in SecurityControllerImpl() 132 mConnectivityManager.registerNetworkCallback(REQUEST, mNetworkCallback); in SecurityControllerImpl()
|
D | NetworkControllerImpl.java | 106 private final ConnectivityManager mConnectivityManager; field in NetworkControllerImpl 203 mConnectivityManager = connectivityManager; in NetworkControllerImpl() 205 mConnectivityManager.isNetworkSupported(ConnectivityManager.TYPE_MOBILE); in NetworkControllerImpl() 276 mConnectivityManager.registerDefaultNetworkCallback(callback, mReceiverHandler); in NetworkControllerImpl() 775 mConnectivityManager.getDefaultNetworkCapabilitiesForUser(mCurrentUserId)) { in updateConnectivity()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CellularNetworkValidator.java | 60 private ConnectivityManager mConnectivityManager; field in CellularNetworkValidator 104 mConnectivityManager = (ConnectivityManager) in CellularNetworkValidator() 139 mConnectivityManager.requestNetwork( in validate() 150 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in stopValidation() 189 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in reportValidationResult()
|
D | PhoneSwitcher.java | 256 private ConnectivityManager mConnectivityManager; field in PhoneSwitcher 262 if (mConnectivityManager.getNetworkCapabilities(network) 387 mConnectivityManager = in PhoneSwitcher() 683 mConnectivityManager.unregisterNetworkCallback(mDefaultNetworkCallback); in removeDefaultNetworkChangeCallback() 693 mConnectivityManager.registerDefaultNetworkCallback(mDefaultNetworkCallback); in registerDefaultNetworkChangeCallback()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | OsuNetworkConnectionTest.java | 81 @Mock ConnectivityManager mConnectivityManager; field in OsuNetworkConnectionTest 91 doReturn(mConnectivityManager).when(mContext) in setUp() 219 verify(mConnectivityManager).requestNetwork(any(NetworkRequest.class), in verifyNetworkCallbackInvokedWhenConnected() 231 verify(mConnectivityManager).unregisterNetworkCallback(any(ConnectivityManager in verifyNetworkCallbackInvokedWhenConnected() 249 verify(mConnectivityManager).requestNetwork(any(NetworkRequest.class), in verifyNetworkCallbackWithoutOnAvailable() 272 verify(mConnectivityManager).requestNetwork(any(NetworkRequest.class), in verifyNetworkConnectionTimeout() 283 verify(mConnectivityManager).unregisterNetworkCallback(any(ConnectivityManager in verifyNetworkConnectionTimeout() 299 verify(mConnectivityManager).unregisterNetworkCallback(any(ConnectivityManager in verifyNetworkDisconnect() 325 verify(mConnectivityManager, times(1)).requestNetwork(networkRequestCaptor.capture(), in verifyWifiConfigurationForOsuNetwork()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiStatusTracker.java | 44 private final ConnectivityManager mConnectivityManager; field in WifiStatusTracker 85 mConnectivityManager = connectivityManager; in WifiStatusTracker() 94 mConnectivityManager.registerNetworkCallback( in setListening() 100 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in setListening() 157 = mConnectivityManager.getNetworkCapabilities(mWifiManager.getCurrentNetwork()); in updateStatusLabel()
|
D | WifiTracker.java | 114 private final ConnectivityManager mConnectivityManager; field in WifiTracker 224 mConnectivityManager = connectivityManager; in WifiTracker() 337 mConnectivityManager.registerNetworkCallback( in onStart() 353 mLastNetworkInfo = mConnectivityManager.getNetworkInfo(mWifiManager.getCurrentNetwork()); in forceUpdate() 392 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onStop() 877 mConnectivityManager.getNetworkInfo(mWifiManager.getCurrentNetwork());
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | TetherUtilTest.java | 47 private ConnectivityManager mConnectivityManager; field in TetherUtilTest 56 doReturn(mConnectivityManager) in setUp() 127 when(mConnectivityManager.isTetheringSupported()).thenReturn(tetherSupported); in setupIsTetherAvailable()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | OsuNetworkConnection.java | 49 private ConnectivityManager mConnectivityManager; field in OsuNetworkConnection 122 mConnectivityManager = in init() 140 mConnectivityManager.unregisterNetworkCallback(mConnectivityCallbacks); in disconnectIfNeeded() 213 mConnectivityManager.requestNetwork(networkRequest, mConnectivityCallbacks, mHandler, in connect()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | SecurityControllerTest.java | 69 private ConnectivityManager mConnectivityManager = mock(ConnectivityManager.class); field in SecurityControllerTest 81 mContext.addMockSystemService(Context.CONNECTIVITY_SERVICE, mConnectivityManager); in setUp() 191 verify(mConnectivityManager, times(1)).registerNetworkCallback(argThat( in testNetworkRequest()
|
D | HotspotControllerImplTest.java | 51 private ConnectivityManager mConnectivityManager; field in HotspotControllerImplTest 66 mContext.addMockSystemService(ConnectivityManager.class, mConnectivityManager); in setUp()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | DataUsageController.java | 62 private final ConnectivityManager mConnectivityManager; field in DataUsageController 74 mConnectivityManager = ConnectivityManager.from(context); in DataUsageController() 238 return mConnectivityManager.isNetworkSupported(TYPE_MOBILE) in isMobileDataSupported()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | VpnTest.java | 150 @Mock private ConnectivityManager mConnectivityManager; field in VpnTest 165 .thenReturn(mConnectivityManager); in setUp() 573 mConnectivityManager, new Network[] {}, caps, false /* isAlwaysMetered */); in testCapabilities() 584 mConnectivityManager, in testCapabilities() 598 mConnectivityManager, new Network[] {wifi}, caps, false /* isAlwaysMetered */); in testCapabilities() 609 mConnectivityManager, new Network[] {wifi}, caps, true /* isAlwaysMetered */); in testCapabilities() 620 mConnectivityManager, in testCapabilities() 709 }).when(mConnectivityManager).getNetworkCapabilities(any()); in setMockedNetworks()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | CarrierTextControllerTest.java | 90 private ConnectivityManager mConnectivityManager; field in CarrierTextControllerTest 106 mContext.addMockSystemService(ConnectivityManager.class, mConnectivityManager); in setUp()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ClientModeImplTest.java | 247 mConnectivityManager); in getContext() 372 @Mock ConnectivityManager mConnectivityManager; field in ClientModeImplTest 2319 verify(mConnectivityManager).registerNetworkAgent(messengerCaptor.capture(), in expectRegisterNetworkAgent() 2416 verify(mConnectivityManager).registerNetworkAgent(messengerCaptor.capture(), in verifyRssiMonitoringCallbackIsRegistered() 2875 verify(mConnectivityManager).registerNetworkAgent(messengerCaptor.capture(), in testReportConnectionEventIsCalledAfterSuccessfulConnection() 3083 verify(mConnectivityManager).registerNetworkAgent(messengerCaptor.capture(), in verifyAutoConnectedNetworkWithInternetValidationFailure() 3117 verify(mConnectivityManager).registerNetworkAgent(messengerCaptor.capture(), in verifyLastSelectedNetworkWithInternetValidationFailure() 3152 verify(mConnectivityManager).registerNetworkAgent(messengerCaptor.capture(), in verifyAutoConnectedNoInternetExpectedNetworkWithInternetValidationFailure() 3185 verify(mConnectivityManager).registerNetworkAgent(messengerCaptor.capture(), in verifyNetworkSelectionEnableOnInternetValidation() 3217 verify(mConnectivityManager).registerNetworkAgent(any(Messenger.class), in verifyNetworkCapabilities() [all …]
|
D | WifiNetworkFactoryTest.java | 125 @Mock ConnectivityManager mConnectivityManager; field in WifiNetworkFactoryTest 164 .thenReturn(mConnectivityManager); in setUp() 193 verify(mConnectivityManager).registerNetworkFactory( in setUp()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneSwitcherTest.java | 100 private ConnectivityManager mConnectivityManager; field in PhoneSwitcherTest 1049 mConnectivityManager = (ConnectivityManager) in initializeConnManagerMock() 1055 }).when(mConnectivityManager).registerNetworkFactory(any(), any()); in initializeConnManagerMock()
|
D | ContextFixture.java | 239 return mConnectivityManager; in getSystemService() 563 private final ConnectivityManager mConnectivityManager = mock(ConnectivityManager.class); field in ContextFixture
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | AppStandbyController.java | 269 private ConnectivityManager mConnectivityManager; field in AppStandbyController 376 mConnectivityManager = mContext.getSystemService(ConnectivityManager.class); in onBootPhase() 794 NetworkInfo activeNetwork = mConnectivityManager.getActiveNetworkInfo(); in checkParoleTimeout() 825 mConnectivityManager.registerNetworkCallback(mNetworkRequest, mNetworkCallback); in checkParoleTimeout() 1810 mConnectivityManager.unregisterNetworkCallback(this);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 230 private @Mock ConnectivityManager mConnectivityManager; field in NetworkPolicyManagerServiceTest 346 return mConnectivityManager; in callSystemReady() 410 doNothing().when(mConnectivityManager) in callSystemReady()
|