Home
last modified time | relevance | path

Searched refs:ConnectivitySettingsManager (Results 1 – 24 of 24) sorted by relevance

/packages/modules/Connectivity/tests/common/java/android/net/
DConnectivitySettingsManagerTest.kt19 import android.net.ConnectivitySettingsManager.CAPTIVE_PORTAL_MODE in <lambda>()
20 import android.net.ConnectivitySettingsManager.CAPTIVE_PORTAL_MODE_AVOID in <lambda>()
21 import android.net.ConnectivitySettingsManager.CAPTIVE_PORTAL_MODE_IGNORE in <lambda>()
22 import android.net.ConnectivitySettingsManager.CAPTIVE_PORTAL_MODE_PROMPT in <lambda>()
23 import android.net.ConnectivitySettingsManager.CONNECTIVITY_RELEASE_PENDING_INTENT_DELAY_MS in <lambda>()
24 import android.net.ConnectivitySettingsManager.DATA_ACTIVITY_TIMEOUT_MOBILE in <lambda>()
25 import android.net.ConnectivitySettingsManager.DATA_ACTIVITY_TIMEOUT_WIFI in <lambda>()
26 import android.net.ConnectivitySettingsManager.DNS_RESOLVER_MAX_SAMPLES in <lambda>()
27 import android.net.ConnectivitySettingsManager.DNS_RESOLVER_MIN_SAMPLES in <lambda>()
28 import android.net.ConnectivitySettingsManager.DNS_RESOLVER_SAMPLE_VALIDITY_SECONDS in <lambda>()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DPrivateDnsModeDialogPreferenceTest.java19 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OFF;
20 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OPPORTUNISTIC;
21 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_PROVIDER_HOSTNAME;
32 import android.net.ConnectivitySettingsManager;
118 ConnectivitySettingsManager.setPrivateDnsMode(mContext, PRIVATE_DNS_MODE_OFF); in testOnBindDialogView_containsCorrectData()
119 ConnectivitySettingsManager.setPrivateDnsHostname(mContext, HOST_NAME); in testOnBindDialogView_containsCorrectData()
157 ConnectivitySettingsManager.setPrivateDnsMode(mContext, PRIVATE_DNS_MODE_OFF); in testOnClick_positiveButtonClicked_saveData()
163 assertThat(ConnectivitySettingsManager.getPrivateDnsMode(mContext)).isEqualTo( in testOnClick_positiveButtonClicked_saveData()
170 ConnectivitySettingsManager.setPrivateDnsMode(mContext, PRIVATE_DNS_MODE_OFF); in testOnClick_negativeButtonClicked_doNothing()
176 assertThat(ConnectivitySettingsManager.getPrivateDnsMode(mContext)).isEqualTo( in testOnClick_negativeButtonClicked_doNothing()
DPrivateDnsPreferenceControllerTest.java19 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OFF;
20 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OPPORTUNISTIC;
21 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_PROVIDER_HOSTNAME;
52 import android.net.ConnectivitySettingsManager;
208 ConnectivitySettingsManager.setPrivateDnsMode(mContext, PRIVATE_DNS_MODE_OFF); in getSummary_PrivateDnsModeOff()
209 ConnectivitySettingsManager.setPrivateDnsHostname(mContext, HOSTNAME); in getSummary_PrivateDnsModeOff()
219 ConnectivitySettingsManager.setPrivateDnsMode(mContext, PRIVATE_DNS_MODE_OPPORTUNISTIC); in getSummary_PrivateDnsModeOpportunistic()
220 ConnectivitySettingsManager.setPrivateDnsHostname(mContext, HOSTNAME); in getSummary_PrivateDnsModeOpportunistic()
244 ConnectivitySettingsManager.setPrivateDnsMode(mContext, PRIVATE_DNS_MODE_PROVIDER_HOSTNAME); in getSummary_PrivateDnsModeProviderHostname()
245 ConnectivitySettingsManager.setPrivateDnsHostname(mContext, HOSTNAME); in getSummary_PrivateDnsModeProviderHostname()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DIngressRateLimitPreferenceControllerTest.java24 import android.net.ConnectivitySettingsManager;
68 ConnectivitySettingsManager.getIngressRateLimitInBytesPerSecond(mContext); in onPreferenceChanged_select5Mbits_shouldEnableIngressRateLimit()
78 ConnectivitySettingsManager.getIngressRateLimitInBytesPerSecond(mContext); in onPreferenceChanged_selectDisabled_shouldDisableIngressRateLimit()
91 ConnectivitySettingsManager.setIngressRateLimitInBytesPerSecond(mContext, newRateLimit); in updateState_preferenceShouldBeSelected()
99 ConnectivitySettingsManager.setIngressRateLimitInBytesPerSecond(mContext, newRateLimit); in onDeveloperOptionsSwitchDisabled_shouldDisablePreference()
104 assertThat(ConnectivitySettingsManager.getIngressRateLimitInBytesPerSecond( in onDeveloperOptionsSwitchDisabled_shouldDisablePreference()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DDnsManagerTest.java19 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_DEFAULT_MODE;
20 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE;
21 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OFF;
22 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OPPORTUNISTIC;
23 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_PROVIDER_HOSTNAME;
24 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_SPECIFIER;
47 import android.net.ConnectivitySettingsManager;
180 ConnectivitySettingsManager.setPrivateDnsMode(mCtx, PRIVATE_DNS_MODE_PROVIDER_HOSTNAME); in testTrackedValidationUpdates()
181 ConnectivitySettingsManager.setPrivateDnsHostname(mCtx, "strictmode.com"); in testTrackedValidationUpdates()
288 ConnectivitySettingsManager.setPrivateDnsMode(mCtx, PRIVATE_DNS_MODE_OFF); in testIgnoreUntrackedValidationUpdates()
[all …]
DMultinetworkPolicyTrackerTest.kt24 import android.net.ConnectivitySettingsManager.NETWORK_AVOID_BAD_WIFI
25 import android.net.ConnectivitySettingsManager.NETWORK_METERED_MULTIPATH_PREFERENCE
DPermissionMonitorTest.java33 import static android.net.ConnectivitySettingsManager.UIDS_ALLOWED_ON_RESTRICTED_NETWORKS;
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DDnsManager.java19 import static android.net.ConnectivitySettingsManager.DNS_RESOLVER_MAX_SAMPLES;
20 import static android.net.ConnectivitySettingsManager.DNS_RESOLVER_MIN_SAMPLES;
21 import static android.net.ConnectivitySettingsManager.DNS_RESOLVER_SAMPLE_VALIDITY_SECONDS;
22 import static android.net.ConnectivitySettingsManager.DNS_RESOLVER_SUCCESS_THRESHOLD_PERCENT;
23 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_DEFAULT_MODE;
24 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE;
25 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OFF;
26 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_PROVIDER_HOSTNAME;
27 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_SPECIFIER;
36 import android.net.ConnectivitySettingsManager;
[all …]
DProxyTracker.java19 import static android.net.ConnectivitySettingsManager.GLOBAL_HTTP_PROXY_EXCLUSION_LIST;
20 import static android.net.ConnectivitySettingsManager.GLOBAL_HTTP_PROXY_HOST;
21 import static android.net.ConnectivitySettingsManager.GLOBAL_HTTP_PROXY_PAC;
22 import static android.net.ConnectivitySettingsManager.GLOBAL_HTTP_PROXY_PORT;
DMultinetworkPolicyTracker.java19 import static android.net.ConnectivitySettingsManager.NETWORK_AVOID_BAD_WIFI;
20 import static android.net.ConnectivitySettingsManager.NETWORK_METERED_MULTIPATH_PREFERENCE;
DPermissionMonitor.java26 import static android.net.ConnectivitySettingsManager.UIDS_ALLOWED_ON_RESTRICTED_NETWORKS;
50 import android.net.ConnectivitySettingsManager;
219 return ConnectivitySettingsManager.getUidsAllowedOnRestrictedNetworks(context); in getUidsAllowedOnRestrictedNetworks()
/packages/apps/Settings/src/com/android/settings/development/
DIngressRateLimitPreferenceController.java20 import android.net.ConnectivitySettingsManager;
51 ConnectivitySettingsManager.setIngressRateLimitInBytesPerSecond(mContext, value); in onPreferenceChange()
62 ConnectivitySettingsManager.getIngressRateLimitInBytesPerSecond(mContext)); in updateState()
78 ConnectivitySettingsManager.setIngressRateLimitInBytesPerSecond(mContext, in onDeveloperOptionsSwitchDisabled()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DRateLimitTest.java38 import android.net.ConnectivitySettingsManager;
190 ConnectivitySettingsManager.setIngressRateLimitInBytesPerSecond(mContext, -1); in tearDown()
317 ConnectivitySettingsManager.setIngressRateLimitInBytesPerSecond(mContext, in testIngressRateLimit_testLimit()
325 ConnectivitySettingsManager.setIngressRateLimitInBytesPerSecond(mContext, -1); in testIngressRateLimit_testLimit()
335 ConnectivitySettingsManager.setIngressRateLimitInBytesPerSecond(mContext, in testIngressRateLimit_testSetting()
338 ConnectivitySettingsManager.getIngressRateLimitInBytesPerSecond(mContext)); in testIngressRateLimit_testSetting()
339 ConnectivitySettingsManager.setIngressRateLimitInBytesPerSecond(mContext, -1); in testIngressRateLimit_testSetting()
341 ConnectivitySettingsManager.getIngressRateLimitInBytesPerSecond(mContext)); in testIngressRateLimit_testSetting()
DConnectivityManagerTest.java79 import static android.net.ConnectivitySettingsManager.setUidsAllowedOnRestrictedNetworks;
146 import android.net.ConnectivitySettingsManager;
2659 ConnectivitySettingsManager.getNetworkAvoidBadWifi(mContext);
2660 final int curPrivateDnsMode = ConnectivitySettingsManager.getPrivateDnsMode(mContext);
2688 ConnectivitySettingsManager.setPrivateDnsMode(mContext,
2689 ConnectivitySettingsManager.PRIVATE_DNS_MODE_OFF);
2690 ConnectivitySettingsManager.setNetworkAvoidBadWifi(mContext,
2691 ConnectivitySettingsManager.NETWORK_AVOID_BAD_WIFI_IGNORE);
2700 ConnectivitySettingsManager.PRIVATE_DNS_MODE_OPPORTUNISTIC,
2701 ConnectivitySettingsManager.NETWORK_AVOID_BAD_WIFI_PROMPT);
[all …]
/packages/apps/Settings/src/com/android/settings/network/
DPrivateDnsModeDialogPreference.java18 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OFF;
19 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OPPORTUNISTIC;
20 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_PROVIDER_HOSTNAME;
30 import android.net.ConnectivitySettingsManager;
146 mMode = ConnectivitySettingsManager.getPrivateDnsMode(context); in onBindDialogView()
187 ConnectivitySettingsManager.setPrivateDnsHostname(context, in onClick()
193 ConnectivitySettingsManager.setPrivateDnsMode(context, mMode); in onClick()
DPrivateDnsPreferenceController.java19 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OFF;
20 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OPPORTUNISTIC;
21 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_PROVIDER_HOSTNAME;
32 import android.net.ConnectivitySettingsManager;
125 final int mode = ConnectivitySettingsManager.getPrivateDnsMode(mContext); in getSummary()
/packages/modules/NetworkStack/tests/unit/src/android/net/shared/
DPrivateDnsConfigTest.java19 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OFF;
20 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OPPORTUNISTIC;
21 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_PROVIDER_HOSTNAME;
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/shared/
DPrivateDnsConfig.java19 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OFF;
20 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OPPORTUNISTIC;
21 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_PROVIDER_HOSTNAME;
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSBlockedReasonsTest.kt30 import android.net.ConnectivitySettingsManager
338 ConnectivitySettingsManager.setMobileDataPreferredUids(context, setOf(Process.myUid())) in cellNc()
347 ConnectivitySettingsManager.setMobileDataPreferredUids(context, setOf()) in cellNc()
/packages/modules/Connectivity/framework/src/android/net/
DConnectivitySettingsManager.java59 public class ConnectivitySettingsManager { class
60 private static final String TAG = ConnectivitySettingsManager.class.getSimpleName();
62 private ConnectivitySettingsManager() {} in ConnectivitySettingsManager() method in ConnectivitySettingsManager
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java68 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OPPORTUNISTIC;
176 import android.net.ConnectivitySettingsManager;
1882 ConnectivitySettingsManager.CONNECTIVITY_RELEASE_PENDING_INTENT_DELAY_MS, 5_000);
1992 ConnectivitySettingsManager.NETWORK_SWITCH_NOTIFICATION_DAILY_LIMIT,
1995 ConnectivitySettingsManager.NETWORK_SWITCH_NOTIFICATION_RATE_LIMIT_MILLIS,
2035 mIngressRateLimit = ConnectivitySettingsManager.getIngressRateLimitInBytesPerSecond(
2219 ConnectivitySettingsManager.MOBILE_DATA_ALWAYS_ON, true /* defaultValue */);
2221 ConnectivitySettingsManager.WIFI_ALWAYS_REQUESTED, false /* defaultValue */);
2237 Settings.Global.getUriFor(ConnectivitySettingsManager.MOBILE_DATA_ALWAYS_ON),
2242 Settings.Global.getUriFor(ConnectivitySettingsManager.WIFI_ALWAYS_REQUESTED),
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java88 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OFF;
89 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_OPPORTUNISTIC;
90 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_PROVIDER_HOSTNAME;
287 import android.net.ConnectivitySettingsManager;
1961 setCaptivePortalMode(ConnectivitySettingsManager.CAPTIVE_PORTAL_MODE_PROMPT); in setUp()
4928 setCaptivePortalMode(ConnectivitySettingsManager.CAPTIVE_PORTAL_MODE_AVOID);
4946 setCaptivePortalMode(ConnectivitySettingsManager.CAPTIVE_PORTAL_MODE_AVOID);
4959 setCaptivePortalMode(ConnectivitySettingsManager.CAPTIVE_PORTAL_MODE_AVOID);
5779 Settings.Global.putInt(cr, ConnectivitySettingsManager.CAPTIVE_PORTAL_MODE, mode);
5784 Settings.Global.putInt(cr, ConnectivitySettingsManager.MOBILE_DATA_ALWAYS_ON,
[all …]
/packages/modules/Connectivity/framework/api/
Dmodule-lib-current.txt83 public class ConnectivitySettingsManager {
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java22 import static android.net.ConnectivitySettingsManager.PRIVATE_DNS_MODE_PROVIDER_HOSTNAME;