Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java2094 TestNetworkCallback defaultCallback = new TestNetworkCallback(); in testMultipleLingering() local
2095 mCm.registerDefaultNetworkCallback(defaultCallback); in testMultipleLingering()
2107 defaultCallback.expectAvailableThenValidatedCallbacks(mCellNetworkAgent); in testMultipleLingering()
2109 assertEquals(defaultCallback.getLastAvailableNetwork(), mCm.getActiveNetwork()); in testMultipleLingering()
2118 defaultCallback.expectAvailableDoubleValidatedCallbacks(mWiFiNetworkAgent); in testMultipleLingering()
2120 assertEquals(defaultCallback.getLastAvailableNetwork(), mCm.getActiveNetwork()); in testMultipleLingering()
2127 defaultCallback.expectAvailableDoubleValidatedCallbacks(mEthernetNetworkAgent); in testMultipleLingering()
2129 assertEquals(defaultCallback.getLastAvailableNetwork(), mCm.getActiveNetwork()); in testMultipleLingering()
2133 defaultCallback.expectCallback(CallbackState.LOST, mEthernetNetworkAgent); in testMultipleLingering()
2134 defaultCallback.expectAvailableCallbacksValidated(mWiFiNetworkAgent); in testMultipleLingering()
[all …]