未验证 提交 1f6d4e64 编写于 作者: G geraltxu 提交者: Gitee

一致性整改

Signed-off-by: Ngeraltxu <xufanghan@huawei.com>
上级 18493c3e
...@@ -18,6 +18,8 @@ isDeviceInStandby(callback: AsyncCallback&lt;boolean&gt;): void; ...@@ -18,6 +18,8 @@ isDeviceInStandby(callback: AsyncCallback&lt;boolean&gt;): void;
**系统能力:** SystemCapability.ResourceSchedule.DeviceStandby **系统能力:** SystemCapability.ResourceSchedule.DeviceStandby
**需要权限:** ohos.permission.DEVICE_STANDBY_EXEMPTION
**参数** **参数**
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
...@@ -32,9 +34,9 @@ isDeviceInStandby(callback: AsyncCallback&lt;boolean&gt;): void; ...@@ -32,9 +34,9 @@ isDeviceInStandby(callback: AsyncCallback&lt;boolean&gt;): void;
| ---- | --------------------- | | ---- | --------------------- |
| 9800001 | Memory operation failed. | | 9800001 | Memory operation failed. |
| 9800002 | Parcel operation failed. | | 9800002 | Parcel operation failed. |
| 9800003 | IPC failed. | | 9800003 | Inner transact failed. |
| 9800004 | System service operation failed. | | 9800004 | System service operation failed. |
| 18700001 | Caller information verification failed when applying for efficiency resources. | | 18700001 | Caller information verification failed. |
**示例** **示例**
...@@ -57,6 +59,8 @@ isDeviceInStandby(): Promise&lt;boolean&gt; ...@@ -57,6 +59,8 @@ isDeviceInStandby(): Promise&lt;boolean&gt;
**系统能力:** SystemCapability.ResourceSchedule.DeviceStandby **系统能力:** SystemCapability.ResourceSchedule.DeviceStandby
**需要权限:** ohos.permission.DEVICE_STANDBY_EXEMPTION
**返回值** **返回值**
| 类型 | 说明 | | 类型 | 说明 |
...@@ -71,9 +75,9 @@ isDeviceInStandby(): Promise&lt;boolean&gt; ...@@ -71,9 +75,9 @@ isDeviceInStandby(): Promise&lt;boolean&gt;
| ---- | --------------------- | | ---- | --------------------- |
| 9800001 | Memory operation failed. | | 9800001 | Memory operation failed. |
| 9800002 | Parcel operation failed. | | 9800002 | Parcel operation failed. |
| 9800003 | IPC failed. | | 9800003 | Inner transact failed. |
| 9800004 | System service operation failed. | | 9800004 | System service operation failed. |
| 18700001 | Caller information verification failed when applying for efficiency resources. | | 18700001 | Caller information verification failed. |
**示例** **示例**
...@@ -94,6 +98,8 @@ getExemptedApps(resourceTypes: number, callback: AsyncCallback<Array&lt;Exempted ...@@ -94,6 +98,8 @@ getExemptedApps(resourceTypes: number, callback: AsyncCallback<Array&lt;Exempted
**系统能力:** SystemCapability.ResourceSchedule.DeviceStandby **系统能力:** SystemCapability.ResourceSchedule.DeviceStandby
**需要权限:** ohos.permission.DEVICE_STANDBY_EXEMPTION
**系统API:** 此接口为系统接口。 **系统API:** 此接口为系统接口。
**参数** **参数**
...@@ -111,9 +117,9 @@ getExemptedApps(resourceTypes: number, callback: AsyncCallback<Array&lt;Exempted ...@@ -111,9 +117,9 @@ getExemptedApps(resourceTypes: number, callback: AsyncCallback<Array&lt;Exempted
| ---- | --------------------- | | ---- | --------------------- |
| 9800001 | Memory operation failed. | | 9800001 | Memory operation failed. |
| 9800002 | Parcel operation failed. | | 9800002 | Parcel operation failed. |
| 9800003 | IPC failed. | | 9800003 | Inner transact failed. |
| 9800004 | System service operation failed. | | 9800004 | System service operation failed. |
| 18700001 | Caller information verification failed when applying for efficiency resources. | | 18700001 | Caller information verification failed. |
**示例** **示例**
...@@ -139,6 +145,8 @@ getExemptedApps(resourceTypes: number): Promise<Array&lt;ExemptedAppInfo&gt;>; ...@@ -139,6 +145,8 @@ getExemptedApps(resourceTypes: number): Promise<Array&lt;ExemptedAppInfo&gt;>;
**系统能力:** SystemCapability.ResourceSchedule.DeviceStandby **系统能力:** SystemCapability.ResourceSchedule.DeviceStandby
**需要权限:** ohos.permission.DEVICE_STANDBY_EXEMPTION
**系统API:** 此接口为系统接口。 **系统API:** 此接口为系统接口。
**参数** **参数**
...@@ -164,9 +172,9 @@ getExemptedApps(resourceTypes: number): Promise<Array&lt;ExemptedAppInfo&gt;>; ...@@ -164,9 +172,9 @@ getExemptedApps(resourceTypes: number): Promise<Array&lt;ExemptedAppInfo&gt;>;
| 401 | Parameter error. | | 401 | Parameter error. |
| 9800001 | Memory operation failed. | | 9800001 | Memory operation failed. |
| 9800002 | Parcel operation failed. | | 9800002 | Parcel operation failed. |
| 9800003 | IPC failed. | | 9800003 | Inner transact failed. |
| 9800004 | System service operation failed. | | 9800004 | System service operation failed. |
| 18700001 | Caller information verification failed when applying for efficiency resources. | | 18700001 | Caller information verification failed. |
**示例** **示例**
...@@ -190,6 +198,8 @@ requestExemptionResource(request: ResourceRequest): void; ...@@ -190,6 +198,8 @@ requestExemptionResource(request: ResourceRequest): void;
**系统能力:** SystemCapability.ResourceSchedule.DeviceStandby.Exemption **系统能力:** SystemCapability.ResourceSchedule.DeviceStandby.Exemption
**需要权限:** ohos.permission.DEVICE_STANDBY_EXEMPTION
**系统API:** 此接口为系统接口。 **系统API:** 此接口为系统接口。
**参数** **参数**
...@@ -206,9 +216,9 @@ requestExemptionResource(request: ResourceRequest): void; ...@@ -206,9 +216,9 @@ requestExemptionResource(request: ResourceRequest): void;
| ---- | --------------------- | | ---- | --------------------- |
| 9800001 | Memory operation failed. | | 9800001 | Memory operation failed. |
| 9800002 | Parcel operation failed. | | 9800002 | Parcel operation failed. |
| 9800003 | IPC failed. | | 9800003 | Inner transact failed. |
| 9800004 | System service operation failed. | | 9800004 | System service operation failed. |
| 18700001 | Caller information verification failed when applying for efficiency resources. | | 18700001 | Caller information verification failed. |
**示例** **示例**
...@@ -250,6 +260,8 @@ releaseExemptionResource(request: ResourceRequest): void; ...@@ -250,6 +260,8 @@ releaseExemptionResource(request: ResourceRequest): void;
**系统能力:** SystemCapability.ResourceSchedule.DeviceStandby.Exemption **系统能力:** SystemCapability.ResourceSchedule.DeviceStandby.Exemption
**需要权限:** ohos.permission.DEVICE_STANDBY_EXEMPTION
**系统API:** 此接口为系统接口。 **系统API:** 此接口为系统接口。
**参数** **参数**
...@@ -266,9 +278,9 @@ releaseExemptionResource(request: ResourceRequest): void; ...@@ -266,9 +278,9 @@ releaseExemptionResource(request: ResourceRequest): void;
| ---- | --------------------- | | ---- | --------------------- |
| 9800001 | Memory operation failed. | | 9800001 | Memory operation failed. |
| 9800002 | Parcel operation failed. | | 9800002 | Parcel operation failed. |
| 9800003 | IPC failed. | | 9800003 | Inner transact failed. |
| 9800004 | System service operation failed. | | 9800004 | System service operation failed. |
| 18700001 | Caller information verification failed when applying for efficiency resources. | | 18700001 | Caller information verification failed. |
**示例** **示例**
...@@ -306,6 +318,7 @@ releaseExemptionResource(request: ResourceRequest): void; ...@@ -306,6 +318,7 @@ releaseExemptionResource(request: ResourceRequest): void;
## ResourceType ## ResourceType
非待机应用资源枚举。 非待机应用资源枚举。
<br> <br>
**系统API:** 此接口为系统接口。
|名称 |值 |说明| |名称 |值 |说明|
| ------------ | ------------ |--------------| | ------------ | ------------ |--------------|
...@@ -320,6 +333,7 @@ releaseExemptionResource(request: ResourceRequest): void; ...@@ -320,6 +333,7 @@ releaseExemptionResource(request: ResourceRequest): void;
## ExemptedAppInfo ## ExemptedAppInfo
豁免应用信息,不进入待机管控的应用信息。 豁免应用信息,不进入待机管控的应用信息。
<br> <br>
**系统API:** 此接口为系统接口。
|名称 |类型 | 必填 |说明 | |名称 |类型 | 必填 |说明 |
| ------------ | ------------ |------------ | ------------ | | ------------ | ------------ |------------ | ------------ |
...@@ -330,6 +344,7 @@ releaseExemptionResource(request: ResourceRequest): void; ...@@ -330,6 +344,7 @@ releaseExemptionResource(request: ResourceRequest): void;
## ResourceRequest ## ResourceRequest
待机资源请求体。 待机资源请求体。
<br> <br>
**系统API:** 此接口为系统接口。
|名称 |类型 | 必填 |说明 | |名称 |类型 | 必填 |说明 |
| ------------ | ------------ |------------| ------------ | | ------------ | ------------ |------------| ------------ |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册