Git at Google

commite4ab16ad98b183afbf7a21ad7314372de41a8b57[log][tgz]
authorDan Morrill <morrildl@google.com>Thu Sep 20 20:25:55 2012 -0700
committerDan Morrill <morrildl@google.com>Thu Sep 20 20:25:55 2012 -0700
tree800fb052b52c879fb0cfefb906ca3989d9c12a09
parent957fadc5001be0f0b4d004dbed8c57b6e1f5b46a[diff]
New method returning user metadata.

Change-Id: Ic1a42cf54152fe2e6bcd01b1bd9f1edb77d1710e
diff --git a/api/current.txt b/api/current.txt
index 90d79a4..4731e9b 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -16592,6 +16592,7 @@
 
   public class UserManager {
     method public java.lang.String getUserName();
+    method public boolean isUserAGoat();
   }
 
   public abstract class Vibrator {
diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java
index b532966..82f3448 100644
--- a/core/java/android/os/UserManager.java
+++ b/core/java/android/os/UserManager.java
@@ -72,6 +72,15 @@
         }
     }
 
+   /**
+     * Used to determine whether the user making this call is subject to
+     * teleportations.
+     * @return whether the user making this call is a goat 
+     */
+    public boolean isUserAGoat() {
+        return false;
+    }
+ 
     /**
      * Returns the UserInfo object describing a specific user.
      * Requires {@link android.Manifest.permission#MANAGE_USERS} permission.