diff --git a/backgroundtasks/transient/include/transient_task_api.h b/backgroundtasks/transient/include/transient_task_api.h index f84f0b29bbd29c9c9b23efab9da757a2247c4c47..f6ce7b65929ee41f1a59318c332a5edaeb01b555 100644 --- a/backgroundtasks/transient/include/transient_task_api.h +++ b/backgroundtasks/transient/include/transient_task_api.h @@ -105,11 +105,9 @@ int32_t OH_BackgroundTaskManager_CancelSuspendDelay(int32_t requestId); * * @param transientTaskInfo Indicates the transient task info of an application. * @return {@link ERR_TRANSIENT_TASK_OK} 0 - Success. - * {@link ERR_TRANSIENT_TASK_INVALID_PARAM} 401 - Invalid parameter. - * {@link ERR_TRANSIENT_TASK_PARCEL_FAILED} 9800001 - Memory operation failed. - * {@link ERR_TRANSIENT_TASK_PARCEL_FAILED} 9800002 - Parcelable failed. - * {@link ERR_TRANSIENT_TASK_SYS_NOT_READY} 9800004 - System service not ready. - * @syscap SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask + * {@link ERR_TRANSIENT_TASK_CLIENT_INFO_VERIFICATION_FAILED} 9900001 - uid or pid info verify failed. + * {@link ERR_TRANSIENT_TASK_PARCELABLE_FAILED} 9900003 - Failed to write data into parcel. + * {@link ERR_TRANSIENT_TASK_SERVICE_NOT_READY} 9900004 - System service operation failed. * @since 20 * @version 1.0 */ diff --git a/backgroundtasks/transient/include/transient_task_type.h b/backgroundtasks/transient/include/transient_task_type.h index 57539f8857895b1158f2153a6f80104e953debb4..237da3a12e8307f7aa616f524cb70eeb1e5624f8 100644 --- a/backgroundtasks/transient/include/transient_task_type.h +++ b/backgroundtasks/transient/include/transient_task_type.h @@ -42,6 +42,11 @@ extern "C" { #endif +/** + * @brief max number for transient task. + * + * @since 20 + */ #define TRANSIENT_TASK_MAX_NUM 3 /** @@ -79,6 +84,16 @@ typedef enum TransientTask_ErrorCode { * Transient task verification failed. */ ERR_TRANSIENT_TASK_SERVICE_VERIFICATION_FAILED = 9900002, + /** + * @error Failed to write data into parcel. Possible reasons: + * 1. Invalid parameters; + * 2. Failed to apply for memory. + */ + ERR_TRANSIENT_TASK_PARCELABLE_FAILED = 9900003, + /** + * @error System service operation failed. + */ + ERR_TRANSIENT_TASK_SERVICE_NOT_READY = 9900004, } TransientTask_ErrorCode; /**