From c5fd867e03b43db52a2c1fe286e999637d23f96c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E4=BC=9F?= Date: Thu, 15 May 2025 06:23:00 +0000 Subject: [PATCH 1/5] update backgroundtasks/transient/include/transient_task_type.h. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 胡伟 --- .../transient/include/transient_task_type.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/backgroundtasks/transient/include/transient_task_type.h b/backgroundtasks/transient/include/transient_task_type.h index 57539f885..6715514b3 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_SYS_NOT_READY = 9900004, } TransientTask_ErrorCode; /** -- Gitee From 61ed73d9dc1327a5ebb7bad7584c49252d8e9631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E4=BC=9F?= Date: Thu, 15 May 2025 06:24:03 +0000 Subject: [PATCH 2/5] update backgroundtasks/transient/include/transient_task_api.h. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 胡伟 --- backgroundtasks/transient/include/transient_task_api.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/backgroundtasks/transient/include/transient_task_api.h b/backgroundtasks/transient/include/transient_task_api.h index f84f0b29b..963689032 100644 --- a/backgroundtasks/transient/include/transient_task_api.h +++ b/backgroundtasks/transient/include/transient_task_api.h @@ -105,10 +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. + * {@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_SYS_NOT_READY} 9900004 - System service operation failed. * @syscap SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask * @since 20 * @version 1.0 -- Gitee From eb8a799dd0332b311b1f7689948410745eabaeac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E4=BC=9F?= Date: Thu, 15 May 2025 06:27:01 +0000 Subject: [PATCH 3/5] update backgroundtasks/transient/include/transient_task_type.h. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 胡伟 --- backgroundtasks/transient/include/transient_task_type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backgroundtasks/transient/include/transient_task_type.h b/backgroundtasks/transient/include/transient_task_type.h index 6715514b3..237da3a12 100644 --- a/backgroundtasks/transient/include/transient_task_type.h +++ b/backgroundtasks/transient/include/transient_task_type.h @@ -93,7 +93,7 @@ typedef enum TransientTask_ErrorCode { /** * @error System service operation failed. */ - ERR_TRANSIENT_TASK_SYS_NOT_READY = 9900004, + ERR_TRANSIENT_TASK_SERVICE_NOT_READY = 9900004, } TransientTask_ErrorCode; /** -- Gitee From ccb6f5364f680b49a80695d5a2133fc7224f7f04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E4=BC=9F?= Date: Thu, 15 May 2025 06:27:20 +0000 Subject: [PATCH 4/5] update backgroundtasks/transient/include/transient_task_api.h. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 胡伟 --- backgroundtasks/transient/include/transient_task_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backgroundtasks/transient/include/transient_task_api.h b/backgroundtasks/transient/include/transient_task_api.h index 963689032..e2af41a25 100644 --- a/backgroundtasks/transient/include/transient_task_api.h +++ b/backgroundtasks/transient/include/transient_task_api.h @@ -107,7 +107,7 @@ int32_t OH_BackgroundTaskManager_CancelSuspendDelay(int32_t requestId); * @return {@link ERR_TRANSIENT_TASK_OK} 0 - Success. * {@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_SYS_NOT_READY} 9900004 - System service operation failed. + * {@link ERR_TRANSIENT_TASK_SERVICE_NOT_READY} 9900004 - System service operation failed. * @syscap SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask * @since 20 * @version 1.0 -- Gitee From 5269658be6ed77ec0187d8b099110c2ffddd7ce3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E4=BC=9F?= Date: Mon, 19 May 2025 06:51:40 +0000 Subject: [PATCH 5/5] update backgroundtasks/transient/include/transient_task_api.h. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 胡伟 --- backgroundtasks/transient/include/transient_task_api.h | 1 - 1 file changed, 1 deletion(-) diff --git a/backgroundtasks/transient/include/transient_task_api.h b/backgroundtasks/transient/include/transient_task_api.h index e2af41a25..f6ce7b659 100644 --- a/backgroundtasks/transient/include/transient_task_api.h +++ b/backgroundtasks/transient/include/transient_task_api.h @@ -108,7 +108,6 @@ int32_t OH_BackgroundTaskManager_CancelSuspendDelay(int32_t requestId); * {@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. - * @syscap SystemCapability.ResourceSchedule.BackgroundTaskManager.TransientTask * @since 20 * @version 1.0 */ -- Gitee