Home
last modified time | relevance | path

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

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/analytics/
DNetworkTypeLoggerTest.java67 when(mUtils.getActiveNetworkInfo(mContext)).thenReturn(null); in test_NullNetworkInfo()
78 when(mUtils.getActiveNetworkInfo(mContext)).thenReturn(WIFI_NETWORK_INFO); in test_NetworkNotConnected()
91 when(mUtils.getActiveNetworkInfo(mContext)).thenReturn(WIFI_NETWORK_INFO); in test_NetworkTypeWifi()
/packages/apps/Email/provider_src/com/android/email/
DEmailConnectivityManager.java144 NetworkInfo info = mConnectivityManager.getActiveNetworkInfo(); in hasConnectivity()
163 NetworkInfo info = cm.getActiveNetworkInfo(); in getActiveNetworkType()
179 NetworkInfo info = mConnectivityManager.getActiveNetworkInfo(); in waitForConnectivity()
/packages/apps/Dialer/java/com/android/dialer/common/
DNetworkUtil.java46 return getNetworkType(connectivityManager.getActiveNetworkInfo()); in getCurrentNetworkType()
58 return connectivityManager.getActiveNetworkInfo(); in getCurrentNetworkInfo()
72 NetworkInfo netInfo = connectivityManager.getActiveNetworkInfo(); in getCurrentNetworkTypeName()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
DGoogleSuggestClient.java148 NetworkInfo networkInfo = getActiveNetworkInfo(); in isNetworkConnected()
152 private NetworkInfo getActiveNetworkInfo() { in getActiveNetworkInfo() method in GoogleSuggestClient
158 return connectivity.getActiveNetworkInfo(); in getActiveNetworkInfo()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DUtils.java505 NetworkInfo info = getActiveNetworkInfo(context); in isConnectedToNetwork()
513 NetworkInfo info = getActiveNetworkInfo(context); in isConnectedToWifi()
522 public NetworkInfo getActiveNetworkInfo(Context context) { in getActiveNetworkInfo() method in Utils
525 return cm.getActiveNetworkInfo(); in getActiveNetworkInfo()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DUtilsTest.java196 when(mockConnectivityManager.getActiveNetworkInfo()).thenReturn(networkInfo); in testGetActiveNetworkInfo()
198 assertEquals(mUtils.getActiveNetworkInfo(mockContext), networkInfo); in testGetActiveNetworkInfo()
415 when(mockConnectivityManager.getActiveNetworkInfo()).thenReturn(networkInfo); in setCurrentNetworkMock()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DConnectivityManagerCompatUtils.java33 manager.getActiveNetworkInfo().getType() == ConnectivityManager.TYPE_MOBILE, in isActiveNetworkMetered()
/packages/apps/TV/src/com/android/tv/util/
DNetworkUtils.java42 NetworkInfo info = connectivityManager.getActiveNetworkInfo(); in isNetworkAvailable()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/
DNetworkTypeLogger.java57 final NetworkInfo networkInfo = mUtils.getActiveNetworkInfo(mContext); in log()
/packages/apps/Contacts/src/com/android/contacts/util/
DSyncUtil.java118 NetworkInfo activeNetwork = cm.getActiveNetworkInfo(); in isNetworkConnected()
/packages/services/Telephony/src/com/android/phone/
DImsUtil.java111 NetworkInfo ni = cm.getActiveNetworkInfo(); in shouldPromoteWfc()
/packages/apps/Email/provider_src/com/android/email/provider/
DRefreshStatusMonitor.java88 final NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo(); in isConnected()
/packages/apps/Settings/src/com/android/settings/dashboard/
DSupportFragment.java166 final NetworkInfo activeNetwork = mConnectivityManager.getActiveNetworkInfo(); in hasInternet()
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DLocationHelper.java239 NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo(); in isConnected()
/packages/apps/Settings/src/com/android/settings/network/
DMobilePlanPreferenceController.java128 NetworkInfo ni = mCm.getActiveNetworkInfo(); in onManageMobilePlanClick()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectToWifiFragment.java257 NetworkInfo netInfo = connMan.getActiveNetworkInfo(); in isNetworkConnected()
DConnectivityListener.java269 NetworkInfo networkInfo = mConnectivityManager.getActiveNetworkInfo(); in updateConnectivityStatus()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DAttachmentUtils.java285 NetworkInfo info = connectivityManager.getActiveNetworkInfo(); in canDownloadAttachment()
DUtils.java1128 final NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo(); in isConnected()
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipConnectionService.java273 NetworkInfo ni = cm.getActiveNetworkInfo(); in isNetworkConnected()
/packages/apps/RetailDemo/src/com/android/retaildemo/
DDownloadVideoTask.java277 NetworkInfo info = cm.getActiveNetworkInfo(); in isConnectedToNetwork()
/packages/apps/RetailDemo/tests/src/com/android/retaildemo/
DDownloadVideoTaskTest.java271 when(mConnectivityManager.getActiveNetworkInfo()).thenReturn(networkInfo); in setNetworkConnected()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionarySettingsFragment.java227 NetworkInfo info = mConnectivityManager.getActiveNetworkInfo(); in refreshNetworkState()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DReverseGeocoder.java315 NetworkInfo networkInfo = mConnectivityManager.getActiveNetworkInfo(); in lookupAddress()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DWifiSetupActivity.java557 NetworkInfo currentConnection = connectivityManager.getActiveNetworkInfo(); in addSummaryPage()