From e9eb8ba70a97d4aded0f7c1e143ed1044a28d021 Mon Sep 17 00:00:00 2001 From: cheng_jinsong Date: Tue, 18 Oct 2022 03:42:46 +0000 Subject: [PATCH] update api/@ohos.systemParameterV9.d.ts. Signed-off-by: cheng_jinsong Signed-off-by: cheng_jinsong --- api/@ohos.systemParameterV9.d.ts | 52 -------------------------------- 1 file changed, 52 deletions(-) diff --git a/api/@ohos.systemParameterV9.d.ts b/api/@ohos.systemParameterV9.d.ts index a32bcb4fb..b4fee996d 100755 --- a/api/@ohos.systemParameterV9.d.ts +++ b/api/@ohos.systemParameterV9.d.ts @@ -15,58 +15,6 @@ import { AsyncCallback, BusinessError } from './basic'; -/** - * Enumerates error code. - * - * @since 9 - */ -export enum SystemParameterErrorCode { - /** - * Input parameter is missing or invalid. - * - * @since 9 - */ - SYSPARAM_INVALID_INPUT = 401, - - /** - * System parameter can not be found.
- * When getting system parameter values, if def value is specified, it will not return this error. - * - * @since 9 - */ - SYSPARAM_NOT_FOUND = 14700101, - - /** - * System parameter value is invalid.
- * -

When setting system parameters, the value length should not exceed 95 bytes.

- * -

And system parameter has three value types: string, integer and bool. - * if the value type is not matched, it will also return this error code.

- * - * @since 9 - */ - SYSPARAM_INVALID_VALUE = 14700102, - - /** - * System permission operation permission denied.
- *

System parameter are system resources, each parameter is protected by DAC and MAC rules. - *

Typical permission checking include:

- * -

systemapi: only system application can call system parameter related APIs

- * -

DAC: each system parameter has user and group owner with get, set permissions. - * Applications can only operate User/Group/Ownership matched system parameters.

- * -

MAC: each system parameter is also protected by SELinux labels.

- * - * @since 9 - */ - SYSPARAM_PERMISSION_DENIED = 14700103, - - /** - * System internal error including out of memory, deadlock etc. - * - * @since 9 - */ - SYSPARAM_SYSTEM_ERROR = 14700104, -} - /** * The interface of system parameters class. *