Home
last modified time | relevance | path

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

/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DConnectionUtil.java442 " is: " + mCM.getNetworkInfo(networkType).getState()); in waitForNetworkState()
443 if (mCM.getNetworkInfo(networkType).getState() != expectedState) { in waitForNetworkState()
448 mCM.getNetworkInfo(networkType)); in waitForNetworkState()
521 NetworkInfo networkInfo = mCM.getNetworkInfo(ConnectivityManager.TYPE_MOBILE); in isConnectedToMobile()
530 NetworkInfo networkInfo = mCM.getNetworkInfo(ConnectivityManager.TYPE_WIFI); in isConnectedToWifi()
/frameworks/ex/common/java/com/android/common/
DNetworkConnectivityListener.java190 public NetworkInfo getNetworkInfo() { in getNetworkInfo() method in NetworkConnectivityListener
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/connectivity/
DNetworkControllerWifiTest.java231 Mockito.verify(mMockCm).getNetworkInfo(ConnectivityManager.TYPE_WIFI); in testFetchInitialData()
241 when(mMockCm.getNetworkInfo(ConnectivityManager.TYPE_WIFI)).thenReturn(networkInfo); in testFetchInitialData_correctValues()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssNetworkConnectivityHandler.java521 NetworkInfo info = mConnMgr.getNetworkInfo(network);
535 NetworkInfo info = mConnMgr.getNetworkInfo(network);
/frameworks/layoutlib/bridge/src/android/net/
DConnectivityManager.java277 public NetworkInfo getNetworkInfo(int networkType) { in getNetworkInfo() method in ConnectivityManager
283 public NetworkInfo getNetworkInfo(@Nullable Network network) { in getNetworkInfo() method in ConnectivityManager
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DWifiTrackerTest.java774 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()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/
DWifiStressTest.java267 mCm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE).getState()); in testWifiReconnectionAfterSleep()
/frameworks/base/services/core/java/com/android/server/net/
DLockdownVpnTracker.java160 final NetworkInfo vpnInfo = mVpn.getNetworkInfo(); in handleStateChangedLocked()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java160 NetworkInfo ni = mCm.getNetworkInfo(networkType); in waitForNetworkState()
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
DDownloadManagerBaseTest.java106 NetworkInfo info = connManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI); in getWiFiIsOn()
/frameworks/base/services/tests/VpnTests/java/com/android/server/net/
DLockdownVpnTrackerTest.java140 doReturn(mVpnNetworkInfo).when(mVpn).getNetworkInfo(); in setUp()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java234 mConnectivityManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI); in fetchInitialState()
DWifiTracker.java365 mLastNetworkInfo = mConnectivityManager.getNetworkInfo(mWifiManager.getCurrentNetwork()); in forceUpdate()
DAccessPoint.java988 public NetworkInfo getNetworkInfo() { in getNetworkInfo() method in AccessPoint
/frameworks/base/core/java/android/util/
DNtpTrustedTime.java690 final NetworkInfo ni = connectivityManager.getNetworkInfo(network); in isNetworkConnected()
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerBaseTest.java228 NetworkInfo info = connManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI); in getWiFiIsOn()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java1118 if (getNetworkInfo().isConnected()) { in startAlwaysOnVpn()
1438 public NetworkInfo getNetworkInfo() { in getNetworkInfo() method in Vpn
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt16919 method public android.net.NetworkInfo getNetworkInfo(int);
16920 method public android.net.NetworkInfo getNetworkInfo(android.net.Network);