diff options
author | Paul Jensen <pauljensen@google.com> | 2015-04-07 12:43:13 -0400 |
---|---|---|
committer | Paul Jensen <pauljensen@google.com> | 2015-04-13 18:48:54 +0000 |
commit | bfd17b75a67e3a3c9a99a87db35be4d753e6bd08 (patch) | |
tree | fa647e7b4304f471703d6a26a8c10659271ac392 /services/core/java/com/android/server/connectivity/NetworkMonitor.java | |
parent | 238e0f934f1f47263b384bc745ae0678c777130d (diff) | |
download | frameworks_base-bfd17b75a67e3a3c9a99a87db35be4d753e6bd08.zip frameworks_base-bfd17b75a67e3a3c9a99a87db35be4d753e6bd08.tar.gz frameworks_base-bfd17b75a67e3a3c9a99a87db35be4d753e6bd08.tar.bz2 |
Add ConnectivityManager.reportNetworkConnectivity() API
This new API allows reporting networks that are perceived to provide Internet
connectivity and networks that are not. This allows the framework to avoid
needlessly reevaluating networks where the apps perception matches the
framework's perception. This was not possible with the prior API,
reportBadNetwork.
Bug: 16214361
Change-Id: Id4409bd7538854bd837231fb50e693c10a62b4f2
Diffstat (limited to 'services/core/java/com/android/server/connectivity/NetworkMonitor.java')
-rw-r--r-- | services/core/java/com/android/server/connectivity/NetworkMonitor.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/connectivity/NetworkMonitor.java b/services/core/java/com/android/server/connectivity/NetworkMonitor.java index 87f78c1..76220db 100644 --- a/services/core/java/com/android/server/connectivity/NetworkMonitor.java +++ b/services/core/java/com/android/server/connectivity/NetworkMonitor.java @@ -220,7 +220,7 @@ public class NetworkMonitor extends StateMachine { // If a network is not validated, make one attempt every 10 mins to see if it starts working. private static final int REEVALUATE_PAUSE_MS = 10*60*1000; private static final int PERIODIC_ATTEMPTS = 1; - // When an application calls reportBadNetwork, only make one attempt. + // When an application calls reportNetworkConnectivity, only make one attempt. private static final int REEVALUATE_ATTEMPTS = 1; private final int mReevaluateDelayMs; private int mReevaluateToken = 0; |