Home
last modified time | relevance | path

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

12345678910>>...12

/packages/modules/Connectivity/tests/unit/java/android/net/
DConnectivityManagerTest.java19 import static android.net.ConnectivityManager.TYPE_NONE;
61 import android.net.ConnectivityManager.NetworkCallback;
97 final NetworkCapabilities nc = ConnectivityManager.networkCapabilitiesForType(legacyType); in verifyNetworkCapabilities()
132 ConnectivityManager.TYPE_MOBILE, TRANSPORT_CELLULAR); in testNetworkCapabilitiesForTypeMobile()
138 ConnectivityManager.TYPE_MOBILE_CBS, NET_CAPABILITY_CBS); in testNetworkCapabilitiesForTypeMobileCbs()
144 ConnectivityManager.TYPE_MOBILE_DUN, NET_CAPABILITY_DUN); in testNetworkCapabilitiesForTypeMobileDun()
150 ConnectivityManager.TYPE_MOBILE_FOTA, NET_CAPABILITY_FOTA); in testNetworkCapabilitiesForTypeMobileFota()
156 ConnectivityManager.TYPE_MOBILE_HIPRI, TRANSPORT_CELLULAR); in testNetworkCapabilitiesForTypeMobileHipri()
162 ConnectivityManager.TYPE_MOBILE_IMS, NET_CAPABILITY_IMS); in testNetworkCapabilitiesForTypeMobileIms()
168 ConnectivityManager.TYPE_MOBILE_MMS, in testNetworkCapabilitiesForTypeMobileMms()
[all …]
/packages/modules/Connectivity/Tethering/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt7 Landroid/net/ConnectivityManager$CallbackHandler;->DBG:Z
8 Landroid/net/ConnectivityManager$CallbackHandler;->getObject(Landroid/os/Message;Ljava/lang/Class;)…
9 Landroid/net/ConnectivityManager$CallbackHandler;->TAG:Ljava/lang/String;
10 Landroid/net/ConnectivityManager$Errors;->TOO_MANY_REQUESTS:I
11 Landroid/net/ConnectivityManager$LegacyRequest;-><init>()V
12 Landroid/net/ConnectivityManager$LegacyRequest;->clearDnsBinding()V
13 Landroid/net/ConnectivityManager$LegacyRequest;->currentNetwork:Landroid/net/Network;
14 Landroid/net/ConnectivityManager$LegacyRequest;->delay:I
15 Landroid/net/ConnectivityManager$LegacyRequest;->expireSequenceNumber:I
16 Landroid/net/ConnectivityManager$LegacyRequest;->networkCallback:Landroid/net/ConnectivityManager$N…
[all …]
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsNetworkManager.java23 import android.net.ConnectivityManager;
74 private final ConnectivityManager mConnectivityManager;
91 if (!ConnectivityManager.CONNECTIVITY_ACTION.equals(intent.getAction())) {
95 if (networkType != ConnectivityManager.TYPE_MOBILE_MMS) {
104 mConnectivityManager = (ConnectivityManager) mContext.getSystemService( in MmsNetworkManager()
108 mConnectivityIntentFilter.addAction(ConnectivityManager.CONNECTIVITY_ACTION); in MmsNetworkManager()
113 ConnectivityManager getConnectivityManager() { in getConnectivityManager()
198 ConnectivityManager.TYPE_MOBILE_MMS); in getApnName()
217 mConnectivityManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE_MMS); in onMmsConnectivityChange()
303 mConnectivityManager, ConnectivityManager.TYPE_MOBILE, FEATURE_ENABLE_MMS); in startMmsConnectivity()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DLegacyTypeTrackerTest.kt28 import android.net.ConnectivityManager.TYPE_ETHERNET
29 import android.net.ConnectivityManager.TYPE_MOBILE
30 import android.net.ConnectivityManager.TYPE_MOBILE_CBS
31 import android.net.ConnectivityManager.TYPE_MOBILE_DUN
32 import android.net.ConnectivityManager.TYPE_MOBILE_EMERGENCY
33 import android.net.ConnectivityManager.TYPE_MOBILE_FOTA
34 import android.net.ConnectivityManager.TYPE_MOBILE_HIPRI
35 import android.net.ConnectivityManager.TYPE_MOBILE_IA
36 import android.net.ConnectivityManager.TYPE_MOBILE_IMS
37 import android.net.ConnectivityManager.TYPE_MOBILE_MMS
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DUtilsTest.java41 import android.net.ConnectivityManager;
78 @Mock private ConnectivityManager mockConnectivityManager;
168 setCurrentNetworkMock(ConnectivityManager.TYPE_MOBILE, true); in testIsConnectedToNetwork()
174 setCurrentNetworkMock(ConnectivityManager.TYPE_WIFI, true); in testIsConnectedToNetwork()
180 setCurrentNetworkMock(ConnectivityManager.TYPE_WIFI, false); in testIsConnectedToNetwork()
188 setCurrentNetworkMock(ConnectivityManager.TYPE_MOBILE, true); in testIsConnectedToWifi()
191 assertFalse(mUtils.isNetworkTypeConnected(mockContext, ConnectivityManager.TYPE_WIFI)); in testIsConnectedToWifi()
194 setCurrentNetworkMock(ConnectivityManager.TYPE_WIFI, true); in testIsConnectedToWifi()
197 assertTrue(mUtils.isNetworkTypeConnected(mockContext, ConnectivityManager.TYPE_WIFI)); in testIsConnectedToWifi()
200 setCurrentNetworkMock(ConnectivityManager.TYPE_WIFI, false); in testIsConnectedToWifi()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java25 import android.net.ConnectivityManager;
67 private final ConnectivityManager mConnectivityManager;
103 mConnectivityManager = (ConnectivityManager) mContext.getSystemService( in ConnectivityListener()
142 networkIntentFilter.addAction(ConnectivityManager.CONNECTIVITY_ACTION); in onStart()
263 return mNetworkType == ConnectivityManager.TYPE_ETHERNET; in isEthernetConnected()
267 if (mNetworkType == ConnectivityManager.TYPE_WIFI) { in isWifiConnected()
279 return mNetworkType == ConnectivityManager.TYPE_MOBILE; in isCellConnected()
294 if (networkInfo != null && networkInfo.getType() == ConnectivityManager.TYPE_ETHERNET) { in getFirstEthernet()
373 mNetworkType = ConnectivityManager.TYPE_NONE; in updateConnectivityStatus()
376 case ConnectivityManager.TYPE_WIFI: { in updateConnectivityStatus()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuNetworkConnectionTest.java34 import android.net.ConnectivityManager;
81 @Mock ConnectivityManager mConnectivityManager;
207 ArgumentCaptor<ConnectivityManager.NetworkCallback> networkCallbackCaptor = in verifyNetworkCallbackInvokedWhenConnected()
208 ArgumentCaptor.forClass(ConnectivityManager.NetworkCallback.class); in verifyNetworkCallbackInvokedWhenConnected()
211 ConnectivityManager.NetworkCallback callback = networkCallbackCaptor.getValue(); in verifyNetworkCallbackInvokedWhenConnected()
221 verify(mConnectivityManager).unregisterNetworkCallback(any(ConnectivityManager in verifyNetworkCallbackInvokedWhenConnected()
237 ArgumentCaptor<ConnectivityManager.NetworkCallback> networkCallbackCaptor = in verifyNetworkCallbackWithoutOnAvailable()
238 ArgumentCaptor.forClass(ConnectivityManager.NetworkCallback.class); in verifyNetworkCallbackWithoutOnAvailable()
241 ConnectivityManager.NetworkCallback callback = networkCallbackCaptor.getValue(); in verifyNetworkCallbackWithoutOnAvailable()
260 ArgumentCaptor<ConnectivityManager.NetworkCallback> networkCallbackCaptor = in verifyNetworkConnectionTimeout()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DConnectivityManagerTest.java32 import static android.net.ConnectivityManager.EXTRA_NETWORK;
33 import static android.net.ConnectivityManager.EXTRA_NETWORK_REQUEST;
34 import static android.net.ConnectivityManager.PROFILE_NETWORK_PREFERENCE_ENTERPRISE;
35 import static android.net.ConnectivityManager.TYPE_BLUETOOTH;
36 import static android.net.ConnectivityManager.TYPE_ETHERNET;
37 import static android.net.ConnectivityManager.TYPE_MOBILE_CBS;
38 import static android.net.ConnectivityManager.TYPE_MOBILE_DUN;
39 import static android.net.ConnectivityManager.TYPE_MOBILE_EMERGENCY;
40 import static android.net.ConnectivityManager.TYPE_MOBILE_FOTA;
41 import static android.net.ConnectivityManager.TYPE_MOBILE_HIPRI;
[all …]
/packages/modules/Connectivity/tests/integration/util/com/android/server/
DConnectivityServiceTestUtils.kt21 import android.net.ConnectivityManager.TYPE_BLUETOOTH
22 import android.net.ConnectivityManager.TYPE_ETHERNET
23 import android.net.ConnectivityManager.TYPE_MOBILE
24 import android.net.ConnectivityManager.TYPE_NONE
25 import android.net.ConnectivityManager.TYPE_TEST
26 import android.net.ConnectivityManager.TYPE_VPN
27 import android.net.ConnectivityManager.TYPE_WIFI
/packages/services/Mms/src/com/android/mms/service/
DMmsNetworkManager.java23 import android.net.ConnectivityManager;
71 private ConnectivityManager.NetworkCallback mNetworkCallback;
73 private volatile ConnectivityManager mConnectivityManager;
143 private class NetworkRequestCallback extends ConnectivityManager.NetworkCallback {
313 final ConnectivityManager connectivityManager = getConnectivityManager(); in startNewNetworkRequestLocked()
324 private void releaseRequestLocked(ConnectivityManager.NetworkCallback callback) { in releaseRequestLocked()
326 final ConnectivityManager connectivityManager = getConnectivityManager(); in releaseRequestLocked()
353 private ConnectivityManager getConnectivityManager() { in getConnectivityManager()
355 mConnectivityManager = (ConnectivityManager) mContext.getSystemService( in getConnectivityManager()
392 final ConnectivityManager connectivityManager = getConnectivityManager(); in getApnName()
/packages/apps/Dialer/java/com/android/dialer/common/
DNetworkUtil.java21 import android.net.ConnectivityManager;
44 ConnectivityManager connectivityManager = in getCurrentNetworkType()
45 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); in getCurrentNetworkType()
56 ConnectivityManager connectivityManager = in getCurrentNetworkInfo()
57 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); in getCurrentNetworkInfo()
70 ConnectivityManager connectivityManager = in getCurrentNetworkTypeName()
71 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); in getCurrentNetworkTypeName()
86 case ConnectivityManager.TYPE_WIFI: in getNetworkType()
88 case ConnectivityManager.TYPE_MOBILE: in getNetworkType()
/packages/modules/Connectivity/framework/src/android/net/
DConnectivityFrameworkInitializer.java45 ConnectivityManager.class, in registerServiceWrappers()
48 return new ConnectivityManager(context, icm); in registerServiceWrappers()
56 final ConnectivityManager cm = context.getSystemService( in registerServiceWrappers()
57 ConnectivityManager.class); in registerServiceWrappers()
66 final ConnectivityManager cm = context.getSystemService( in registerServiceWrappers()
67 ConnectivityManager.class); in registerServiceWrappers()
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
DJobPreconditions.java4 import android.net.ConnectivityManager;
18 ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService( in isNetworkMetered()
27 ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService( in isWifiConnected()
32 if (networkInfo.getType() == ConnectivityManager.TYPE_WIFI in isWifiConnected()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiNoInternetDialog.java19 import static android.net.ConnectivityManager.ACTION_PROMPT_LOST_VALIDATION;
20 import static android.net.ConnectivityManager.ACTION_PROMPT_PARTIAL_CONNECTIVITY;
21 import static android.net.ConnectivityManager.ACTION_PROMPT_UNVALIDATED;
27 import android.net.ConnectivityManager;
28 import android.net.ConnectivityManager.NetworkCallback;
54 private ConnectivityManager mCM;
57 private ConnectivityManager.NetworkCallback mNetworkCallback;
80 mNetwork = intent.getParcelableExtra(ConnectivityManager.EXTRA_NETWORK); in onCreate()
110 mCM = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); in onCreate()
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/
DCtsNetUtils.java43 import android.net.ConnectivityManager;
44 import android.net.ConnectivityManager.NetworkCallback;
103 private final ConnectivityManager mCm;
112 mCm = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE); in CtsNetUtils()
209 mCm, ConnectivityManager.TYPE_WIFI, NetworkInfo.State.CONNECTED); in connectToWifi()
211 filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION); in connectToWifi()
387 mCm, ConnectivityManager.TYPE_WIFI, NetworkInfo.State.DISCONNECTED); in disconnectFromWifi()
389 filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION); in disconnectFromWifi()
608 private final ConnectivityManager mCm;
610 public ConnectivityActionReceiver(ConnectivityManager cm, int networkType, in ConnectivityActionReceiver()
[all …]
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/
DImsPdnNetworkFetcher.java20 import android.net.ConnectivityManager;
68 ConnectivityManager cm = getConnectivityManager(); in requestNetwork()
70 ConnectivityManager.NetworkCallback cb = in requestNetwork()
71 new ConnectivityManager.NetworkCallback() { in requestNetwork()
85 ConnectivityManager getConnectivityManager() { in getConnectivityManager()
86 return context.getSystemService(ConnectivityManager.class); in getConnectivityManager()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitor.java19 import static android.net.ConnectivityManager.TYPE_BLUETOOTH;
20 import static android.net.ConnectivityManager.TYPE_ETHERNET;
21 import static android.net.ConnectivityManager.TYPE_MOBILE;
22 import static android.net.ConnectivityManager.TYPE_MOBILE_DUN;
23 import static android.net.ConnectivityManager.TYPE_MOBILE_HIPRI;
24 import static android.net.ConnectivityManager.TYPE_WIFI;
32 import android.net.ConnectivityManager;
33 import android.net.ConnectivityManager.NetworkCallback;
120 private ConnectivityManager mCM;
148 mCM = (ConnectivityManager) ctx.getSystemService(Context.CONNECTIVITY_SERVICE); in UpstreamNetworkMonitor()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/util/
DWifiMonitor.java23 import android.net.ConnectivityManager;
46 ConnectivityManager connectivityManager = in WifiMonitor()
47 (ConnectivityManager) service.getSystemService(Context.CONNECTIVITY_SERVICE); in WifiMonitor()
56 if (ConnectivityManager.CONNECTIVITY_ACTION.equals(intent.getAction())) { in WifiMonitor()
65 }, ConnectivityManager.CONNECTIVITY_ACTION); in WifiMonitor()
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherSwitchBarController.java19 import static android.net.ConnectivityManager.TETHERING_WIFI;
25 import android.net.ConnectivityManager;
50 private final ConnectivityManager mConnectivityManager;
56 final ConnectivityManager.OnStartTetheringCallback mOnStartTetheringCallback =
57 new ConnectivityManager.OnStartTetheringCallback() {
76 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); in WifiTetherSwitchBarController()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DNetworkUtilsTest.java24 import android.net.ConnectivityManager;
38 ConnectivityManager connectivityManager = mock(ConnectivityManager.class); in hasMobileNetwork_hasCellularCapabilities_returnsTrue()
51 ConnectivityManager connectivityManager = mock(ConnectivityManager.class); in hasMobileNetwork_hasNoCellularCapabilities_returnsFalse()
/packages/apps/Settings/src/com/android/settings/network/
DTetherEnabler.java19 import static android.net.ConnectivityManager.TETHERING_BLUETOOTH;
20 import static android.net.ConnectivityManager.TETHERING_USB;
21 import static android.net.ConnectivityManager.TETHERING_WIFI;
33 import android.net.ConnectivityManager;
108 private final ConnectivityManager mConnectivityManager;
120 ConnectivityManager.OnStartTetheringCallback mOnStartTetheringCallback;
131 (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); in TetherEnabler()
381 ConnectivityManager.OnStartTetheringCallback {
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DConnectivityManagerCompatUtils.java19 import android.net.ConnectivityManager;
27 ConnectivityManager.class, "isActiveNetworkMetered");
29 public static boolean isActiveNetworkMetered(final ConnectivityManager manager) { in isActiveNetworkMetered()
33 manager.getActiveNetworkInfo().getType() == ConnectivityManager.TYPE_MOBILE, in isActiveNetworkMetered()
/packages/modules/Connectivity/tests/cts/net/appForApi23/src/android/net/cts/appForApi23/
DConnectivityReceiver.java21 import android.net.ConnectivityManager;
31 if (ConnectivityManager.CONNECTIVITY_ACTION.equals(intent.getAction())) { in onReceive()
32 int networkType = intent.getIntExtra(ConnectivityManager.EXTRA_NETWORK_TYPE, 0); in onReceive()
33 if (networkType == ConnectivityManager.TYPE_WIFI) { in onReceive()
/packages/modules/Connectivity/tests/cts/hostside/app2/src/com/android/cts/net/hostside/app2/
DMyService.java18 import static android.net.ConnectivityManager.ACTION_RESTRICT_BACKGROUND_CHANGED;
33 import android.net.ConnectivityManager;
50 ConnectivityManager mCm;
53 private ConnectivityManager.NetworkCallback mNetworkCallback;
104 mNetworkCallback = new ConnectivityManager.NetworkCallback() {
181 mCm = (ConnectivityManager) getApplicationContext() in onCreate()
/packages/apps/Settings/src/com/android/settings/development/
DAdbIpAddressPreferenceController.java21 import android.net.ConnectivityManager;
48 ConnectivityManager.CONNECTIVITY_ACTION,
56 private final ConnectivityManager mCM;
61 mCM = context.getSystemService(ConnectivityManager.class); in AdbIpAddressPreferenceController()
129 private static String getDefaultIpAddresses(ConnectivityManager cm) { in getDefaultIpAddresses()

12345678910>>...12