错误码英文审校整改

Signed-off-by: zhouyan <zhouyan160@huawei.com>
Change-Id: Ied32ee3a1bf5ebabd360ee23cbcccd94199ffb9d
This commit is contained in:
zhouyan 2024-05-14 17:05:19 +08:00
parent 586ca19cbd
commit 2e304fd6a2
2 changed files with 63 additions and 63 deletions

View File

@ -115,7 +115,7 @@ declare namespace abilityAccessCtrl {
* @param { Permissions } permissionName - Name of the permission to be verified.
* @returns { GrantStatus } Returns permission verify result.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 12100001 - The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256.
* @throws { BusinessError } 12100001 - Invalid Parameter. The tokenID is 0, or the string size of permissionName is larger than 256.
* @syscap SystemCapability.Security.AccessToken
* @since 9
*/
@ -128,7 +128,7 @@ declare namespace abilityAccessCtrl {
* @param { Permissions } permissionName - Name of the permission to be verified.
* @returns { Promise<GrantStatus> } Returns permission verify result.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 12100001 - The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256.
* @throws { BusinessError } 12100001 - Invalid Parameter. The tokenID is 0, or the string size of permissionName is larger than 256.
* @syscap SystemCapability.Security.AccessToken
* @since 9
*/
@ -140,7 +140,7 @@ declare namespace abilityAccessCtrl {
* @param { Permissions } permissionName - Name of the permission to be verified.
* @returns { Promise<GrantStatus> } Returns permission verify result.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 12100001 - The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256.
* @throws { BusinessError } 12100001 - Invalid Parameter. The tokenID is 0, or the string size of permissionName is larger than 256.
* @syscap SystemCapability.Security.AccessToken
* @crossplatform
* @since 10
@ -153,7 +153,7 @@ declare namespace abilityAccessCtrl {
* @param { Permissions } permissionName - Name of the permission to be verified.
* @returns { Promise<GrantStatus> } Returns permission verify result.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 12100001 - The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256.
* @throws { BusinessError } 12100001 - Invalid Parameter. The tokenID is 0, or the string size of permissionName is larger than 256.
* @syscap SystemCapability.Security.AccessToken
* @crossplatform
* @atomicservice
@ -169,7 +169,7 @@ declare namespace abilityAccessCtrl {
* @param { Permissions } permissionName - Name of the permission to be verified.
* @returns { GrantStatus } Returns permission verify result.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 12100001 - The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256.
* @throws { BusinessError } 12100001 - Invalid Parameter. The tokenID is 0, or the string size of permissionName is larger than 256.
* @syscap SystemCapability.Security.AccessToken
* @crossplatform
* @since 10
@ -182,7 +182,7 @@ declare namespace abilityAccessCtrl {
* @param { Permissions } permissionName - Name of the permission to be verified.
* @returns { GrantStatus } Returns permission verify result.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 12100001 - The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256.
* @throws { BusinessError } 12100001 - Invalid Parameter. The tokenID is 0, or the string size of permissionName is larger than 256.
* @syscap SystemCapability.Security.AccessToken
* @crossplatform
* @atomicservice
@ -198,7 +198,7 @@ declare namespace abilityAccessCtrl {
* @param { Array<Permissions> } permissionList - Indicates the list of permissions to be requested. This parameter cannot be null or empty.
* @param { AsyncCallback<PermissionRequestResult> } requestCallback Callback for the result from requesting permissions.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 12100001 - The parameter is invalid. The context is invalid when it does not belong to the application itself.
* @throws { BusinessError } 12100001 - Invalid Parameter. The context is invalid when it does not belong to the application itself.
* @syscap SystemCapability.Security.AccessToken
* @stagemodelonly
* @since 9
@ -211,7 +211,7 @@ declare namespace abilityAccessCtrl {
* @param { Array<Permissions> } permissionList - Indicates the list of permissions to be requested. This parameter cannot be null or empty.
* @param { AsyncCallback<PermissionRequestResult> } requestCallback Callback for the result from requesting permissions.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 12100001 - The parameter is invalid. The context is invalid when it does not belong to the application itself.
* @throws { BusinessError } 12100001 - Invalid Parameter. The context is invalid when it does not belong to the application itself.
* @syscap SystemCapability.Security.AccessToken
* @stagemodelonly
* @crossplatform
@ -225,7 +225,7 @@ declare namespace abilityAccessCtrl {
* @param { Array<Permissions> } permissionList - Indicates the list of permissions to be requested. This parameter cannot be null or empty.
* @param { AsyncCallback<PermissionRequestResult> } requestCallback Callback for the result from requesting permissions.
* @throws { BusinessError } 401 - The parameter check failed.
* @throws { BusinessError } 12100001 - The parameter is invalid. The context is invalid when it does not belong to the application itself.
* @throws { BusinessError } 12100001 - Invalid Parameter. The context is invalid when it does not belong to the application itself.
* @syscap SystemCapability.Security.AccessToken
* @stagemodelonly
* @crossplatform
@ -246,7 +246,7 @@ declare namespace abilityAccessCtrl {
* @param { Array<Permissions> } permissionList - Indicates the list of permissions to be requested. This parameter cannot be null or empty.
* @returns { Promise<PermissionRequestResult> } Returns result of requesting permissions.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 12100001 - The parameter is invalid. The context is invalid when it does not belong to the application itself.
* @throws { BusinessError } 12100001 - Invalid Parameter. The context is invalid when it does not belong to the application itself.
* @syscap SystemCapability.Security.AccessToken
* @stagemodelonly
* @since 9
@ -259,7 +259,7 @@ declare namespace abilityAccessCtrl {
* @param { Array<Permissions> } permissionList - Indicates the list of permissions to be requested. This parameter cannot be null or empty.
* @returns { Promise<PermissionRequestResult> } Returns result of requesting permissions.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 12100001 - The parameter is invalid. The context is invalid when it does not belong to the application itself.
* @throws { BusinessError } 12100001 - Invalid Parameter. The context is invalid when it does not belong to the application itself.
* @syscap SystemCapability.Security.AccessToken
* @stagemodelonly
* @crossplatform
@ -273,7 +273,7 @@ declare namespace abilityAccessCtrl {
* @param { Array<Permissions> } permissionList - Indicates the list of permissions to be requested. This parameter cannot be null or empty.
* @returns { Promise<PermissionRequestResult> } Returns result of requesting permissions.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 12100001 - The parameter is invalid. The context is invalid when it does not belong to the application itself.
* @throws { BusinessError } 12100001 - Invalid Parameter. The context is invalid when it does not belong to the application itself.
* @syscap SystemCapability.Security.AccessToken
* @stagemodelonly
* @crossplatform
@ -293,13 +293,13 @@ declare namespace abilityAccessCtrl {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission "ohos.permission.GRANT_SENSITIVE_PERMISSIONS".
* @throws { BusinessError } 202 - Not System App. Interface caller is not a system app.
* @throws { BusinessError } 12100001 - The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256,
* @throws { BusinessError } 12100001 - Invalid Parameter. The tokenID is 0, or the string size of permissionName is larger than 256,
* or the flags value is invalid.
* @throws { BusinessError } 12100002 - The specified tokenID does not exist.
* @throws { BusinessError } 12100003 - The specified permission does not exist.
* @throws { BusinessError } 12100006 - The application specified by the tokenID is not allowed to be granted with the specified permission.
* Either the application is a sandbox or the tokenID is from a remote device.
* @throws { BusinessError } 12100007 - Service is abnormal.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @syscap SystemCapability.Security.AccessToken
* @systemapi
* @since 8
@ -317,13 +317,13 @@ declare namespace abilityAccessCtrl {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission "ohos.permission.GRANT_SENSITIVE_PERMISSIONS".
* @throws { BusinessError } 202 - Not System App. Interface caller is not a system app.
* @throws { BusinessError } 12100001 - The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256,
* @throws { BusinessError } 12100001 - Invalid Parameter. The tokenID is 0, or the string size of permissionName is larger than 256,
* or the flags value is invalid.
* @throws { BusinessError } 12100002 - The specified tokenID does not exist.
* @throws { BusinessError } 12100003 - The specified permission does not exist.
* @throws { BusinessError } 12100006 - The application specified by the tokenID is not allowed to be granted with the specified permission.
* Either the application is a sandbox or the tokenID is from a remote device.
* @throws { BusinessError } 12100007 - Service is abnormal.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @syscap SystemCapability.Security.AccessToken
* @systemapi
* @since 8
@ -346,13 +346,13 @@ declare namespace abilityAccessCtrl {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission "ohos.permission.REVOKE_SENSITIVE_PERMISSIONS".
* @throws { BusinessError } 202 - Not System App. Interface caller is not a system app.
* @throws { BusinessError } 12100001 - The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256,
* @throws { BusinessError } 12100001 - Invalid Parameter. The tokenID is 0, or the string size of permissionName is larger than 256,
* or the flags value is invalid.
* @throws { BusinessError } 12100002 - The specified tokenID does not exist.
* @throws { BusinessError } 12100003 - The specified permission does not exist.
* @throws { BusinessError } 12100006 - The application specified by the tokenID is not allowed to be revoked with the specified permission.
* Either the application is a sandbox or the tokenID is from a remote device.
* @throws { BusinessError } 12100007 - Service is abnormal.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @syscap SystemCapability.Security.AccessToken
* @systemapi
* @since 8
@ -370,13 +370,13 @@ declare namespace abilityAccessCtrl {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission "ohos.permission.REVOKE_SENSITIVE_PERMISSIONS".
* @throws { BusinessError } 202 - Not System App. Interface caller is not a system app.
* @throws { BusinessError } 12100001 - The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256,
* @throws { BusinessError } 12100001 - Invalid Parameter. The tokenID is 0, or the string size of permissionName is larger than 256,
* or the flags value is invalid.
* @throws { BusinessError } 12100002 - The specified tokenID does not exist.
* @throws { BusinessError } 12100003 - The specified permission does not exist.
* @throws { BusinessError } 12100006 - The application specified by the tokenID is not allowed to be revoked with the specified permission.
* Either the application is a sandbox or the tokenID is from a remote device.
* @throws { BusinessError } 12100007 - Service is abnormal.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @syscap SystemCapability.Security.AccessToken
* @systemapi
* @since 8
@ -398,11 +398,11 @@ declare namespace abilityAccessCtrl {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission specified below.
* @throws { BusinessError } 202 - Not System App. Interface caller is not a system app.
* @throws { BusinessError } 12100001 - The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256.
* @throws { BusinessError } 12100001 - Invalid Parameter. The tokenID is 0, or the string size of permissionName is larger than 256.
* @throws { BusinessError } 12100002 - The specified tokenID does not exist.
* @throws { BusinessError } 12100003 - The specified permission does not exist.
* @throws { BusinessError } 12100006 - The operation is not allowed. Either the application is a sandbox or the tokenID is from a remote device.
* @throws { BusinessError } 12100007 - Service is abnormal.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @syscap SystemCapability.Security.AccessToken
* @systemapi
* @since 8
@ -419,10 +419,10 @@ declare namespace abilityAccessCtrl {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission specified below.
* @throws { BusinessError } 202 - Not System App. Interface caller is not a system app.
* @throws { BusinessError } 12100001 - The parameter is invalid. The string size of permissionName is larger than 256,
* @throws { BusinessError } 12100001 - Invalid Parameter. The string size of permissionName is larger than 256,
* or the status value is invalid.
* @throws { BusinessError } 12100003 - The specified permission does not exist.
* @throws { BusinessError } 12100007 - Service is abnormal.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @syscap SystemCapability.Security.AccessToken
* @systemapi
* @since 12
@ -438,9 +438,9 @@ declare namespace abilityAccessCtrl {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission specified below.
* @throws { BusinessError } 202 - Not System App. Interface caller is not a system app.
* @throws { BusinessError } 12100001 - The parameter is invalid. The string size of permissionName is larger than 256.
* @throws { BusinessError } 12100001 - Invalid Parameter. The string size of permissionName is larger than 256.
* @throws { BusinessError } 12100003 - The specified permission does not exist.
* @throws { BusinessError } 12100007 - Service is abnormal.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @syscap SystemCapability.Security.AccessToken
* @systemapi
* @since 12
@ -468,9 +468,9 @@ declare namespace abilityAccessCtrl {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission "ohos.permission.GET_SENSITIVE_PERMISSIONS".
* @throws { BusinessError } 202 - Not System App. Interface caller is not a system app.
* @throws { BusinessError } 12100001 - The parameter is invalid. The tokenID is 0, or the permissionList is empty.
* @throws { BusinessError } 12100001 - Invalid Parameter. The tokenID is 0, or the permissionList is empty.
* @throws { BusinessError } 12100002 - The specified tokenID does not exist.
* @throws { BusinessError } 12100007 - Service is abnormal.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @syscap SystemCapability.Security.AccessToken
* @systemapi
* @since 12
@ -492,10 +492,10 @@ declare namespace abilityAccessCtrl {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission "ohos.permission.GET_SENSITIVE_PERMISSIONS".
* @throws { BusinessError } 202 - Not System App. Interface caller is not a system app.
* @throws { BusinessError } 12100001 - The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256.
* @throws { BusinessError } 12100004 - The interface is called repeatedly with the same input.
* @throws { BusinessError } 12100001 - Invalid Parameter. The tokenID is 0, or the string size of permissionName is larger than 256.
* @throws { BusinessError } 12100004 - The API is used repeatedly with the same input.
* @throws { BusinessError } 12100005 - The registration time has exceeded the limitation.
* @throws { BusinessError } 12100007 - Service is abnormal.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @throws { BusinessError } 12100008 - Out of memory.
* @syscap SystemCapability.Security.AccessToken
* @systemapi
@ -521,9 +521,9 @@ declare namespace abilityAccessCtrl {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission "ohos.permission.GET_SENSITIVE_PERMISSIONS".
* @throws { BusinessError } 202 - Not System App. Interface caller is not a system app.
* @throws { BusinessError } 12100001 - The parameter is invalid. The tokenIDs or permissionNames in the list are all invalid.
* @throws { BusinessError } 12100004 - The interface is not used together with "on".
* @throws { BusinessError } 12100007 - Service is abnormal.
* @throws { BusinessError } 12100001 - Invalid Parameter. The tokenIDs or permissionNames in the list are all invalid.
* @throws { BusinessError } 12100004 - The API is not used in pair with 'on'.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @throws { BusinessError } 12100008 - Out of memory.
* @syscap SystemCapability.Security.AccessToken
* @systemapi

View File

@ -39,11 +39,11 @@ declare namespace privacyManager {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission "ohos.permission.PERMISSION_USED_STATS".
* @throws { BusinessError } 202 - Not system app. Interface caller is not a system app.
* @throws { BusinessError } 12100001 - The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256,
* @throws { BusinessError } 12100001 - Invalid Parameter. The tokenID is 0, or the string size of permissionName is larger than 256,
* or the count value is invalid.
* @throws { BusinessError } 12100002 - The specified tokenID does not exist or refer to an application process.
* @throws { BusinessError } 12100003 - The specified permission does not exist or is not an user_grant permission.
* @throws { BusinessError } 12100007 - Service is abnormal.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @throws { BusinessError } 12100008 - Out of memory.
* @syscap SystemCapability.Security.AccessToken
* @systemapi
@ -62,11 +62,11 @@ declare namespace privacyManager {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission "ohos.permission.PERMISSION_USED_STATS".
* @throws { BusinessError } 202 - Not system app. Interface caller is not a system app.
* @throws { BusinessError } 12100001 - The parameter is invalid. The tokenID is 0, permissionName exceeds 256 characters,
* @throws { BusinessError } 12100001 - Invalid Parameter. The tokenID is 0, permissionName exceeds 256 characters,
* the count value is invalid, or usedType in AddPermissionUsedRecordOptions is invalid.
* @throws { BusinessError } 12100002 - The specified tokenID does not exist or refer to an application process.
* @throws { BusinessError } 12100003 - The specified permission does not exist or is not an user_grant permission.
* @throws { BusinessError } 12100007 - Service is abnormal.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @throws { BusinessError } 12100008 - Out of memory.
* @syscap SystemCapability.Security.AccessToken
* @systemapi
@ -92,11 +92,11 @@ declare namespace privacyManager {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission "ohos.permission.PERMISSION_USED_STATS".
* @throws { BusinessError } 202 - Not system app. Interface caller is not a system app.
* @throws { BusinessError } 12100001 - The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256,
* @throws { BusinessError } 12100001 - Invalid Parameter. The tokenID is 0, or the string size of permissionName is larger than 256,
* or the count value is invalid.
* @throws { BusinessError } 12100002 - The specified tokenID does not exist or refer to an application process.
* @throws { BusinessError } 12100003 - The specified permission does not exist or is not an user_grant permission.
* @throws { BusinessError } 12100007 - Service is abnormal.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @throws { BusinessError } 12100008 - Out of memory.
* @syscap SystemCapability.Security.AccessToken
* @systemapi
@ -119,10 +119,10 @@ declare namespace privacyManager {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission "ohos.permission.PERMISSION_USED_STATS".
* @throws { BusinessError } 202 - Not system app. Interface caller is not a system app.
* @throws { BusinessError } 12100001 - The parameter is invalid. the value of flag in request is invalid.
* @throws { BusinessError } 12100001 - Invalid Parameter. The value of flag in request is invalid.
* @throws { BusinessError } 12100002 - The specified tokenID does not exist or refer to an application process.
* @throws { BusinessError } 12100003 - The specified permission does not exist or is not an user_grant permission.
* @throws { BusinessError } 12100007 - Service is abnormal.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @throws { BusinessError } 12100008 - Out of memory.
* @syscap SystemCapability.Security.AccessToken
* @systemapi
@ -139,10 +139,10 @@ declare namespace privacyManager {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission "ohos.permission.PERMISSION_USED_STATS".
* @throws { BusinessError } 202 - Not system app. Interface caller is not a system app.
* @throws { BusinessError } 12100001 - The parameter is invalid. the value of flag in request is invalid.
* @throws { BusinessError } 12100001 - Invalid Parameter. The value of flag in request is invalid.
* @throws { BusinessError } 12100002 - The specified tokenID does not exist or refer to an application process.
* @throws { BusinessError } 12100003 - The specified permission does not exist or is not an user_grant permission.
* @throws { BusinessError } 12100007 - Service is abnormal.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @throws { BusinessError } 12100008 - Out of memory.
* @syscap SystemCapability.Security.AccessToken
* @systemapi
@ -163,12 +163,12 @@ declare namespace privacyManager {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission "ohos.permission.PERMISSION_USED_STATS".
* @throws { BusinessError } 202 - Not system app. Interface caller is not a system app.
* @throws { BusinessError } 12100001 - The tokenID is 0, permissionName is longer than 256 bytes, or the count value is invalid.
* @throws { BusinessError } 12100001 - Invalid Parameter. The tokenID is 0, permissionName is longer than 256 bytes, or the count value is invalid.
* @throws { BusinessError } 12100002 - The specified tokenID does not exist or refer to an application process.
* @throws { BusinessError } 12100003 - The specified permission does not exist or is not an user_grant permission.
* @throws { BusinessError } 12100004 - The interface is called repeatedly with the same input.
* @throws { BusinessError } 12100004 - The API is used repeatedly with the same input.
* It means the application specified by the tokenID has been using the specified permission.
* @throws { BusinessError } 12100007 - Service is abnormal.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @throws { BusinessError } 12100008 - Out of memory.
* @syscap SystemCapability.Security.AccessToken
* @systemapi
@ -186,12 +186,12 @@ declare namespace privacyManager {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission "ohos.permission.PERMISSION_USED_STATS".
* @throws { BusinessError } 202 - Not system app. Interface caller is not a system app.
* @throws { BusinessError } 12100001 - The tokenID is 0, permissionName is longer than 256 bytes, or the count value is invalid.
* @throws { BusinessError } 12100001 - Invalid Parameter. The tokenID is 0, permissionName is longer than 256 bytes, or the count value is invalid.
* @throws { BusinessError } 12100002 - The specified tokenID does not exist or refer to an application process.
* @throws { BusinessError } 12100003 - The specified permission does not exist or is not an user_grant permission.
* @throws { BusinessError } 12100004 - The interface is called repeatedly with the same input.
* @throws { BusinessError } 12100004 - The API is used repeatedly with the same input.
* It means the application specified by the tokenID has been using the specified permission.
* @throws { BusinessError } 12100007 - Service is abnormal.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @throws { BusinessError } 12100008 - Out of memory.
* @syscap SystemCapability.Security.AccessToken
* @systemapi
@ -209,11 +209,11 @@ declare namespace privacyManager {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission "ohos.permission.PERMISSION_USED_STATS".
* @throws { BusinessError } 202 - Not system app. Interface caller is not a system app.
* @throws { BusinessError } 12100001 - The tokenID is 0, permissionName is longer than 256 bytes, or the count value is invalid.
* @throws { BusinessError } 12100001 - Invalid Parameter. The tokenID is 0, permissionName is longer than 256 bytes, or the count value is invalid.
* @throws { BusinessError } 12100002 - The specified tokenID does not exist or refer to an application process.
* @throws { BusinessError } 12100003 - The specified permission does not exist or is not an user_grant permission.
* @throws { BusinessError } 12100004 - The interface is not used with "startUsingPermission".
* @throws { BusinessError } 12100007 - Service is abnormal.
* @throws { BusinessError } 12100004 - The API is not used in pair with 'startUsingPermission'.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @throws { BusinessError } 12100008 - Out of memory.
* @syscap SystemCapability.Security.AccessToken
* @systemapi
@ -231,11 +231,11 @@ declare namespace privacyManager {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission "ohos.permission.PERMISSION_USED_STATS".
* @throws { BusinessError } 202 - Not system app. Interface caller is not a system app.
* @throws { BusinessError } 12100001 - The tokenID is 0, permissionName is longer than 256 bytes, or the count value is invalid.
* @throws { BusinessError } 12100001 - Invalid Parameter. The tokenID is 0, permissionName is longer than 256 bytes, or the count value is invalid.
* @throws { BusinessError } 12100002 - The specified tokenID does not exist or refer to an application process.
* @throws { BusinessError } 12100003 - The specified permission does not exist or is not an user_grant permission.
* @throws { BusinessError } 12100004 - The interface is not used with "startUsingPermission".
* @throws { BusinessError } 12100007 - Service is abnormal.
* @throws { BusinessError } 12100004 - The API is not used in pair with 'startUsingPermission'.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @throws { BusinessError } 12100008 - Out of memory.
* @syscap SystemCapability.Security.AccessToken
* @systemapi
@ -253,10 +253,10 @@ declare namespace privacyManager {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission "ohos.permission.PERMISSION_USED_STATS".
* @throws { BusinessError } 202 - Not system app. Interface caller is not a system app.
* @throws { BusinessError } 12100001 - The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256.
* @throws { BusinessError } 12100004 - The interface is called repeatedly with the same input.
* @throws { BusinessError } 12100001 - Invalid Parameter. The parameter is invalid. The tokenID is 0, or the string size of permissionName is larger than 256.
* @throws { BusinessError } 12100004 - The API is used repeatedly with the same input.
* @throws { BusinessError } 12100005 - The registration time has exceeded the limitation.
* @throws { BusinessError } 12100007 - Service is abnormal.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @throws { BusinessError } 12100008 - Out of memory.
* @syscap SystemCapability.Security.AccessToken
* @systemapi
@ -278,9 +278,9 @@ declare namespace privacyManager {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission "ohos.permission.PERMISSION_USED_STATS".
* @throws { BusinessError } 202 - Not system app. Interface caller is not a system app.
* @throws { BusinessError } 12100001 - The permissionNames in the list are all invalid, or the list size exceeds 1024 bytes.
* @throws { BusinessError } 12100004 - The interface is not used together with "on".
* @throws { BusinessError } 12100007 - Service is abnormal.
* @throws { BusinessError } 12100001 - Invalid Parameter. The permissionNames in the list are all invalid, or the list size exceeds 1024 bytes.
* @throws { BusinessError } 12100004 - The API is not used in pair with 'on'.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @throws { BusinessError } 12100008 - Out of memory.
* @syscap SystemCapability.Security.AccessToken
* @systemapi
@ -302,7 +302,7 @@ declare namespace privacyManager {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission "ohos.permission.PERMISSION_USED_STATS".
* @throws { BusinessError } 202 - Not system app. Interface caller is not a system app.
* @throws { BusinessError } 12100001 - The parameter is invalid. PermissionName exceeds 256 characters.
* @throws { BusinessError } 12100001 - Invalid Parameter. PermissionName exceeds 256 characters.
* @throws { BusinessError } 12100002 - The input tokenId does not exist.
* @throws { BusinessError } 12100003 - The input permissionName does not exist.
* @syscap SystemCapability.Security.AccessToken