Skip to content

Commit e4ab16a

Browse files
author
Dan Morrill
committed
New method returning user metadata.
Change-Id: Ic1a42cf54152fe2e6bcd01b1bd9f1edb77d1710e
1 parent 957fadc commit e4ab16a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

api/current.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16592,6 +16592,7 @@ package android.os {
1659216592

1659316593
public class UserManager {
1659416594
method public java.lang.String getUserName();
16595+
method public boolean isUserAGoat();
1659516596
}
1659616597

1659716598
public abstract class Vibrator {

core/java/android/os/UserManager.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ public String getUserName() {
7272
}
7373
}
7474

75+
/**
76+
* Used to determine whether the user making this call is subject to
77+
* teleportations.
78+
* @return whether the user making this call is a goat
79+
*/
80+
public boolean isUserAGoat() {
81+
return false;
82+
}
83+
7584
/**
7685
* Returns the UserInfo object describing a specific user.
7786
* Requires {@link android.Manifest.permission#MANAGE_USERS} permission.

0 commit comments

Comments
 (0)