commit | e7a1b7b9f0f712b99eb07ccb67c67d047bb6eaf6 | [log] [tgz] |
---|---|---|
author | Yasin Kilicdere <tyk@google.com> | Wed Jan 19 00:07:57 2022 +0000 |
committer | Yasin Kilicdere <tyk@google.com> | Mon Jan 24 21:59:07 2022 +0000 |
tree | 2f38f1ac33d17855087d894eb3bce9fed642b2f5 | |
parent | c5900ec5711c49f4e81e050a3913254000f34771 [diff] |
Add APIs to UserManager for getting remaining user/profile counts. Add UM.getRemainingCreatableUserCount(userType) method as a system API. Add UM.getRemainingCreatableProfileCount(userType, allowedToRemoveOne) method as a system API. Bug: 208842920 Bug: 142482943 Test: atest android.multiuser.cts.UserManagerTest Change-Id: I286fe10b2c8448aeb03ee6c791d415ef62f50451