diff options
author | arangelov <arangelov@google.com> | 2020-08-20 17:09:31 +0100 |
---|---|---|
committer | Antoan Angelov <arangelov@google.com> | 2020-10-21 20:15:29 +0000 |
commit | c0006519991a33339c22cfeef1a006a71c8a720d (patch) | |
tree | 35af1dc902c12f13d3361575138be8cad5acba9d /rs/java/android/renderscript/ProgramStore.java | |
parent | 75a720cfb116d52ce6d1bbc1163abca218860f8b (diff) |
Add STATE_USER_PROFILE_FINALIZED as an additional user state
This will be used as an intermediate state after
STATE_USER_PROFILE_COMPLETE once the work profile has been created.
With the current admin-integrated flow refactoring changes,
the work profile will be finalized earlier than before.
Therefore, we add this new state so that SetupWizard
can differentiate between this state and STATE_USER_UNMANAGED.
Instead of the user states for work profile provisioning being
STATE_USER_UNMANAGED -> STATE_USER_PROFILE_COMPLETE ->
STATE_USER_UNMANAGED, they will now be STATE_USER_UNMANAGED ->
STATE_USER_PROFILE_COMPLETE -> STATE_USER_PROFILE_FINALIZED.
Note that CTS testing this API is infeasible, since it's
a system API and it requires the MANAGE_PROFILE_AND_DEVICE_OWNERS
signature permission which can't be granted to a CTS app.
Bug: 161402545
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest#testSetUserProvisioningState_managedProfileFromSetupWizard_primaryUser
Change-Id: I421d8ad431de6aef779a0b58b7f074ffc74dda48
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions