diff options
author | Lucas Lin <lucaslin@google.com> | 2020-05-05 06:38:31 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-05-05 06:38:31 +0000 |
commit | bfc2429dda05c0f3736f3d918db52f2ab90871b9 (patch) | |
tree | e5952b3438bae65e8611f28c0f82765a442a71c7 /res | |
parent | 49acb2f09912dd70ce5d5a656649caecfca266e9 (diff) | |
parent | e8d540337021c8ce9cfd011d35e6121152bc2102 (diff) | |
download | platform_packages_modules_NetworkStack-bfc2429dda05c0f3736f3d918db52f2ab90871b9.tar.gz platform_packages_modules_NetworkStack-bfc2429dda05c0f3736f3d918db52f2ab90871b9.tar.bz2 platform_packages_modules_NetworkStack-bfc2429dda05c0f3736f3d918db52f2ab90871b9.zip |
Merge "Add EvaluatingBandwidthState to evaluate network bandwidth"
Diffstat (limited to 'res')
-rw-r--r-- | res/values/config.xml | 12 | ||||
-rw-r--r-- | res/values/overlayable.xml | 6 |
2 files changed, 18 insertions, 0 deletions
diff --git a/res/values/config.xml b/res/values/config.xml index fdbc9db8..766a8077 100644 --- a/res/values/config.xml +++ b/res/values/config.xml @@ -85,4 +85,16 @@ failed. --> <string name="config_network_validation_failed_content_regexp" translatable="false"></string> <string name="config_network_validation_success_content_regexp" translatable="false"></string> + + <!-- URL for evaluating bandwidth. If the download cannot be finished before the timeout, then + it means the bandwidth check is failed. If the download can be finished before the timeout, + then it means the bandwidth check is passed. So the OEMs should set this URL appropriately. + --> + <string name="config_evaluating_bandwidth_url" translatable="false"></string> + <!-- A timeout for evaluating bandwidth. --> + <integer name="config_evaluating_bandwidth_timeout_ms"></integer> + <!-- The retry timer will start from config_min_retry_timer, and the timer will be exponential + increased until reaching the config_max_retry_timer. --> + <integer name="config_evaluating_bandwidth_min_retry_timer_ms"></integer> + <integer name="config_evaluating_bandwidth_max_retry_timer_ms"></integer> </resources> diff --git a/res/values/overlayable.xml b/res/values/overlayable.xml index 7dcd663e..b2967b9b 100644 --- a/res/values/overlayable.xml +++ b/res/values/overlayable.xml @@ -71,6 +71,12 @@ could result in valid captive portals being incorrectly classified as having no connectivity.--> <item type="bool" name="config_force_dns_probe_private_ip_no_internet"/> + + <!-- Configurations for bandwidth check. --> + <item type="string" name="config_evaluating_bandwidth_url"/> + <item type="integer" name="config_evaluating_bandwidth_timeout_ms"/> + <item type="integer" name="config_evaluating_bandwidth_min_retry_timer_ms"/> + <item type="integer" name="config_evaluating_bandwidth_max_retry_timer_ms"/> </policy> </overlayable> </resources> |