访问控制jsdoc修改

Signed-off-by: zhouyan <zhouyan160@huawei.com>
Change-Id: I9fdee154b9469a192eddc331dcec353cef9cfcce
This commit is contained in:
zhouyan 2024-05-25 18:13:50 +08:00
parent f0c7f4e4a8
commit 793473dd21
2 changed files with 35 additions and 42 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 - Invalid Parameter. 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 permissionName exceeds 256 characters.
* @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 - Invalid Parameter. 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 permissionName exceeds 256 characters.
* @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 - Invalid Parameter. 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 permissionName exceeds 256 characters.
* @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 - Invalid Parameter. 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 permissionName exceeds 256 characters.
* @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 - Invalid Parameter. 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 permissionName exceeds 256 characters.
* @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 - Invalid Parameter. 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 permissionName exceeds 256 characters.
* @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 - Invalid Parameter. 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 - Invalid Parameter. 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 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
* @throws { BusinessError } 12100001 - Invalid Parameter. 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 - Invalid Parameter. 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 - Invalid Parameter. 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 - Invalid Parameter. 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,8 +293,7 @@ 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 - Invalid Parameter. The tokenID is 0, or the string size of permissionName is larger than 256,
* or the flags value is invalid.
* @throws { BusinessError } 12100001 - Invalid parameter. The tokenID is 0, the permissionName exceeds 256 characters, 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.
@ -317,8 +316,7 @@ 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 - Invalid Parameter. The tokenID is 0, or the string size of permissionName is larger than 256,
* or the flags value is invalid.
* @throws { BusinessError } 12100001 - Invalid parameter. The tokenID is 0, the permissionName exceeds 256 characters, 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.
@ -346,8 +344,7 @@ 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 - Invalid Parameter. The tokenID is 0, or the string size of permissionName is larger than 256,
* or the flags value is invalid.
* @throws { BusinessError } 12100001 - Invalid parameter. The tokenID is 0, the permissionName exceeds 256 characters, 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.
@ -370,8 +367,7 @@ 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 - Invalid Parameter. The tokenID is 0, or the string size of permissionName is larger than 256,
* or the flags value is invalid.
* @throws { BusinessError } 12100001 - Invalid parameter. The tokenID is 0, the permissionName exceeds 256 characters, 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.
@ -398,7 +394,7 @@ 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 - Invalid Parameter. 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 permissionName exceeds 256 characters.
* @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.
@ -419,8 +415,7 @@ 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 - Invalid Parameter. The string size of permissionName is larger than 256,
* or the status value is invalid.
* @throws { BusinessError } 12100001 - Invalid parameter. The permissionName exceeds 256 characters, or the status value is invalid.
* @throws { BusinessError } 12100003 - The specified permission does not exist.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @syscap SystemCapability.Security.AccessToken
@ -438,7 +433,7 @@ 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 - Invalid Parameter. The string size of permissionName is larger than 256.
* @throws { BusinessError } 12100001 - Invalid parameter. The permissionName exceeds 256 characters.
* @throws { BusinessError } 12100003 - The specified permission does not exist.
* @throws { BusinessError } 12100007 - The service is abnormal.
* @syscap SystemCapability.Security.AccessToken
@ -468,7 +463,7 @@ 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 - Invalid Parameter. 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 - The service is abnormal.
* @syscap SystemCapability.Security.AccessToken
@ -492,7 +487,7 @@ 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 - Invalid Parameter. 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 permissionName exceeds 256 characters.
* @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 - The service is abnormal.
@ -521,7 +516,7 @@ 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 - Invalid Parameter. The tokenIDs or permissionNames in the list are all invalid.
* @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.

View File

@ -39,8 +39,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 - Invalid Parameter. The tokenID is 0, or the string size of permissionName is larger than 256,
* or the count value is invalid.
* @throws { BusinessError } 12100001 - Invalid parameter. The tokenID is 0, the permissionName exceeds 256 characters, 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 - The service is abnormal.
@ -62,8 +61,8 @@ 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 - Invalid Parameter. The tokenID is 0, permissionName exceeds 256 characters,
* the count value is invalid, or usedType in AddPermissionUsedRecordOptions is invalid.
* @throws { BusinessError } 12100001 - Invalid parameter. The tokenID is 0, the 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 - The service is abnormal.
@ -92,8 +91,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 - Invalid Parameter. The tokenID is 0, or the string size of permissionName is larger than 256,
* or the count value is invalid.
* @throws { BusinessError } 12100001 - Invalid parameter. The tokenID is 0, the permissionName exceeds 256 characters, 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 - The service is abnormal.
@ -119,7 +117,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 - Invalid Parameter. 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 - The service is abnormal.
@ -139,7 +137,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 - Invalid Parameter. 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 - The service is abnormal.
@ -163,7 +161,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 - Invalid Parameter. 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, the permissionName exceeds 256 characters, 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 API is used repeatedly with the same input.
@ -186,7 +184,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 - Invalid Parameter. 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, the permissionName exceeds 256 characters, 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 API is used repeatedly with the same input.
@ -209,7 +207,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 - Invalid Parameter. 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, the permissionName exceeds 256 characters, 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 API is not used in pair with 'startUsingPermission'.
@ -231,7 +229,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 - Invalid Parameter. 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, the permissionName exceeds 256 characters, 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 API is not used in pair with 'startUsingPermission'.
@ -253,7 +251,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 - Invalid Parameter. 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 permissionName exceeds 256 characters.
* @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 - The service is abnormal.
@ -278,7 +276,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 - Invalid Parameter. The permissionNames in the list are all invalid, or the list size exceeds 1024 bytes.
* @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.
@ -302,7 +300,7 @@ declare namespace privacyManager {
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.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 - Invalid Parameter. 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