Skip to content

Commit 466bd63

Browse files
Dan MorrillAndroid (Google) Code Review
authored andcommitted
Merge "New method returning user metadata." into jb-mr1-dev
2 parents 95c942e + e4ab16a commit 466bd63

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
@@ -16593,6 +16593,7 @@ package android.os {
1659316593

1659416594
public class UserManager {
1659516595
method public java.lang.String getUserName();
16596+
method public boolean isUserAGoat();
1659616597
}
1659716598

1659816599
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)