/packages/modules/NetworkStack/common/networkstackclient/src/android/net/ |
D | NetworkMonitorManager.java | 41 @NonNull private final INetworkMonitor mNetworkMonitor; field in NetworkMonitorManager 46 mNetworkMonitor = networkMonitorManager; in NetworkMonitorManager() 63 mNetworkMonitor.start(); in start() 76 mNetworkMonitor.launchCaptivePortalApp(); in launchCaptivePortalApp() 89 mNetworkMonitor.notifyCaptivePortalAppFinished(response); in notifyCaptivePortalAppFinished() 102 mNetworkMonitor.setAcceptPartialConnectivity(); in setAcceptPartialConnectivity() 115 mNetworkMonitor.forceReevaluation(uid); in forceReevaluation() 128 mNetworkMonitor.notifyPrivateDnsChanged(config); in notifyPrivateDnsChanged() 141 mNetworkMonitor.notifyDnsResponse(returnCode); in notifyDnsResponse() 156 mNetworkMonitor.notifyNetworkConnected(lp, nc); in notifyNetworkConnected() [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | AddWifiNetworkTaskTest.java | 74 @Mock private NetworkMonitor mNetworkMonitor; field in AddWifiNetworkTaskTest 97 mTask = new AddWifiNetworkTask(mNetworkMonitor, mWifiConfigurationProvider, mContext, in testNoWifiInfo() 111 mTask = new AddWifiNetworkTask(mNetworkMonitor, mWifiConfigurationProvider, mContext, in testWifiManagerNull() 127 mTask = new AddWifiNetworkTask(mNetworkMonitor, mWifiConfigurationProvider, mContext, in testFailToEnableWifi() 146 mTask = new AddWifiNetworkTask(mNetworkMonitor, mWifiConfigurationProvider, mContext, in testIsConnectedToSpecifiedWifiTrue() 169 mTask = new AddWifiNetworkTask(mNetworkMonitor, mWifiConfigurationProvider, mContext, in testNoWifiInfoInProvider() 197 mTask = new AddWifiNetworkTask(mNetworkMonitor, mWifiConfigurationProvider, mContext, in testFailingAddingNetwork() 227 mTask = new AddWifiNetworkTask(mNetworkMonitor, mWifiConfigurationProvider, mContext, in testFailingToReconnectAfterAddingNetwork() 263 mTask = new AddWifiNetworkTask(mNetworkMonitor, mWifiConfigurationProvider, mContext, in testReconnectAfterAddingNetworkSuccess()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
D | ConnectMobileNetworkTask.java | 36 private final NetworkMonitor mNetworkMonitor; field in ConnectMobileNetworkTask 49 mNetworkMonitor = new NetworkMonitor(context, /* waitForValidated */ true); in ConnectMobileNetworkTask() 77 mNetworkMonitor.startListening(this); in run() 120 mNetworkMonitor.stopListening(); in finishTask()
|
D | AddWifiNetworkTask.java | 53 private final NetworkMonitor mNetworkMonitor; field in AddWifiNetworkTask 87 mNetworkMonitor = checkNotNull(networkMonitor); in AddWifiNetworkTask() 114 mNetworkMonitor.startListening(this); in run() 193 mNetworkMonitor.stopListening(); in finishTask()
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | NetworkAgentInfo.java | 619 private volatile NetworkMonitorManager mNetworkMonitor; field in NetworkAgentInfo 1025 mNetworkMonitor = new NetworkMonitorManager(networkMonitor); in onNetworkMonitorCreated() 1042 final NetworkMonitorManager nm = mNetworkMonitor; in getAndSetNetworkCapabilities() 1100 return mNetworkMonitor; in networkMonitor()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | ConnectivityServiceTest.java | 1066 private INetworkMonitor mNetworkMonitor; field in ConnectivityServiceTest.TestNetworkAgentWrapper 1134 mNetworkMonitor = mock(INetworkMonitor.class); in makeNetworkAgent() 1141 doAnswer(validateAnswer).when(mNetworkMonitor).notifyNetworkConnected(any(), any()); in makeNetworkAgent() 1142 doAnswer(validateAnswer).when(mNetworkMonitor).notifyNetworkConnectedParcel(any()); in makeNetworkAgent() 1143 doAnswer(validateAnswer).when(mNetworkMonitor).forceReevaluation(anyInt()); in makeNetworkAgent() 1159 mNmCallbacks.onNetworkMonitorCreated(mNetworkMonitor); in makeNetworkAgent() 1166 verify(mNetworkMonitor).notifyNetworkConnectedParcel(any()); in onValidationRequested() 1168 verify(mNetworkMonitor).notifyNetworkConnected(any(), any()); in onValidationRequested() 4608 verify(mWiFiAgent.mNetworkMonitor, times(1)).setAcceptPartialConnectivity(); 4659 verify(mWiFiAgent.mNetworkMonitor, times(1)).setAcceptPartialConnectivity(); [all …]
|