Searched refs:mNetworkCallbacks (Results 1 – 2 of 2) sorted by relevance
82 @Mock OsuNetworkConnection.Callbacks mNetworkCallbacks; field in OsuNetworkConnectionTest147 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 …]
114 SparseArray<NetworkByIdCallback> mNetworkCallbacks = new SparseArray<NetworkByIdCallback>(); field in ConnectivityFragment185 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()