/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | HotspotControllerImpl.java | 50 private final ConnectivityManager mConnectivityManager; field in HotspotControllerImpl 65 mConnectivityManager = in HotspotControllerImpl() 73 return mConnectivityManager.isTetheringSupported() in isHotspotSupported() 74 && mConnectivityManager.getTetherableWifiRegexs().length != 0 in isHotspotSupported() 159 mConnectivityManager.startTethering(ConnectivityManager.TETHERING_WIFI, false, in setHotspotEnabled() 169 mConnectivityManager.stopTethering(ConnectivityManager.TETHERING_WIFI); in setHotspotEnabled() 213 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 | 100 private final ConnectivityManager mConnectivityManager; field in NetworkControllerImpl 206 mConnectivityManager = connectivityManager; in NetworkControllerImpl() 208 mConnectivityManager.isNetworkSupported(ConnectivityManager.TYPE_MOBILE); in NetworkControllerImpl() 280 mConnectivityManager.registerDefaultNetworkCallback(callback, mReceiverHandler); in NetworkControllerImpl() 814 mConnectivityManager.getDefaultNetworkCapabilitiesForUser(mCurrentUserId)) { in updateConnectivity()
|
/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 | 45 private final ConnectivityManager mConnectivityManager; field in WifiStatusTracker 86 mConnectivityManager = connectivityManager; in WifiStatusTracker() 95 mConnectivityManager.registerNetworkCallback( in setListening() 101 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in setListening() 158 = mConnectivityManager.getNetworkCapabilities(mWifiManager.getCurrentNetwork()); in updateStatusLabel()
|
D | WifiTracker.java | 116 private final ConnectivityManager mConnectivityManager; field in WifiTracker 226 mConnectivityManager = connectivityManager; in WifiTracker() 339 mConnectivityManager.registerNetworkCallback( in onStart() 355 mLastNetworkInfo = mConnectivityManager.getNetworkInfo(mWifiManager.getCurrentNetwork()); in forceUpdate() 394 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onStop() 896 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() 120 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/core/java/android/util/ |
D | NtpTrustedTime.java | 110 private ConnectivityManager mConnectivityManager; 117 if (mConnectivityManager == null) { 118 mConnectivityManager = mContext.getSystemService(ConnectivityManager.class); 120 return mConnectivityManager;
|
/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 | 54 private ConnectivityManager mConnectivityManager; field in HotspotControllerImplTest 69 mContext.addMockSystemService(ConnectivityManager.class, mConnectivityManager); in setUp()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CellularNetworkValidator.java | 83 private ConnectivityManager mConnectivityManager; field in CellularNetworkValidator 244 mConnectivityManager = (ConnectivityManager) 284 mConnectivityManager.requestNetwork(mNetworkRequest, mNetworkCallback, mHandler); 304 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback);
|
D | PhoneSwitcher.java | 279 private ConnectivityManager mConnectivityManager; field in PhoneSwitcher 383 mConnectivityManager = in PhoneSwitcher() 731 mConnectivityManager.unregisterNetworkCallback(mDefaultNetworkCallback); in removeDefaultNetworkChangeCallback() 737 mConnectivityManager.registerDefaultNetworkCallback(mDefaultNetworkCallback, this); in registerDefaultNetworkChangeCallback()
|
/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() 239 return mConnectivityManager.isNetworkSupported(TYPE_MOBILE) in isMobileDataSupported()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiNetworkFactoryTest.java | 135 @Mock ConnectivityManager mConnectivityManager; field in WifiNetworkFactoryTest 175 .thenReturn(mConnectivityManager); in setUp() 207 verify(mConnectivityManager).registerNetworkProvider( in setUp() 289 verify(mConnectivityManager).declareNetworkRequestUnfulfillable(eq(mNetworkRequest)); in testHandleAcceptNetworkRequestFromWithInvalidSpecifier() 307 verify(mConnectivityManager).declareNetworkRequestUnfulfillable(eq(mNetworkRequest)); in testHandleAcceptNetworkRequestFromWithInternetCapability() 324 verify(mConnectivityManager).declareNetworkRequestUnfulfillable(eq(mNetworkRequest)); in testHandleAcceptNetworkRequestFromNonFgAppOrSvcWithSpecifier() 451 verify(mConnectivityManager).declareNetworkRequestUnfulfillable(eq(mNetworkRequest)); in testHandleAcceptNetworkRequestFromFgSvcWithSpecifierWithPendingRequestFromFgApp() 507 verify(mConnectivityManager).declareNetworkRequestUnfulfillable(eq(mNetworkRequest)); in testHandleAcceptNetworkRequestFromFgSvcWithSpecifierWithConnectedRequestFromFgApp() 542 verify(mConnectivityManager).declareNetworkRequestUnfulfillable(eq(mNetworkRequest)); in testHandleNetworkRequestWithSpecifierAndInternetCapability() 1333 verify(mConnectivityManager).declareNetworkRequestUnfulfillable(eq(mNetworkRequest)); in testNetworkSpecifierHandleUserSelectionReject() [all …]
|
D | ClientModeImplTest.java | 253 mConnectivityManager); in getContext() 379 @Mock ConnectivityManager mConnectivityManager; field in ClientModeImplTest 508 when(mConnectivityManager.registerNetworkAgent(any(), any(), any(), any(), anyInt(), any(), in setUp() 2448 verify(mConnectivityManager).registerNetworkAgent(messengerCaptor.capture(), in expectRegisterNetworkAgent() 2552 verify(mConnectivityManager).registerNetworkAgent(messengerCaptor.capture(), in verifyRssiMonitoringCallbackIsRegistered() 3064 verify(mConnectivityManager).registerNetworkAgent(messengerCaptor.capture(), in testReportConnectionEventIsCalledAfterSuccessfulConnection() 3277 verify(mConnectivityManager).registerNetworkAgent(messengerCaptor.capture(), in verifyAutoConnectedNetworkWithInternetValidationFailure() 3311 verify(mConnectivityManager).registerNetworkAgent(messengerCaptor.capture(), in verifyLastSelectedNetworkWithInternetValidationFailure() 3346 verify(mConnectivityManager).registerNetworkAgent(messengerCaptor.capture(), in verifyAutoConnectedNoInternetExpectedNetworkWithInternetValidationFailure() 3379 verify(mConnectivityManager).registerNetworkAgent(messengerCaptor.capture(), in verifyNetworkSelectionEnableOnInternetValidation() [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | VpnTest.java | 165 @Mock private ConnectivityManager mConnectivityManager; field in VpnTest 197 .thenReturn(mConnectivityManager); in setUp() 619 mConnectivityManager, new Network[] {}, caps, false /* isAlwaysMetered */); in testCapabilities() 631 mConnectivityManager, in testCapabilities() 646 mConnectivityManager, new Network[] {wifi}, caps, false /* isAlwaysMetered */); in testCapabilities() 658 mConnectivityManager, new Network[] {wifi}, caps, true /* isAlwaysMetered */); in testCapabilities() 670 mConnectivityManager, in testCapabilities() 1111 }).when(mConnectivityManager).getNetworkCapabilities(any()); in setMockedNetworks()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CellularNetworkValidatorTest.java | 453 verify(mConnectivityManager).unregisterNetworkCallback(eq(mValidatorUT.mNetworkCallback)); in assertValidationResult() 473 verify(mConnectivityManager).requestNetwork( in assertInValidation() 479 clearInvocations(mConnectivityManager); in resetStates()
|
D | ContextFixture.java | 246 return mConnectivityManager; in getSystemService() 594 private final ConnectivityManager mConnectivityManager = mock(ConnectivityManager.class); field in ContextFixture 653 doReturn(mock(Network.class)).when(mConnectivityManager).registerNetworkAgent( in ContextFixture()
|
D | PhoneSwitcherTest.java | 105 private ConnectivityManager mConnectivityManager; field in PhoneSwitcherTest 1179 mConnectivityManager = (ConnectivityManager) in initializeConnManagerMock() 1186 }).when(mConnectivityManager).registerNetworkProvider(any()); in initializeConnManagerMock()
|
D | TelephonyTest.java | 300 protected ConnectivityManager mConnectivityManager; field in TelephonyTest 434 mConnectivityManager = (ConnectivityManager) in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | CarrierTextControllerTest.java | 98 private ConnectivityManager mConnectivityManager; field in CarrierTextControllerTest 114 mContext.addMockSystemService(ConnectivityManager.class, mConnectivityManager); in setUp()
|
/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() 1811 mConnectivityManager.unregisterNetworkCallback(this);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | TelephonyNetworkFactoryTest.java | 172 verify(mConnectivityManager).registerNetworkProvider(any()); in createMockedTelephonyComponents()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 231 private @Mock ConnectivityManager mConnectivityManager; field in NetworkPolicyManagerServiceTest 347 return mConnectivityManager; in callSystemReady() 411 doNothing().when(mConnectivityManager) in callSystemReady()
|