Home
last modified time | relevance | path

Searched refs:getNetworkInfo (Results 1 – 25 of 31) sorted by relevance

12

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/details/
DWifiInfoProviderImplTest.java110 when(mMockConnectivityManager.getNetworkInfo(any(Network.class))) in setUp()
133 assertThat(mWifiInfoProviderImpl.getNetworkInfo()).isNotNull(); in onStart_allFieldsInitialized()
176 assertThat(mWifiInfoProviderImpl.getNetworkInfo()).isEqualTo(mMockNetworkInfo); in networkStateChangedIntent_shouldRefetchInfo()
179 when(mMockConnectivityManager.getNetworkInfo(any(Network.class))) in networkStateChangedIntent_shouldRefetchInfo()
186 assertThat(mWifiInfoProviderImpl.getNetworkInfo()).isEqualTo(mMockNetworkInfo2); in networkStateChangedIntent_shouldRefetchInfo()
195 assertThat(mWifiInfoProviderImpl.getNetworkInfo()).isEqualTo(mMockNetworkInfo); in rssiChangedIntent_shouldRefetchInfo()
198 when(mMockConnectivityManager.getNetworkInfo(any(Network.class))) in rssiChangedIntent_shouldRefetchInfo()
205 assertThat(mWifiInfoProviderImpl.getNetworkInfo()).isEqualTo(mMockNetworkInfo2); in rssiChangedIntent_shouldRefetchInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details/
DWifiDetailPreferenceControllerTest.java267 when(mockConnectivityManager.getNetworkInfo(any(Network.class))) in setUp()
438 verify(mockConnectivityManager, times(1)).getNetworkInfo(any(Network.class)); in latestNetworkInfo_shouldBeFetchedInDisplayPreferenceForConnectedNetwork()
447 verify(mockConnectivityManager, never()).getNetworkInfo(any(Network.class)); in latestNetworkInfo_shouldNotBeFetchedInDisplayPreferenceForDisconnectedNetwork()
456 verify(mockConnectivityManager, never()).getNetworkInfo(any(Network.class)); in latestNetworkInfo_shouldNotBeFetchedInDisplayPreferenceForNotInRangeNetwork()
1176 verify(mockConnectivityManager, times(1)).getNetworkInfo(any(Network.class)); in networkStateChangedIntent_shouldRefetchInfo()
1181 verify(mockConnectivityManager, times(2)).getNetworkInfo(any(Network.class)); in networkStateChangedIntent_shouldRefetchInfo()
1191 verify(mockConnectivityManager, times(1)).getNetworkInfo(any(Network.class)); in networkStateChangedIntent_shouldRefetchInfoForConnectedNetwork()
1196 verify(mockConnectivityManager, times(2)).getNetworkInfo(any(Network.class)); in networkStateChangedIntent_shouldRefetchInfoForConnectedNetwork()
1206 verify(mockConnectivityManager, times(1)).getNetworkInfo(any(Network.class)); in rssiChangedIntent_shouldRefetchInfo()
1211 verify(mockConnectivityManager, times(2)).getNetworkInfo(any(Network.class)); in rssiChangedIntent_shouldRefetchInfo()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiDialogActivity.java104 if (accessPoint.getNetworkInfo() != null && in onForget()
105 accessPoint.getNetworkInfo().getState() != NetworkInfo.State.DISCONNECTED) { in onForget()
143 NetworkInfo networkInfo = accessPoint.getNetworkInfo(); in onSubmit()
DWifiSettings.java319 NetworkInfo info = connectivity.getNetworkInfo( in onActivityCreated()
1065 if (mSelectedAccessPoint.getNetworkInfo() != null && in forget()
1066 mSelectedAccessPoint.getNetworkInfo().getState() != State.DISCONNECTED) { in forget()
DWifiNoInternetDialog.java112 final NetworkInfo ni = mCM.getNetworkInfo(mNetwork); in onCreate()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiDialogActivity.java112 if (accessPoint.getNetworkInfo() != null && in onForget()
113 accessPoint.getNetworkInfo().getState() != NetworkInfo.State.DISCONNECTED) { in onForget()
151 NetworkInfo networkInfo = accessPoint.getNetworkInfo(); in onSubmit()
DWifiSettings.java320 NetworkInfo info = connectivity.getNetworkInfo( in onActivityCreated()
1096 if (mSelectedAccessPoint.getNetworkInfo() != null && in forget()
1097 mSelectedAccessPoint.getNetworkInfo().getState() != State.DISCONNECTED) { in forget()
DWifiNoInternetDialog.java113 final NetworkInfo ni = mCM.getNetworkInfo(mNetwork); in onCreate()
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsNetworkManager.java197 final NetworkInfo mmsNetworkInfo = mConnectivityManager.getNetworkInfo( in getApnName()
217 mConnectivityManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE_MMS); in onMmsConnectivityChange()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiInfoProviderImpl.java212 public NetworkInfo getNetworkInfo() { in getNetworkInfo() method in WifiInfoProviderImpl
248 mNetworkInfo = mConnectivityManager.getNetworkInfo(mNetwork); in updateInfo()
DWifiInfoProvider.java81 NetworkInfo getNetworkInfo(); in getNetworkInfo() method
DWifiDetailsFragment.java218 || mWifiInfoProvider.getNetworkInfo() == null in updateUi()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiUtil.java212 if (accessPoint.getNetworkInfo() != null in forget()
213 && accessPoint.getNetworkInfo().getState() != NetworkInfo.State.DISCONNECTED) { in forget()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java299 final NetworkInfo info = mSystemFacade.getNetworkInfo(mNetwork, mInfo.mUid, in run()
343 final NetworkInfo info = mSystemFacade.getNetworkInfo(mNetwork, mInfo.mUid, in run()
720 final NetworkInfo info = mSystemFacade.getNetworkInfo(mNetwork, mInfo.mUid, mIgnoreBlocked); in checkConnectivity()
DSystemFacade.java40 public NetworkInfo getNetworkInfo(Network network, int uid, boolean ignoreBlocked); in getNetworkInfo() method
DRealSystemFacade.java60 public NetworkInfo getNetworkInfo(Network network, int uid, boolean ignoreBlocked) { in getNetworkInfo() method in RealSystemFacade
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
DJobPreconditions.java31 NetworkInfo networkInfo = connectivityManager.getNetworkInfo(network); in isWifiConnected()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/slice/
DWifiSlice.java218 final NetworkInfo.State state = accessPoint.getNetworkInfo().getState(); in getAccessPointLevelIcon()
369 final NetworkInfo networkInfo = accessPoint.getNetworkInfo(); in getSummary()
DWifiScanWorker.java142 final NetworkInfo networkInfo = accessPoint.getNetworkInfo(); in getState()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DJobPreconditionsTest.java113 when(mConnectivityManager.getNetworkInfo(any(Network.class))).thenAnswer( in hookUpMocks()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DFakeSystemFacade.java96 public NetworkInfo getNetworkInfo(Network network, int uid, boolean ignoreBlocked) { in getNetworkInfo() method in FakeSystemFacade
/packages/services/Mms/src/com/android/mms/service/
DMmsNetworkManager.java315 final NetworkInfo mmsNetworkInfo = connectivityManager.getNetworkInfo(network); in getApnName()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/dpp/
DWifiNetworkListFragmentTest.java153 assertThat(accessPoint.getNetworkInfo()).isNotNull(); in setupConnectedAccessPoint()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java235 NetworkInfo networkInfo = mConnectivityManager.getNetworkInfo(network); in getFirstEthernet()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiSliceTest.java147 doReturn(networkInfo).when(accessPoint).getNetworkInfo(); in createAccessPoint()

12