Searched refs:mNetworkAgent (Results 1 – 5 of 5) sorted by relevance
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiScoreReportTest.java | 76 @Mock NetworkAgent mNetworkAgent; field in WifiScoreReportTest 149 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); in calculateAndReportScoreSucceeds() 150 verify(mNetworkAgent).sendNetworkScore(anyInt()); in calculateAndReportScoreSucceeds() 163 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); in calculateAndReportScoreDoesNotReportWhenRssiIsNotValid() 164 verify(mNetworkAgent, never()).sendNetworkScore(anyInt()); in calculateAndReportScoreDoesNotReportWhenRssiIsNotValid() 196 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); in allowLowRssiIfDataIsMoving() 219 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); in giveUpOnBadRssiWhenDataIsNotMoving() 223 verify(mNetworkAgent, atLeast(1)).sendNetworkScore(score); in giveUpOnBadRssiWhenDataIsNotMoving() 236 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); 240 verify(mNetworkAgent, atLeast(1)).sendNetworkScore(score); [all …]
|
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/ |
D | EthernetNetworkFactory.java | 257 private NetworkAgent mNetworkAgent; field in NetworkInterfaceState 453 if (mNetworkAgent != null) { in onIpLayerStarted() 463 mNetworkAgent = new NetworkAgent(mHandler.getLooper(), mContext, in onIpLayerStarted() 467 if (this == mNetworkAgent) { in onIpLayerStarted() 469 } else if (mNetworkAgent != null) { in onIpLayerStarted() 490 if (mNetworkAgent != null) { in updateLinkProperties() 491 mNetworkAgent.sendLinkProperties(linkProperties); in updateLinkProperties() 522 if (mNetworkAgent != null) { in stop() 524 mNetworkAgent = null; in stop() 530 if (mNetworkAgent == null) return; in updateAgent() [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 179 protected NetworkAgent mNetworkAgent; field in Vpn 265 if (mNetworkAgent != null) { in updateState() 266 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in updateState() 844 return mNetworkAgent != null ? mNetworkAgent.netId : NETID_UNSET; in getNetId() 982 mNetworkAgent = new NetworkAgent(mLooper, mContext, NETWORKTYPE /* logtag */, in agentConnect() 1020 mNetworkAgent = null; in agentDisconnect() 1070 NetworkAgent oldNetworkAgent = mNetworkAgent; in establish() 1106 && updateLinkPropertiesInPlaceIfPossible(mNetworkAgent, oldConfig)) { in establish() 1109 mNetworkAgent = null; in establish() 1140 mNetworkAgent = oldNetworkAgent; in establish() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ClientModeImpl.java | 414 private WifiNetworkAgent mNetworkAgent; field in ClientModeImpl 1930 if (mNetworkAgent != null) { in getCurrentNetwork() 1931 return new Network(mNetworkAgent.netId); in getCurrentNetwork() 2756 if (mNetworkAgent != null) { in updateLinkProperties() 2757 mNetworkAgent.sendLinkProperties(mLinkProperties); in updateLinkProperties() 2793 if (mNetworkAgent != null) mNetworkAgent.sendLinkProperties(mLinkProperties); in clearLinkProperties() 2876 if (mNetworkAgent != null) { in setNetworkDetailedState() 2877 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in setNetworkDetailedState() 2994 if (mNetworkAgent != null) { in handleNetworkDisconnect() 2995 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in handleNetworkDisconnect() [all …]
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 482 private NetworkAgent mNetworkAgent; field in ConnectivityServiceTest.MockNetworkAgent 574 mNetworkAgent = new NetworkAgent(mHandlerThread.getLooper(), mServiceContext, in MockNetworkAgent() 616 assertEquals(mNetworkAgent.netId, nmNetworkCaptor.getValue().netId); in MockNetworkAgent() 653 mNetworkAgent.sendNetworkScore(mScore); in adjustScore() 661 mNetworkAgent.explicitlySelected(acceptUnvalidated); in explicitlySelected() 666 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in addCapability() 671 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in removeCapability() 676 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in setUids() 681 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in setSignalStrength() 686 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in setNetworkSpecifier() [all …]
|