Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/integration/util/com/android/server/
DNetworkAgentWrapper.java74 private NetworkAgent mNetworkAgent; field in NetworkAgentWrapper
127 mNetworkAgent = makeNetworkAgent(linkProperties, mNetworkAgentConfig); in NetworkAgentWrapper()
205 mNetworkAgent.sendNetworkScore(score); in setScore()
216 mNetworkAgent.sendNetworkScore(mScore); in adjustScore()
224 mNetworkAgent.explicitlySelected(explicitlySelected, acceptUnvalidated); in explicitlySelected()
229 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in addCapability()
234 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in removeCapability()
239 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in setUids()
244 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in setSignalStrength()
249 mNetworkAgent.sendNetworkCapabilities(mNetworkCapabilities); in setNetworkSpecifier()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DBluetoothTetheringNetworkFactory.java60 private NetworkAgent mNetworkAgent; field in BluetoothTetheringNetworkFactory
103 if (mNetworkAgent != null) { in onLinkPropertiesChange()
104 mNetworkAgent.sendLinkProperties(newLp); in onLinkPropertiesChange()
173 mNetworkAgent = in startNetwork()
182 mNetworkAgent.register(); in startNetwork()
183 mNetworkAgent.markConnected(); in startNetwork()
202 if (mNetworkAgent != null) { in onCancelRequest()
203 mNetworkAgent.unregister(); in onCancelRequest()
204 mNetworkAgent = null; in onCancelRequest()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiScoreReport.java109 private WifiNetworkAgent mNetworkAgent; field in WifiScoreReport
225 if (mNetworkAgent == null) { in notifyStatusUpdate()
244 mNetworkAgent.sendNetworkScore( in notifyStatusUpdate()
250 mNetworkAgent.sendNetworkScore(mIsUsable ? ConnectedScore.WIFI_TRANSITION_SCORE + 1 in notifyStatusUpdate()
307 + " mNetworkAgent is null? " + (mNetworkAgent == null)); in setShouldReduceNetworkScore()
322 if (mNetworkAgent == null) { in reportNetworkScoreToConnectivityServiceIfNecessary()
609 if (mNetworkAgent != null) { in getCurrentNetId()
610 final Network network = mNetworkAgent.getNetwork(); in getCurrentNetId()
620 return mNetworkAgent == null ? null : mNetworkAgent.getCurrentNetworkCapabilities(); in getCurrentNetCapabilities()
922 mNetworkAgent = null; in stopConnectedNetworkScorer()
[all …]
DClientModeImpl.java407 WifiNetworkAgent mNetworkAgent; field in ClientModeImpl
1550 if (mNetworkAgent != null) { in getCurrentNetwork()
1551 return mNetworkAgent.getNetwork(); in getCurrentNetwork()
2304 if (mNetworkAgent != null) {
2305 mNetworkAgent.sendLinkProperties(mLinkProperties);
2339 if (mNetworkAgent != null) mNetworkAgent.sendLinkProperties(mLinkProperties);
2648 if (mNetworkAgent != null) {
2649 mNetworkAgent.unregister();
2650 mNetworkAgent = null;
3554 if (mNetworkAgent == null) {
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiScoreReportTest.java98 @Mock WifiNetworkAgent mNetworkAgent; field in WifiScoreReportTest
197 when(mNetworkAgent.getNetwork()).thenReturn(mNetwork); in setUp()
198 when(mNetworkAgent.getCurrentNetworkCapabilities()).thenReturn( in setUp()
213 mWifiScoreReport.setNetworkAgent(mNetworkAgent); in setUp()
243 verify(mNetworkAgent, mode).sendNetworkScore(argThat( in verifySentNetworkScore()
255 verify(mNetworkAgent, mode).sendNetworkScore(score); in verifySentNetworkScore()
265 verify(mNetworkAgent, mode).sendNetworkScore(any(NetworkScore.class)); in verifySentAnyNetworkScore()
267 verify(mNetworkAgent, mode).sendNetworkScore(anyInt()); in verifySentAnyNetworkScore()
295 reset(mNetworkAgent); in mbbNetworkForceKeepUp()
303 verify(mNetworkAgent).sendNetworkScore(networkScoreCaptor.capture()); in mbbNetworkForceKeepUp()
[all …]
DClientModeImplTest.java3008 verify(mCmi.mNetworkAgent, times(2)) in verifyConnectedModeNetworkCapabilitiesBandwidthUpdate()
3027 verify(mCmi.mNetworkAgent, times(3)) in verifyConnectedModeNetworkCapabilitiesBandwidthUpdate()
3038 verify(mCmi.mNetworkAgent, times(3)) in verifyConnectedModeNetworkCapabilitiesBandwidthUpdate()
6035 mCmi.mNetworkAgent = null; in testVenueAndTCUrlsUpdateForPasspointNetworks()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java1346 mNetworkAgent = mMockNetworkAgent.getNetworkAgent(); in registerAgent()