Searched refs:mMockConnectivityManager (Results 1 – 6 of 6) sorted by relevance
72 private ConnectivityManager mMockConnectivityManager; field in WifiInfoProviderTest103 .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()
138 private ConnectivityManager mMockConnectivityManager; field in WifiDetailPreferenceController2Test279 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 …]
42 @Mock private ConnectivityManager mMockConnectivityManager; field in ConnectMobileNetworkTaskRoboTest49 when(mMockConnectivityManager.getActiveNetworkInfo()).thenReturn(mMockNetworkInfo); in setUpMocks()52 shadowContext.setSystemService(Context.CONNECTIVITY_SERVICE, mMockConnectivityManager); in setUpMocks()
87 private ConnectivityManager mMockConnectivityManager; field in ResetNetworkConfirmFragmentTest114 mMockConnectivityManager); in setUp()142 verify(mMockConnectivityManager).factoryReset(); in testResetButtonClick_connectivityManagerReset()
51 @Mock private ConnectivityManager mMockConnectivityManager; field in IwlanNetworkServiceTest72 .thenReturn(mMockConnectivityManager); in setUp()
94 @Mock private ConnectivityManager mMockConnectivityManager; field in IwlanDataServiceTest177 .thenReturn(mMockConnectivityManager); in setUp()178 when(mMockConnectivityManager.getNetworkCapabilities(eq(mMockNetwork))) in setUp()