diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index b6ef42369252761274a3495ba5569b7ddee701fc..dab0ca35eed4f8daf8e23153180a1f873096ddfa 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.app.ability.StartOptions.d.ts b/api/@ohos.app.ability.StartOptions.d.ts index 97562e651002ff5497d43bce91735807ddea9362..dbb246482006fddff2c3af99b66e2dc9bee86ae5 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 834dbeb42b9315f0321d1e3780b83e4c847784a9..495e43f3ca3051c4ac47d55930df4aa0f896993d 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. * diff --git a/api/@ohos.arkui.dragController.d.ts b/api/@ohos.arkui.dragController.d.ts index eaf42e314c08acf88dbfb2962011ece5cde43612..9d94a33e049162c2f1351016b7da131fc178bdce 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; diff --git a/api/@ohos.batteryInfo.d.ts b/api/@ohos.batteryInfo.d.ts index 93d9adf60a5b3b1aa4770522c2f8ce3ec441c2cb..9d6e0cf842ebd4629df2697464ad1f4eb5081a4b 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.bundle.bundleManager.d.ts b/api/@ohos.bundle.bundleManager.d.ts index d60c73f6ebc1154d501091eb6c04f9f1c34e9733..fbd47fe4f29ee4170142169cd2762e49c3c8d1f4 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 @@ -3596,31 +3607,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 +3624,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 +3641,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 +4441,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/@ohos.bundle.bundleResourceManager.d.ts b/api/@ohos.bundle.bundleResourceManager.d.ts index f6e772fb545aa826a11005d263d8365e4f85178d..a3787037bb6ec2a41fc7473716bc9a957842ed36 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. diff --git a/api/@ohos.fastbuffer.d.ts b/api/@ohos.fastbuffer.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..a8a51315995ae383fef760abbfe1891af86480b1 --- /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/api/@ohos.power.d.ts b/api/@ohos.power.d.ts index ed6654494f23c154d27002cd25461f1c3f093cd6..0bdb72dc4fa982c01aa1098894afdb170ae9ecb5 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 3a01eb3e4cde24ea80650cff46d6d527a801c434..a2f1725ae501487b02129a4fe8a65f4b7b1e2e98 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.security.cert.d.ts b/api/@ohos.security.cert.d.ts index 5b05f09a078583fe082cf20212e788fca25fc3f8..50095fbe67579e5957a71f9619fdd604e2548428 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 @@ -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. @@ -4153,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 @@ -4167,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 @@ -4182,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 @@ -5217,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. @@ -5386,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 @@ -5405,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. @@ -5428,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. @@ -5451,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. @@ -5496,8 +5509,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. @@ -6480,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 @@ -6587,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.certManager.d.ts b/api/@ohos.security.certManager.d.ts index 8926f223a5744bfe02090ac2bd9412a5edbb19e5..1ff0fe378b6a504aca8e41f3761c757c967e12ab 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 dc672646ee6b185f53903d2d59095a48895e2647..1f0de777eb0d49c5cb58439d2dc5fb2d4f6ae317 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 diff --git a/api/@ohos.security.cryptoFramework.d.ts b/api/@ohos.security.cryptoFramework.d.ts index abd516d16d477bdb417b8dbbe68b85b453cbb5e4..20039e912adae8e983610237d7b47943a8b2d019 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 @@ -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. @@ -863,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 @@ -876,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 @@ -890,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 @@ -942,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 @@ -1013,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 @@ -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 @@ -2188,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 @@ -2200,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 @@ -2208,13 +2209,14 @@ 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. * @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 @@ -2230,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 @@ -2242,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 @@ -2250,13 +2252,14 @@ 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. * @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 @@ -2267,12 +2270,13 @@ 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; *
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 @@ -2288,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 @@ -2300,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 @@ -2313,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 @@ -2329,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 @@ -2341,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 @@ -2354,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 @@ -2369,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 @@ -2449,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 @@ -2563,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 @@ -2605,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 @@ -2617,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 @@ -2630,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 @@ -2646,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 @@ -2658,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 @@ -2671,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 @@ -2686,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 @@ -2766,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 @@ -3205,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 @@ -3220,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 @@ -3237,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 @@ -3256,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 @@ -3271,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 @@ -3288,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 @@ -3307,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 @@ -3322,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 @@ -3339,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 @@ -3358,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 @@ -3373,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 @@ -3390,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 @@ -3409,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 @@ -3427,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 @@ -3441,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 @@ -3456,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 @@ -3474,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 @@ -3488,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 @@ -3503,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 @@ -3521,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 @@ -3539,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 @@ -3553,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 @@ -3568,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 @@ -3586,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 @@ -3600,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 @@ -3615,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 @@ -3633,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 @@ -3647,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 @@ -3662,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 @@ -3680,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 @@ -3694,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 @@ -3709,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 @@ -3727,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 @@ -3942,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 @@ -3955,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 @@ -3970,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 @@ -3987,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 @@ -4000,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 @@ -4015,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 @@ -4032,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 @@ -4049,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 @@ -4062,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 @@ -4077,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 @@ -4094,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 @@ -4107,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 @@ -4122,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 @@ -4139,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 @@ -4156,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 @@ -4169,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 @@ -4183,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 @@ -4200,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 @@ -4213,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 @@ -4227,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 @@ -4244,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 @@ -4257,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 @@ -4271,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 @@ -4288,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 @@ -4301,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 @@ -4315,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 @@ -4332,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 @@ -4533,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 @@ -4546,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 @@ -4560,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 @@ -4577,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 @@ -4590,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 @@ -4604,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 @@ -4620,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 @@ -4637,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 @@ -4650,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 @@ -4664,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 @@ -4681,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 @@ -4694,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 @@ -4708,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 @@ -4724,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 @@ -4742,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 @@ -4756,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 @@ -4771,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 @@ -4789,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 @@ -4803,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 @@ -4818,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 @@ -4836,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 @@ -4850,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 @@ -4865,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 @@ -4883,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 @@ -4897,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 @@ -4912,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 @@ -4930,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 @@ -4948,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 @@ -4966,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 @@ -5249,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 @@ -5263,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 @@ -5278,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 @@ -5296,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 @@ -5310,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 @@ -5325,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 @@ -5343,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 @@ -8899,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 @@ -9108,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. @@ -9126,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. diff --git a/api/@ohos.thermal.d.ts b/api/@ohos.thermal.d.ts index d5a8dd0429f674db2c1ffaff2f6300af6155f1a8..28c9b0938c8186484802bfb185ce17db896a3606 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 */ diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index c6a5f3264cea876685cd548955ee2a2636b37d40..cf898d9c3964851927b1fc8cc5287b199cfca442 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 } /** diff --git a/api/application/AppServiceExtensionContext.d.ts b/api/application/AppServiceExtensionContext.d.ts index 53ef10a13ff9bc889f38037a6ad85d1ab3d67181..b4b756aa060c3a21d8b5b563a57dc8b404084e70 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 1d478ee9d24f3b5340228e8e56bb7fd28bbcb67f..8b0539fd3434b5a787db23c794713fea6b0f07ca 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 diff --git a/api/bundleManager/BundleInfo.d.ts b/api/bundleManager/BundleInfo.d.ts index bdc8493a1b876826d5752294c4c6f3d6367dbf5d..0243e289650eb3d3415c3acbd53e41deb32fe3dc 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; -} diff --git a/kits/@kit.ArkTS.d.ts b/kits/@kit.ArkTS.d.ts index 3440d10c01c48ad4cae719c19eccd0691d114610..d3335d8e22b4f0289da62a2a59a433ed1cfa1863 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 };