android.os.UserIdandroid.os.UserHandle



Project android/platform_frameworks_base in file ...e0c6fe3e1b8/core.java.android.app.ContextImpl.java (2012-08-16)
@@ -87,7 +87,7 @@ import android.os.PowerManager;
 import android.os.Process;
 import android.os.RemoteException;
 import android.os.ServiceManager;
-import android.os.UserId;
+import android.os.UserHandle;
 import android.os.SystemVibrator;
 import android.os.UserManager;
 import android.os.storage.StorageManager;
@@ -1259,7 +1259,7 @@ class ContextImpl extends Context {
     @Override
     public boolean bindService(Intent service, ServiceConnection conn,
             int flags) {
-        return bindService(service, conn, flags, UserId.getUserId(Process.myUid()));
+        return bindService(service, conn, flags, UserHandle.getUserId(Process.myUid()));
     }
 
     /** @hide */
Project android/platform_frameworks_base in file ...c6fe3e1b8/core.java.android.app.PendingIntent.java (2012-08-16)
@@ -27,7 +27,7 @@ import android.os.Handler;
 import android.os.IBinder;
 import android.os.Parcel;
 import android.os.Parcelable;
-import android.os.UserId;
+import android.os.UserHandle;
 import android.util.AndroidException;
 
 /**
@@ -651,7 +651,7 @@ public final class PendingIntent implements Parcelable {
         try {
             int uid = ActivityManagerNative.getDefault()
                 .getUidForIntentSender(mTarget);
-            return uid > 0 ? UserId.getUserId(uid) : -1;
+            return uid > 0 ? UserHandle.getUserId(uid) : -1;
         } catch (RemoteException e) {
             // Should never happen.
             return -1;
Project android/platform_frameworks_base in file ...c6fe3e1b8/core.java.android.app.SearchManager.java (2012-08-16)
@@ -31,7 +31,7 @@ import android.os.Bundle;
 import android.os.Handler;
 import android.os.RemoteException;
 import android.os.ServiceManager;
-import android.os.UserId;
+import android.os.UserHandle;
 import android.text.TextUtils;
 import android.util.Log;
 import android.util.Slog;
@@ -847,7 +847,7 @@ public class SearchManager
      * @hide
      */
     public Intent getAssistIntent(Context context) {
-        return getAssistIntent(context, UserId.myUserId());
+        return getAssistIntent(context, UserHandle.myUserId());
     }
 
     /**
Project android/platform_frameworks_base in file ...e3e1b8/core.java.android.content.IntentSender.java (2012-08-16)
@@ -27,7 +27,7 @@ import android.os.Handler;
 import android.os.IBinder;
 import android.os.Parcel;
 import android.os.Parcelable;
-import android.os.UserId;
+import android.os.UserHandle;
 import android.util.AndroidException;
 
 
@@ -257,7 +257,7 @@ public class IntentSender implements Parcelable {
         try {
             int uid = ActivityManagerNative.getDefault()
                 .getUidForIntentSender(mTarget);
-            return uid > 0 ? UserId.getUserId(uid) : -1;
+            return uid > 0 ? UserHandle.getUserId(uid) : -1;
         } catch (RemoteException e) {
             // Should never happen.
             return -1;
Project android/platform_frameworks_base in file ...c6fe3e1b8/core.java.android.provider.Settings.java (2012-08-16)
@@ -41,7 +41,7 @@ import android.os.Process;
 import android.os.RemoteException;
 import android.os.ServiceManager;
 import android.os.SystemProperties;
-import android.os.UserId;
+import android.os.UserHandle;
 import android.speech.tts.TextToSpeech;
 import android.text.TextUtils;
 import android.util.AndroidException;
@@ -2336,7 +2336,7 @@ public final class Settings {
             if (sLockSettings != null && !sIsSystemProcess
                     && MOVED_TO_LOCK_SETTINGS.contains(name)) {
                 try {
-                    return sLockSettings.getString(name, "0", UserId.getCallingUserId());
+                    return sLockSettings.getString(name, "0", UserHandle.getCallingUserId());
                 } catch (RemoteException re) {
                     // Fall through
                 }