1f8ea2dcd1ed3cde4b84fbb27b5a55b3fea7ff2a |
|
07-Feb-2012 |
Jeff Sharkey <jsharkey@android.com> |
Send broadcast when changing restrict background. When changing global restrict background status, send connectivity change broadcast, since it radically changes DISCONNECTED/BLOCKED status system-wide. Also reduce verbose stats logging. Bug: 5854466 Change-Id: I3b612c520f50cc3000a3a569b7e0ab5f691cc2bd
/frameworks/base/core/java/android/net/INetworkPolicyListener.aidl
|
fdfef57f498e3021a34342538aef9f1c7ccbae78 |
|
17-Jun-2011 |
Jeff Sharkey <jsharkey@android.com> |
Notify policy listeners about metered ifaces. Currently, kernel definition of metered networks is applied at the interface level. This change maintain list of those metered ifaces and notifies policy listeners, like ConnectivityService. (This gives us a consistent picture of when a network would be blocked.) Bug: 4601393 Change-Id: I277d5ca96ab967a1c1c3f1da8f9587557cd6d74c
/frameworks/base/core/java/android/net/INetworkPolicyListener.aidl
|
c006f1aec15454782c35e028ad64d79a5c161cc1 |
|
20-May-2011 |
Jeff Sharkey <jsharkey@android.com> |
Policy and rules work for ConnectivityManager. Teach ConnectivityManager about UID-specific rules derived from policy, such as rejecting network traffic on "paid" interfaces. Calls that return NetworkInfo now filter based on any REJECT rules in effect for the calling UID. (Added uid parameter if callers that still want all interfaces.) Changed NetworkPolicyManager to derive rules based on current policy combined with PowerManager and ActivityManager status, which it passes to ConnectivityService for eventual enforcement through netd. When rules change the usability of a NetworkInfo for a specific UID, it also dispatches CONNECTIVITY_ACTION broadcasts to that UID. Combined paid and background policy together to match current working definition. Change-Id: I797ea49439fcc487cfe2cbc16703d4b91ceb9af6
/frameworks/base/core/java/android/net/INetworkPolicyListener.aidl
|