Home
last modified time | relevance | path

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

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/details/
DWifiInfoProviderTest.java72 private ConnectivityManager mMockConnectivityManager; field in WifiInfoProviderTest
103 .thenReturn(mMockConnectivityManager); in setUp()
108 when(mMockConnectivityManager.getNetworkInfo(any(Network.class))) in setUp()
110 when(mMockConnectivityManager.getLinkProperties(any(Network.class))) in setUp()
112 when(mMockConnectivityManager.getNetworkCapabilities(any(Network.class))) in setUp()
114 doNothing().when(mMockConnectivityManager).registerNetworkCallback( in setUp()
155 verify(mMockConnectivityManager).registerNetworkCallback( in networkCallback_shouldBeRegisteredOnStart()
164 verify(mMockConnectivityManager) in networkCallback_shouldBeUnregisteredOnStop()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2Test.java138 private ConnectivityManager mMockConnectivityManager; field in WifiDetailPreferenceController2Test
279 when(mMockConnectivityManager.getNetworkInfo(any(Network.class))) in setUp()
281 doNothing().when(mMockConnectivityManager).registerNetworkCallback( in setUp()
295 when(mMockConnectivityManager.getLinkProperties(mMockNetwork)).thenReturn(mLinkProperties); in setUp()
320 mMockConnectivityManager, in setUpController()
353 mMockConnectivityManager, in newSpyWifiDetailPreferenceController2()
464 verify(mMockConnectivityManager, times(1)).getNetworkInfo(any(Network.class)); in latestNetworkInfo_shouldBeFetchedInDisplayPreferenceForConnectedNetwork()
473 verify(mMockConnectivityManager, never()).getNetworkInfo(any(Network.class)); in latestNetworkInfo_shouldNotBeFetchedInDisplayPreferenceForDisconnectedNetwork()
482 verify(mMockConnectivityManager, never()).getNetworkInfo(any(Network.class)); in latestNetworkInfo_shouldNotBeFetchedInDisplayPreferenceForNotInRangeNetwork()
491 verify(mMockConnectivityManager, times(1)).registerNetworkCallback( in networkCallback_shouldBeRegisteredOnResume()
[all …]
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/task/
DConnectMobileNetworkTaskRoboTest.java42 @Mock private ConnectivityManager mMockConnectivityManager; field in ConnectMobileNetworkTaskRoboTest
49 when(mMockConnectivityManager.getActiveNetworkInfo()).thenReturn(mMockNetworkInfo); in setUpMocks()
52 shadowContext.setSystemService(Context.CONNECTIVITY_SERVICE, mMockConnectivityManager); in setUpMocks()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DResetNetworkConfirmFragmentTest.java87 private ConnectivityManager mMockConnectivityManager; field in ResetNetworkConfirmFragmentTest
114 mMockConnectivityManager); in setUp()
142 verify(mMockConnectivityManager).factoryReset(); in testResetButtonClick_connectivityManagerReset()
/packages/services/Iwlan/test/com/google/android/iwlan/
DIwlanNetworkServiceTest.java51 @Mock private ConnectivityManager mMockConnectivityManager; field in IwlanNetworkServiceTest
72 .thenReturn(mMockConnectivityManager); in setUp()
DIwlanDataServiceTest.java94 @Mock private ConnectivityManager mMockConnectivityManager; field in IwlanDataServiceTest
177 .thenReturn(mMockConnectivityManager); in setUp()
178 when(mMockConnectivityManager.getNetworkCapabilities(eq(mMockNetwork))) in setUp()