am 466bd636: Merge "New method returning user metadata." into jb-mr1-dev

* commit '466bd636812684aeb8161f144597cc3b3ed39078':
  New method returning user metadata.
This commit is contained in:
Dan Morrill
2012-09-21 09:57:16 -07:00
committed by Android Git Automerger
2 changed files with 10 additions and 0 deletions

View File

@@ -16593,6 +16593,7 @@ package android.os {
public class UserManager { public class UserManager {
method public java.lang.String getUserName(); method public java.lang.String getUserName();
method public boolean isUserAGoat();
} }
public abstract class Vibrator { public abstract class Vibrator {

View File

@@ -72,6 +72,15 @@ public class UserManager {
} }
} }
/**
* 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. * Returns the UserInfo object describing a specific user.
* Requires {@link android.Manifest.permission#MANAGE_USERS} permission. * Requires {@link android.Manifest.permission#MANAGE_USERS} permission.