Home
last modified time | relevance | path

Searched refs:connectivityManager (Results 1 – 19 of 19) sorted by relevance

/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
DJobPreconditions.java18 ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService( in isNetworkMetered() local
20 if (connectivityManager != null) { in isNetworkMetered()
21 return connectivityManager.isActiveNetworkMetered(); in isNetworkMetered()
27 ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService( in isWifiConnected() local
29 if (connectivityManager != null) { in isWifiConnected()
30 for (Network network : connectivityManager.getAllNetworks()) { in isWifiConnected()
31 NetworkInfo networkInfo = connectivityManager.getNetworkInfo(network); in isWifiConnected()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageUtils.java43 ConnectivityManager connectivityManager = ConnectivityManager.from(context); in hasMobileData() local
44 return connectivityManager != null && connectivityManager in hasMobileData()
56 ConnectivityManager connectivityManager = ConnectivityManager.from(context); in hasWifiRadio() local
57 return connectivityManager != null && connectivityManager.isNetworkSupported(TYPE_WIFI); in hasWifiRadio()
/packages/services/Mms/src/com/android/mms/service/
DMmsNetworkManager.java211 final ConnectivityManager connectivityManager = getConnectivityManager(); in startNewNetworkRequestLocked() local
213 connectivityManager.requestNetwork( in startNewNetworkRequestLocked()
224 final ConnectivityManager connectivityManager = getConnectivityManager(); in releaseRequestLocked() local
226 connectivityManager.unregisterNetworkCallback(callback); in releaseRequestLocked()
290 final ConnectivityManager connectivityManager = getConnectivityManager(); in getApnName() local
291 final NetworkInfo mmsNetworkInfo = connectivityManager.getNetworkInfo(network); in getApnName()
DMmsHttpClient.java91 ConnectivityManager connectivityManager) { in MmsHttpClient() argument
94 mConnectivityManager = connectivityManager; in MmsHttpClient()
/packages/apps/Dialer/java/com/android/dialer/common/
DNetworkUtil.java44 ConnectivityManager connectivityManager = in getCurrentNetworkType() local
46 return getNetworkType(connectivityManager.getActiveNetworkInfo()); in getCurrentNetworkType()
56 ConnectivityManager connectivityManager = in getCurrentNetworkInfo() local
58 return connectivityManager.getActiveNetworkInfo(); in getCurrentNetworkInfo()
70 ConnectivityManager connectivityManager = in getCurrentNetworkTypeName() local
72 NetworkInfo netInfo = connectivityManager.getActiveNetworkInfo(); in getCurrentNetworkTypeName()
/packages/apps/Settings/src/com/android/settings/
DSettingsDumpService.java89 ConnectivityManager connectivityManager = getSystemService(ConnectivityManager.class); in dumpDataUsage() local
92 if (connectivityManager.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)) { in dumpDataUsage()
103 if (connectivityManager.isNetworkSupported(ConnectivityManager.TYPE_WIFI)) { in dumpDataUsage()
106 if (connectivityManager.isNetworkSupported(ConnectivityManager.TYPE_ETHERNET)) { in dumpDataUsage()
DResetNetworkConfirm.java74 ConnectivityManager connectivityManager = (ConnectivityManager)
76 if (connectivityManager != null) {
77 connectivityManager.factoryReset();
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DLocationHelper.java170 private final ConnectivityManager connectivityManager; field in LocationHelper.LocationHelperInternal
186 connectivityManager = in LocationHelperInternal()
243 if (connectivityManager == null) { in isConnected()
246 NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo(); in isConnected()
/packages/apps/TV/src/com/android/tv/util/
DNetworkUtils.java38 public static boolean isNetworkAvailable(@Nullable ConnectivityManager connectivityManager) { in isNetworkAvailable() argument
39 if (connectivityManager == null) { in isNetworkAvailable()
42 NetworkInfo info = connectivityManager.getActiveNetworkInfo(); in isNetworkAvailable()
/packages/apps/Test/connectivity/UID/src/com/android/tests/connectivity/uid/
DConnectivityTestActivity.java34 ConnectivityManager connectivityManager; field in ConnectivityTestActivity
57 connectivityManager = (ConnectivityManager) in checkNow()
59 netInfo = connectivityManager.getActiveNetworkInfo(); in checkNow()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DUtilsTest.java56 private ConnectivityManager connectivityManager; field in UtilsTest
69 .thenReturn(connectivityManager); in setUp()
78 when(connectivityManager.getLinkProperties(network)).thenReturn(lp); in testGetWifiIpAddresses_succeeds()
87 when(connectivityManager.getLinkProperties(network)).thenReturn(null); in testGetWifiIpAddresses_nullLinkProperties()
/packages/apps/Settings/src/com/android/settings/wifi/
DConnectivityManagerWrapper.java26 public ConnectivityManagerWrapper(ConnectivityManager connectivityManager) { in ConnectivityManagerWrapper() argument
27 mConnectivityManager = connectivityManager; in ConnectivityManagerWrapper()
/packages/apps/Email/provider_src/com/android/email/provider/
DRefreshStatusMonitor.java86 final ConnectivityManager connectivityManager = in isConnected() local
88 final NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo(); in isConnected()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DAttachmentUtils.java283 ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService( in canDownloadAttachment() local
285 NetworkInfo info = connectivityManager.getActiveNetworkInfo(); in canDownloadAttachment()
DUtils.java1126 final ConnectivityManager connectivityManager = in isConnected() local
1128 final NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo(); in isConnected()
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsRequest.java290 private static void requestRoute(final ConnectivityManager connectivityManager, in requestRoute() argument
301 final boolean requested = requestRouteToHostAddress(connectivityManager, addr); in requestRoute()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DWifiSetupActivity.java555 ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService( in addSummaryPage() local
557 NetworkInfo currentConnection = connectivityManager.getActiveNetworkInfo(); in addSummaryPage()
/packages/apps/Dialer/java/com/android/voicemail/impl/imap/
DImapHelper.java143 ConnectivityManager connectivityManager = in isRoaming() local
145 NetworkInfo info = connectivityManager.getNetworkInfo(mNetwork); in isRoaming()
/packages/apps/Settings/src/com/android/settings/widget/
DSettingsAppWidgetProvider.java398 final ConnectivityManager connectivityManager = in requestStateChange() local
401 connectivityManager.stopTethering(ConnectivityManager.TETHERING_WIFI); in requestStateChange()