OSDN Git Service

Implement ConnectivityManager.reportBadNetwork() to trigger network validation.
authorPaul Jensen <pauljensen@google.com>
Fri, 29 Aug 2014 13:54:01 +0000 (09:54 -0400)
committerPaul Jensen <pauljensen@google.com>
Thu, 4 Sep 2014 16:02:52 +0000 (12:02 -0400)
commit7ccd3dfd53d8d45c447398ff137f052865dfd3b3
treecf8c6cf7ff5ecc018132ae2b324e360afc7528a0
parent9897c73f12fb8bed7a46069e7142aaaa28d71f83
Implement ConnectivityManager.reportBadNetwork() to trigger network validation.

Network traffic used to perform the network validation is billed to the UID of
the caller of reportBadNetwork.  This change does not change the actions taken
upon validation failing or succeeding:  NetworkMonitor will show the sign-in
notification if a captive portal is found.  NetworkMonitor will inform
ConnectivityService if a network tests functional.  NetworkMonitor will not
take action if a network lacks any connectivity.
Also, remove an unused Thread that was confusing bandwidth billing.

bug:17326268
Change-Id: I7fea23480af54211004a0a1c535a71c2793f21bb
services/core/java/com/android/server/ConnectivityService.java
services/core/java/com/android/server/connectivity/NetworkAgentInfo.java
services/core/java/com/android/server/connectivity/NetworkMonitor.java