Home
last modified time | relevance | path

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

12

/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DMultinetworkApiTest.java106 "getaddrinfo on " + mCM.getNetworkInfo(network), -errno); in testGetaddrinfo()
125 "setprocnetwork on " + mCM.getNetworkInfo(network), -errno); in testSetprocnetwork()
144 "setprocnetwork on " + mCM.getNetworkInfo(network), -errno); in testSetprocnetwork()
162 "setsocknetwork on " + mCM.getNetworkInfo(network), -errno); in testSetsocknetwork()
173 "DatagramCheck on " + mCM.getNetworkInfo(network), -errno); in testNativeDatagramTransmission()
181 assertNull(mCM.getNetworkInfo(eNoNet)); in testNoSuchNetwork()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiInfoProvider.java209 public NetworkInfo getNetworkInfo() { in getNetworkInfo() method in WifiInfoProvider
263 mNetworkInfo = mConnectivityManager.getNetworkInfo(mNetwork); in updateInfo()
/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/Settings/src/com/android/settings/wifi/
DWifiDialogActivity.java262 if (accessPoint.getNetworkInfo() != null && in onForget()
263 accessPoint.getNetworkInfo().getState() != NetworkInfo.State.DISCONNECTED) { in onForget()
320 NetworkInfo networkInfo = accessPoint.getNetworkInfo(); in onSubmit()
DWifiNoInternetDialog.java113 final NetworkInfo ni = mCM.getNetworkInfo(mNetwork); in onCreate()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/details/
DWifiInfoProviderTest.java108 when(mMockConnectivityManager.getNetworkInfo(any(Network.class))) in setUp()
131 assertThat(mWifiInfoProvider.getNetworkInfo()).isNotNull(); in onStart_allFieldsInitialized()
DWifiDetailsActionButtonsPreferenceControllerTest.java89 when(mMockWifiInfoProvider.getNetworkInfo()).thenReturn(mMockNetworkInfo); in setUp()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DNoNetworkStatePermissionTest.java67 mConnectivityManager.getNetworkInfo(TEST_NETWORK_TYPE); in testGetNetworkInfo()
DConnectivityManagerPermissionTest.java64 mConnectivityManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE); in testGetNetworkInfo()
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
DJobPreconditions.java31 NetworkInfo networkInfo = connectivityManager.getNetworkInfo(network); in isWifiConnected()
/packages/services/BuiltInPrintService/src/com/android/bips/util/
DWifiMonitor.java60 NetworkInfo info = connectivityManager.getNetworkInfo( in WifiMonitor()
/packages/services/Mms/tests/robotests/src/com/android/mms/service/
DMmsNetworkManagerTest.java89 doReturn(mNetworkInfo).when(mCm).getNetworkInfo(eq(mTestNetwork)); in setup()
91 doReturn(mNetworkInfo2).when(mCm).getNetworkInfo(eq(mTestNetwork2)); in setup()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DJobPreconditionsTest.java113 when(mConnectivityManager.getNetworkInfo(any(Network.class))).thenAnswer( in hookUpMocks()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiNoInternetDialogTest.java267 when(mConnectivityManager.getNetworkInfo(any())) in setupNetworkComponents()
/packages/modules/Connectivity/framework/src/android/net/
DIConnectivityManager.aidl65 NetworkInfo getNetworkInfo(int networkType); in getNetworkInfo() method
DConnectivityManager.java1748 public NetworkInfo getNetworkInfo(int networkType) { in getNetworkInfo() method in ConnectivityManager
1750 return mService.getNetworkInfo(networkType); in getNetworkInfo()
1769 public NetworkInfo getNetworkInfo(@Nullable Network network) { in getNetworkInfo() method in ConnectivityManager
/packages/services/Mms/src/com/android/mms/service/
DMmsNetworkManager.java529 final NetworkInfo mmsNetworkInfo = connectivityManager.getNetworkInfo(network); in getApnName()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2Test.java290 when(mMockConnectivityManager.getNetworkInfo(any(Network.class))) in setUp()
464 verify(mMockConnectivityManager, never()).getNetworkInfo(any(Network.class)); in latestNetworkInfo_shouldNotBeFetchedInDisplayPreferenceForDisconnectedNetwork()
473 verify(mMockConnectivityManager, never()).getNetworkInfo(any(Network.class)); in latestNetworkInfo_shouldNotBeFetchedInDisplayPreferenceForNotInRangeNetwork()
1297 when(mMockConnectivityManager.getNetworkInfo(any(Network.class))).thenReturn(null); in networkDisconnectedState_shouldNotFinishActivityForConnectedNetwork()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java295 NetworkInfo networkInfo = mConnectivityManager.getNetworkInfo(network); in getFirstEthernet()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/
DConnectivityListener.java326 NetworkInfo networkInfo = mConnectivityManager.getNetworkInfo(network); in getFirstEthernet()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/viewmodel/
DPreviewActionsViewModel.kt383 val wifi = connMgr.getNetworkInfo(ConnectivityManager.TYPE_WIFI) in <lambda>()
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/
DCtsNetUtils.java636 networkInfo = this.mCm.getNetworkInfo(network); in onReceive()
/packages/modules/Connectivity/tests/integration/src/com/android/server/net/integrationtests/
DNetworkStatsIntegrationTest.kt154 fun shouldRunTests() = cm.getNetworkInfo(packetBridge.internalNetwork)!!.type == TYPE_TEST in <lambda>()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DConnectivityFragment.java367 NetworkInfo nInfo = mConnectivityManager.getNetworkInfo(n); in getNetworkItem()
/packages/apps/Dialer/java/com/android/voicemail/impl/imap/
DImapHelper.java145 NetworkInfo info = connectivityManager.getNetworkInfo(network); in isRoaming()

12