/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiScoreReportTest.java | 73 @Mock NetworkAgent mNetworkAgent; field in WifiScoreReportTest 158 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); in calculateAndReportScoreSucceeds() 159 verify(mNetworkAgent).sendNetworkScore(anyInt()); in calculateAndReportScoreSucceeds() 172 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); in calculateAndReportScoreDoesNotReportWhenRssiIsNotValid() 173 verify(mNetworkAgent, never()).sendNetworkScore(anyInt()); in calculateAndReportScoreDoesNotReportWhenRssiIsNotValid() 205 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); in allowLowRssiIfDataIsMoving() 228 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); in giveUpOnBadRssiWhenDataIsNotMoving() 232 verify(mNetworkAgent, atLeast(1)).sendNetworkScore(score); in giveUpOnBadRssiWhenDataIsNotMoving() 245 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); 249 verify(mNetworkAgent, atLeast(1)).sendNetworkScore(score); [all …]
|
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/ |
D | EthernetNetworkFactory.java | 234 private NetworkAgent mNetworkAgent; field in NetworkInterfaceState 304 if (mNetworkAgent != null) { in onIpLayerStarted() 314 mNetworkAgent = new NetworkAgent(mHandler.getLooper(), mContext, in onIpLayerStarted() 318 if (this == mNetworkAgent) { in onIpLayerStarted() 320 } else if (mNetworkAgent != null) { in onIpLayerStarted() 337 if (mNetworkAgent != null) { in updateLinkProperties() 338 mNetworkAgent.sendLinkProperties(linkProperties); in updateLinkProperties() 367 if (mNetworkAgent != null) { in stop() 369 mNetworkAgent = null; in stop() 375 if (mNetworkAgent == null) return; in updateAgent() [all …]
|
/frameworks/opt/net/lowpan/service/java/com/android/server/lowpan/ |
D | LowpanInterfaceTracker.java | 88 private NetworkAgent mNetworkAgent; field in LowpanInterfaceTracker 277 if (mNetworkAgent == message.obj) { in processMessage() 299 if (mNetworkAgent != null) { in processMessage() 300 mNetworkAgent.sendLinkProperties(mLinkProperties); in processMessage() 361 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in enter() 472 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in enter() 495 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in enter() 496 mNetworkAgent.sendNetworkScore(NETWORK_SCORE); in enter() 506 if (mNetworkAgent != null) { in exit() 507 mNetworkAgent.sendNetworkScore(0); in exit() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataConnection.java | 190 private DcNetworkAgent mNetworkAgent; field in DataConnection 425 mNetworkAgent != null) { in updateLinkProperty() 426 mNetworkAgent.sendLinkProperties(mLinkProperties); in updateLinkProperty() 1309 if (mNetworkAgent != null) { in processMessage() 1310 mNetworkAgent.sendLinkProperties(mLinkProperties); in processMessage() 1372 if (mNetworkAgent != null) { in processMessage() 1373 mNetworkAgent.sendNetworkCapabilities(getNetworkCapabilities()); in processMessage() 1374 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in processMessage() 1375 mNetworkAgent.sendLinkProperties(mLinkProperties); in processMessage() 1382 if (mNetworkAgent != null) { in processMessage() [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 179 protected NetworkAgent mNetworkAgent; field in Vpn 297 if (mNetworkAgent != null) { in updateState() 298 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in updateState() 308 if (mNetworkAgent != null) { in updateCapabilities() 309 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in updateCapabilities() 810 return mNetworkAgent != null ? mNetworkAgent.netId : NETID_UNSET; in getNetId() 954 mNetworkAgent = new NetworkAgent(mLooper, mContext, NETWORKTYPE /* logtag */, in agentConnect() 991 mNetworkAgent = null; in agentDisconnect() 1042 NetworkAgent oldNetworkAgent = mNetworkAgent; in establish() 1078 && updateLinkPropertiesInPlaceIfPossible(mNetworkAgent, oldConfig)) { in establish() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiStateMachine.java | 403 private WifiNetworkAgent mNetworkAgent; field in WifiStateMachine 1790 if (mNetworkAgent != null) { in getCurrentNetwork() 1791 return new Network(mNetworkAgent.netId); in getCurrentNetwork() 2524 if (mNetworkAgent != null) { in updateLinkProperties() 2525 mNetworkAgent.sendLinkProperties(mLinkProperties); in updateLinkProperties() 2561 if (mNetworkAgent != null) mNetworkAgent.sendLinkProperties(mLinkProperties); in clearLinkProperties() 2685 if (mNetworkAgent != null) { in setNetworkDetailedState() 2686 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in setNetworkDetailedState() 2770 if (mNetworkAgent != null) { in handleNetworkDisconnect() 2771 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in handleNetworkDisconnect() [all …]
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 373 private NetworkAgent mNetworkAgent; field in ConnectivityServiceTest.MockNetworkAgent 413 mNetworkAgent = new NetworkAgent(mHandlerThread.getLooper(), mServiceContext, in MockNetworkAgent() 452 mNetworkAgent.sendNetworkScore(mScore); in adjustScore() 456 mNetworkAgent.explicitlySelected(acceptUnvalidated); in explicitlySelected() 461 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in addCapability() 466 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in removeCapability() 471 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in setUids() 476 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in setSignalStrength() 481 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in setNetworkSpecifier() 488 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in setNetworkCapabilities() [all …]
|