Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuNetworkConnectionTest.java82 @Mock OsuNetworkConnection.Callbacks mNetworkCallbacks; field in OsuNetworkConnectionTest
147 mNetworkConnection.setEventCallback(mNetworkCallbacks); in verifyWifiStateCallbacks()
157 verify(mNetworkCallbacks, times(1)).onWifiEnabled(); in verifyWifiStateCallbacks()
158 verify(mNetworkCallbacks, times(1)).onWifiDisabled(); in verifyWifiStateCallbacks()
204 mNetworkConnection.setEventCallback(mNetworkCallbacks); in verifyNetworkCallbackInvokedWhenConnected()
214 verify(mNetworkCallbacks).onConnected(mCurrentNetwork); in verifyNetworkCallbackInvokedWhenConnected()
217 verify(mNetworkCallbacks).onDisconnected(); in verifyNetworkCallbackInvokedWhenConnected()
234 mNetworkConnection.setEventCallback(mNetworkCallbacks); in verifyNetworkCallbackWithoutOnAvailable()
245 verify(mNetworkCallbacks, never()).onConnected(mCurrentNetwork); in verifyNetworkCallbackWithoutOnAvailable()
257 mNetworkConnection.setEventCallback(mNetworkCallbacks); in verifyNetworkConnectionTimeout()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DConnectivityFragment.java114 SparseArray<NetworkByIdCallback> mNetworkCallbacks = new SparseArray<NetworkByIdCallback>(); field in ConnectivityFragment
185 if (mNetworkCallbacks.get(netId) != null) { in requestNetworkById()
196 mNetworkCallbacks.put(netId, cb); in requestNetworkById()
202 NetworkByIdCallback cb = mNetworkCallbacks.get(netId); in releaseNetworkById()
205 mNetworkCallbacks.remove(netId); in releaseNetworkById()
413 ni.mRequested = (mNetworkCallbacks.get(n.getNetId()) != null); in getNetworkItem()
442 for (int i = 0; i < mNetworkCallbacks.size(); i++) { in refreshNetworks()
443 int key = mNetworkCallbacks.keyAt(i); in refreshNetworks()
445 mNetworkCallbacks.remove(key); in refreshNetworks()