Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSDestroyedNetworkTests.kt26 import com.android.testutils.RecorderCallback.CallbackEntry.Lost
63 cbCallback.expect<Lost>(timeoutMs = 500) { it.network == firstAgent.network } in testDestroyNetworkNotKeptWhenUnvalidated()
DCSKeepConnectedTest.kt31 import com.android.testutils.RecorderCallback.CallbackEntry.Lost
77 cb.expect<Lost>(dontKeepAgent.network) in doTestKeepConnected()
DCSLocalAgentTests.kt46 import com.android.testutils.RecorderCallback.CallbackEntry.Lost
143 cb.expect<Lost>(agent.network) in keepScore()
153 cb.expect<Lost>(agent2.network) in keepScore()
530 cb.expect<Lost> { it.network == wifiAgent.network } in keepScore()
584 cb.expect<Lost> { it.network == wifiAgent.network } in keepScore()
637 cb.expect<Lost> { it.network == localAgent.network } in keepScore()
781 cb.expect<Lost>(localAgent.network) in keepScore()
834 listenCb.expect<Lost>() in keepScore()
DCSNetworkActivityTest.kt42 import com.android.testutils.RecorderCallback.CallbackEntry.Lost in <lambda>()
245 dataNetworkCb.expect<Lost>(dataNetworkAgent.network) in <lambda>()
249 imsNetworkCb.expect<Lost>(imsNetworkAgent.network) in <lambda>()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkAgentTest.kt117 import com.android.testutils.RecorderCallback.CallbackEntry.Lost in <lambda>()
455 callback.expect<Lost>(agent.network!!) in testConnectAndUnregister()
507 callbacks[2].expect<Lost>(net) in testSignalStrengthThresholds()
615 callback.eventuallyExpect<Lost> { it.network == agent.network } in doTestAllowedUids()
980 callback.expect<Lost>(agent.network!!) in testSetUnderlyingNetworksAndVpnSpecifier()
1160 callbackWeaker.expect<Lost>(agentWeaker.network!!) in testSetLingerDuration()
1227 bestMatchingCb.expect<Lost>(agent1.network!!) in testRegisterBestMatchingNetworkCallback()
1531 matchAllCallback.expect<Lost>(network2) in testUnregisterAfterReplacement()
1559 matchAllCallback.expect<Lost>(network1, 2_000 /* timeoutMs */) in testUnregisterAfterReplacement()
1577 matchAllCallback.expect<Lost>(network3, 1000L) in testUnregisterAfterReplacement()
[all …]
DEthernetManagerTest.kt73 import com.android.testutils.RecorderCallback.CallbackEntry.Lost in <lambda>()
527 eventuallyExpect(Lost::class) { n?.equals(it.network) ?: true } in <lambda>()
530 assertNoCallback { it is Lost && (n?.equals(it.network) ?: true) } in <lambda>()
967 cb.expect<Lost>(network) in <lambda>()
DNetworkScoreTest.kt94 agentCleanUpCb.eventuallyExpect<CallbackEntry.Lost> { cb -> cb.network == it.network } in <lambda>()
DConnectivityManagerTest.java2311 c -> c instanceof CallbackEntry.Lost);
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DTestableNetworkCallback.kt34 import com.android.testutils.RecorderCallback.CallbackEntry.Lost
80 data class Lost(override val network: Network) : CallbackEntry() in anyNetwork() class in com.android.testutils.RecorderCallback.CallbackEntry
112 val LOST = Lost::class in anyNetwork()
173 history.add(Lost(network)) in anyNetwork()
229 get() = when (val it = history.lastOrNull { it is Available || it is Lost }) { in createLinkedCopy()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/base/
DCSAgentWrapper.kt41 import com.android.testutils.RecorderCallback.CallbackEntry.Lost
181 cb.eventuallyExpect<Lost> { it.network == agent.network } in ArgumentCaptor()