diff options
author | Dianne Hackborn <hackbod@google.com> | 2012-08-16 12:53:44 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-08-16 12:53:44 -0700 |
commit | 758a8ccd5c94a55810ecf98fdffb80dba5c9e7b0 (patch) | |
tree | 71577f9e165ada61b1b30e1248968d19d792a084 /cmds | |
parent | 1643406d85bee7b3156b20129eb7c39ac16a0b48 (diff) | |
parent | 846fe415350bd0668f8a2190d1c78cf07c97ef60 (diff) | |
download | android_development-758a8ccd5c94a55810ecf98fdffb80dba5c9e7b0.tar.gz android_development-758a8ccd5c94a55810ecf98fdffb80dba5c9e7b0.tar.bz2 android_development-758a8ccd5c94a55810ecf98fdffb80dba5c9e7b0.zip |
am 846fe415: am 77201b54: Rename UserId to UserHandle.
* commit '846fe415350bd0668f8a2190d1c78cf07c97ef60':
Rename UserId to UserHandle.
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/monkey/src/com/android/commands/monkey/Monkey.java | 4 | ||||
-rw-r--r-- | cmds/monkey/src/com/android/commands/monkey/MonkeySourceNetworkViews.java | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/cmds/monkey/src/com/android/commands/monkey/Monkey.java b/cmds/monkey/src/com/android/commands/monkey/Monkey.java index fcf08931b..706dd0f80 100644 --- a/cmds/monkey/src/com/android/commands/monkey/Monkey.java +++ b/cmds/monkey/src/com/android/commands/monkey/Monkey.java @@ -32,7 +32,7 @@ import android.os.ServiceManager; import android.os.StrictMode; import android.os.SystemClock; import android.os.SystemProperties; -import android.os.UserId; +import android.os.UserHandle; import android.view.IWindowManager; import android.view.Surface; @@ -953,7 +953,7 @@ public class Monkey { intent.addCategory(category); } List<ResolveInfo> mainApps = mPm.queryIntentActivities(intent, null, 0, - UserId.myUserId()); + UserHandle.myUserId()); if (mainApps == null || mainApps.size() == 0) { System.err.println("// Warning: no activities found for category " + category); continue; diff --git a/cmds/monkey/src/com/android/commands/monkey/MonkeySourceNetworkViews.java b/cmds/monkey/src/com/android/commands/monkey/MonkeySourceNetworkViews.java index 590f406e1..ddb83da10 100644 --- a/cmds/monkey/src/com/android/commands/monkey/MonkeySourceNetworkViews.java +++ b/cmds/monkey/src/com/android/commands/monkey/MonkeySourceNetworkViews.java @@ -24,7 +24,7 @@ import android.content.pm.IPackageManager; import android.graphics.Rect; import android.os.RemoteException; import android.os.ServiceManager; -import android.os.UserId; +import android.os.UserHandle; import android.view.accessibility.AccessibilityEvent; import android.view.accessibility.AccessibilityNodeInfo; @@ -140,7 +140,7 @@ public class MonkeySourceNetworkViews { try { AccessibilityNodeInfo node = event.getSource(); String packageName = node.getPackageName().toString(); - ApplicationInfo appInfo = sPm.getApplicationInfo(packageName, 0, UserId.myUserId()); + ApplicationInfo appInfo = sPm.getApplicationInfo(packageName, 0, UserHandle.myUserId()); Class<?> klass; klass = getIdClass(packageName, appInfo.sourceDir); return klass.getField(stringId).getInt(null); @@ -195,7 +195,7 @@ public class MonkeySourceNetworkViews { String packageName = node.getPackageName().toString(); try{ Class<?> klass; - ApplicationInfo appInfo = sPm.getApplicationInfo(packageName, 0, UserId.myUserId()); + ApplicationInfo appInfo = sPm.getApplicationInfo(packageName, 0, UserHandle.myUserId()); klass = getIdClass(packageName, appInfo.sourceDir); StringBuilder fieldBuilder = new StringBuilder(); Field[] fields = klass.getFields(); |