Home
last modified time | relevance | path

Searched refs:mNetworkAgent (Results 1 – 7 of 7) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiScoreReportTest.java84 NetworkAgent mNetworkAgent; field in WifiScoreReportTest
145 mNetworkAgent = spy(new TestNetworkAgent(mContext)); in setUp()
170 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); in calculateAndReportScoreSucceeds()
171 verify(mNetworkAgent).sendNetworkScore(anyInt()); in calculateAndReportScoreSucceeds()
184 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); in calculateAndReportScoreDoesNotReportWhenRssiIsNotValid()
185 verify(mNetworkAgent, never()).sendNetworkScore(anyInt()); in calculateAndReportScoreDoesNotReportWhenRssiIsNotValid()
217 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); in allowLowRssiIfDataIsMoving()
240 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics); in giveUpOnBadRssiWhenDataIsNotMoving()
244 verify(mNetworkAgent, atLeast(1)).sendNetworkScore(score); in giveUpOnBadRssiWhenDataIsNotMoving()
257 mWifiScoreReport.calculateAndReportScore(mWifiInfo, mNetworkAgent, mWifiMetrics);
[all …]
/frameworks/base/tests/net/integration/util/com/android/server/
DNetworkAgentWrapper.java67 private NetworkAgent mNetworkAgent; field in NetworkAgentWrapper
108 mNetworkAgent = makeNetworkAgent(linkProperties); in NetworkAgentWrapper()
163 mNetworkAgent.sendNetworkScore(mScore); in adjustScore()
171 mNetworkAgent.explicitlySelected(explicitlySelected, acceptUnvalidated); in explicitlySelected()
176 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in addCapability()
181 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in removeCapability()
186 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in setUids()
191 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in setSignalStrength()
196 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in setNetworkSpecifier()
202 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in setNetworkCapabilities()
[all …]
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java257 private @Nullable NetworkAgent mNetworkAgent; field in NetworkInterfaceState
384 if (mNetworkAgent != null) { in setIpConfig()
458 if (mNetworkAgent != null) { in onIpLayerStarted()
470 mNetworkAgent = new NetworkAgent(mContext, mHandler.getLooper(), in onIpLayerStarted()
474 if (this == mNetworkAgent) { in onIpLayerStarted()
476 } else if (mNetworkAgent != null) { in onIpLayerStarted()
482 mNetworkAgent.register(); in onIpLayerStarted()
483 mNetworkAgent.setLegacyExtraInfo(mHwAddress); in onIpLayerStarted()
484 mNetworkAgent.markConnected(); in onIpLayerStarted()
500 if (mNetworkAgent != null) { in updateLinkProperties()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnection.java284 private DcNetworkAgent mNetworkAgent; field in DataConnection
574 mNetworkAgent != null) { in updateLinkProperty()
575 mNetworkAgent.sendLinkProperties(mLinkProperties, DataConnection.this); in updateLinkProperty()
1215 if (mNetworkAgent != null) { in updateLinkBandwidthsFromModem()
1216 mNetworkAgent.sendNetworkCapabilities(getNetworkCapabilities(), DataConnection.this); in updateLinkBandwidthsFromModem()
1790 if (mNetworkAgent == null) { in updateNetworkInfoSuspendState()
2197 mNetworkAgent = mHandoverSourceNetworkAgent; in enter()
2198 mNetworkAgent.acquireOwnership(DataConnection.this, mTransportType); in enter()
2205 mNetworkAgent.sendNetworkCapabilities(getNetworkCapabilities(), in enter()
2207 mNetworkAgent.sendLinkProperties(mLinkProperties, DataConnection.this); in enter()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java209 protected NetworkAgent mNetworkAgent; field in Vpn
308 if (mNetworkAgent != null) { in updateState()
309 mNetworkAgent.sendNetworkInfo(mNetworkInfo); in updateState()
999 final NetworkAgent agent = mNetworkAgent;
1115 mNetworkAgent = new NetworkAgent(mLooper, mContext, NETWORKTYPE /* logtag */,
1153 mNetworkAgent = null;
1202 NetworkAgent oldNetworkAgent = mNetworkAgent;
1239 && updateLinkPropertiesInPlaceIfPossible(mNetworkAgent, oldConfig)) {
1242 mNetworkAgent = null;
1270 if (oldNetworkAgent != mNetworkAgent) {
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DClientModeImpl.java424 private WifiNetworkAgent mNetworkAgent; field in ClientModeImpl
1952 if (mNetworkAgent != null) { in getCurrentNetwork()
1953 return mNetworkAgent.getNetwork(); in getCurrentNetwork()
2777 if (mNetworkAgent != null) { in updateLinkProperties()
2778 mNetworkAgent.sendLinkProperties(mLinkProperties); in updateLinkProperties()
2814 if (mNetworkAgent != null) mNetworkAgent.sendLinkProperties(mLinkProperties); in clearLinkProperties()
3011 if (mNetworkAgent != null) { in handleNetworkDisconnect()
3012 mNetworkAgent.unregister(); in handleNetworkDisconnect()
3013 mNetworkAgent = null; in handleNetworkDisconnect()
3663 if (mNetworkAgent != null) { in processMessage()
[all …]
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java1040 mNetworkAgent = agent.getNetworkAgent(); in setNetworkAgent()