Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DPasspointWifiEntryTest.java163 ConnectivityManager mockConnectivityManager = mock(ConnectivityManager.class); in testGetSummary_connectedWifiNetwork_showsConnected() local
165 .thenReturn(mockConnectivityManager); in testGetSummary_connectedWifiNetwork_showsConnected()
203 ConnectivityManager mockConnectivityManager = mock(ConnectivityManager.class); in testGetSummary_providerModelConnectedButNotDefault_doesNotShowConnected() local
205 .thenReturn(mockConnectivityManager); in testGetSummary_providerModelConnectedButNotDefault_doesNotShowConnected()
270 ConnectivityManager mockConnectivityManager = mock(ConnectivityManager.class); in testShouldShowXLevelIcon_unvalidatedOrNotDefault_returnsTrue() local
272 .thenReturn(mockConnectivityManager); in testShouldShowXLevelIcon_unvalidatedOrNotDefault_returnsTrue()
455 ConnectivityManager mockConnectivityManager = mock(ConnectivityManager.class); in testDisconnect_noScansOrWifiConfig_disconnectIsSuccessful() local
457 .thenReturn(mockConnectivityManager); in testDisconnect_noScansOrWifiConfig_disconnectIsSuccessful()
DStandardWifiEntryTest.java660 final ConnectivityManager mockConnectivityManager = mock(ConnectivityManager.class); in testGetSummary_connectedWifiNetwork_showsConnected() local
664 .thenReturn(mockConnectivityManager); in testGetSummary_connectedWifiNetwork_showsConnected()
705 final ConnectivityManager mockConnectivityManager = mock(ConnectivityManager.class); in testGetSummary_providerModelConnectedButNotDefault_doesNotShowConnected() local
709 .thenReturn(mockConnectivityManager); in testGetSummary_providerModelConnectedButNotDefault_doesNotShowConnected()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DWifiTrackerTest.java148 @Mock private ConnectivityManager mockConnectivityManager; field in WifiTrackerTest
362 mockConnectivityManager, in createMockedWifiTracker()
774 when(mockConnectivityManager.getNetworkInfo(any(Network.class))).thenReturn(networkInfo); in onStartShouldSynchronouslyFetchLatestInformation()
781 verify(mockConnectivityManager).getNetworkInfo(any(Network.class)); in onStartShouldSynchronouslyFetchLatestInformation()
800 when(mockConnectivityManager.getNetworkInfo(any(Network.class))).thenReturn(networkInfo); in onStartShouldDisplayConnectedAccessPointWhenThereAreNoScanResults()
810 verify(mockConnectivityManager).getNetworkInfo(any(Network.class)); in onStartShouldDisplayConnectedAccessPointWhenThereAreNoScanResults()