summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/net/NetworkPolicyManagerService.java
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2012-08-10 17:06:33 -0700
committerAmith Yamasani <yamasani@google.com>2012-08-11 18:24:07 -0700
commit258848d2ae04f447ff1c18023fa76b139fcc0862 (patch)
tree8736421f4007d81206d0f0ea8b32a2013508976a /services/java/com/android/server/net/NetworkPolicyManagerService.java
parent75f0fac91bd7fa67fa76cfdd4e163b9f35be0432 (diff)
downloadframeworks_base-258848d2ae04f447ff1c18023fa76b139fcc0862.zip
frameworks_base-258848d2ae04f447ff1c18023fa76b139fcc0862.tar.gz
frameworks_base-258848d2ae04f447ff1c18023fa76b139fcc0862.tar.bz2
User Manager service to manage users and query user details
Moved a bunch of methods from PackageManager to UserManager. Fix launching of activities from recents to correct user. Guest creation APIs Change-Id: I0733405e6eb2829675665e225c759d6baa2b708f
Diffstat (limited to 'services/java/com/android/server/net/NetworkPolicyManagerService.java')
-rw-r--r--services/java/com/android/server/net/NetworkPolicyManagerService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/java/com/android/server/net/NetworkPolicyManagerService.java b/services/java/com/android/server/net/NetworkPolicyManagerService.java
index 7e5f8cf..46c24b0 100644
--- a/services/java/com/android/server/net/NetworkPolicyManagerService.java
+++ b/services/java/com/android/server/net/NetworkPolicyManagerService.java
@@ -113,6 +113,7 @@ import android.os.MessageQueue.IdleHandler;
import android.os.RemoteCallbackList;
import android.os.RemoteException;
import android.os.UserId;
+import android.os.UserManager;
import android.provider.Settings;
import android.telephony.TelephonyManager;
import android.text.format.Formatter;
@@ -1707,7 +1708,8 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
}
private void updateRulesForAppLocked(int appId) {
- for (UserInfo user : mContext.getPackageManager().getUsers()) {
+ UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE);
+ for (UserInfo user : um.getUsers()) {
final int uid = UserId.getUid(user.id, appId);
updateRulesForUidLocked(uid);
}