diff options
| author | 2022-01-20 10:19:45 -0800 | |
|---|---|---|
| committer | 2022-01-25 18:46:59 -0800 | |
| commit | 52660ae71b356d6c743cf61026c011991debde9b (patch) | |
| tree | 0439caabbfec6cc097261b581d537e20f8273d93 /opengl/java/android | |
| parent | 278967f237281302a6cd5746c644aa0ea2a05e1e (diff) | |
Replaces DPM.clearLogoutUser() by logoutUser()
Prior to this change, internal components like Settings or
CarUserManager would need to call 3 APIs to logout a managed user:
1. previousUserId = getLogoutUser();
2. switchUser(previousUserId);
3. clearLogoutUser();
This CL encapsulates the whole process into a new DPM.logoutUser(),
but it keeps the getLogoutUser() (as Car need to know which user it
will be switched to in advance, due to the Vehicle HAL integration).
Test: m update-api
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_LogoutUser_system
Fixes: 214336184
Change-Id: Ifffc229ecede5d086338e9c7fa08dce0e0de884c
Diffstat (limited to 'opengl/java/android')
0 files changed, 0 insertions, 0 deletions