Home
last modified time | relevance | path

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

12345678910>>...18

/packages/modules/Connectivity/framework/src/android/net/
DBpfNetMapsUtils.java40 import static android.net.ConnectivityManager.BLOCKED_METERED_REASON_ADMIN_DISABLED;
41 import static android.net.ConnectivityManager.BLOCKED_METERED_REASON_DATA_SAVER;
42 import static android.net.ConnectivityManager.BLOCKED_METERED_REASON_MASK;
43 import static android.net.ConnectivityManager.BLOCKED_METERED_REASON_USER_RESTRICTED;
44 import static android.net.ConnectivityManager.BLOCKED_REASON_APP_BACKGROUND;
45 import static android.net.ConnectivityManager.BLOCKED_REASON_APP_STANDBY;
46 import static android.net.ConnectivityManager.BLOCKED_REASON_BATTERY_SAVER;
47 import static android.net.ConnectivityManager.BLOCKED_REASON_DOZE;
48 import static android.net.ConnectivityManager.BLOCKED_REASON_LOW_POWER_STANDBY;
49 import static android.net.ConnectivityManager.BLOCKED_REASON_NONE;
[all …]
DBpfNetMapsConstants.java19 import static android.net.ConnectivityManager.FIREWALL_CHAIN_BACKGROUND;
20 import static android.net.ConnectivityManager.FIREWALL_CHAIN_DOZABLE;
21 import static android.net.ConnectivityManager.FIREWALL_CHAIN_LOW_POWER_STANDBY;
22 import static android.net.ConnectivityManager.FIREWALL_CHAIN_METERED_ALLOW;
23 import static android.net.ConnectivityManager.FIREWALL_CHAIN_METERED_DENY_ADMIN;
24 import static android.net.ConnectivityManager.FIREWALL_CHAIN_METERED_DENY_USER;
25 import static android.net.ConnectivityManager.FIREWALL_CHAIN_OEM_DENY_1;
26 import static android.net.ConnectivityManager.FIREWALL_CHAIN_OEM_DENY_2;
27 import static android.net.ConnectivityManager.FIREWALL_CHAIN_OEM_DENY_3;
28 import static android.net.ConnectivityManager.FIREWALL_CHAIN_POWERSAVE;
[all …]
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/modules/Connectivity/tests/cts/hostside/networkslicingtestapp/src/com.android.cts.net.hostside.networkslicingtestapp/
DNetworkSelfDeclaredCapabilitiesTest.java22 import android.net.ConnectivityManager;
46 final ConnectivityManager cm = in requestNetwork_withoutRequestCapabilities()
47 (ConnectivityManager) in requestNetwork_withoutRequestCapabilities()
53 final ConnectivityManager.NetworkCallback callback = in requestNetwork_withoutRequestCapabilities()
54 new ConnectivityManager.NetworkCallback(); in requestNetwork_withoutRequestCapabilities()
62 final ConnectivityManager cm = in requestNetwork_withSelfDeclaredCapabilities()
63 (ConnectivityManager) in requestNetwork_withSelfDeclaredCapabilities()
72 final ConnectivityManager.NetworkCallback callback = in requestNetwork_withSelfDeclaredCapabilities()
73 new ConnectivityManager.NetworkCallback(); in requestNetwork_withSelfDeclaredCapabilities()
81 final ConnectivityManager cm = in requestNetwork_lackingRequiredSelfDeclaredCapabilities()
[all …]
/packages/modules/Connectivity/tests/unit/java/android/net/
DConnectivityManagerTest.java19 import static android.net.ConnectivityManager.TYPE_NONE;
66 import android.net.ConnectivityManager.NetworkCallback;
111 final NetworkCapabilities nc = ConnectivityManager.networkCapabilitiesForType(legacyType); in verifyNetworkCapabilities()
146 ConnectivityManager.TYPE_MOBILE, TRANSPORT_CELLULAR); in testNetworkCapabilitiesForTypeMobile()
152 ConnectivityManager.TYPE_MOBILE_CBS, NET_CAPABILITY_CBS); in testNetworkCapabilitiesForTypeMobileCbs()
158 ConnectivityManager.TYPE_MOBILE_DUN, NET_CAPABILITY_DUN); in testNetworkCapabilitiesForTypeMobileDun()
164 ConnectivityManager.TYPE_MOBILE_FOTA, NET_CAPABILITY_FOTA); in testNetworkCapabilitiesForTypeMobileFota()
170 ConnectivityManager.TYPE_MOBILE_HIPRI, TRANSPORT_CELLULAR); in testNetworkCapabilitiesForTypeMobileHipri()
176 ConnectivityManager.TYPE_MOBILE_IMS, NET_CAPABILITY_IMS); in testNetworkCapabilitiesForTypeMobileIms()
182 ConnectivityManager.TYPE_MOBILE_MMS, in testNetworkCapabilitiesForTypeMobileMms()
[all …]
DNetworkStackBpfNetMapsTest.kt90 doTestIsChainEnabled(ConnectivityManager.FIREWALL_CHAIN_DOZABLE) in testIsChainEnabled()
91 doTestIsChainEnabled(ConnectivityManager.FIREWALL_CHAIN_STANDBY) in testIsChainEnabled()
92 doTestIsChainEnabled(ConnectivityManager.FIREWALL_CHAIN_POWERSAVE) in testIsChainEnabled()
93 doTestIsChainEnabled(ConnectivityManager.FIREWALL_CHAIN_RESTRICTED) in testIsChainEnabled()
94 doTestIsChainEnabled(ConnectivityManager.FIREWALL_CHAIN_LOW_POWER_STANDBY) in testIsChainEnabled()
101 val declaredChains = ConnectivityManager::class.java.declaredFields.filter { in testFirewallChainList()
149 mockChainEnabled(ConnectivityManager.FIREWALL_CHAIN_DOZABLE, true) in isUidNetworkingBlocked()
166 mockChainEnabled(ConnectivityManager.FIREWALL_CHAIN_STANDBY, true) in testIsUidNetworkingBlockedByFirewallChains_denyChain()
182 mockChainEnabled(ConnectivityManager.FIREWALL_CHAIN_POWERSAVE, true) in testIsUidNetworkingBlockedByFirewallChains_blockedWithAllowed()
183 mockChainEnabled(ConnectivityManager.FIREWALL_CHAIN_STANDBY, true) in testIsUidNetworkingBlockedByFirewallChains_blockedWithAllowed()
[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/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/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/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSBasicMethodsTest.kt21 import android.net.ConnectivityManager
41 assertTrue(cm.isNetworkSupported(ConnectivityManager.TYPE_WIFI)) in testNetworkTypes()
42 assertTrue(cm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE)) in testNetworkTypes()
43 assertTrue(cm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE_MMS)) in testNetworkTypes()
44 assertTrue(cm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE_FOTA)) in testNetworkTypes()
45 assertFalse(cm.isNetworkSupported(ConnectivityManager.TYPE_PROXY)) in testNetworkTypes()
50 assertTrue(cm.isNetworkSupported(ConnectivityManager.TYPE_ETHERNET)) in testNetworkTypes()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DLegacyTypeTrackerTest.kt30 import android.net.ConnectivityManager.TYPE_ETHERNET
31 import android.net.ConnectivityManager.TYPE_MOBILE
32 import android.net.ConnectivityManager.TYPE_MOBILE_CBS
33 import android.net.ConnectivityManager.TYPE_MOBILE_DUN
34 import android.net.ConnectivityManager.TYPE_MOBILE_EMERGENCY
35 import android.net.ConnectivityManager.TYPE_MOBILE_FOTA
36 import android.net.ConnectivityManager.TYPE_MOBILE_HIPRI
37 import android.net.ConnectivityManager.TYPE_MOBILE_IA
38 import android.net.ConnectivityManager.TYPE_MOBILE_IMS
39 import android.net.ConnectivityManager.TYPE_MOBILE_MMS
[all …]
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/provision/grpc/impl/
DDeviceCheckinClientImplTest.java28 import android.net.ConnectivityManager;
119 ConnectivityManager connectivityManager = mContext.getSystemService( in setUp()
120 ConnectivityManager.class); in setUp()
242 Set<ConnectivityManager.NetworkCallback> networkCallbacks = in getCheckInStatus_noDefaultConnectivity_fallsBackToNonVpn()
244 for (ConnectivityManager.NetworkCallback callback : networkCallbacks) { in getCheckInStatus_noDefaultConnectivity_fallsBackToNonVpn()
280 Set<ConnectivityManager.NetworkCallback> networkCallbacks = in getCheckInStatus_noConnectivityOrNonVpnNetwork_isNotSuccessful()
282 for (ConnectivityManager.NetworkCallback callback : networkCallbacks) { in getCheckInStatus_noConnectivityOrNonVpnNetwork_isNotSuccessful()
310 Set<ConnectivityManager.NetworkCallback> networkCallbacks = in getCheckInStatus_lostNonVpnConnection_isNotSuccessful()
312 for (ConnectivityManager.NetworkCallback callback : networkCallbacks) { in getCheckInStatus_lostNonVpnConnection_isNotSuccessful()
364 Set<ConnectivityManager.NetworkCallback> networkCallbacks = in isDeviceInApprovedCountry_noDefaultConnectivity_fallsBackToNonVpn()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java24 import android.net.ConnectivityManager;
25 import android.net.ConnectivityManager.NetworkCallback;
69 private final ConnectivityManager mConnectivityManager;
101 mConnectivityManager = (ConnectivityManager) mContext.getSystemService( in ConnectivityListener()
142 networkIntentFilter.addAction(ConnectivityManager.CONNECTIVITY_ACTION); in start()
254 return mNetworkType == ConnectivityManager.TYPE_ETHERNET; in isEthernetConnected()
258 if (mNetworkType == ConnectivityManager.TYPE_WIFI) { in isWifiConnected()
270 return mNetworkType == ConnectivityManager.TYPE_MOBILE; in isCellConnected()
296 if (networkInfo != null && networkInfo.getType() == ConnectivityManager.TYPE_ETHERNET) { in getFirstEthernet()
394 mNetworkType = ConnectivityManager.TYPE_NONE; in updateConnectivityStatus()
[all …]
DActiveNetworkProvider.java20 import android.net.ConnectivityManager;
33 private final ConnectivityManager mConnectivityManager;
38 mConnectivityManager = context.getSystemService(ConnectivityManager.class); in ActiveNetworkProvider()
53 return isConnected() && mNetworkInfo.getType() == ConnectivityManager.TYPE_MOBILE; in isTypeCellular()
57 return isConnected() && mNetworkInfo.getType() == ConnectivityManager.TYPE_ETHERNET; in isTypeEthernet()
61 return isConnected() && mNetworkInfo.getType() == ConnectivityManager.TYPE_WIFI; in isTypeWifi()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DUtilsTest.java41 import android.net.ConnectivityManager;
79 @Mock private ConnectivityManager mockConnectivityManager;
170 setCurrentNetworkMock(ConnectivityManager.TYPE_MOBILE, true); in testIsConnectedToNetwork()
176 setCurrentNetworkMock(ConnectivityManager.TYPE_WIFI, true); in testIsConnectedToNetwork()
182 setCurrentNetworkMock(ConnectivityManager.TYPE_WIFI, false); in testIsConnectedToNetwork()
190 setCurrentNetworkMock(ConnectivityManager.TYPE_MOBILE, true); in testIsConnectedToWifi()
193 assertFalse(mUtils.isNetworkTypeConnected(mockContext, ConnectivityManager.TYPE_WIFI)); in testIsConnectedToWifi()
196 setCurrentNetworkMock(ConnectivityManager.TYPE_WIFI, true); in testIsConnectedToWifi()
199 assertTrue(mUtils.isNetworkTypeConnected(mockContext, ConnectivityManager.TYPE_WIFI)); in testIsConnectedToWifi()
202 setCurrentNetworkMock(ConnectivityManager.TYPE_WIFI, false); in testIsConnectedToWifi()
[all …]
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/
DConnectivityListener.java24 import android.net.ConnectivityManager;
69 private final ConnectivityManager mConnectivityManager;
108 mConnectivityManager = mContext.getSystemService(ConnectivityManager.class); in ConnectivityListener()
154 networkIntentFilter.addAction(ConnectivityManager.CONNECTIVITY_ACTION); in onStart()
285 return mNetworkType == ConnectivityManager.TYPE_ETHERNET; in isEthernetConnected()
289 if (mNetworkType == ConnectivityManager.TYPE_WIFI) { in isWifiConnected()
301 return mNetworkType == ConnectivityManager.TYPE_MOBILE; in isCellConnected()
327 if (networkInfo != null && networkInfo.getType() == ConnectivityManager.TYPE_ETHERNET) { in getFirstEthernet()
424 mNetworkType = ConnectivityManager.TYPE_NONE; in updateConnectivityStatus()
427 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/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/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/services/BuiltInPrintService/src/com/android/bips/util/
DWifiMonitor.java23 import android.net.ConnectivityManager;
48 ConnectivityManager connectivityManager = in WifiMonitor()
49 (ConnectivityManager) service.getSystemService(Context.CONNECTIVITY_SERVICE); in WifiMonitor()
59 if (ConnectivityManager.CONNECTIVITY_ACTION.equals(intent.getAction())) { in WifiMonitor()
61 ConnectivityManager.TYPE_WIFI); in WifiMonitor()
70 }, ConnectivityManager.CONNECTIVITY_ACTION); in WifiMonitor()
/packages/modules/Connectivity/framework/src/android/net/connectivity/
DConnectivityInternalApiUtil.java20 import android.net.ConnectivityManager;
47 final ConnectivityManager cm = ctx.getSystemService(ConnectivityManager.class); in getCompanionDeviceManagerProxyService()
58 final ConnectivityManager cm = ctx.getSystemService(ConnectivityManager.class); in getRoutingCoordinatorManager()
/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/tests/cts/net/src/android/net/cts/
DConnectivityManagerTest.java39 import static android.net.ConnectivityManager.BLOCKED_METERED_REASON_ADMIN_DISABLED;
40 import static android.net.ConnectivityManager.BLOCKED_METERED_REASON_USER_RESTRICTED;
41 import static android.net.ConnectivityManager.BLOCKED_REASON_APP_BACKGROUND;
42 import static android.net.ConnectivityManager.BLOCKED_REASON_APP_STANDBY;
43 import static android.net.ConnectivityManager.BLOCKED_REASON_BATTERY_SAVER;
44 import static android.net.ConnectivityManager.BLOCKED_REASON_DOZE;
45 import static android.net.ConnectivityManager.BLOCKED_REASON_LOW_POWER_STANDBY;
46 import static android.net.ConnectivityManager.BLOCKED_REASON_OEM_DENY;
47 import static android.net.ConnectivityManager.BLOCKED_REASON_RESTRICTED_MODE;
48 import static android.net.ConnectivityManager.EXTRA_NETWORK;
[all …]
/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/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/network/
DNetworkMonitorTest.kt20 import android.net.ConnectivityManager
54 @Mock lateinit var mockConnectivityManager: ConnectivityManager
55 @Captor lateinit var callback: ArgumentCaptor<ConnectivityManager.NetworkCallback>
61 mockSystemService(context, ConnectivityManager::class.java) { mockConnectivityManager } in setup()
96 val callback: ConnectivityManager.NetworkCallback = callback.getValue() in testRegistersNetworkCallback()
117 val callback: ConnectivityManager.NetworkCallback = callback.getValue() in testCallbackEmitsNewNetworkStatus()
149 val callback: ConnectivityManager.NetworkCallback = callback.getValue() in testNetworkStatusReplayedForNewSubscribers()
183 val callback: ConnectivityManager.NetworkCallback = callback.getValue() in testNetworkStatusIsDistinctUntilChanged()

12345678910>>...18