Home
last modified time | relevance | path

Searched refs:wifiAgent (Results 1 – 10 of 10) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSBlockedReasonsTest.kt93 val wifiAgent = Agent(nc = wifiNc()) in cellNc() constant
94 wifiAgent.connect() in cellNc()
107 wifiAgent.network, in cellNc()
113 wifiAgent.disconnect() in cellNc()
131 val wifiAgent = Agent(nc = wifiNc()) in cellNc() constant
132 wifiAgent.connect() in cellNc()
139 wifiAgent.network, in cellNc()
168 wifiAgent.disconnect() in cellNc()
185 val wifiAgent = Agent(nc = wifiNc()) in cellNc() constant
186 wifiAgent.connect() in cellNc()
[all …]
DCSLocalNetworkProtectionTest.kt119 val wifiAgent = Agent(nc = wifiNc, lp = wifiLp) in testNetworkWithIPv6LocalAddress_AddressAddedToBpfMap() constant
120 wifiAgent.connect() in testNetworkWithIPv6LocalAddress_AddressAddedToBpfMap()
121 cb.expectAvailableCallbacks(wifiAgent.network, validated = false) in testNetworkWithIPv6LocalAddress_AddressAddedToBpfMap()
143 val wifiAgent = Agent(nc = wifiNc, lp = wifiLp) in testNetworkWithIPv4LocalAddress_AddressAddedToBpfMap() constant
144 wifiAgent.connect() in testNetworkWithIPv4LocalAddress_AddressAddedToBpfMap()
145 cb.expectAvailableCallbacks(wifiAgent.network, validated = false) in testNetworkWithIPv4LocalAddress_AddressAddedToBpfMap()
168 val wifiAgent = Agent(nc = wifiNc, lp = wifiLp) in testChangeLinkPropertiesWithDifferentLinkAddresses_AddressReplacedInBpfMap() constant
169 wifiAgent.connect() in testChangeLinkPropertiesWithDifferentLinkAddresses_AddressReplacedInBpfMap()
170 cb.expectAvailableCallbacks(wifiAgent.network, validated = false) in testChangeLinkPropertiesWithDifferentLinkAddresses_AddressReplacedInBpfMap()
186 wifiAgent.sendLinkProperties(wifiLp2) in testChangeLinkPropertiesWithDifferentLinkAddresses_AddressReplacedInBpfMap()
[all …]
DCSLocalAgentTests.kt187 val wifiAgent = Agent( in keepScore() constant
192 wifiAgent.connect() in keepScore()
205 it.info.upstreamNetwork == wifiAgent.network in keepScore()
213 it.info.upstreamNetwork == wifiAgent.network in keepScore()
216 wifiAgent.disconnect() in keepScore()
286 val wifiAgent = createWifiAgent("wifi0") in keepScore() constant
287 wifiAgent.connect() in keepScore()
288 cb.expectAvailableCallbacks(wifiAgent.network, validated = false) in keepScore()
290 it.info.upstreamNetwork == wifiAgent.network in keepScore()
304 wifiAgent.disconnect() in keepScore()
[all …]
DCSIngressDiscardRuleTests.kt112 val wifiAgent = Agent(nc = wifiNc, lp = wifiLp) in testVpnIngressDiscardRule_UpdateVpnAddress() constant
113 wifiAgent.connect() in testVpnIngressDiscardRule_UpdateVpnAddress()
182 val wifiAgent = Agent(nc = wifiNc, lp = wifiLp) in testVpnIngressDiscardRule_DuplicatedIpAddress_UpdateVpnAddress() constant
183 wifiAgent.connect() in testVpnIngressDiscardRule_DuplicatedIpAddress_UpdateVpnAddress()
243 val wifiAgent = Agent(nc = wifiNc, lp = wifiLp) in testVpnIngressDiscardRule_DuplicatedIpAddress_UpdateNonVpnAddress() constant
244 wifiAgent.connect() in testVpnIngressDiscardRule_DuplicatedIpAddress_UpdateNonVpnAddress()
245 cb.expectAvailableCallbacks(wifiAgent.network, validated = false) in testVpnIngressDiscardRule_DuplicatedIpAddress_UpdateNonVpnAddress()
252 wifiAgent.sendLinkProperties(newWifilp) in testVpnIngressDiscardRule_DuplicatedIpAddress_UpdateNonVpnAddress()
253 cb.expect<LinkPropertiesChanged>(wifiAgent.network) in testVpnIngressDiscardRule_DuplicatedIpAddress_UpdateNonVpnAddress()
261 wifiAgent.sendLinkProperties(wifiLp) in testVpnIngressDiscardRule_DuplicatedIpAddress_UpdateNonVpnAddress()
[all …]
DCSBpfNetMapsTest.kt100 val wifiAgent = Agent(nc = defaultNc(), lp = lpWithNoLocalDns) in testLocalPrefixesUpdatedInBpfMap() constant
101 wifiAgent.connect() in testLocalPrefixesUpdatedInBpfMap()
107 wifiAgent.disconnect() in testLocalPrefixesUpdatedInBpfMap()
122 val wifiAgent = Agent(nc = defaultNc(), lp = lpWithNoLocalDns) in testLocalDnsNotUpdatedInBpfMap() constant
123 wifiAgent.connect() in testLocalDnsNotUpdatedInBpfMap()
129 wifiAgent.disconnect() in testLocalDnsNotUpdatedInBpfMap()
145 val wifiAgent = Agent(nc = defaultNc(), lp = lpWithLocalDns) in testLocalDnsUpdatedInBpfMap() constant
146 wifiAgent.connect() in testLocalDnsUpdatedInBpfMap()
156 wifiAgent.disconnect() in testLocalDnsUpdatedInBpfMap()
DCSQueuedCallbacksTest.kt289 val wifiAgent = Agent(TRANSPORT_WIFI).apply { connect() } in testNetworkCallback_NetworkToggledWhileFrozen_NotSeen() constant
290 wifiAgent.disconnect() in testNetworkCallback_NetworkToggledWhileFrozen_NotSeen()
295 cb.expectAvailableCallbacks(wifiAgent.network, validated = false) in testNetworkCallback_NetworkToggledWhileFrozen_NotSeen()
296 cb.expect<Lost>(wifiAgent) in testNetworkCallback_NetworkToggledWhileFrozen_NotSeen()
398 val wifiAgent = Agent(TRANSPORT_WIFI).apply { connect() } in testNetworkRequest_NetworkSwitchesWhileFrozen_ReceiveLastNetworkUpdatesOnly() constant
406 cb.expectAvailableCallbacks(wifiAgent.network, validated = false) in testNetworkRequest_NetworkSwitchesWhileFrozen_ReceiveLastNetworkUpdatesOnly()
423 val wifiAgent = Agent(TRANSPORT_WIFI).apply { connect() } in testNetworkRequest_NetworkSwitchesBackWhileFrozen_ReceiveNoAvailableCallback() constant
436 cb.expectAvailableCallbacks(wifiAgent.network, validated = false) in testNetworkRequest_NetworkSwitchesBackWhileFrozen_ReceiveNoAvailableCallback()
492 val wifiAgent = Agent(TRANSPORT_WIFI, baseNc = makeInternetNc()).apply { connect() } in testTrackDefaultRequest_AppFrozenWhilePerAppDefaultToggled_GetStatusUpdateCallbacksOnly() constant
493 wifiAgent.makeValidationSuccess() in testTrackDefaultRequest_AppFrozenWhilePerAppDefaultToggled_GetStatusUpdateCallbacksOnly()
[all …]
DCSCaptivePortalAppTest.kt94 val wifiAgent = createWifiAgent() in testCaptivePortalApp_Reevaluate_Nopermission() constant
95 wifiAgent.connectWithCaptivePortal(TEST_REDIRECT_URL) in testCaptivePortalApp_Reevaluate_Nopermission()
96 captivePortalCallback.expectAvailableCallbacksUnvalidated(wifiAgent) in testCaptivePortalApp_Reevaluate_Nopermission()
97 val signInIntent = startCaptivePortalApp(wifiAgent) in testCaptivePortalApp_Reevaluate_Nopermission()
106 verify(wifiAgent.networkMonitor, never()).forceReevaluation(anyInt()) in testCaptivePortalApp_Reevaluate_Nopermission()
DCSNetworkActivityTest.kt133 val wifiAgent = Agent(nc = wifiNc, lp = wifiLp) in <lambda>() constant
134 wifiAgent.connect() in <lambda>()
135 defaultCb.expectAvailableCallbacks(wifiAgent.network, validated = false) in <lambda>()
343 val wifiAgent = Agent(nc = wifiNc, lp = wifiLp) in <lambda>() constant
344 wifiAgent.connect() in <lambda>()
361 val wifiAgent = Agent(nc = wifiNc, lp = wifiLp) in <lambda>() constant
362 wifiAgent.connect() in <lambda>()
378 val wifiAgent = Agent(nc = wifiNc, lp = wifiLp) in <lambda>() constant
379 wifiAgent.connect() in <lambda>()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitorTest.java307 final TestNetworkAgent wifiAgent = new TestNetworkAgent(mCM, WIFI_CAPABILITIES); in testSelectPreferredUpstreamType() local
308 wifiAgent.fakeConnect(); in testSelectPreferredUpstreamType()
312 wifiAgent.fakeDisconnect(); in testSelectPreferredUpstreamType()
341 wifiAgent.fakeConnect(); in testSelectPreferredUpstreamType()
360 wifiAgent.fakeDisconnect(); in testSelectPreferredUpstreamType()
395 final TestNetworkAgent wifiAgent = new TestNetworkAgent(mCM, WIFI_CAPABILITIES); in testGetCurrentPreferredUpstream() local
396 wifiAgent.fakeConnect(); in testGetCurrentPreferredUpstream()
402 mCM.makeDefaultNetwork(wifiAgent); in testGetCurrentPreferredUpstream()
404 assertEquals(wifiAgent.networkId, mUNM.getCurrentPreferredUpstream().network); in testGetCurrentPreferredUpstream()
409 assertEquals(wifiAgent.networkId, mUNM.getCurrentPreferredUpstream().network); in testGetCurrentPreferredUpstream()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkAgentTest.kt1812 val (wifiAgent, wifiNetwork) = connectNetwork(TRANSPORT_WIFI) in testUnregisterAfterReplacement() constant
1819 wifiAgent.unregisterAfterReplacement(5_000 /* timeoutMillis */) in testUnregisterAfterReplacement()
1820 wifiAgent.expectCallback<OnNetworkDestroyed>() in testUnregisterAfterReplacement()
1832 wifiAgent.sendNetworkCapabilities(wifiNc) in testUnregisterAfterReplacement()
1837 wifiAgent.sendLinkProperties(wifiLp) in testUnregisterAfterReplacement()
1857 wifiAgent.expectCallback<OnNetworkUnwanted>() in testUnregisterAfterReplacement()