From 6f1c9c329587b57501f4a4bce3c427ac564af364 Mon Sep 17 00:00:00 2001 From: arangelov Date: Mon, 25 Apr 2022 15:47:26 +0100 Subject: [PATCH] Update javadocs for EXTRA_ROLE_HOLDER_UPDATE_RESULT_CODE Also ACTION_UPDATE_DEVICE_POLICY_MANAGEMENT_ROLE_HOLDER Bug: 230098812 Test: none Change-Id: Ib06b40bec7d32c32f044822b48ff7e8ebcb220a4 --- core/java/android/app/admin/DevicePolicyManager.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java index f5cf73b152c8c..071432957f303 100644 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -3322,8 +3322,8 @@ public class DevicePolicyManager { * Activity action: Starts the device policy management role holder updater. * *

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 or not - * necessary, {@link #RESULT_UPDATE_DEVICE_POLICY_MANAGEMENT_ROLE_HOLDER_RECOVERABLE_ERROR} if + * intent result. This can include {@link Activity#RESULT_OK} if the update was successful, + * {@link #RESULT_UPDATE_DEVICE_POLICY_MANAGEMENT_ROLE_HOLDER_RECOVERABLE_ERROR} if * it encounters a problem that may be solved by relaunching it again, {@link * #RESULT_UPDATE_DEVICE_POLICY_MANAGEMENT_ROLE_HOLDER_PROVISIONING_DISABLED} if role holder * provisioning is disabled, or {@link @@ -3376,7 +3376,8 @@ public class DevicePolicyManager { /** * An {@code int} extra which contains the result code of the last attempt to update - * the device policy management role holder. + * the device policy management role holder via {@link + * #ACTION_UPDATE_DEVICE_POLICY_MANAGEMENT_ROLE_HOLDER}. * *

This extra is provided to the device policy management role holder via either {@link * #ACTION_ROLE_HOLDER_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SOURCE} or {@link @@ -3394,6 +3395,8 @@ public class DevicePolicyManager { * encounters a problem that may be solved by relaunching it again. *

  • {@link #RESULT_UPDATE_DEVICE_POLICY_MANAGEMENT_ROLE_HOLDER_UNRECOVERABLE_ERROR} if * it encounters a problem that will not be solved by relaunching it again. + *
  • Any other value returned by {@link + * #ACTION_UPDATE_DEVICE_POLICY_MANAGEMENT_ROLE_HOLDER} * * * @hide