Home
last modified time | relevance | path

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

/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
557 mNetworkAgent != null) { in updateLinkProperty()
558 mNetworkAgent.sendLinkProperties(mLinkProperties, DataConnection.this); in updateLinkProperty()
1197 if (mNetworkAgent != null) { in updateLinkBandwidthsFromModem()
1198 mNetworkAgent.sendNetworkCapabilities(getNetworkCapabilities(), DataConnection.this); in updateLinkBandwidthsFromModem()
1772 if (mNetworkAgent == null) { in updateNetworkInfoSuspendState()
2179 mNetworkAgent = mHandoverSourceNetworkAgent; in enter()
2180 mNetworkAgent.acquireOwnership(DataConnection.this, mTransportType); in enter()
2187 mNetworkAgent.sendNetworkCapabilities(getNetworkCapabilities(), in enter()
2189 mNetworkAgent.sendLinkProperties(mLinkProperties, DataConnection.this); in enter()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiScoreReport.java70 NetworkAgent mNetworkAgent; field in WifiScoreReport
92 if (mNetworkAgent != null) { in notifyScoreUpdate()
93 mNetworkAgent.sendNetworkScore(score); in notifyScoreUpdate()
361 if (mNetworkAgent != null) { in calculateAndReportScore()
362 mNetworkAgent.sendNetworkScore(score); in calculateAndReportScore()
372 if (mNetworkAgent != null) { in getCurrentNetId()
373 final Network network = mNetworkAgent.getNetwork(); in getCurrentNetId()
620 mNetworkAgent = null; in stopConnectedNetworkScorer()
642 mNetworkAgent = agent; in setNetworkAgent()
DClientModeImpl.java447 private WifiNetworkAgent mNetworkAgent; field in ClientModeImpl
1795 if (mNetworkAgent != null) { in getCurrentNetwork()
1796 return mNetworkAgent.getNetwork(); in getCurrentNetwork()
2508 if (mNetworkAgent != null) { in updateLinkProperties()
2509 mNetworkAgent.sendLinkProperties(mLinkProperties); in updateLinkProperties()
2543 if (mNetworkAgent != null) mNetworkAgent.sendLinkProperties(mLinkProperties); in clearLinkProperties()
2773 if (mNetworkAgent != null) { in handleNetworkDisconnect()
2774 mNetworkAgent.unregister(); in handleNetworkDisconnect()
2775 mNetworkAgent = null; in handleNetworkDisconnect()
3535 if (mNetworkAgent != null) {
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiScoreReportTest.java93 NetworkAgent mNetworkAgent; field in WifiScoreReportTest
195 mNetworkAgent = spy(new TestNetworkAgent(mContext)); in setUp()
201 mWifiScoreReport.setNetworkAgent(mNetworkAgent); in setUp()
224 verify(mNetworkAgent).sendNetworkScore(anyInt()); in calculateAndReportScoreSucceeds()
238 verify(mNetworkAgent, never()).sendNetworkScore(anyInt()); in calculateAndReportScoreDoesNotReportWhenRssiIsNotValid()
298 verify(mNetworkAgent, atLeast(1)).sendNetworkScore(score); in giveUpOnBadRssiWhenDataIsNotMoving()
315 verify(mNetworkAgent, atLeast(1)).sendNetworkScore(score);
707 verify(mNetworkAgent).sendNetworkScore(49);
712 verify(mNetworkAgent).sendNetworkScore(59);
/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/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java1040 mNetworkAgent = agent.getNetworkAgent(); in setNetworkAgent()