Searched refs:expectCallback (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/tests/net/common/java/android/net/ |
D | NetworkProviderTest.kt | 85 inline fun <reified T : CallbackEntry> expectCallback( in <lambda>() method 108 provider.expectCallback<OnNetworkRequested>() { callback -> in <lambda>() 129 provider.expectCallback<OnNetworkRequested>() { callback -> in <lambda>() 136 provider.expectCallback<OnNetworkRequested>() { callback -> in <lambda>() 143 provider.expectCallback<OnNetworkRequestWithdrawn>() { callback -> in <lambda>() 165 inline fun <reified T : CallbackEntry> expectCallback( in <lambda>() method in TestNetworkCallback 184 cb.expectCallback<OnUnavailable>() { nr.getNetworkSpecifier() == specifier } in <lambda>()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 1452 callback.expectCallback(CallbackEntry.AVAILABLE, mCellNetworkAgent); in testNetworkFeature() 1745 public <T extends CallbackEntry> T expectCallback(final KClass<T> type, final HasNetwork n, in expectCallback() method in ConnectivityServiceTest.TestNetworkCallback 1747 final T callback = super.expectCallback(type, n, timeoutMs); in expectCallback() 1811 genericNetworkCallback.expectCallback(CallbackEntry.LOST, mWiFiNetworkAgent); in testStateChangeNetworkCallbacks() 1812 wifiNetworkCallback.expectCallback(CallbackEntry.LOST, mWiFiNetworkAgent); in testStateChangeNetworkCallbacks() 1819 genericNetworkCallback.expectCallback(CallbackEntry.LOST, mCellNetworkAgent); in testStateChangeNetworkCallbacks() 1820 cellNetworkCallback.expectCallback(CallbackEntry.LOST, mCellNetworkAgent); in testStateChangeNetworkCallbacks() 1841 genericNetworkCallback.expectCallback(CallbackEntry.LOSING, mCellNetworkAgent); in testStateChangeNetworkCallbacks() 1844 cellNetworkCallback.expectCallback(CallbackEntry.LOSING, mCellNetworkAgent); in testStateChangeNetworkCallbacks() 1849 genericNetworkCallback.expectCallback(CallbackEntry.LOST, mWiFiNetworkAgent); in testStateChangeNetworkCallbacks() [all …]
|