/packages/modules/Connectivity/tests/integration/util/com/android/server/ |
D | NetworkAgentWrapper.java | 86 private NetworkAgent mNetworkAgent; field in NetworkAgentWrapper 176 mNetworkAgent = makeNetworkAgent(linkProperties, mNetworkAgentConfig, provider); in NetworkAgentWrapper() 284 mNetworkAgent.sendNetworkScore(score); in setScore() 296 mNetworkAgent.sendNetworkScore(mScore); in adjustScore() 304 mNetworkAgent.explicitlySelected(explicitlySelected, acceptUnvalidated); in explicitlySelected() 309 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in addCapability() 314 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in removeCapability() 319 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in setUids() 324 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in setSignalStrength() 329 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in setNetworkSpecifier() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | QosPolicyRequestHandler.java | 50 private WifiNetworkAgent mNetworkAgent; field in QosPolicyRequestHandler 104 WifiNetworkAgent oldNetworkAgent = mNetworkAgent; in setNetworkAgent() 105 mNetworkAgent = wifiNetworkAgent; in setNetworkAgent() 106 if (mNetworkAgent == null) { in setNetworkAgent() 122 if (mNetworkAgent == null) { in queueQosPolicyRequest() 136 if (mNetworkAgent == null) { in setQosPolicyStatus() 184 if (mNetworkAgent != null) { in resetProcessingState() 185 mNetworkAgent.sendRemoveAllDscpPolicies(); in resetProcessingState() 190 if (mNetworkAgent == null) { in processQosPolicyRequest() 220 mNetworkAgent.sendRemoveDscpPolicy(policy.policyId); in processQosPolicyRequest() [all …]
|
D | WifiScoreReport.java | 118 private WifiNetworkAgent mNetworkAgent; field in WifiScoreReport 260 if (mNetworkAgent == null) { in notifyStatusUpdate() 285 mNetworkAgent.sendNetworkScore( in notifyStatusUpdate() 294 mNetworkAgent.sendNetworkScore(mIsUsable ? ConnectedScore.WIFI_TRANSITION_SCORE + 1 in notifyStatusUpdate() 355 + " mNetworkAgent is null? " + (mNetworkAgent == null)); in setShouldReduceNetworkScore() 370 if (mNetworkAgent == null) { in reportNetworkScoreToConnectivityServiceIfNecessary() 720 if (mNetworkAgent != null) { in getCurrentNetId() 721 final Network network = mNetworkAgent.getNetwork(); in getCurrentNetId() 731 return mNetworkAgent == null ? null : mNetworkAgent.getCurrentNetworkCapabilities(); in getCurrentNetCapabilities() 1102 mNetworkAgent = null; in stopConnectedNetworkScorer() [all …]
|
D | ClientModeImpl.java | 436 WifiNetworkAgent mNetworkAgent; field in ClientModeImpl 1991 return (mNetworkAgent != null) ? mNetworkAgent.getNetwork() : null; in getCurrentNetwork() 2906 if (mNetworkAgent != null) { in updateLinkProperties() 2907 mNetworkAgent.sendLinkProperties(mLinkProperties); in updateLinkProperties() 2940 if (mNetworkAgent != null) mNetworkAgent.sendLinkProperties(mLinkProperties); in clearLinkProperties() 3566 if (mNetworkAgent != null) { in handleNetworkDisconnect() 3567 mNetworkAgent.unregister(); in handleNetworkDisconnect() 3568 mNetworkAgent = null; in handleNetworkDisconnect() 4115 if (mNetworkAgent != null) { in processIpReachabilityFailure() 4117 mNetworkAgent.unregisterAfterReplacement(NETWORK_AGENT_TEARDOWN_DELAY_MS); in processIpReachabilityFailure() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ethernet/ |
D | EthernetNetworkFactoryTest.java | 92 @Mock private EthernetNetworkAgent mNetworkAgent; field in EthernetNetworkFactoryTest 123 when(mNetworkAgent.getCallbacks()).thenReturn(cb); in setupNetworkAgentMock() 124 when(mNetworkAgent.getNetwork()) in setupNetworkAgentMock() 126 return mNetworkAgent; in setupNetworkAgentMock() 279 clearInvocations(mNetworkAgent); in createAndVerifyProvisionedInterface() 292 clearInvocations(mNetworkAgent); in createUnprovisionedInterface() 345 verify(mNetworkAgent, never()).register(); in verifyNoStopOrStart() 347 verify(mNetworkAgent, never()).unregister(); in verifyNoStopOrStart() 356 mNetworkAgent.getCallbacks().onNetworkUnwanted(); in testNetworkUnwanted() 368 EthernetNetworkAgent.Callbacks oldCbs = mNetworkAgent.getCallbacks(); in testNetworkUnwantedWithStaleNetworkAgent() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pan/ |
D | BluetoothTetheringNetworkFactory.java | 59 private NetworkAgent mNetworkAgent; field in BluetoothTetheringNetworkFactory 104 if (mNetworkAgent != null) { in onLinkPropertiesChange() 105 mNetworkAgent.sendLinkProperties(newLp); in onLinkPropertiesChange() 186 mNetworkAgent = in startNetwork() 202 mNetworkAgent.register(); in startNetwork() 203 mNetworkAgent.markConnected(); in startNetwork() 222 if (mNetworkAgent != null) { in onCancelRequest() 223 mNetworkAgent.unregister(); in onCancelRequest() 224 mNetworkAgent = null; in onCancelRequest()
|
/packages/modules/Connectivity/service-t/src/com/android/server/ethernet/ |
D | EthernetNetworkFactory.java | 285 private @Nullable EthernetNetworkAgent mNetworkAgent; field in NetworkInterfaceState 514 if (mNetworkAgent != null) { in handleOnProvisioningSuccess() 527 mNetworkAgent = mDeps.makeEthernetNetworkAgent(mContext, mHandler.getLooper(), in handleOnProvisioningSuccess() 533 if (mNetworkAgent == null) return; in handleOnProvisioningSuccess() 535 if (this == mNetworkAgent.getCallbacks()) { in handleOnProvisioningSuccess() 543 mNetworkAgent.register(); in handleOnProvisioningSuccess() 544 mNetworkAgent.markConnected(); in handleOnProvisioningSuccess() 569 if (mNetworkAgent != null) { in handleOnLinkPropertiesChange() 570 mNetworkAgent.sendLinkPropertiesImpl(linkProperties); in handleOnLinkPropertiesChange() 614 if (mNetworkAgent != null) { in stop() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiScoreReportTest.java | 120 @Mock WifiNetworkAgent mNetworkAgent; field in WifiScoreReportTest 249 when(mNetworkAgent.getNetwork()).thenReturn(mNetwork); in setUp() 250 when(mNetworkAgent.getCurrentNetworkCapabilities()).thenReturn( in setUp() 267 mWifiScoreReport.setNetworkAgent(mNetworkAgent); in setUp() 297 verify(mNetworkAgent, mode).sendNetworkScore(argThat( in verifySentNetworkScore() 309 verify(mNetworkAgent, mode).sendNetworkScore(score); in verifySentNetworkScore() 319 verify(mNetworkAgent, mode).sendNetworkScore(any(NetworkScore.class)); in verifySentAnyNetworkScore() 321 verify(mNetworkAgent, mode).sendNetworkScore(anyInt()); in verifySentAnyNetworkScore() 359 reset(mNetworkAgent); in mbbNetworkForceKeepUp() 367 verify(mNetworkAgent).sendNetworkScore(networkScoreCaptor.capture()); in mbbNetworkForceKeepUp() [all …]
|
D | ClientModeImplTest.java | 4113 verify(mCmi.mNetworkAgent, times(2)) in verifyConnectedModeNetworkCapabilitiesBandwidthUpdate() 4134 verify(mCmi.mNetworkAgent, times(3)) in verifyConnectedModeNetworkCapabilitiesBandwidthUpdate() 4148 verify(mCmi.mNetworkAgent, times(4)) in verifyConnectedModeNetworkCapabilitiesBandwidthUpdate() 4157 verify(mCmi.mNetworkAgent, times(4)) in verifyConnectedModeNetworkCapabilitiesBandwidthUpdate() 8342 mCmi.mNetworkAgent = null; in testVenueAndTCUrlsUpdateForPasspointNetworks() 10359 assertNotNull(mCmi.mNetworkAgent); in verifyQosPolicyResetEventWithNonNullNetworkAgent() 10371 assertNull(mCmi.mNetworkAgent); in verifyQosPolicyResetEventWithNullNetworkAgent() 10385 assertNotNull(mCmi.mNetworkAgent); in verifyQosPolicyResetEventWhenQosFeatureNotEnabled() 10402 assertNull(mCmi.mNetworkAgent); in verifyQosPolicyRequestEvent() 10410 assertNotNull(mCmi.mNetworkAgent); in verifyQosPolicyRequestEvent()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | RateLimitTest.java | 108 private TestableNetworkAgent mNetworkAgent; field in RateLimitTest 170 mNetworkAgent = new TestableNetworkAgent(mContext, mHandler.getLooper(), in setUp() 175 mNetworkAgent.register(); in setUp() 176 mNetworkAgent.markConnected(); in setUp() 179 mNetwork = mNetworkAgent.getNetwork(); in setUp() 193 if (mNetworkAgent != null) mNetworkAgent.unregister(); in tearDown()
|
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/ |
D | ThreadNetworkControllerService.java | 196 @Nullable private NetworkAgent mNetworkAgent; field in ThreadNetworkControllerService 789 if (mNetworkAgent != null) { in registerThreadNetwork() 793 mNetworkAgent = newNetworkAgent(); in registerThreadNetwork() 794 mNetworkAgent.register(); in registerThreadNetwork() 795 mNetworkAgent.markConnected(); in registerThreadNetwork() 800 if (mNetworkAgent == null) { in unregisterThreadNetwork() 808 mNetworkAgent.unregister(); in unregisterThreadNetwork() 809 mNetworkAgent = null; in unregisterThreadNetwork() 1269 if (mNetworkAgent != null) { 1270 mNetworkAgent.sendLinkProperties(mTunIfController.getLinkProperties()); [all …]
|
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/ |
D | IpClientIntegrationTestCommon.java | 387 private TestableNetworkAgent mNetworkAgent; field in IpClientIntegrationTestCommon 856 if (mNetworkAgent != null) { 857 mNetworkAgent.unregister(); 1845 mNetworkAgent = new TestableNetworkAgent(context, mNetworkAgentThread.getLooper(), 1858 mNetworkAgent.register(); 1859 mNetworkAgent.markConnected(); 1860 cb.expectAvailableThenValidatedCallbacks(mNetworkAgent.getNetwork(), TEST_TIMEOUT_MS); 4211 sendUdpPacketToNetwork(mNetworkAgent.getNetwork(), SERVER_ADDR, 1234 /* port */, data); 4338 sendUdpPacketToNetwork(mNetworkAgent.getNetwork(), dnsServerIp, 1234 /* port */, data);
|