diff options
author | Jeff Sharkey <jsharkey@android.com> | 2011-05-20 15:29:23 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2011-05-23 18:39:56 -0700 |
commit | a4620793038b9a9163b26c6ece882cb454fcbf87 (patch) | |
tree | 450e8f355658bcc56bf19dc00f8c63d3464cb69f /core/java/android/net | |
parent | 442fa21e98835ceb966f196906907eb236d38d65 (diff) | |
download | frameworks_base-a4620793038b9a9163b26c6ece882cb454fcbf87.zip frameworks_base-a4620793038b9a9163b26c6ece882cb454fcbf87.tar.gz frameworks_base-a4620793038b9a9163b26c6ece882cb454fcbf87.tar.bz2 |
Observe screen on/off events in NetworkPolicy.
The POLICY_REJECT_BACKGROUND policy requires that network traffic be
blocked when a UID goes into the background. Even if the UID has an
activity in the foreground, it's considered "background" if the screen
is turned off.
This changes watches for SCREEN_ON/OFF broadcasts, and rule generation
now observes screen state. It also introduces an observer pattern so
that ActivityManager doesn't directly know about NetworkPolicy, and
moves the service management into SystemServer.
Change-Id: Ie7a84929d3ca60ae4578d47e19d5a8da10fd8d58
Diffstat (limited to 'core/java/android/net')
-rw-r--r-- | core/java/android/net/INetworkPolicyManager.aidl | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/core/java/android/net/INetworkPolicyManager.aidl b/core/java/android/net/INetworkPolicyManager.aidl index fa6eae5..d9351ee 100644 --- a/core/java/android/net/INetworkPolicyManager.aidl +++ b/core/java/android/net/INetworkPolicyManager.aidl @@ -23,9 +23,6 @@ package android.net; */ interface INetworkPolicyManager { - void onForegroundActivitiesChanged(int uid, int pid, boolean foregroundActivities); - void onProcessDied(int uid, int pid); - void setUidPolicy(int uid, int policy); int getUidPolicy(int uid); |