From 466a8ae723bee97b0b12760ea5aa543146c95bd7 Mon Sep 17 00:00:00 2001 From: ki_ja <1454623191@qq.com> Date: Fri, 6 Jun 2025 14:51:22 +0800 Subject: [PATCH 01/12] =?UTF-8?q?6.0=20Beta1=E5=88=86=E6=94=AFINTERACTIVE?= =?UTF-8?q?=E5=92=8CNONINTERACTIVE=E5=9B=9E=E9=80=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ki_ja <1454623191@qq.com> --- api/@ohos.window.d.ts | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index c6a5f3264c..cf898d9c39 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -10189,8 +10189,6 @@ declare namespace window { * @crossplatform * @atomicservice * @since 11 - * @deprecated since 20 - * @useinstead ohos.window.WindowStageEventType#INTERACTIVE */ RESUMED, /** @@ -10201,30 +10199,8 @@ declare namespace window { * @crossplatform * @atomicservice * @since 11 - * @deprecated since 20 - * @useinstead ohos.window.WindowStageEventType#NONINTERACTIVE */ - PAUSED, - /** - * The window stage is interactive in the foreground. - * - * @syscap SystemCapability.WindowManager.WindowManager.Core - * @stagemodelonly - * @crossplatform - * @atomicservice - * @since 20 - */ - INTERACTIVE = 8, - /** - * The window stage is non-interactive in the foreground. - * - * @syscap SystemCapability.WindowManager.WindowManager.Core - * @stagemodelonly - * @crossplatform - * @atomicservice - * @since 20 - */ - NONINTERACTIVE + PAUSED } /** -- Gitee From 1aee6fa5b350d07b6844c172586782b0c29c8420 Mon Sep 17 00:00:00 2001 From: yangxuguang-huawei Date: Mon, 9 Jun 2025 17:24:23 +0800 Subject: [PATCH 02/12] bugfix: remove restartSelfAtomicService Signed-off-by: yangxuguang-huawei --- api/@ohos.app.ability.StartOptions.d.ts | 2 +- api/@ohos.app.ability.abilityManager.d.ts | 24 ----------------------- 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/api/@ohos.app.ability.StartOptions.d.ts b/api/@ohos.app.ability.StartOptions.d.ts index 97562e6510..dbb2464820 100644 --- a/api/@ohos.app.ability.StartOptions.d.ts +++ b/api/@ohos.app.ability.StartOptions.d.ts @@ -21,7 +21,7 @@ import contextConstant from "./@ohos.app.ability.contextConstant"; import image from "./@ohos.multimedia.image"; import bundleManager from './@ohos.bundle.bundleManager'; -import CompletionHandler from "./@ohos.app.ability.CompletionHandler"; +import CompletionHandler from './@ohos.app.ability.CompletionHandler'; /** * StartOptions is the basic communication component of the system. diff --git a/api/@ohos.app.ability.abilityManager.d.ts b/api/@ohos.app.ability.abilityManager.d.ts index 834dbeb42b..495e43f3ca 100644 --- a/api/@ohos.app.ability.abilityManager.d.ts +++ b/api/@ohos.app.ability.abilityManager.d.ts @@ -35,14 +35,6 @@ import * as _AbilityStateData from './application/AbilityStateData'; * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since 9 */ -/** - * The class of an ability manager. - * - * @namespace abilityManager - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @atomicservice - * @since 20 - */ declare namespace abilityManager { /** * Enum for the ability state. @@ -522,22 +514,6 @@ declare namespace abilityManager { */ function queryAtomicServiceStartupRule(context: Context, appId: string): Promise; - /** - * Restart the current atomic service. - * - * @param { Context } context - The context that initiates the restart. - * @throws { BusinessError } 16000050 - Internal error. - * @throws { BusinessError } 16000053 - The ability is not on the top of the UI. - * @throws { BusinessError } 16000064 - Restart too frequently. Try again at least 10s later. - * @throws { BusinessError } 16000086 - The context is not UIAbilityContext. - * @throws { BusinessError } 16000090 - Caller is not atomic service. - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @stagemodelonly - * @atomicservice - * @since 20 - */ - function restartSelfAtomicService(context: Context): void; - /** * The class of an ability running information. * -- Gitee From 9acdc4b706d32ca051f447215677f3b2bb0aced0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E9=9D=99?= Date: Tue, 13 May 2025 17:04:58 +0800 Subject: [PATCH 03/12] =?UTF-8?q?utf8=E9=9C=80=E6=B1=82=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=A0=81=E6=8F=8F=E8=BF=B0=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王静 --- api/@ohos.security.cert.d.ts | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/api/@ohos.security.cert.d.ts b/api/@ohos.security.cert.d.ts index 5b05f09a07..fd9d36c6f3 100644 --- a/api/@ohos.security.cert.d.ts +++ b/api/@ohos.security.cert.d.ts @@ -1448,8 +1448,9 @@ declare namespace cert { * * @param { EncodingType } encodingType indicates the encoding type. * @returns { string } X509 cert issuer name. - * @throws { BusinessError } 19020001 - memory error. - * @throws { BusinessError } 19020002 - runtime error. + * @throws { BusinessError } 19020001 - memory malloc failed. + * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; + *
2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. * @throws { BusinessError } 19020003 - parameter check failed. Possible causes: *
1. The value of encodingType is not in the EncodingType enumeration range. * @throws { BusinessError } 19030001 - crypto operation error. @@ -2046,8 +2047,9 @@ declare namespace cert { * * @param { EncodingType } encodingType indicates the encoding type. * @returns { string } the string type data of the object. - * @throws { BusinessError } 19020001 - memory error. - * @throws { BusinessError } 19020002 - runtime error. + * @throws { BusinessError } 19020001 - memory malloc failed. + * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; + *
2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. * @throws { BusinessError } 19020003 - parameter check failed. Possible causes: *
1. The value of encodingType is not in the EncodingType enumeration range. * @throws { BusinessError } 19030001 - crypto operation error. @@ -2737,8 +2739,9 @@ declare namespace cert { * @param { EncodingType } encodingType indicates the encoding type. * @returns { string } issuer name. * @throws { BusinessError } 801 - this operation is not supported. - * @throws { BusinessError } 19020001 - memory error. - * @throws { BusinessError } 19020002 - runtime error. + * @throws { BusinessError } 19020001 - memory malloc failed. + * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; + *
2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. * @throws { BusinessError } 19020003 - parameter check failed. Possible causes: *
1. The value of encodingType is not in the EncodingType enumeration range. * @throws { BusinessError } 19030001 - crypto operation error. @@ -3448,8 +3451,9 @@ declare namespace cert { * * @param { EncodingType } encodingType indicates the encoding type. * @returns { string } issuer name of CRL. - * @throws { BusinessError } 19020001 - memory error. - * @throws { BusinessError } 19020002 - runtime error. + * @throws { BusinessError } 19020001 - memory malloc failed. + * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; + *
2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. * @throws { BusinessError } 19020003 - parameter check failed. Possible causes: *
1. The value of encodingType is not in the EncodingType enumeration range. * @throws { BusinessError } 19030001 - crypto operation error. @@ -3854,8 +3858,9 @@ declare namespace cert { * * @param { EncodingType } encodingType indicates the encoding type. * @returns { string } the string type data of the object. - * @throws { BusinessError } 19020001 - memory error. - * @throws { BusinessError } 19020002 - runtime error. + * @throws { BusinessError } 19020001 - memory malloc failed. + * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; + *
2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. * @throws { BusinessError } 19020003 - parameter check failed. Possible causes: *
1. The value of encodingType is not in the EncodingType enumeration range. * @throws { BusinessError } 19030001 - crypto operation error. @@ -5496,8 +5501,9 @@ declare namespace cert { * * @param { EncodingType } encodingType - the specified encoding type. * @returns { string } distinguished name string. - * @throws { BusinessError } 19020001 - memory error. - * @throws { BusinessError } 19020002 - runtime error. + * @throws { BusinessError } 19020001 - memory malloc failed. + * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; + *
2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. * @throws { BusinessError } 19020003 - parameter check failed. Possible causes: *
1. The value of encodingType is not in the EncodingType enumeration range. * @throws { BusinessError } 19030001 - crypto operation error. -- Gitee From 0b0657176606a2d7f2322fe2ff09ec2111e40aae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E9=9D=99?= Date: Mon, 9 Jun 2025 20:17:18 +0800 Subject: [PATCH 04/12] =?UTF-8?q?=E9=BB=84=E8=93=9D=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王静 --- api/@ohos.security.cert.d.ts | 36 ++++++++++++++++--------- api/@ohos.security.cryptoFramework.d.ts | 16 ++++++----- 2 files changed, 33 insertions(+), 19 deletions(-) diff --git a/api/@ohos.security.cert.d.ts b/api/@ohos.security.cert.d.ts index fd9d36c6f3..50095fbe67 100644 --- a/api/@ohos.security.cert.d.ts +++ b/api/@ohos.security.cert.d.ts @@ -143,20 +143,20 @@ declare namespace cert { ERR_OUT_OF_MEMORY = 19020001, /** - * Indicates that runtime error. Possible causes: 1. Memory copy failed; 2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. + * Indicates that runtime error. * * @syscap SystemCapability.Security.Cert * @since 9 */ /** - * Indicates that runtime error. Possible causes: 1. Memory copy failed; 2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. + * Indicates that runtime error. * * @syscap SystemCapability.Security.Cert * @crossplatform * @since 11 */ /** - * Indicates that runtime error. Possible causes: 1. Memory copy failed; 2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. + * Indicates that runtime error. * * @syscap SystemCapability.Security.Cert * @crossplatform @@ -4158,7 +4158,8 @@ declare namespace cert { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 801 - this operation is not supported. * @throws { BusinessError } 19020001 - memory malloc failed. - * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; 2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. + * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; + *
2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. * @throws { BusinessError } 19030001 - crypto operation error. * @syscap SystemCapability.Security.Cert * @since 9 @@ -4172,7 +4173,8 @@ declare namespace cert { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 801 - this operation is not supported. * @throws { BusinessError } 19020001 - memory malloc failed. - * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; 2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. + * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; + *
2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. * @throws { BusinessError } 19030001 - crypto operation error. * @syscap SystemCapability.Security.Cert * @crossplatform @@ -4187,7 +4189,8 @@ declare namespace cert { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 801 - this operation is not supported. * @throws { BusinessError } 19020001 - memory malloc failed. - * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; 2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. + * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; + *
2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. * @throws { BusinessError } 19030001 - crypto operation error. * @syscap SystemCapability.Security.Cert * @crossplatform @@ -5222,7 +5225,8 @@ declare namespace cert { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 19020001 - memory malloc failed. - * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; 2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. + * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; + *
2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. * @throws { BusinessError } 19030001 - crypto operation error. * @throws { BusinessError } 19030002 - the certificate signature verification failed. * @throws { BusinessError } 19030003 - the certificate has not taken effect. @@ -5391,7 +5395,8 @@ declare namespace cert { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 19020001 - memory malloc failed. - * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; 2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. + * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; + *
2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. * @throws { BusinessError } 19030001 - crypto operation error. * @throws { BusinessError } 19030008 - maybe wrong password. * @syscap SystemCapability.Security.Cert @@ -5410,7 +5415,8 @@ declare namespace cert { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 19020001 - memory malloc failed. - * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; 2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. + * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; + *
2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. * @throws { BusinessError } 19030001 - crypto operation error. * @throws { BusinessError } 19030002 - the certificate signature verification failed. * @throws { BusinessError } 19030003 - the certificate has not taken effect. @@ -5433,7 +5439,8 @@ declare namespace cert { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 19020001 - memory malloc failed. - * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; 2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. + * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; + *
2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. * @throws { BusinessError } 19030001 - crypto operation error. * @throws { BusinessError } 19030002 - the certificate signature verification failed. * @throws { BusinessError } 19030003 - the certificate has not taken effect. @@ -5456,7 +5463,8 @@ declare namespace cert { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 19020001 - memory malloc failed. - * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; 2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. + * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; + *
2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. * @throws { BusinessError } 19030001 - crypto operation error. * @throws { BusinessError } 19030002 - the certificate signature verification failed. * @throws { BusinessError } 19030003 - the certificate has not taken effect. @@ -6486,7 +6494,8 @@ declare namespace cert { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 19020001 - memory malloc failed. - * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; 2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. + * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; + *
2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. * @throws { BusinessError } 19030001 - crypto operation error. * @syscap SystemCapability.Security.Cert * @crossplatform @@ -6593,7 +6602,8 @@ declare namespace cert { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 19020001 - memory malloc failed. - * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; 2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. + * @throws { BusinessError } 19020002 - runtime error. Possible causes: 1. Memory copy failed; + *
2. A null pointer occurs inside the system; 3. Failed to convert parameters between ArkTS and C. * @throws { BusinessError } 19030001 - crypto operation error. * @throws { BusinessError } 19030008 - maybe wrong password. * @syscap SystemCapability.Security.Cert diff --git a/api/@ohos.security.cryptoFramework.d.ts b/api/@ohos.security.cryptoFramework.d.ts index abd516d16d..80492e74cd 100644 --- a/api/@ohos.security.cryptoFramework.d.ts +++ b/api/@ohos.security.cryptoFramework.d.ts @@ -646,7 +646,7 @@ declare namespace cryptoFramework { */ /** * Provides the Key type, which is the common parent class of keys. - * Before performing cryptographic operations (such as encryption and decryption), you need to construct a child class object of Key and pass it to init of the Cipher instance. + * Before performing cryptographic operations, you need to construct a child class object of Key and pass it to init of the Cipher instance. * * @typedef Key * @syscap SystemCapability.Security.CryptoFramework.Key @@ -678,7 +678,8 @@ declare namespace cryptoFramework { */ /** * Encode the key object to binary data. - * The key can be a symmetric key, public key, or private key. The public key must be in DER encoding format and comply with the ASN.1 syntax and X.509 specifications. + * The key can be a symmetric key, public key, or private key. + * The public key must be in DER encoding format and comply with the ASN.1 syntax and X.509 specifications. * The private key must be in DER encoding format and comply with the ASN.1 syntax and PKCS#8 specifications. * @returns { DataBlob } the binary data of the key object. * @throws { BusinessError } 801 - this operation is not supported. @@ -2088,7 +2089,7 @@ declare namespace cryptoFramework { /** * Represents the message authentication code (MAC) parameters. - * You need to construct a child class object and use it as a parameter when generating a Hash-based Message Authentication Code (HMAC) or Cipher-based Message Authentication Code (‌CMAC). + * You need to construct a child class object and use it as a parameter when generating a HMAC or CMAC. * * @typedef MacSpec * @syscap SystemCapability.Security.CryptoFramework.Mac @@ -2208,7 +2209,8 @@ declare namespace cryptoFramework { */ /** * Init mac with given SymKey. - * This API uses an asynchronous callback to return the result. init, update, and doFinal must be used together. init and doFinal are mandatory, and update is optional. + * This API uses an asynchronous callback to return the result. init, update, and doFinal must be used together. + * init and doFinal are mandatory, and update is optional. * * @param { SymKey } key - indicates the SymKey. * @param { AsyncCallback } callback - the callback of the init function. @@ -2250,7 +2252,8 @@ declare namespace cryptoFramework { */ /** * Init mac with given SymKey. - * This API uses an asynchronous callback to return the result. init, update, and doFinal must be used together. init and doFinal are mandatory, and update is optional. + * This API uses an asynchronous callback to return the result. init, update, and doFinal must be used together. + * init and doFinal are mandatory, and update is optional. * * @param { SymKey } key - indicates the SymKey. * @returns { Promise } the promise returned by the function. @@ -2267,7 +2270,8 @@ declare namespace cryptoFramework { /** * Init mac with given SymKey. - * This API uses an asynchronous callback to return the result. init, update, and doFinal must be used together. init and doFinal are mandatory, and update is optional. + * This API uses an asynchronous callback to return the result. init, update, and doFinal must be used together. + * init and doFinal are mandatory, and update is optional. * * @param { SymKey } key - indicates the SymKey. * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; -- Gitee From ce59a3f1067a47f52c5bebe9ecf405cb96e21091 Mon Sep 17 00:00:00 2001 From: wangtiantian Date: Mon, 9 Jun 2025 21:47:09 +0800 Subject: [PATCH 05/12] IssueNo:#ICDT88 Description:delete bms interface Sig:SIG_ApplicaitonFramework Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: wangtiantian --- api/@ohos.bundle.bundleManager.d.ts | 104 ---------------------------- api/bundleManager/BundleInfo.d.ts | 84 ---------------------- 2 files changed, 188 deletions(-) diff --git a/api/@ohos.bundle.bundleManager.d.ts b/api/@ohos.bundle.bundleManager.d.ts index d60c73f6eb..99131b8e74 100644 --- a/api/@ohos.bundle.bundleManager.d.ts +++ b/api/@ohos.bundle.bundleManager.d.ts @@ -3596,31 +3596,6 @@ declare namespace bundleManager { */ function enableDynamicIcon(bundleName: string, moduleName: string): Promise; - /** - * Enable dynamic icon. - * If you need to enable dynamic icon under the current user, ohos.permission.ACCESS_DYNAMIC_ICON - * needs to be applied for. - * If you need to enable dynamic icon under other users, ohos.permission.ACCESS_DYNAMIC_ICON and - * ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS need to be applied for. - * - * @permission ohos.permission.ACCESS_DYNAMIC_ICON or (ohos.permission.ACCESS_DYNAMIC_ICON and ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS) - * @param { string } bundleName - Indicates the bundleName. - * @param { string } moduleName - Indicates the moduleName for extend resource. - * @param { BundleOptions } [option] - Indicates the bundle option. - * @returns { Promise } Returns enableDynamicIcon result. - * @throws { BusinessError } 201 - Permission denied. - * @throws { BusinessError } 202 - Permission denied, non-system app called system api. - * @throws { BusinessError } 17700001 - The specified bundleName is not found. - * @throws { BusinessError } 17700002 - The specified moduleName is not found. - * @throws { BusinessError } 17700004 - The specified user ID is not found. - * @throws { BusinessError } 17700061 - AppIndex not in valid range. - * @throws { BusinessError } 17700304 - Failed to enable the dynamic icon. - * @syscap SystemCapability.BundleManager.BundleFramework.Core - * @systemapi - * @since 20 - */ - function enableDynamicIcon(bundleName: string, moduleName: string, option?: BundleOptions): Promise; - /** * Disable dynamic icon. * @@ -3638,29 +3613,6 @@ declare namespace bundleManager { */ function disableDynamicIcon(bundleName: string): Promise; - /** - * Disable dynamic icon. - * If you need to disable dynamic icon under the current user, ohos.permission.ACCESS_DYNAMIC_ICON - * needs to be applied for. - * If you need to disable dynamic icon under other users, ohos.permission.ACCESS_DYNAMIC_ICON and - * ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS need to be applied for. - * - * @permission ohos.permission.ACCESS_DYNAMIC_ICON or (ohos.permission.ACCESS_DYNAMIC_ICON and ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS) - * @param { string } bundleName - Indicates the bundleName. - * @param { BundleOptions } [option] - Indicates the bundle option. - * @returns { Promise } Returns disableDynamicIcon result. - * @throws { BusinessError } 201 - Permission denied. - * @throws { BusinessError } 202 - Permission denied, non-system app called system api. - * @throws { BusinessError } 17700001 - The specified bundleName is not found. - * @throws { BusinessError } 17700004 - The specified user ID is not found. - * @throws { BusinessError } 17700061 - AppIndex not in valid range. - * @throws { BusinessError } 17700305 - Failed to disable the dynamic icon. - * @syscap SystemCapability.BundleManager.BundleFramework.Core - * @systemapi - * @since 20 - */ - function disableDynamicIcon(bundleName: string, option?: BundleOptions): Promise; - /** * Get dynamic icon. * @@ -3678,42 +3630,6 @@ declare namespace bundleManager { */ function getDynamicIcon(bundleName: string): Promise; - /** - * Get dynamic icon info. - * - * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED and ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS - * @param { string } bundleName - Indicates the bundleName. - * @returns { Promise> } Returns a list of DynamicIconInfo objects. - * @throws { BusinessError } 201 - Permission denied. - * @throws { BusinessError } 202 - Permission denied, non-system app called system api. - * @throws { BusinessError } 17700001 - The specified bundleName is not found. - * @throws { BusinessError } 17700306 - Failed to obtain the dynamic icon. - * @syscap SystemCapability.BundleManager.BundleFramework.Core - * @systemapi - * @since 20 - */ - function getDynamicIconInfo(bundleName: string): Promise>; - - /** - * Get all dynamic icon info. - * If you need to query dynamic icon information under the current user, ohos.permission.GET_BUNDLE_INFO_PRIVILEGED - * needs to be applied for. - * If you need to query dynamic icon information under other users, ohos.permission.GET_BUNDLE_INFO_PRIVILEGED and - * ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS need to be applied for. - * - * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED and ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS - * @param { number } [userId] - Indicates the user id, default value is to query all users. - * @returns { Promise> } Returns a list of DynamicIconInfo objects. - * @throws { BusinessError } 201 - Permission denied. - * @throws { BusinessError } 202 - Permission denied, non-system app called system api. - * @throws { BusinessError } 17700004 - The specified user ID is not found. - * @throws { BusinessError } 17700306 - Failed to obtain the dynamic icon. - * @syscap SystemCapability.BundleManager.BundleFramework.Core - * @systemapi - * @since 20 - */ - function getAllDynamicIconInfo(userId?: number): Promise>; - /** * Verifies the validity of .abc files. Only .abc files passed the verification can run on the restricted VM. * @@ -4514,26 +4430,6 @@ declare namespace bundleManager { * @since 19 */ export type PluginModuleInfo = _PluginModuleInfo; - - /** - * Contains dynamic icon. - * - * @typedef { _BundleInfo.DynamicIconInfo } - * @syscap SystemCapability.BundleManager.BundleFramework.Core - * @systemapi - * @since 20 - */ - export type DynamicIconInfo = _BundleInfo.DynamicIconInfo; - - /** - * Contains bundle options. - * - * @typedef { _BundleInfo.BundleOptions } - * @syscap SystemCapability.BundleManager.BundleFramework.Core - * @systemapi - * @since 20 - */ - export type BundleOptions = _BundleInfo.BundleOptions; } export default bundleManager; diff --git a/api/bundleManager/BundleInfo.d.ts b/api/bundleManager/BundleInfo.d.ts index bdc8493a1b..0243e28965 100644 --- a/api/bundleManager/BundleInfo.d.ts +++ b/api/bundleManager/BundleInfo.d.ts @@ -800,87 +800,3 @@ export interface AppCloneIdentity { */ readonly appIndex: number; } - -/** - * Obtains dynamic icon information about a bundle - * - * @typedef DynamicIconInfo - * @syscap SystemCapability.BundleManager.BundleFramework.Core - * @systemapi - * @since 20 - */ -export interface DynamicIconInfo { - /** - * Indicates the name of the bundle. - * - * @type { string } - * @readonly - * @syscap SystemCapability.BundleManager.BundleFramework.Core - * @systemapi - * @since 20 - */ - readonly bundleName: string; - - /** - * Indicates the name of the dynamic icon. - * - * @type { string } - * @readonly - * @syscap SystemCapability.BundleManager.BundleFramework.Core - * @systemapi - * @since 20 - */ - readonly moduleName: string; - - /** - * Indicates the user id of the bundle. - * - * @type { number } - * @readonly - * @syscap SystemCapability.BundleManager.BundleFramework.Core - * @systemapi - * @since 20 - */ - readonly userId: number; - - /** - * Indicates the index of the bundle. - * - * @type { number } - * @readonly - * @syscap SystemCapability.BundleManager.BundleFramework.Core - * @systemapi - * @since 20 - */ - readonly appIndex: number; -} - -/** - * The bundle options of bundle manager - * - * @typedef BundleOptions - * @syscap SystemCapability.BundleManager.BundleFramework.Core - * @systemapi - * @since 20 - */ -export interface BundleOptions { - /** - * Indicates the user id. - * - * @type { ?number } - * @syscap SystemCapability.BundleManager.BundleFramework.Core - * @systemapi - * @since 20 - */ - userId?: number; - - /** - * Indicates the app index. - * - * @type { ?number } - * @syscap SystemCapability.BundleManager.BundleFramework.Core - * @systemapi - * @since 20 - */ - appIndex?: number; -} -- Gitee From c21fade5651ce0388bc3f42a70be3164215d93d0 Mon Sep 17 00:00:00 2001 From: zhang_hao_zheng Date: Mon, 9 Jun 2025 23:25:53 +0800 Subject: [PATCH 06/12] =?UTF-8?q?=E6=8C=91=E5=8D=956.0hdc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhang_hao_zheng Change-Id: Id9255eae3859240ba45b2cd40dd194f126fdd847 --- api/application/AppServiceExtensionContext.d.ts | 2 +- api/application/UIAbilityContext.d.ts | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/api/application/AppServiceExtensionContext.d.ts b/api/application/AppServiceExtensionContext.d.ts index 53ef10a13f..b4b756aa06 100644 --- a/api/application/AppServiceExtensionContext.d.ts +++ b/api/application/AppServiceExtensionContext.d.ts @@ -42,7 +42,7 @@ export default class AppServiceExtensionContext extends ExtensionContext { * @returns { number } Returns the number code of the ability connected * @throws { BusinessError } 16000001 - The specified ability does not exist. * @throws { BusinessError } 16000002 - Incorrect ability type. - * @throws { BusinessError } 16000004 - Failed to start the invisible ability. + * @throws { BusinessError } 16000004 - Cannot start an invisible component. * @throws { BusinessError } 16000005 - The specified process does not have the permission. * @throws { BusinessError } 16000006 - Cross-user operations are not allowed. * @throws { BusinessError } 16000008 - The crowdtesting application expires. diff --git a/api/application/UIAbilityContext.d.ts b/api/application/UIAbilityContext.d.ts index 1d478ee9d2..8b0539fd34 100644 --- a/api/application/UIAbilityContext.d.ts +++ b/api/application/UIAbilityContext.d.ts @@ -4819,7 +4819,7 @@ export default class UIAbilityContext extends Context { * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 16000001 - The specified ability does not exist. * @throws { BusinessError } 16000002 - Incorrect ability type. - * @throws { BusinessError } 16000004 - Failed to start the invisible ability. + * @throws { BusinessError } 16000004 - Cannot start an invisible component. * @throws { BusinessError } 16000005 - The specified process does not have the permission. * @throws { BusinessError } 16000006 - Cross-user operations are not allowed. * @throws { BusinessError } 16000008 - The crowdtesting application expires. @@ -4828,7 +4828,7 @@ export default class UIAbilityContext extends Context { * @throws { BusinessError } 16000013 - The application is controlled by EDM. * @throws { BusinessError } 16000019 - No matching ability is found. * @throws { BusinessError } 16000050 - Internal error. - * @throws { BusinessError } 16000200 - The target and the caller are not in the same group. + * @throws { BusinessError } 16000200 - The caller is not in the appIdentifierAllowList of the target application. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @since 20 @@ -4845,12 +4845,12 @@ export default class UIAbilityContext extends Context { * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 16000001 - The specified ability does not exist. * @throws { BusinessError } 16000002 - Incorrect ability type. - * @throws { BusinessError } 16000004 - Failed to start the invisible ability. + * @throws { BusinessError } 16000004 - Cannot start an invisible component. * @throws { BusinessError } 16000005 - The specified process does not have the permission. * @throws { BusinessError } 16000006 - Cross-user operations are not allowed. * @throws { BusinessError } 16000011 - The context does not exist. * @throws { BusinessError } 16000050 - Internal error. - * @throws { BusinessError } 16000200 - The target and the caller are not in the same group. + * @throws { BusinessError } 16000200 - The caller is not in the appIdentifierAllowList of the target application. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @since 20 @@ -4868,13 +4868,13 @@ export default class UIAbilityContext extends Context { * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 16000001 - The specified ability does not exist. * @throws { BusinessError } 16000002 - Incorrect ability type. - * @throws { BusinessError } 16000004 - Failed to start the invisible ability. + * @throws { BusinessError } 16000004 - Cannot start an invisible component. * @throws { BusinessError } 16000005 - The specified process does not have the permission. * @throws { BusinessError } 16000006 - Cross-user operations are not allowed. * @throws { BusinessError } 16000008 - The crowdtesting application expires. * @throws { BusinessError } 16000011 - The context does not exist. * @throws { BusinessError } 16000050 - Internal error. - * @throws { BusinessError } 16000201 - The target has not been started yet. + * @throws { BusinessError } 16000201 - The target service has not been started yet. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @since 20 -- Gitee From b1855e56c940509a3135f8e493014835208ebb27 Mon Sep 17 00:00:00 2001 From: jiangminsen Date: Tue, 10 Jun 2025 10:34:37 +0800 Subject: [PATCH 07/12] =?UTF-8?q?=E5=A4=84=E7=90=86=E9=BB=84=E8=93=9D?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=B7=AE=E5=BC=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jiangminsen --- api/@ohos.bundle.bundleManager.d.ts | 27 +++++++++++++++------ api/@ohos.bundle.bundleResourceManager.d.ts | 4 +-- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/api/@ohos.bundle.bundleManager.d.ts b/api/@ohos.bundle.bundleManager.d.ts index d60c73f6eb..fb8c117995 100644 --- a/api/@ohos.bundle.bundleManager.d.ts +++ b/api/@ohos.bundle.bundleManager.d.ts @@ -77,6 +77,7 @@ declare namespace bundleManager { */ /** * Used to query the enumeration value of bundleInfo. Multiple values can be passed in the form. + * Multiple value input, such as GET_BUNDLE_INFO_DEFAULT | GET_BUNDLE_INFO_WITH_APPLICATION. * * @enum { number } * @syscap SystemCapability.BundleManager.BundleFramework.Core @@ -183,6 +184,7 @@ declare namespace bundleManager { * Used to obtain the bundleInfo containing ability. The obtained bundleInfo does not * contain the information of signatureInfo, applicationInfo, extensionAbility and permission. * It can't be used alone, it needs to be used with GET_BUNDLE_INFO_WITH_HAP_MODULE. + * such as GET_BUNDLE_INFO_WITH_ABILITY | GET_BUNDLE_INFO_WITH_HAP_MODULE. * * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform @@ -238,7 +240,7 @@ declare namespace bundleManager { /** * Used to obtain the metadata contained in applicationInfo, moduleInfo and abilityInfo. * It can't be used alone, it needs to be used with GET_BUNDLE_INFO_WITH_APPLICATION, - * GET_BUNDLE_INFO_WITH_HAP_MODULE, GET_BUNDLE_INFO_WITH_ABILITIES, GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY. + * GET_BUNDLE_INFO_WITH_HAP_MODULE, GET_BUNDLE_INFO_WITH_ABILITY, GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY. * * @syscap SystemCapability.BundleManager.BundleFramework.Core * @since 9 @@ -246,9 +248,9 @@ declare namespace bundleManager { /** * Used to obtain the metadata contained in applicationInfo, moduleInfo, abilityInfo and extensionAbility. * It can't be used alone, it needs to be used with GET_BUNDLE_INFO_WITH_APPLICATION, - * GET_BUNDLE_INFO_WITH_HAP_MODULE, GET_BUNDLE_INFO_WITH_ABILITIES, GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY, + * GET_BUNDLE_INFO_WITH_HAP_MODULE, GET_BUNDLE_INFO_WITH_ABILITY, GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY, * such as GET_BUNDLE_INFO_WITH_APPLICATION | GET_BUNDLE_INFO_WITH_METADATA - * or GET_BUNDLE_INFO_WITH_HAP_MODULE | GET_BUNDLE_INFO_WITH_ABILITIES | GET_BUNDLE_INFO_WITH_METADATA + * or GET_BUNDLE_INFO_WITH_HAP_MODULE | GET_BUNDLE_INFO_WITH_ABILITY | GET_BUNDLE_INFO_WITH_METADATA * or GET_BUNDLE_INFO_WITH_HAP_MODULE | GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY | GET_BUNDLE_INFO_WITH_METADATA. * * @syscap SystemCapability.BundleManager.BundleFramework.Core @@ -258,7 +260,10 @@ declare namespace bundleManager { /** * Used to obtain the metadata contained in applicationInfo, moduleInfo and abilityInfo. * It can't be used alone, it needs to be used with GET_BUNDLE_INFO_WITH_APPLICATION, - * GET_BUNDLE_INFO_WITH_HAP_MODULE, GET_BUNDLE_INFO_WITH_ABILITIES, GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY. + * GET_BUNDLE_INFO_WITH_HAP_MODULE, GET_BUNDLE_INFO_WITH_ABILITY, GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY, + * such as GET_BUNDLE_INFO_WITH_APPLICATION | GET_BUNDLE_INFO_WITH_METADATA + * or GET_BUNDLE_INFO_WITH_HAP_MODULE | GET_BUNDLE_INFO_WITH_ABILITY | GET_BUNDLE_INFO_WITH_METADATA + * or GET_BUNDLE_INFO_WITH_HAP_MODULE | GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY | GET_BUNDLE_INFO_WITH_METADATA. * * @syscap SystemCapability.BundleManager.BundleFramework.Core * @crossplatform @@ -322,7 +327,8 @@ declare namespace bundleManager { /** * Used to obtain the bundleInfo containing menu configuration in hapModuleInfo. * The obtained bundleInfo does not contain the information of applicationInfo, extensionAbility, ability and permission. - * It can't be used alone, it needs to be used with GET_BUNDLE_INFO_WITH_HAP_MODULE. + * It can't be used alone, it needs to be used with GET_BUNDLE_INFO_WITH_HAP_MODULE, + * such as GET_BUNDLE_INFO_WITH_MENU | GET_BUNDLE_INFO_WITH_HAP_MODULE * * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice @@ -332,7 +338,8 @@ declare namespace bundleManager { /** * Used to obtain the bundleInfo containing router map configuration in hapModuleInfo. * The obtained bundleInfo does not contain the information of applicationInfo, extensionAbility, ability and permission. - * It can't be used alone, it needs to be used with GET_BUNDLE_INFO_WITH_HAP_MODULE. + * It can't be used alone, it needs to be used with GET_BUNDLE_INFO_WITH_HAP_MODULE, + * such as GET_BUNDLE_INFO_WITH_ROUTER_MAP | GET_BUNDLE_INFO_WITH_HAP_MODULE * * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice @@ -342,7 +349,9 @@ declare namespace bundleManager { /** * Used to obtain the skillInfo contained in abilityInfo and extensionInfo. * It can't be used alone, it needs to be used with GET_BUNDLE_INFO_WITH_HAP_MODULE, - * GET_BUNDLE_INFO_WITH_ABILITIES, GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY. + * GET_BUNDLE_INFO_WITH_ABILITY, GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY, + * such as GET_BUNDLE_INFO_WITH_SKILL | GET_BUNDLE_INFO_WITH_HAP_MODULE | GET_BUNDLE_INFO_WITH_ABILITY + * or GET_BUNDLE_INFO_WITH_SKILL | GET_BUNDLE_INFO_WITH_HAP_MODULE | GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY * * @syscap SystemCapability.BundleManager.BundleFramework.Core * @atomicservice @@ -359,7 +368,9 @@ declare namespace bundleManager { */ GET_BUNDLE_INFO_ONLY_WITH_LAUNCHER_ABILITY = 0x00001000, /** - * Used to obtain the bundleInfo only if any user installed + * Used to obtain the bundle information of an application installed by any user. + * It must be used together with GET_BUNDLE_INFO_WITH_APPLICATION. + * It is valid only in the {@link getBundleInfo} and {@link getAllBundleInfo} APIs. * * @syscap SystemCapability.BundleManager.BundleFramework.Core * @systemapi diff --git a/api/@ohos.bundle.bundleResourceManager.d.ts b/api/@ohos.bundle.bundleResourceManager.d.ts index f6e772fb54..a3787037bb 100644 --- a/api/@ohos.bundle.bundleResourceManager.d.ts +++ b/api/@ohos.bundle.bundleResourceManager.d.ts @@ -120,7 +120,7 @@ declare namespace bundleResourceManager { * @permission ohos.permission.GET_BUNDLE_RESOURCES * @param { string } bundleName - Indicates the bundle name of the application. * @param { number } [resourceFlags] {@link ResourceFlag} - Indicates the flag used to specify information contained in the BundleResourceInfo object that will be returned. - * @param { number } [appIndex] - Indicates the index of the bundle. + * @param { number } [appIndex] - Indicates the index of the bundle,The default value is 0. * @returns { BundleResourceInfo } Returns the BundleResourceInfo object. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. @@ -157,7 +157,7 @@ declare namespace bundleResourceManager { * @param { string } bundleName - Indicates the bundle name of the application. * @param { number } [resourceFlags] {@link ResourceFlag} - Indicates the flag used to specify information *
contained in the LauncherAbilityResourceInfo object that will be returned. - * @param { number } [appIndex] - Indicates the index of the bundle. + * @param { number } [appIndex] - Indicates the index of the bundle,The default value is 0. * @returns { Array } Returns a list of LauncherAbilityResourceInfo objects. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. -- Gitee From 14f4f324e9dd64ae647d2c834ea71861ccd52080 Mon Sep 17 00:00:00 2001 From: yanghang Date: Tue, 10 Jun 2025 10:47:34 +0800 Subject: [PATCH 08/12] fix: error number correct for power interfaces Signed-off-by: yanghang --- api/@ohos.batteryInfo.d.ts | 6 +++--- api/@ohos.power.d.ts | 4 ---- api/@ohos.runningLock.d.ts | 4 ---- api/@ohos.thermal.d.ts | 3 --- 4 files changed, 3 insertions(+), 14 deletions(-) diff --git a/api/@ohos.batteryInfo.d.ts b/api/@ohos.batteryInfo.d.ts index 93d9adf60a..9d6e0cf842 100644 --- a/api/@ohos.batteryInfo.d.ts +++ b/api/@ohos.batteryInfo.d.ts @@ -48,7 +48,7 @@ declare namespace batteryInfo { * @returns { number } Return to set the charging configuration result. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; - * @throws { BusinessError } 4900101 - Failed to connect to the service. + * @throws { BusinessError } 5100101 - Failed to connect to the service. * @syscap SystemCapability.PowerManager.BatteryManager.Core * @systemapi * @since 11 @@ -63,7 +63,7 @@ declare namespace batteryInfo { * @returns { string } Returns the battery charging configuration, returns "" otherwise. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; - * @throws { BusinessError } 4900101 - Failed to connect to the service. + * @throws { BusinessError } 5100101 - Failed to connect to the service. * @syscap SystemCapability.PowerManager.BatteryManager.Core * @systemapi * @since 11 @@ -78,7 +78,7 @@ declare namespace batteryInfo { * @returns { boolean } Returns true if the device supports the charging scene, returns false otherwise. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; - * @throws { BusinessError } 4900101 - Failed to connect to the service. + * @throws { BusinessError } 5100101 - Failed to connect to the service. * @syscap SystemCapability.PowerManager.BatteryManager.Core * @systemapi * @since 11 diff --git a/api/@ohos.power.d.ts b/api/@ohos.power.d.ts index ed6654494f..0bdb72dc4f 100644 --- a/api/@ohos.power.d.ts +++ b/api/@ohos.power.d.ts @@ -105,7 +105,6 @@ declare namespace power { * The screen will be on if device is active, screen will be off otherwise. * * @returns { boolean } Returns true if the device is active; returns false otherwise. - * @throws { BusinessError } 4900101 - Failed to connect to the service. * @syscap SystemCapability.PowerManager.PowerManager.Core * @since 9 */ @@ -179,7 +178,6 @@ declare namespace power { * Obtains the power mode of the current device. For details, see {@link DevicePowerMode}. * * @returns { DevicePowerMode } The power mode {@link DevicePowerMode} of current device . - * @throws { BusinessError } 4900101 - Failed to connect to the service. * @syscap SystemCapability.PowerManager.PowerManager.Core * @since 9 */ @@ -195,7 +193,6 @@ declare namespace power { * @throws { BusinessError } 201 – Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Parameter verification failed. - * @throws { BusinessError } 4900101 - Failed to connect to the service. * @syscap SystemCapability.PowerManager.PowerManager.Core * @systemapi * @since 9 @@ -212,7 +209,6 @@ declare namespace power { * @throws { BusinessError } 201 – Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Parameter verification failed. - * @throws { BusinessError } 4900101 - Failed to connect to the service. * @syscap SystemCapability.PowerManager.PowerManager.Core * @systemapi * @since 9 diff --git a/api/@ohos.runningLock.d.ts b/api/@ohos.runningLock.d.ts index 3a01eb3e4c..a2f1725ae5 100644 --- a/api/@ohos.runningLock.d.ts +++ b/api/@ohos.runningLock.d.ts @@ -65,7 +65,6 @@ declare namespace runningLock { * timeout parameter must be of type number. * @throws { BusinessError } 201 – If the permission is denied. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; - * @throws { BusinessError } 4900101 - Failed to connect to the service. * @syscap SystemCapability.PowerManager.PowerManager.Core * @since 9 */ @@ -86,7 +85,6 @@ declare namespace runningLock { * Checks whether a lock is held or in use. * * @returns { boolean } Returns true if the lock is held or in use; returns false if the lock has been released. - * @throws { BusinessError } 4900101 - Failed to connect to the service. * @syscap SystemCapability.PowerManager.PowerManager.Core * @since 9 */ @@ -110,7 +108,6 @@ declare namespace runningLock { * * @permission ohos.permission.RUNNING_LOCK * @throws { BusinessError } 201 – If the permission is denied. - * @throws { BusinessError } 4900101 - Failed to connect to the service. * @syscap SystemCapability.PowerManager.PowerManager.Core * @since 9 */ @@ -182,7 +179,6 @@ declare namespace runningLock { * @returns { boolean } Whether the specified {@link RunningLockType} is supported. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; * 2. Parameter verification failed. - * @throws { BusinessError } 4900101 - Failed to connect to the service. * @syscap SystemCapability.PowerManager.PowerManager.Core * @since 9 */ diff --git a/api/@ohos.thermal.d.ts b/api/@ohos.thermal.d.ts index d5a8dd0429..28c9b0938c 100644 --- a/api/@ohos.thermal.d.ts +++ b/api/@ohos.thermal.d.ts @@ -119,7 +119,6 @@ declare namespace thermal { * @param { Callback } callback Callback of thermal level changes. * this param is a function type. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; - * @throws { BusinessError } 4800101 - Failed to connect to the service. * @syscap SystemCapability.PowerManager.ThermalManager * @since 9 */ @@ -141,7 +140,6 @@ declare namespace thermal { * * @param { Callback } callback Callback of thermal level changes. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types; - * @throws { BusinessError } 4800101 - Failed to connect to the service. * @syscap SystemCapability.PowerManager.ThermalManager * @since 9 */ @@ -162,7 +160,6 @@ declare namespace thermal { * Obtains the current thermal level. * * @returns { ThermalLevel } The thermal level. - * @throws { BusinessError } 4800101 - Failed to connect to the service. * @syscap SystemCapability.PowerManager.ThermalManager * @since 9 */ -- Gitee From 58ace4f2493cb7a520c2a0b1bd4937c1491c016a Mon Sep 17 00:00:00 2001 From: qingliutan Date: Tue, 27 May 2025 19:46:13 +0800 Subject: [PATCH 09/12] =?UTF-8?q?=E5=86=85=E9=83=A8=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=A0=81=E5=A2=9E=E5=8A=A0=E8=AF=A6=E7=BB=86=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: qingliutan --- api/@ohos.security.certManager.d.ts | 102 ++++++++++++++-------- api/@ohos.security.certManagerDialog.d.ts | 18 ++-- 2 files changed, 80 insertions(+), 40 deletions(-) diff --git a/api/@ohos.security.certManager.d.ts b/api/@ohos.security.certManager.d.ts index 8926f223a5..1ff0fe378b 100644 --- a/api/@ohos.security.certManager.d.ts +++ b/api/@ohos.security.certManager.d.ts @@ -62,7 +62,8 @@ declare namespace certificateManager { CM_ERROR_INVALID_PARAMS = 401, /** - * Indicates that internal error. + * Indicates that internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * * @syscap SystemCapability.Security.CertificateManager * @since 11 @@ -629,7 +630,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 17500003 - The keystore is in an invalid format or the keystore password is incorrect. * @syscap SystemCapability.Security.CertificateManager * @since 11 @@ -645,7 +647,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 17500003 - The keystore is in an invalid format or the keystore password is incorrect. * @throws { BusinessError } 17500004 - The number of certificates or credentials reaches the maximum allowed. * @syscap SystemCapability.Security.CertificateManager @@ -669,7 +672,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 17500003 - The keystore is in an invalid format or the keystore password is incorrect. * @syscap SystemCapability.Security.CertificateManager * @since 11 @@ -685,7 +689,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 17500003 - The keystore is in an invalid format or the keystore password is incorrect. * @throws { BusinessError } 17500004 - The number of certificates or credentials reaches the maximum allowed. * @syscap SystemCapability.Security.CertificateManager @@ -702,7 +707,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 17500002 - The certificate does not exist. * @syscap SystemCapability.Security.CertificateManager * @since 11 @@ -718,7 +724,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 17500002 - The certificate does not exist. * @syscap SystemCapability.Security.CertificateManager * @since 11 @@ -734,7 +741,8 @@ declare namespace certificateManager { * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @syscap SystemCapability.Security.CertificateManager * @systemapi * @since 11 @@ -748,7 +756,8 @@ declare namespace certificateManager { * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @syscap SystemCapability.Security.CertificateManager * @systemapi * @since 11 @@ -764,7 +773,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 17500002 - The certificate does not exist. * @syscap SystemCapability.Security.CertificateManager * @since 11 @@ -780,7 +790,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 17500002 - The certificate does not exist. * @syscap SystemCapability.Security.CertificateManager * @since 11 @@ -797,7 +808,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 17500002 - The certificate does not exist. * @syscap SystemCapability.Security.CertificateManager * @since 11 @@ -812,7 +824,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 17500002 - The certificate does not exist. * @throws { BusinessError } 17500005 - The application is not authorized by the user. * @syscap SystemCapability.Security.CertificateManager @@ -830,7 +843,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 17500002 - The certificate does not exist. * @syscap SystemCapability.Security.CertificateManager * @since 11 @@ -845,7 +859,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 17500002 - The certificate does not exist. * @throws { BusinessError } 17500005 - The application is not authorized by the user. * @syscap SystemCapability.Security.CertificateManager @@ -863,7 +878,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @syscap SystemCapability.Security.CertificateManager * @since 11 */ @@ -879,7 +895,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @syscap SystemCapability.Security.CertificateManager * @since 11 */ @@ -894,7 +911,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @syscap SystemCapability.Security.CertificateManager * @since 11 */ @@ -910,7 +928,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @syscap SystemCapability.Security.CertificateManager * @since 11 */ @@ -926,7 +945,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @syscap SystemCapability.Security.CertificateManager * @since 11 */ @@ -941,7 +961,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @syscap SystemCapability.Security.CertificateManager * @since 11 */ @@ -956,7 +977,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @syscap SystemCapability.Security.CertificateManager * @since 11 */ @@ -971,7 +993,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 17500002 - The certificate does not exist. * @throws { BusinessError } 17500005 - The application is not authorized by the user. * @syscap SystemCapability.Security.CertificateManager @@ -988,7 +1011,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @syscap SystemCapability.Security.CertificateManager * @since 12 */ @@ -1000,7 +1024,8 @@ declare namespace certificateManager { * @permission ohos.permission.ACCESS_CERT_MANAGER * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @syscap SystemCapability.Security.CertificateManager * @since 12 */ @@ -1015,7 +1040,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @syscap SystemCapability.Security.CertificateManager * @since 18 */ @@ -1030,7 +1056,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 17500002 - The certificate does not exist. * @syscap SystemCapability.Security.CertificateManager * @since 12 @@ -1044,7 +1071,8 @@ declare namespace certificateManager { * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @syscap SystemCapability.Security.CertificateManager * @systemapi * @since 12 @@ -1057,7 +1085,8 @@ declare namespace certificateManager { * @permission ohos.permission.ACCESS_CERT_MANAGER * @returns { Promise } The private certificates installed by the application. * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @syscap SystemCapability.Security.CertificateManager * @since 13 */ @@ -1182,7 +1211,8 @@ declare namespace certificateManager { * @returns { string } the certificate file store path. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @syscap SystemCapability.Security.CertificateManager * @since 18 */ @@ -1193,7 +1223,8 @@ declare namespace certificateManager { * @returns { string } the certificate file store path. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 17500009 - The device does not support the specified certificate store path, such as the overseas device does not support the certificate which algorithm is SM. * @syscap SystemCapability.Security.CertificateManager * @since 20 @@ -1210,7 +1241,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 17500003 - Indicates that the certificate is in an invalid format. * @throws { BusinessError } 17500004 - Indicates that the number of certificates reaches the maximum allowed. * @throws { BusinessError } 17500007 - Indicates that the device enters advanced security mode. In this mode, the user CA certificate cannot be installed. @@ -1227,7 +1259,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 17500002 - Indicates that the certificate does not exist. * @syscap SystemCapability.Security.CertificateManager * @since 18 @@ -1246,7 +1279,8 @@ declare namespace certificateManager { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17500001 - Internal error. + * @throws { BusinessError } 17500001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 17500003 - The keystore is in an invalid format or the keystore password is incorrect. * @throws { BusinessError } 17500004 - The number of certificates or credentials reaches the maximum allowed. * @syscap SystemCapability.Security.CertificateManager diff --git a/api/@ohos.security.certManagerDialog.d.ts b/api/@ohos.security.certManagerDialog.d.ts index dc672646ee..1f0de777eb 100644 --- a/api/@ohos.security.certManagerDialog.d.ts +++ b/api/@ohos.security.certManagerDialog.d.ts @@ -142,7 +142,8 @@ declare namespace certificateManagerDialog { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 29700001 - Internal error. + * @throws { BusinessError } 29700001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @syscap SystemCapability.Security.CertificateManagerDialog * @stagemodelonly * @since 13 @@ -219,7 +220,8 @@ declare namespace certificateManagerDialog { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 29700001 - Internal error. + * @throws { BusinessError } 29700001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 29700002 - The user cancels the installation operation. * @throws { BusinessError } 29700003 - The user install certificate failed in the certificate manager dialog. * @throws { BusinessError } 29700004 - The API is not supported on this device. @@ -239,7 +241,8 @@ declare namespace certificateManagerDialog { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 29700001 - Internal error. + * @throws { BusinessError } 29700001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 29700002 - The user cancels the installation operation. * @throws { BusinessError } 29700003 - The user install certificate failed in the certificate manager dialog, such as the certificate is in an invalid format. * @throws { BusinessError } 29700004 - The API is not supported on this device. @@ -261,7 +264,8 @@ declare namespace certificateManagerDialog { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 29700001 - Internal error. + * @throws { BusinessError } 29700001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 29700002 - The user cancels the uninstallation operation. * @throws { BusinessError } 29700003 - The user uninstall certificate failed in the certificate manager dialog, such as the certificate uri is not exist. * @throws { BusinessError } 29700004 - The API is not supported on this device. @@ -303,7 +307,8 @@ declare namespace certificateManagerDialog { * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 29700001 - Internal error. + * @throws { BusinessError } 29700001 - Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 29700003 - Show the certificate detail dialog fail, such as the certificate is in an invalid format. * @throws { BusinessError } 29700004 - The API is not supported on this device. * @syscap SystemCapability.Security.CertificateManagerDialog @@ -324,7 +329,8 @@ declare namespace certificateManagerDialog { * @throws { BusinessError } 401 - Invalid parameter. Possible causes: 1. A mandatory parameter is left * unspecified. * 2. Incorrect parameter type. 3. Parameter verification failed. - * @throws { BusinessError } 29700001 Internal error. + * @throws { BusinessError } 29700001 Internal error. Possible causes: 1. IPC communication failed; + *
2. Memory operation error; 3. File operation error. * @throws { BusinessError } 29700002 The user cancels the authorization. * @syscap SystemCapability.Security.CertificateManagerDialog * @stagemodelonly -- Gitee From 22b52152653fdf14758f4542adafcf0ca8fee22a Mon Sep 17 00:00:00 2001 From: lcc Date: Tue, 10 Jun 2025 16:56:54 +0800 Subject: [PATCH 10/12] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E6=80=A7=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lcc --- api/@ohos.security.cryptoFramework.d.ts | 266 ++++++++++++------------ 1 file changed, 133 insertions(+), 133 deletions(-) diff --git a/api/@ohos.security.cryptoFramework.d.ts b/api/@ohos.security.cryptoFramework.d.ts index 80492e74cd..20039e912a 100644 --- a/api/@ohos.security.cryptoFramework.d.ts +++ b/api/@ohos.security.cryptoFramework.d.ts @@ -111,20 +111,20 @@ declare namespace cryptoFramework { ERR_OUT_OF_MEMORY = 17620001, /** - * Indicates that failed to convert paramters between arkts and c. + * Indicates that failed to convert parameters between arkts and c. * * @syscap SystemCapability.Security.CryptoFramework * @since 9 */ /** - * Indicates that failed to convert paramters between arkts and c. + * Indicates that failed to convert parameters between arkts and c. * * @syscap SystemCapability.Security.CryptoFramework * @crossplatform * @since 11 */ /** - * Indicates that failed to convert paramters between arkts and c. + * Indicates that failed to convert parameters between arkts and c. * * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -864,7 +864,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 801 - this operation is not supported. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 10 @@ -877,7 +877,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 801 - this operation is not supported. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -891,7 +891,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 801 - this operation is not supported. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform @@ -943,7 +943,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 801 - this operation is not supported. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform @@ -1014,7 +1014,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 801 - this operation is not supported. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform @@ -2189,7 +2189,7 @@ declare namespace cryptoFramework { * @param { AsyncCallback } callback - the callback of the init function. * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -2201,7 +2201,7 @@ declare namespace cryptoFramework { * @param { AsyncCallback } callback - the callback of the init function. * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -2216,7 +2216,7 @@ declare namespace cryptoFramework { * @param { AsyncCallback } callback - the callback of the init function. * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Mac * @crossplatform @@ -2232,7 +2232,7 @@ declare namespace cryptoFramework { * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -2244,7 +2244,7 @@ declare namespace cryptoFramework { * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -2259,7 +2259,7 @@ declare namespace cryptoFramework { * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Mac * @crossplatform @@ -2276,7 +2276,7 @@ declare namespace cryptoFramework { * @param { SymKey } key - indicates the SymKey. * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Mac * @crossplatform @@ -2292,7 +2292,7 @@ declare namespace cryptoFramework { * @param { AsyncCallback } callback - the callback of the update function. * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -2304,7 +2304,7 @@ declare namespace cryptoFramework { * @param { AsyncCallback } callback - the callback of the update function. * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -2317,7 +2317,7 @@ declare namespace cryptoFramework { * @param { AsyncCallback } callback - the callback of the update function. * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Mac * @crossplatform @@ -2333,7 +2333,7 @@ declare namespace cryptoFramework { * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -2345,7 +2345,7 @@ declare namespace cryptoFramework { * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -2358,7 +2358,7 @@ declare namespace cryptoFramework { * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Mac * @crossplatform @@ -2373,7 +2373,7 @@ declare namespace cryptoFramework { * @param { DataBlob } input - indicates the DataBlob. * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Mac * @crossplatform @@ -2453,7 +2453,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Mac * @crossplatform @@ -2567,7 +2567,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Mac * @crossplatform @@ -2609,7 +2609,7 @@ declare namespace cryptoFramework { * @param { AsyncCallback } callback - the callback of the update function. * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -2621,7 +2621,7 @@ declare namespace cryptoFramework { * @param { AsyncCallback } callback - the callback of the update function. * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -2634,7 +2634,7 @@ declare namespace cryptoFramework { * @param { AsyncCallback } callback - the callback of the update function. * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.MessageDigest * @crossplatform @@ -2650,7 +2650,7 @@ declare namespace cryptoFramework { * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -2662,7 +2662,7 @@ declare namespace cryptoFramework { * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -2675,7 +2675,7 @@ declare namespace cryptoFramework { * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.MessageDigest * @crossplatform @@ -2690,7 +2690,7 @@ declare namespace cryptoFramework { * @param { DataBlob } input - indicates the DataBlob. * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. - * @throws { BusinessError } 17620001 - memory malloc failed. + * @throws { BusinessError } 17620001 - memory operation failed. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.MessageDigest * @crossplatform @@ -2770,7 +2770,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.MessageDigest * @crossplatform @@ -3209,7 +3209,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -3224,7 +3224,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -3241,7 +3241,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform @@ -3260,7 +3260,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 10 @@ -3275,7 +3275,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -3292,7 +3292,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform @@ -3311,7 +3311,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -3326,7 +3326,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -3343,7 +3343,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform @@ -3362,7 +3362,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 10 @@ -3377,7 +3377,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -3394,7 +3394,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform @@ -3413,7 +3413,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform @@ -3431,7 +3431,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -3445,7 +3445,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -3460,7 +3460,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform @@ -3478,7 +3478,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -3492,7 +3492,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -3507,7 +3507,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform @@ -3525,7 +3525,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform @@ -3543,7 +3543,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -3557,7 +3557,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -3572,7 +3572,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform @@ -3590,7 +3590,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 10 @@ -3604,7 +3604,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -3619,7 +3619,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform @@ -3637,7 +3637,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -3651,7 +3651,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -3666,7 +3666,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform @@ -3684,7 +3684,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 10 @@ -3698,7 +3698,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -3713,7 +3713,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform @@ -3731,7 +3731,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform @@ -3946,7 +3946,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -3959,7 +3959,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -3974,7 +3974,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -3991,7 +3991,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -4004,7 +4004,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -4019,7 +4019,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -4036,7 +4036,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -4053,7 +4053,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -4066,7 +4066,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -4081,7 +4081,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -4098,7 +4098,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -4111,7 +4111,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -4126,7 +4126,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -4143,7 +4143,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -4160,7 +4160,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -4173,7 +4173,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -4187,7 +4187,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -4204,7 +4204,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 10 @@ -4217,7 +4217,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -4231,7 +4231,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -4248,7 +4248,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -4261,7 +4261,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -4275,7 +4275,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -4292,7 +4292,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 10 @@ -4305,7 +4305,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -4319,7 +4319,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -4336,7 +4336,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -4537,7 +4537,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -4550,7 +4550,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -4564,7 +4564,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -4581,7 +4581,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -4594,7 +4594,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -4608,7 +4608,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -4624,7 +4624,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -4641,7 +4641,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -4654,7 +4654,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -4668,7 +4668,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -4685,7 +4685,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -4698,7 +4698,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -4712,7 +4712,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -4728,7 +4728,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -4746,7 +4746,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -4760,7 +4760,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -4775,7 +4775,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -4793,7 +4793,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 10 @@ -4807,7 +4807,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -4822,7 +4822,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -4840,7 +4840,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -4854,7 +4854,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -4869,7 +4869,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -4887,7 +4887,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 10 @@ -4901,7 +4901,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -4916,7 +4916,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -4934,7 +4934,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -4952,7 +4952,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -4970,7 +4970,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform @@ -5253,7 +5253,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -5267,7 +5267,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -5282,7 +5282,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.KeyAgreement * @crossplatform @@ -5300,7 +5300,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @since 9 @@ -5314,7 +5314,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework * @crossplatform @@ -5329,7 +5329,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.KeyAgreement * @crossplatform @@ -5347,7 +5347,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.KeyAgreement * @crossplatform @@ -8903,7 +8903,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory operation failed. - * @throws { BusinessError } 17620002 - failed to convert paramters between arkts and c. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17630001 - crypto operation error. * @syscap SystemCapability.Security.CryptoFramework.Kdf * @crossplatform @@ -9112,8 +9112,8 @@ declare namespace cryptoFramework { * * @param { Uint8Array } data - indicates the signature in DER format. * @returns { EccSignatureSpec } the ECC signature spec. - * @throws { BusinessError } 17620001 - memory error. - * @throws { BusinessError } 17620002 - runtime error. + * @throws { BusinessError } 17620001 - memory operation failed. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17620003 - parameter check failed. Possible causes: *
1. The length of the data parameter is 0 or too large. * @throws { BusinessError } 17630001 - crypto operation error. @@ -9130,8 +9130,8 @@ declare namespace cryptoFramework { * * @param { EccSignatureSpec } spec - indicates the ECC signature spec. * @returns { Uint8Array } the signature in DER format. - * @throws { BusinessError } 17620001 - memory error. - * @throws { BusinessError } 17620002 - runtime error. + * @throws { BusinessError } 17620001 - memory operation failed. + * @throws { BusinessError } 17620002 - failed to convert parameters between arkts and c. * @throws { BusinessError } 17620003 - parameter check failed. Possible causes: *
1. The r or s value of the spec parameter is 0 or too large. * @throws { BusinessError } 17630001 - crypto operation error. -- Gitee From 879fdc405851a24882f303150a784b41dfaf18d6 Mon Sep 17 00:00:00 2001 From: chengyuli Date: Tue, 10 Jun 2025 17:15:32 +0800 Subject: [PATCH 11/12] Cherrypick fastbuffer.d.ts to Beta1 Signed-off-by: chengyuli --- api/@ohos.fastbuffer.d.ts | 1073 +++++++++++++++++++++++++++++++++++++ kits/@kit.ArkTS.d.ts | 5 +- 2 files changed, 1076 insertions(+), 2 deletions(-) create mode 100644 api/@ohos.fastbuffer.d.ts diff --git a/api/@ohos.fastbuffer.d.ts b/api/@ohos.fastbuffer.d.ts new file mode 100644 index 0000000000..a8a5131599 --- /dev/null +++ b/api/@ohos.fastbuffer.d.ts @@ -0,0 +1,1073 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (The type of "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkTS + */ +/** + * The FastBuffer class is a container type for dealing with binary data directly. It can be constructed in a variety of ways. + * + * @namespace fastbuffer + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ +declare namespace fastbuffer { + /** + * This parameter specifies the type of a common encoding format. + * + * @typedef { 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex' } + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + type BufferEncoding = 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex'; + /** + * TypedArray inherits the features and methods of Int8Array + * + * @extends Int8Array + * @typedef TypedArray + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + interface TypedArray extends Int8Array { + } + /** + * Allocates a new FastBuffer for a fixed size bytes. If fill is undefined, the FastBuffer will be zero-filled. + * + * @param { number } size - size size The desired length of the new FastBuffer + * @param { string | FastBuffer | number } [fill] - fill [fill=0] A value to pre-fill the new FastBuffer with + * @param { BufferEncoding } [encoding] - encoding [encoding='utf8'] If `fill` is a string, this is its encoding + * @returns { FastBuffer } Return a new allocated FastBuffer + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + function alloc(size: number, fill?: string | FastBuffer | number, encoding?: BufferEncoding): FastBuffer; + /** + * Allocates a new FastBuffer for a fixed size bytes. The FastBuffer will not be initially filled. + * + * @param { number } size - size size The desired length of the new FastBuffer + * @returns { FastBuffer } Return a new allocated FastBuffer + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + function allocUninitializedFromPool(size: number): FastBuffer; + /** + * Allocates a new un-pooled FastBuffer for a fixed size bytes. The FastBuffer will not be initially filled. + * + * @param { number } size - size size The desired length of the new FastBuffer + * @returns { FastBuffer } Return a new allocated FastBuffer + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + function allocUninitialized(size: number): FastBuffer; + /** + * Returns the byte length of a string when encoded using `encoding`. + * This is not the same as [`String.prototype.length`], which does not account + * for the encoding that is used to convert the string into bytes. + * + * @param { string | FastBuffer | TypedArray | DataView | ArrayBuffer | SharedArrayBuffer } value - Target string. + * @param { BufferEncoding } [encoding] - Encoding format of the string. The default value is 'utf8'. + * @returns { number } The number of bytes contained within `string` + * @throws { BusinessError } 10200001 - Range error. Possible causes: + * The value of the parameter is not within the specified range. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + function byteLength(value: string | FastBuffer | TypedArray | DataView | ArrayBuffer | SharedArrayBuffer, encoding?: BufferEncoding): number; + /** + * Returns a new `FastBuffer` which is the result of concatenating all the `FastBuffer`instances in the `list` together. + * + * @param { FastBuffer[] | Uint8Array[] } list - list list List of `FastBuffer` or Uint8Array instances to concatenate + * @param { number } [totalLength] - totalLength totalLength Total length of the `FastBuffer` instances in `list` when concatenated + * @returns { FastBuffer } Return a new allocated FastBuffer + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + function concat(list: FastBuffer[] | Uint8Array[], totalLength?: number): FastBuffer; + /** + * Allocates a new FastBuffer using an array of bytes in the range 0 – 255. Array entries outside that range will be truncated to fit into it. + * + * @param { number[] } array - array array an array of bytes in the range 0 – 255 + * @returns { FastBuffer } Return a new allocated FastBuffer + * @throws { BusinessError } 10200068 - The underlying ArrayBuffer is null or detach. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + function from(array: number[]): FastBuffer; + /** + * This creates a view of the ArrayBuffer without copying the underlying memory. + * + * @param { ArrayBuffer | SharedArrayBuffer } arrayBuffer - arrayBuffer arrayBuffer An ArrayBuffer, + * SharedArrayBuffer, for example the .buffer property of a TypedArray. + * @param { number } [byteOffset] - byteOffset [byteOffset = 0] Index of first byte to expose + * @param { number } [length] - length [length = arrayBuffer.byteLength - byteOffset] Number of bytes to expose + * @returns { FastBuffer } Return a view of the ArrayBuffer + * @throws { BusinessError } 10200068 - The underlying ArrayBuffer is null or detach. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + function from(arrayBuffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?: number): FastBuffer; + /** + * Copies the passed buffer data onto a new FastBuffer instance. + * + * @param { FastBuffer | Uint8Array } buffer - buffer buffer An existing FastBuffer or Uint8Array from which to copy data + * @returns { FastBuffer } Return a new allocated FastBuffer + * @throws { BusinessError } 10200068 - The underlying ArrayBuffer is null or detach. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + function from(buffer: FastBuffer | Uint8Array): FastBuffer; + /** + * Creates a new FastBuffer containing string. The encoding parameter identifies the character encoding + * to be used when converting string into bytes. + * + * @param { string } value - value string A string to encode + * @param { BufferEncoding } [encoding] - encoding [encoding='utf8'] The encoding of string + * @returns { FastBuffer } Return a new FastBuffer containing string + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + function from(value: string, encoding?: BufferEncoding): FastBuffer; + /** + * Returns true if obj is a FastBuffer, false otherwise + * + * @param { Object } obj - obj obj Objects to be judged + * @returns { boolean } true or false + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + function isBuffer(obj: Object): boolean; + /** + * Returns true if encoding is the name of a supported character encoding, or false otherwise. + * + * @param { string } encoding - encoding encoding A character encoding name to check + * @returns { boolean } true or false + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + function isEncoding(encoding: string): boolean; + /** + * Compares buf1 to buf2 + * + * @param { FastBuffer | Uint8Array } buf1 - buf1 buf1 A FastBuffer or Uint8Array instance. + * @param { FastBuffer | Uint8Array } buf2 - buf2 buf2 A FastBuffer or Uint8Array instance. + * @returns { -1 | 0 | 1 } 0 is returned if target is the same as buf + * 1 is returned if target should come before buf when sorted. + * -1 is returned if target should come after buf when sorted. + * @throws { BusinessError } 10200001 - Range error. Possible causes: + * The value of the parameter is not within the specified range. + * @throws { BusinessError } 10200068 - The underlying ArrayBuffer is null or detach. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + function compare(buf1: FastBuffer | Uint8Array, buf2: FastBuffer | Uint8Array): -1 | 0 | 1; + /** + * Re-encodes the given FastBuffer or Uint8Array instance from one character encoding to another. + * + * @param { FastBuffer | Uint8Array } source - source source A FastBuffer or Uint8Array instance. + * @param { string } fromEnc - fromEnc fromEnc The current encoding + * @param { string } toEnc - toEnc toEnc To target encoding + * @returns { FastBuffer } Returns a new FastBuffer instance + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + function transcode(source: FastBuffer | Uint8Array, fromEnc: string, toEnc: string): FastBuffer; + /** + * The FastBuffer object is a method of handling buffers dedicated to binary data. + * + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + class FastBuffer { + /** + * A constructor used to allocate a new FastBuffer. + * + * @param { number | FastBuffer | Uint8Array | ArrayBuffer | SharedArrayBuffer | Array | string } value - value for construct fastbuffer. + * @param { number | string } [byteOffsetOrEncoding] - byteOffsetOrEncoding [byteOffsetOrEncoding] The encoding of string or index of first byte to expose + * @param { number } [length] - length [length] Number of bytes to expose + * @throws { BusinessError } 10200001 - Range error. Possible causes: + * The value of the parameter is not within the specified range. + * @throws { BusinessError } 10200012 - The FastBuffer's constructor cannot be directly invoked. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + constructor(value: number | FastBuffer | Uint8Array | ArrayBuffer | SharedArrayBuffer | Array | string, + byteOffsetOrEncoding?: number | string, length?: number); + /** + * Returns the number of bytes in buf + * + * @type { number } + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + length: number; + /** + * The arraybuffer underlying the FastBuffer object + * + * @type { ArrayBuffer } + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + buffer: ArrayBuffer; + /** + * The byteOffset of the Buffers underlying ArrayBuffer object + * + * @type { number } + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + byteOffset: number; + /** + * Fills buf with the specified value. If the offset and end are not given, the entire buf will be filled. + * + * @param { string | FastBuffer | Uint8Array | number } value - value value The value with which to fill buf + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to fill buf + * @param { number } [end] - end [end = buf.length] Where to stop filling buf (not inclusive) + * @param { BufferEncoding } [encoding] - encoding [encoding='utf8'] The encoding for value if value is a string + * @returns { FastBuffer } A reference to buf + * @throws { BusinessError } 10200001 - Range error. Possible causes: + * The value of the parameter is not within the specified range. + * @throws { BusinessError } 10200068 - The underlying ArrayBuffer is null or detach. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + fill(value: string | FastBuffer | Uint8Array | number, offset?: number, end?: number, encoding?: BufferEncoding): FastBuffer; + /** + * Compares buf with target and returns a number indicating whether buf comes before, after, + * or is the same as target in sort order. Comparison is based on the actual sequence of bytes in each FastBuffer. + * + * @param { FastBuffer | Uint8Array } target - target target A FastBuffer or Uint8Array with which to compare buf + * @param { number } [targetStart] - targetStart [targetStart = 0] The offset within target at which to begin comparison + * @param { number } [targetEnd] - targetEnd [targetEnd = target.length] The offset within target at which to end comparison (not inclusive) + * @param { number } [sourceStart] - sourceStart [sourceStart = 0] The offset within buf at which to begin comparison + * @param { number } [sourceEnd] - sourceEnd [sourceEnd = buf.length] The offset within buf at which to end comparison (not inclusive) + * @returns { -1 | 0 | 1 } 0 is returned if target is the same as buf + * 1 is returned if target should come before buf when sorted. + * -1 is returned if target should come after buf when sorted. + * @throws { BusinessError } 10200001 - Range error. Possible causes: + * The value of the parameter is not within the specified range. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + compare(target: FastBuffer | Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): -1 | 0 | 1; + /** + * Copies data from a region of buf to a region in target, even if the target memory region overlaps with buf. + * If sourceEnd is greater than the length of the target, the length of the target shall prevail, and the extra part will not be overwritten. + * + * @param { FastBuffer | Uint8Array } target - target target A FastBuffer or Uint8Array to copy into + * @param { number } [targetStart] - targetStart [targetStart = 0] The offset within target at which to begin writing + * @param { number } [sourceStart] - sourceStart [sourceStart = 0] The offset within buf from which to begin copying + * @param { number } [sourceEnd] - sourceEnd [sourceEnd = buf.length] The offset within buf at which to stop copying (not inclusive) + * @returns { number } The number of bytes copied + * @throws { BusinessError } 10200001 - Range error. Possible causes: + * The value of the parameter is not within the specified range. + * @throws { BusinessError } 10200068 - The underlying ArrayBuffer is null or detach. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + copy(target: FastBuffer | Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number; + /** + * Returns true if both buf and otherBuffer have exactly the same bytes, false otherwise + * + * @param { Uint8Array | FastBuffer } otherBuffer - otherBuffer otherBuffer A FastBuffer or Uint8Array with which to compare buf + * @returns { boolean } true or false + * @throws { BusinessError } 10200068 - The underlying ArrayBuffer is null or detach. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + equals(otherBuffer: Uint8Array | FastBuffer): boolean; + /** + * Returns true if value was found in buf, false otherwise + * + * @param { string | number | FastBuffer | Uint8Array } value - value value What to search for + * @param { number } [byteOffset] - byteOffset [byteOffset = 0] Where to begin searching in buf. If negative, then offset is calculated from the end of buf + * @param { BufferEncoding } [encoding] - encoding [encoding='utf8'] If value is a string, this is its encoding + * @returns { boolean } true or false + * @throws { BusinessError } 10200001 - Range error. Possible causes: + * The value of the parameter is not within the specified range. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + includes(value: string | number | FastBuffer | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): boolean; + /** + * The index of the first occurrence of value in buf + * + * @param { string | number | FastBuffer | Uint8Array } value - value value What to search for + * @param { number } [byteOffset] - byteOffset [byteOffset = 0] Where to begin searching in buf + * @param { BufferEncoding } [encoding] - encoding [encoding='utf8'] If value is a string, + * this is the encoding used to determine the binary representation of the string that will be searched for in buf + * @returns { number } The index of the first occurrence of value in buf, or -1 if buf does not contain value + * @throws { BusinessError } 10200001 - Range error. Possible causes: + * The value of the parameter is not within the specified range. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + indexOf(value: string | number | FastBuffer | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number; + /** + * Creates and returns an iterator of buf keys (indices). + * + * @returns { IterableIterator } + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + keys(): IterableIterator; + /** + * Creates and returns an iterator for buf values (bytes). + * + * @returns { IterableIterator } + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + values(): IterableIterator; + /** + * Creates and returns an iterator of [index, byte] pairs from the contents of buf. + * + * @returns { IterableIterator<[number, number]> } + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + entries(): IterableIterator<[ + number, + number + ]>; + /** + * The index of the last occurrence of value in buf + * + * @param { string | number | FastBuffer | Uint8Array } value - value value What to search for + * @param { number } [byteOffset] - byteOffset [byteOffset = 0] Where to begin searching in buf + * @param { BufferEncoding } [encoding] - encoding [encoding='utf8'] If value is a string, + * this is the encoding used to determine the binary representation of the string that will be searched for in buf + * @returns { number } The index of the last occurrence of value in buf, or -1 if buf does not contain value + * @throws { BusinessError } 10200001 - Range error. Possible causes: + * The value of the parameter is not within the specified range. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + lastIndexOf(value: string | number | FastBuffer | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number; + /** + * Reads a signed, big-endian 64-bit integer from buf at the specified offset + * + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 8 + * @returns { bigint } Return a signed, big-endian 64-bit integer + * @throws { BusinessError } 10200001 - Range error. Possible causes: + * The value of the parameter is not within the specified range. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + readBigInt64BE(offset?: number): bigint; + /** + * Reads a signed, little-endian 64-bit integer from buf at the specified offset + * + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 8 + * @returns { bigint } Return a signed, little-endian 64-bit integer + * @throws { BusinessError } 10200001 - The value of "offset" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + readBigInt64LE(offset?: number): bigint; + /** + * Reads a unsigned, big-endian 64-bit integer from buf at the specified offset + * + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 8 + * @returns { bigint } Return a unsigned, big-endian 64-bit integer + * @throws { BusinessError } 10200001 - The value of "offset" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + readBigUInt64BE(offset?: number): bigint; + /** + * Reads a unsigned, little-endian 64-bit integer from buf at the specified offset + * + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 8 + * @returns { bigint } Return a unsigned, little-endian 64-bit integer + * @throws { BusinessError } 10200001 - The value of "offset" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + readBigUInt64LE(offset?: number): bigint; + /** + * Reads a 64-bit, big-endian double from buf at the specified offset + * + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 8 + * @returns { number } Return a 64-bit, big-endian double + * @throws { BusinessError } 10200001 - The value of "offset" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + readDoubleBE(offset?: number): number; + /** + * Reads a 64-bit, little-endian double from buf at the specified offset + * + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 8 + * @returns { number } Return a 64-bit, little-endian double + * @throws { BusinessError } 10200001 - The value of "offset" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + readDoubleLE(offset?: number): number; + /** + * Reads a 32-bit, big-endian float from buf at the specified offset + * + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 4 + * @returns { number } Return a 32-bit, big-endian float + * @throws { BusinessError } 10200001 - The value of "offset" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + readFloatBE(offset?: number): number; + /** + * Reads a 32-bit, little-endian float from buf at the specified offset + * + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 4 + * @returns { number } Return a 32-bit, little-endian float + * @throws { BusinessError } 10200001 - The value of "offset" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + readFloatLE(offset?: number): number; + /** + * Reads a signed 8-bit integer from buf at the specified offset + * + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 1 + * @returns { number } Return a signed 8-bit integer + * @throws { BusinessError } 10200001 - The value of "offset" is out of range. It must be >= 0 and <= buf.length - 1. Received value is: [offset] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + readInt8(offset?: number): number; + /** + * Reads a signed, big-endian 16-bit integer from buf at the specified offset + * + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 2 + * @returns { number } Return a signed, big-endian 16-bit integer + * @throws { BusinessError } 10200001 - The value of "offset" is out of range. It must be >= 0 and <= buf.length - 2. Received value is: [offset] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + readInt16BE(offset?: number): number; + /** + * Reads a signed, little-endian 16-bit integer from buf at the specified offset + * + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 2 + * @returns { number } Return a signed, little-endian 16-bit integer + * @throws { BusinessError } 10200001 - The value of "offset" is out of range. It must be >= 0 and <= buf.length - 2. Received value is: [offset] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + readInt16LE(offset?: number): number; + /** + * Reads a signed, big-endian 32-bit integer from buf at the specified offset + * + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 4 + * @returns { number } Return a signed, big-endian 32-bit integer + * @throws { BusinessError } 10200001 - The value of "offset" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + readInt32BE(offset?: number): number; + /** + * Reads a signed, little-endian 32-bit integer from buf at the specified offset + * + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - 4 + * @returns { number } Return a signed, little-endian 32-bit integer + * @throws { BusinessError } 10200001 - The value of "offset" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + readInt32LE(offset?: number): number; + /** + * Reads byteLength number of bytes from buf at the specified offset and interprets the result as a big-endian, + * two's complement signed value supporting up to 48 bits of accuracy + * + * @param { number } offset - offset offset Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - byteLength + * @param { number } byteLength - byteLength byteLength Number of bytes to read. Must satisfy 0 < byteLength <= 6 + * @returns { number } + * @throws { BusinessError } 10200001 - The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + readIntBE(offset: number, byteLength: number): number; + /** + * Reads byteLength number of bytes from buf at the specified offset and interprets the result as a little-endian, + * two's complement signed value supporting up to 48 bits of accuracy. + * + * @param { number } offset - offset offset Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - byteLength + * @param { number } byteLength - byteLength byteLength Number of bytes to read. Must satisfy 0 < byteLength <= 6 + * @returns { number } + * @throws { BusinessError } 10200001 - The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + readIntLE(offset: number, byteLength: number): number; + /** + * Reads an unsigned 8-bit integer from buf at the specified offset + * + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy 0 <= offset <= buf.length - 1 + * @returns { number } Reads an unsigned 8-bit integer + * @throws { BusinessError } 10200001 - The value of "offset" is out of range. It must be >= 0 and <= buf.length - 1. Received value is: [offset] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + readUInt8(offset?: number): number; + /** + * Reads an unsigned, big-endian 16-bit integer from buf at the specified offset + * + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy 0 <= offset <= buf.length - 2 + * @returns { number } Reads an unsigned, big-endian 16-bit integer + * @throws { BusinessError } 10200001 - The value of "offset" is out of range. It must be >= 0 and <= buf.length - 2. Received value is: [offset] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + readUInt16BE(offset?: number): number; + /** + * Reads an unsigned, little-endian 16-bit integer from buf at the specified offset + * + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy 0 <= offset <= buf.length - 2 + * @returns { number } Reads an unsigned, little-endian 16-bit integer + * @throws { BusinessError } 10200001 - The value of "offset" is out of range. It must be >= 0 and <= buf.length - 2. Received value is: [offset] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + readUInt16LE(offset?: number): number; + /** + * Reads an unsigned, big-endian 32-bit integer from buf at the specified offset + * + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy 0 <= offset <= buf.length - 4 + * @returns { number } Reads an unsigned, big-endian 32-bit integer + * @throws { BusinessError } 10200001 - The value of "offset" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + readUInt32BE(offset?: number): number; + /** + * Reads an unsigned, little-endian 32-bit integer from buf at the specified offset + * + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to read. Must satisfy 0 <= offset <= buf.length - 4 + * @returns { number } Reads an unsigned, little-endian 32-bit integer + * @throws { BusinessError } 10200001 - The value of "offset" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + readUInt32LE(offset?: number): number; + /** + * Reads byteLength number of bytes from buf at the specified offset and interprets the result as + * an unsigned big-endian integer supporting up to 48 bits of accuracy. + * + * @param { number } offset - offset offset Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - byteLength + * @param { number } byteLength - byteLength byteLength Number of bytes to read. Must satisfy 0 < byteLength <= 6 + * @returns { number } + * @throws { BusinessError } 10200001 - The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + readUIntBE(offset: number, byteLength: number): number; + /** + * Reads byteLength number of bytes from buf at the specified offset and interprets the result as an unsigned, + * little-endian integer supporting up to 48 bits of accuracy. + * + * @param { number } offset - offset offset Number of bytes to skip before starting to read. Must satisfy: 0 <= offset <= buf.length - byteLength + * @param { number } byteLength - byteLength byteLength Number of bytes to read. Must satisfy 0 < byteLength <= 6 + * @returns { number } + * @throws { BusinessError } 10200001 - The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + readUIntLE(offset: number, byteLength: number): number; + /** + * Returns a new FastBuffer that references the same memory as the original, but offset and cropped by the start and end indices. + * + * @param { number } [start] - start [start = 0] Where the new FastBuffer will start + * @param { number } [end] - end [end = buf.length] Where the new FastBuffer will end (not inclusive) + * @returns { FastBuffer } Returns a new FastBuffer that references the same memory as the original + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + subarray(start?: number, end?: number): FastBuffer; + /** + * Interprets buf as an array of unsigned 16-bit integers and swaps the byte order in-place. + * + * @returns { FastBuffer } A reference to buf + * @throws { BusinessError } 10200009 - The buffer size must be a multiple of 16-bits + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + swap16(): FastBuffer; + /** + * Interprets buf as an array of unsigned 32-bit integers and swaps the byte order in-place. + * + * @returns { FastBuffer } A reference to buf + * @throws { BusinessError } 10200009 - The buffer size must be a multiple of 32-bits + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + swap32(): FastBuffer; + /** + * Interprets buf as an array of unsigned 64-bit integers and swaps the byte order in-place. + * + * @returns { FastBuffer } A reference to buf + * @throws { BusinessError } 10200009 - The buffer size must be a multiple of 64-bits + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + swap64(): FastBuffer; + /** + * Returns a JSON representation of buf + * + * @returns { Object } Returns a JSON + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + toJSON(): Object; + /** + * Decodes buf to a string according to the specified character encoding in encoding + * + * @param { string } [encoding] - encoding [encoding='utf8'] The character encoding to use + * @param { number } [start] - start [start = 0] The byte offset to start decoding at + * @param { number } [end] - end [end = buf.length] The byte offset to stop decoding at (not inclusive) + * @returns { string } + * @throws { BusinessError } 10200001 - Range error. Possible causes: + * The value of the parameter is not within the specified range. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + toString(encoding?: string, start?: number, end?: number): string; + /** + * Writes string to buf at offset according to the character encoding in encoding + * + * @param { string } str - str str Writes string to buf at offset according to the character encoding in encoding + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write string + * @param { number } [length] - length [length = buf.length - offset] Maximum number of bytes to write (written bytes will not exceed buf.length - offset) + * @param { string } [encoding] - encoding [encoding='utf8'] The character encoding of string. + * @returns { number } Number of bytes written. + * @throws { BusinessError } 10200001 - Range error. Possible causes: + * The value of the parameter is not within the specified range. + * @throws { BusinessError } 10200068 - The underlying ArrayBuffer is null or detach. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + write(str: string, offset?: number, length?: number, encoding?: string): number; + /** + * Writes value to buf at the specified offset as big-endian. + * + * @param { bigint } value - value value Number to be written to buf + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 8 + * @returns { number } offset plus the number of bytes written + * @throws { BusinessError } 10200001 - Range error. Possible causes: + * The value of the parameter is not within the specified range. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + writeBigInt64BE(value: bigint, offset?: number): number; + /** + * Writes value to buf at the specified offset as little-endian. + * + * @param { bigint } value - value value Number to be written to buf + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 8 + * @returns { number } offset plus the number of bytes written + * @throws { BusinessError } 10200001 - The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + writeBigInt64LE(value: bigint, offset?: number): number; + /** + * Writes value to buf at the specified offset as big-endian. + * + * @param { bigint } value - value value Number to be written to buf + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 8 + * @returns { number } offset plus the number of bytes written + * @throws { BusinessError } 10200001 - The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + writeBigUInt64BE(value: bigint, offset?: number): number; + /** + * Writes value to buf at the specified offset as little-endian. + * + * @param { bigint } value - value value Number to be written to buf + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 8 + * @returns { number } offset plus the number of bytes written + * @throws { BusinessError } 10200001 - The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + writeBigUInt64LE(value: bigint, offset?: number): number; + /** + * Writes value to buf at the specified offset as big-endian. + * + * @param { number } value - value value Number to be written to buf + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 8 + * @returns { number } offset plus the number of bytes written + * @throws { BusinessError } 10200001 - The value of "offset" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + writeDoubleBE(value: number, offset?: number): number; + /** + * Writes value to buf at the specified offset as little-endian. + * + * @param { number } value - value value Number to be written to buf + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 8 + * @returns { number } offset plus the number of bytes written + * @throws { BusinessError } 10200001 - The value of "offset" is out of range. It must be >= 0 and <= buf.length - 8. Received value is: [offset] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + writeDoubleLE(value: number, offset?: number): number; + /** + * Writes value to buf at the specified offset as big-endian. + * + * @param { number } value - value value Number to be written to buf + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 4 + * @returns { number } offset plus the number of bytes written + * @throws { BusinessError } 10200001 - The value of "offset" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + writeFloatBE(value: number, offset?: number): number; + /** + * Writes value to buf at the specified offset as little-endian. + * + * @param { number } value - value value Number to be written to buf + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 4 + * @returns { number } offset plus the number of bytes written + * @throws { BusinessError } 10200001 - The value of "offset" is out of range. It must be >= 0 and <= buf.length - 4. Received value is: [offset] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + writeFloatLE(value: number, offset?: number): number; + /** + * Writes value to buf at the specified offset. value must be a valid signed 8-bit integer. + * + * @param { number } value - value value Number to be written to buf + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 1 + * @returns { number } offset plus the number of bytes written + * @throws { BusinessError } 10200001 - The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + writeInt8(value: number, offset?: number): number; + /** + * Writes value to buf at the specified offset as big-endian. The value must be a valid signed 16-bit integer + * + * @param { number } value - value value Number to be written to buf + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 2 + * @returns { number } offset plus the number of bytes written + * @throws { BusinessError } 10200001 - The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + writeInt16BE(value: number, offset?: number): number; + /** + * Writes value to buf at the specified offset as little-endian. The value must be a valid signed 16-bit integer + * + * @param { number } value - value value Number to be written to buf + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 2 + * @returns { number } offset plus the number of bytes written + * @throws { BusinessError } 10200001 - The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + writeInt16LE(value: number, offset?: number): number; + /** + * Writes value to buf at the specified offset as big-endian. The value must be a valid signed 32-bit integer. + * + * @param { number } value - value value Number to be written to buf + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 4 + * @returns { number } offset plus the number of bytes written + * @throws { BusinessError } 10200001 - The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + writeInt32BE(value: number, offset?: number): number; + /** + * Writes value to buf at the specified offset as little-endian. The value must be a valid signed 32-bit integer. + * + * @param { number } value - value value Number to be written to buf + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy: 0 <= offset <= buf.length - 4 + * @returns { number } offset plus the number of bytes written + * @throws { BusinessError } 10200001 - The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + writeInt32LE(value: number, offset?: number): number; + /** + * Writes byteLength bytes of value to buf at the specified offset as big-endian + * + * @param { number } value - value value Number to be written to buf + * @param { number } offset - offset offset Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - byteLength + * @param { number } byteLength - byteLength byteLength Number of bytes to write. Must satisfy 0 < byteLength <= 6 + * @returns { number } offset plus the number of bytes written + * @throws { BusinessError } 10200001 - The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + writeIntBE(value: number, offset: number, byteLength: number): number; + /** + * Writes byteLength bytes of value to buf at the specified offset as little-endian + * + * @param { number } value - value value Number to be written to buf + * @param { number } offset - offset offset Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - byteLength + * @param { number } byteLength - byteLength byteLength Number of bytes to write. Must satisfy 0 < byteLength <= 6 + * @returns { number } offset plus the number of bytes written + * @throws { BusinessError } 10200001 - The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + writeIntLE(value: number, offset: number, byteLength: number): number; + /** + * Writes value to buf at the specified offset. value must be a valid unsigned 8-bit integer + * + * @param { number } value - value value Number to be written to buf + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - 1 + * @returns { number } offset plus the number of bytes written + * @throws { BusinessError } 10200001 - The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + writeUInt8(value: number, offset?: number): number; + /** + * Writes value to buf at the specified offset as big-endian. The value must be a valid unsigned 16-bit integer. + * + * @param { number } value - value value Number to be written to buf + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - 2 + * @returns { number } offset plus the number of bytes written + * @throws { BusinessError } 10200001 - The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + writeUInt16BE(value: number, offset?: number): number; + /** + * Writes value to buf at the specified offset as little-endian. The value must be a valid unsigned 16-bit integer. + * + * @param { number } value - value value Number to be written to buf + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - 2 + * @returns { number } offset plus the number of bytes written + * @throws { BusinessError } 10200001 - The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + writeUInt16LE(value: number, offset?: number): number; + /** + * Writes value to buf at the specified offset as big-endian. The value must be a valid unsigned 32-bit integer. + * + * @param { number } value - value value Number to be written to buf + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - 4 + * @returns { number } offset plus the number of bytes written + * @throws { BusinessError } 10200001 - The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + writeUInt32BE(value: number, offset?: number): number; + /** + * Writes value to buf at the specified offset as little-endian. The value must be a valid unsigned 32-bit integer. + * + * @param { number } value - value value Number to be written to buf + * @param { number } [offset] - offset [offset = 0] Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - 4 + * @returns { number } offset plus the number of bytes written + * @throws { BusinessError } 10200001 - The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + writeUInt32LE(value: number, offset?: number): number; + /** + * Writes byteLength bytes of value to buf at the specified offset as big-endian + * + * @param { number } value - value value Number to be written to buf + * @param { number } offset - offset offset Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - byteLength + * @param { number } byteLength - byteLength byteLength Number of bytes to write. Must satisfy 0 < byteLength <= 6 + * @returns { number } offset plus the number of bytes written + * @throws { BusinessError } 10200001 - The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + writeUIntBE(value: number, offset: number, byteLength: number): number; + /** + * Writes byteLength bytes of value to buf at the specified offset as little-endian + * + * @param { number } value - value value Number to be written to buf + * @param { number } offset - offset offset Number of bytes to skip before starting to write. Must satisfy 0 <= offset <= buf.length - byteLength + * @param { number } byteLength - byteLength byteLength Number of bytes to write. Must satisfy 0 < byteLength <= 6 + * @returns { number } offset plus the number of bytes written + * @throws { BusinessError } 10200001 - The value of "[param]" is out of range. It must be >= [left range] and <= [right range]. Received value is: [param] + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 20 + */ + writeUIntLE(value: number, offset: number, byteLength: number): number; + } +} +export default fastbuffer; diff --git a/kits/@kit.ArkTS.d.ts b/kits/@kit.ArkTS.d.ts index 3440d10c01..d3335d8e22 100644 --- a/kits/@kit.ArkTS.d.ts +++ b/kits/@kit.ArkTS.d.ts @@ -19,6 +19,7 @@ */ import buffer from '@ohos.buffer'; +import fastbuffer from '@ohos.fastbuffer'; import convertxml from '@ohos.convertxml'; import process from '@ohos.process'; import taskpool from '@ohos.taskpool'; @@ -56,6 +57,6 @@ export { ArrayList, convertxml, DedicatedWorkerGlobalScope, Deque, ErrorEvent, Event, EventListener, EventTarget, HashMap, HashSet, LightWeightMap, LightWeightSet, LinkedList, List, MessageEvent, MessageEvents, PlainArray, PostMessageOptions, Queue, Stack, ThreadWorkerGlobalScope, TreeMap, - TreeSet, Vector, WorkerEventListener, WorkerEventTarget, WorkerOptions, ThreadWorkerPriority, buffer, process, taskpool, - uri, url, util, worker, xml, JSON, lang, ArkTSUtils, collections, stream, Decimal + TreeSet, Vector, WorkerEventListener, WorkerEventTarget, WorkerOptions, ThreadWorkerPriority, buffer, fastbuffer, process, + taskpool, uri, url, util, worker, xml, JSON, lang, ArkTSUtils, collections, stream, Decimal }; -- Gitee From 01a9fae2308590b05000d32ae5fddde691a6e294 Mon Sep 17 00:00:00 2001 From: wangweiyuan Date: Wed, 11 Jun 2025 11:04:51 +0800 Subject: [PATCH 12/12] revert spring loading api Signed-off-by: wangweiyuan --- api/@internal/component/ets/common.d.ts | 50 ------ api/@ohos.arkui.dragController.d.ts | 205 ------------------------ 2 files changed, 255 deletions(-) diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index b6ef423692..dab0ca35ee 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -18,26 +18,6 @@ * @kit ArkUI */ -/** - * The type for SpringLoadingContext, see the detailed description in dragController. - * - * @typedef {import('../api/@ohos.arkui.dragController').default.SpringLoadingContext} SpringLoadingContext - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ -declare type SpringLoadingContext = import('../api/@ohos.arkui.dragController').default.SpringLoadingContext; - -/** - * The type for DragSpringLoadingConfiguration, see the detailed description in dragController. - * - * @typedef {import('../api/@ohos.arkui.dragController').default.DragSpringLoadingConfiguration} DragSpringLoadingConfiguration - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ -declare type DragSpringLoadingConfiguration = import('../api/@ohos.arkui.dragController').default.DragSpringLoadingConfiguration; - /** * Defines the options of Component ClassDecorator. * @@ -27462,36 +27442,6 @@ declare class CommonMethod { * @since 19 */ accessibilityFocusDrawLevel(drawLevel: FocusDrawLevel): T; - - /** - * Enables the component as a drag-and-drop target with spring loading functionality. - * - * When a dragged object hovers over the target, it triggers a callback notification. Spring Loading is an enhanced - * feature for drag-and-drop operations, allowing users to automatically trigger view transitions during dragging - * by hovering (hover) without needing to use another hand. - * This feature is primarily designed to enhance the smoothness and efficiency of drag-and-drop operations. Below are - * some common scenarios suitable for supporting this feature: - * - In a file manager, when dragging a file and hovering over a folder, the folder is automatically opened. - * - On a desktop launcher, when dragging a file and hovering over an application icon, the application is - * automatically opened. - * - * Please note: - * 1. Registering spring-loaded or drag-and-drop events (onDragEnter/Move/Leave/Drop) on a control makes it a - * drag-and-drop target. Only one target can be the responder at the same time when user drags and hovers on, and - * child controls always have higher priority. - * 2. Once a complete spring loading is triggered on a component, new spring loading detection will only occur after the - * dragged object leaves and re-enters the component's range. - * - * @param { Callback | null } callback Registers the callback for spring loading response, or - * sets it to null to reset the component's support for spring loading. - * @param { dragController.DragSpringLoadingConfiguration } configuration The initialized spring loading configuration which is - * only used when the entire spring detecting. - * @returns { T } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - onDragSpringLoading(callback: Callback | null, configuration?: DragSpringLoadingConfiguration): T; } /** diff --git a/api/@ohos.arkui.dragController.d.ts b/api/@ohos.arkui.dragController.d.ts index eaf42e314c..9d94a33e04 100644 --- a/api/@ohos.arkui.dragController.d.ts +++ b/api/@ohos.arkui.dragController.d.ts @@ -866,211 +866,6 @@ declare namespace dragController { */ READY = 1, } - - /** - * Defines the drag spring loading state. - * Under default system configuration, if no CANCEL occurs, the state reporting is as follows: - * Hover still--500ms-->BEGIN-->100ms-->UPDATE-->100ms-->UPDATE-->100ms-->UPDATE-->100ms-->END - * - * @enum { number } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - enum DragSpringLoadingState { - /** - * The user has remained stationary for a period, initiating the spring loading process. - * This state allows for some preparatory operations during spring loading. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - BEGIN, - /** - * Already in the spring loading state. The system periodically checks the user's hover status. - * If the user remains stationary, it triggers an UPDATE state notification at regular intervals. - * This state allows for UI effect refreshes to emphasize the hover state. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - UPDATE, - /** - * The entire spring loading state ends. The application can perform cleanup operations - * and execute navigation or view switching actions when this state occurs. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - END, - /** - * After entering the BEGIN state, if the user moves out of the component range, exceeds the displacement - * threshold, lifts the finger, or switches windows (pull out), the CANCEL state is triggered. - * The application should restore the UI style and cancel any pending navigation or view switching actions. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - CANCEL - } - - /** - * Defines parameters affecting spring loading detection. Typically, default system configurations suffice. - * Customization can be done by specifying the config when binding onDragSpringLoading or dynamically modifying it - * using the updateConfiguration method during the BEGIN state. - * - * @typedef { DragSpringLoadingConfiguration } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - interface DragSpringLoadingConfiguration { - /** - * Time interval to maintain a stationary state before entering spring loading. Default: 500 ms. - * - * @type { ?number } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - stillTimeLimit?: number; - - /** - * Interval between update notifications after entering the spring loading state. Default: 100ms. - * - * @type { ?number } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - updateInterval?: number; - - /** - * Maximum number of update notifications to report while in the spring loading state. Default: 3. - * - * @type { ?number } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - updateNotifyCount?: number; - - /** - * Maximum wait time from the last UPDATE state to the end of spring loading. Default: 100ms. - * - * @type { ?number } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - updateToFinishInterval?: number; - } - - /** - * Defines drag-related information when triggering spring loading callbacks. - * This interface provides drag data summaries and additional drag information, useful for applications - * needing to dynamically determine whether to respond to spring loading callbacks based on drag data. - * - * @typedef { SpringLoadingDragInfos } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - interface SpringLoadingDragInfos { - /** - * Summary of the dragged data. This field is absent if the source application did not configure data. - * - * @type { ?unifiedDataChannel.Summary } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - dataSummary?: unifiedDataChannel.Summary; - /** - * Summary of the dragged data. This field is absent if the source application did not configure data. - * - * @type { ?unifiedDataChannel.Summary } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - extraInfos?: string; - } - - /** - * Context information for the current spring loading trigger. This object is passed to the application - * in the spring loading callback, allowing it to obtain the current state, dynamically refresh UI effects, - * and access drag data to determine whether to handle the drag operation. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - class SpringLoadingContext { - /** - * Current spring loading state. Refer to the DragSpringLoadingState enum for details. - * - * @type { DragSpringLoadingState } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - state: DragSpringLoadingState; - /** - * Sequence number of the current spring loading state notification. Begins at 0 for BEGIN and increments - * with each callback. - * - * @type { number } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - currentNotifySequence: number; - /** - * Drag-related information. Absent when the state is CANCEL. - * - * @type { ?SpringLoadingDragInfos } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - dragInfos?: SpringLoadingDragInfos; - /** - * Current spring loading configuration. Absent when the state is CANCEL. - * - * @type { ?DragSpringLoadingConfiguration } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - currentConfig?: DragSpringLoadingConfiguration; - /** - * Aborts subsequent spring loading triggers. - * Note: Aborting does not trigger a CANCEL notification, the application must handle state cleanup when aborting. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - abort(): void; - /** - * Updates the spring loading configuration for the current trigger. Only effective during the BEGIN state. - * This method does not modify the original configuration set during onDragSpringLoading binding. - * It provides an opportunity for dynamic configuration updates during the current trigger. - * Typically, applications should use default configurations or set them once during binding. - * Use this method sparingly, e.g., for different drag data types requiring varied UX timing. - * - * @param { config } The spring loading detection configuration - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - updateConfiguration(config: DragSpringLoadingConfiguration): void; - } } export default dragController; -- Gitee