diff options
| author | arangelov <arangelov@google.com> | 2022-03-10 14:35:14 +0000 |
|---|---|---|
| committer | arangelov <arangelov@google.com> | 2022-03-10 14:40:29 +0000 |
| commit | 54ce9960071095a5286c862e680158b9274298ee (patch) | |
| tree | 4fcb926d969c84aa86d2dd8de79ec77361472afb /core/java/android | |
| parent | 7081ab5bfff333c8e7fc781bfd6c4376ef284420 (diff) | |
Rename ACTION_UPDATE_DEVICE_MANAGEMENT_ROLE_HOLDER
Fixes: 223792001
Test: none
Change-Id: Ifc70fedb4fec926b93aa8931850ac1fcbfdacf0e
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/app/admin/DevicePolicyManager.java | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java index d5d14c6c0fbb..3e00181bf3bd 100644 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -685,10 +685,11 @@ public class DevicePolicyManager { /** * A {@code boolean} extra which determines whether to force a role holder update, regardless - * of any internal conditions {@link #ACTION_UPDATE_DEVICE_MANAGEMENT_ROLE_HOLDER} might have. + * of any internal conditions {@link #ACTION_UPDATE_DEVICE_POLICY_MANAGEMENT_ROLE_HOLDER} might + * have. * * <p>This extra can be provided to intents with action {@link - * #ACTION_UPDATE_DEVICE_MANAGEMENT_ROLE_HOLDER}. + * #ACTION_UPDATE_DEVICE_POLICY_MANAGEMENT_ROLE_HOLDER}. * * @hide */ @@ -3228,39 +3229,43 @@ public class DevicePolicyManager { * * <p>The activity must handle the device policy management role holder update and set the * intent result to either {@link Activity#RESULT_OK} if the update was successful, {@link - * #RESULT_UPDATE_DEVICE_MANAGEMENT_ROLE_HOLDER_RECOVERABLE_ERROR} if it encounters a problem - * that may be solved by relaunching it again, or {@link - * #RESULT_UPDATE_DEVICE_MANAGEMENT_ROLE_HOLDER_UNRECOVERABLE_ERROR} if it encounters a problem - * that will not be solved by relaunching it again. + * #RESULT_UPDATE_DEVICE_POLICY_MANAGEMENT_ROLE_HOLDER_RECOVERABLE_ERROR} if it encounters a + * problem that may be solved by relaunching it again, or {@link + * #RESULT_UPDATE_DEVICE_POLICY_MANAGEMENT_ROLE_HOLDER_UNRECOVERABLE_ERROR} if it encounters a + * problem that will not be solved by relaunching it again. * * <p>If this activity has additional internal conditions which are not met, it should return - * {@link #RESULT_UPDATE_DEVICE_MANAGEMENT_ROLE_HOLDER_UNRECOVERABLE_ERROR}. + * {@link #RESULT_UPDATE_DEVICE_POLICY_MANAGEMENT_ROLE_HOLDER_UNRECOVERABLE_ERROR}. * * @hide */ @RequiresPermission(android.Manifest.permission.LAUNCH_DEVICE_MANAGER_SETUP) @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) @SystemApi - public static final String ACTION_UPDATE_DEVICE_MANAGEMENT_ROLE_HOLDER = - "android.app.action.UPDATE_DEVICE_MANAGEMENT_ROLE_HOLDER"; + public static final String ACTION_UPDATE_DEVICE_POLICY_MANAGEMENT_ROLE_HOLDER = + "android.app.action.UPDATE_DEVICE_POLICY_MANAGEMENT_ROLE_HOLDER"; /** - * Result code that can be returned by the {@link #ACTION_UPDATE_DEVICE_MANAGEMENT_ROLE_HOLDER} - * handler if it encounters a problem that may be solved by relaunching it again. + * Result code that can be returned by the {@link + * #ACTION_UPDATE_DEVICE_POLICY_MANAGEMENT_ROLE_HOLDER} handler if it encounters a problem + * that may be solved by relaunching it again. * * @hide */ @SystemApi - public static final int RESULT_UPDATE_DEVICE_MANAGEMENT_ROLE_HOLDER_RECOVERABLE_ERROR = 1; + public static final int RESULT_UPDATE_DEVICE_POLICY_MANAGEMENT_ROLE_HOLDER_RECOVERABLE_ERROR = + 1; /** - * Result code that can be returned by the {@link #ACTION_UPDATE_DEVICE_MANAGEMENT_ROLE_HOLDER} - * handler if it encounters a problem that will not be solved by relaunching it again. + * Result code that can be returned by the {@link + * #ACTION_UPDATE_DEVICE_POLICY_MANAGEMENT_ROLE_HOLDER} handler if it encounters a problem that + * will not be solved by relaunching it again. * * @hide */ @SystemApi - public static final int RESULT_UPDATE_DEVICE_MANAGEMENT_ROLE_HOLDER_UNRECOVERABLE_ERROR = 2; + public static final int RESULT_UPDATE_DEVICE_POLICY_MANAGEMENT_ROLE_HOLDER_UNRECOVERABLE_ERROR = + 2; /** * An {@link Intent} extra which resolves to a custom user consent screen. |
