From d3986be5e40115158cb3e41f251cad41cf08eeab Mon Sep 17 00:00:00 2001 From: Tony Mak Date: Tue, 1 Nov 2016 18:12:10 +0000 Subject: [PATCH] Add javadoc for profileGroupId According to the implementation of getProfileParent, profileGroupId == parent user id. And we have already assumed this is true in some part of code in DPMS. Test: Javadocs change Change-Id: Ie48fdf24fb0428d4ee3f09bed2ac26cb17e1ced9 --- core/java/android/content/pm/UserInfo.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/java/android/content/pm/UserInfo.java b/core/java/android/content/pm/UserInfo.java index 2be36578d5f58..e796fa7db1aaf 100644 --- a/core/java/android/content/pm/UserInfo.java +++ b/core/java/android/content/pm/UserInfo.java @@ -102,6 +102,11 @@ public class UserInfo implements Parcelable { public long creationTime; public long lastLoggedInTime; public String lastLoggedInFingerprint; + /** + * If this user is a parent user, it would be its own user id. + * If this user is a child user, it would be its parent user id. + * Otherwise, it would be {@link #NO_PROFILE_GROUP_ID}. + */ public int profileGroupId; public int restrictedProfileParentId;