commit | 9e932dddc8ddf310e174a03bea86b5d0393abd32 | [log] [tgz] |
---|---|---|
author | Felipe Leme <felipeal@google.com> | Wed Sep 07 18:03:36 2022 -0700 |
committer | Felipe Leme <felipeal@google.com> | Thu Sep 08 09:12:53 2022 -0700 |
tree | 4d2c611b7f45e5d3e39d9ea237c398b7ec07fe05 | |
parent | 0e7702f7c85ea38e8749d2013e46a34e4105bf1f [diff] |
Added more unit tests for UserManagerInternal. This CL adds tests for the following 2 methods: - void assignUserToDisplay(int userId) - void unassignUserFromDisplay(int displayId) It also makes some minor changes on those methods to throw exceptions on invalid usage. Bug: 244452695 Bug: 244644281 Test: atest FrameworksMockingServicesTests:com.android.server.pm.UserManagerServiceTest UserManagerInternalTest Change-Id: Ieb17e7e8a43f7d697f98a45d1b0660d999ca28ec