From 6a2b9bc88eaf33dfe98903844b86c9a6c6f666bf Mon Sep 17 00:00:00 2001 From: chenxiaobaobb <2664761650@qq.com> Date: Thu, 14 Aug 2025 12:28:39 +0000 Subject: [PATCH 1/2] =?UTF-8?q?stnaby=E6=94=AF=E6=8C=811.2--0702=E5=88=86?= =?UTF-8?q?=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chenxiaobaobb <2664761650@qq.com> --- api/@ohos.resourceschedule.deviceStandby.d.ts | 99 ++++++++++++------- 1 file changed, 61 insertions(+), 38 deletions(-) diff --git a/api/@ohos.resourceschedule.deviceStandby.d.ts b/api/@ohos.resourceschedule.deviceStandby.d.ts index cb543608f7..aa04a324c7 100644 --- a/api/@ohos.resourceschedule.deviceStandby.d.ts +++ b/api/@ohos.resourceschedule.deviceStandby.d.ts @@ -25,7 +25,8 @@ import { AsyncCallback } from './@ohos.base'; * including the methods for querying standby status and exemption list. * * @namespace deviceStandby - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ declare namespace deviceStandby { @@ -33,7 +34,7 @@ declare namespace deviceStandby { * Returns the information about the specified exempted application. * * @permission ohos.permission.DEVICE_STANDBY_EXEMPTION - * @param { number } resourceTypes - the combination of {@link ResourceType} values. + * @param { int } resourceTypes - the combination of {@link ResourceType} values. * @param { AsyncCallback> } callback - the callback of getExemptedApps. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not System App. @@ -46,15 +47,16 @@ declare namespace deviceStandby { * @throws { BusinessError } 18700001 - Caller information verification failed. * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function getExemptedApps(resourceTypes: number, callback: AsyncCallback>): void; + function getExemptedApps(resourceTypes: int, callback: AsyncCallback>): void; /** * Returns the information about the specified exempted application. * * @permission ohos.permission.DEVICE_STANDBY_EXEMPTION - * @param { number } resourceTypes - the combination of {@link ResourceType} values. + * @param { int } resourceTypes - the combination of {@link ResourceType} values. * @returns { Promise> } the promise returned by getExemptedApps. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not System App. @@ -67,9 +69,10 @@ declare namespace deviceStandby { * @throws { BusinessError } 18700001 - Caller information verification failed. * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - function getExemptedApps(resourceTypes: number): Promise>; + function getExemptedApps(resourceTypes: int): Promise>; /** * Requests exemption resources. @@ -87,7 +90,8 @@ declare namespace deviceStandby { * @throws { BusinessError } 18700001 - Caller information verification failed. * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function requestExemptionResource(request: ResourceRequest): void; @@ -107,17 +111,19 @@ declare namespace deviceStandby { * @throws { BusinessError } 18700001 - Caller information verification failed. * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ function releaseExemptionResource(request: ResourceRequest): void; /** * The type of exemption resources requested by the application. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ export enum ResourceType { /** @@ -125,7 +131,8 @@ declare namespace deviceStandby { * * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ NETWORK = 1, @@ -134,7 +141,8 @@ declare namespace deviceStandby { * * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ RUNNING_LOCK = 1 << 1, @@ -143,7 +151,8 @@ declare namespace deviceStandby { * * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ TIMER = 1 << 2, @@ -152,7 +161,8 @@ declare namespace deviceStandby { * * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ WORK_SCHEDULER = 1 << 3, @@ -161,7 +171,8 @@ declare namespace deviceStandby { * * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ AUTO_SYNC = 1 << 4, @@ -170,7 +181,8 @@ declare namespace deviceStandby { * * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ PUSH = 1 << 5, @@ -179,7 +191,8 @@ declare namespace deviceStandby { * * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ FREEZE = 1 << 6 } @@ -190,18 +203,20 @@ declare namespace deviceStandby { * @interface ExemptedAppInfo * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ export interface ExemptedAppInfo { /** * The set of resource types that an application requests. * - * @type { number } + * @type { int } * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - resourceTypes: number; + resourceTypes: int; /** * The application name. @@ -209,19 +224,21 @@ declare namespace deviceStandby { * @type { string } * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ name: string; /** * The exemption duration. * - * @type { number } + * @type { int } * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - duration: number; + duration: int; } /** @@ -230,28 +247,31 @@ declare namespace deviceStandby { * @interface ResourceRequest * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ export interface ResourceRequest { /** * The set of resource types that an application requests. * - * @type { number } + * @type { int } * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - resourceTypes: number; + resourceTypes: int; /** * The application uid. * - * @type { number } + * @type { int } * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - uid: number; + uid: int; /** * The application name. @@ -259,19 +279,21 @@ declare namespace deviceStandby { * @type { string } * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ name: string; /** * The exemption duration. * - * @type { number } + * @type { int } * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - duration: number; + duration: int; /** * The reason for the request. @@ -279,7 +301,8 @@ declare namespace deviceStandby { * @type { string } * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * @since 10 + * since arkts{ '1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ reason: string; } -- Gitee From 46444d31eaffc5dcdf962072bac12ad579623358 Mon Sep 17 00:00:00 2001 From: chenxiaobaobb <2664761650@qq.com> Date: Fri, 15 Aug 2025 01:48:07 +0000 Subject: [PATCH 2/2] update api/@ohos.resourceschedule.deviceStandby.d.ts. Signed-off-by: chenxiaobaobb <2664761650@qq.com> --- api/@ohos.resourceschedule.deviceStandby.d.ts | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/api/@ohos.resourceschedule.deviceStandby.d.ts b/api/@ohos.resourceschedule.deviceStandby.d.ts index aa04a324c7..bbb90aac18 100644 --- a/api/@ohos.resourceschedule.deviceStandby.d.ts +++ b/api/@ohos.resourceschedule.deviceStandby.d.ts @@ -25,7 +25,7 @@ import { AsyncCallback } from './@ohos.base'; * including the methods for querying standby status and exemption list. * * @namespace deviceStandby - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ declare namespace deviceStandby { @@ -47,7 +47,7 @@ declare namespace deviceStandby { * @throws { BusinessError } 18700001 - Caller information verification failed. * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ function getExemptedApps(resourceTypes: int, callback: AsyncCallback>): void; @@ -69,7 +69,7 @@ declare namespace deviceStandby { * @throws { BusinessError } 18700001 - Caller information verification failed. * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ function getExemptedApps(resourceTypes: int): Promise>; @@ -90,7 +90,7 @@ declare namespace deviceStandby { * @throws { BusinessError } 18700001 - Caller information verification failed. * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ function requestExemptionResource(request: ResourceRequest): void; @@ -111,7 +111,7 @@ declare namespace deviceStandby { * @throws { BusinessError } 18700001 - Caller information verification failed. * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ function releaseExemptionResource(request: ResourceRequest): void; @@ -122,7 +122,7 @@ declare namespace deviceStandby { * @enum { int } * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ export enum ResourceType { @@ -131,7 +131,7 @@ declare namespace deviceStandby { * * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ NETWORK = 1, @@ -141,7 +141,7 @@ declare namespace deviceStandby { * * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ RUNNING_LOCK = 1 << 1, @@ -151,7 +151,7 @@ declare namespace deviceStandby { * * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ TIMER = 1 << 2, @@ -161,7 +161,7 @@ declare namespace deviceStandby { * * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ WORK_SCHEDULER = 1 << 3, @@ -171,7 +171,7 @@ declare namespace deviceStandby { * * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ AUTO_SYNC = 1 << 4, @@ -181,7 +181,7 @@ declare namespace deviceStandby { * * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ PUSH = 1 << 5, @@ -191,7 +191,7 @@ declare namespace deviceStandby { * * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ FREEZE = 1 << 6 @@ -203,7 +203,7 @@ declare namespace deviceStandby { * @interface ExemptedAppInfo * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ export interface ExemptedAppInfo { @@ -213,7 +213,7 @@ declare namespace deviceStandby { * @type { int } * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ resourceTypes: int; @@ -224,7 +224,7 @@ declare namespace deviceStandby { * @type { string } * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ name: string; @@ -235,7 +235,7 @@ declare namespace deviceStandby { * @type { int } * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ duration: int; @@ -247,7 +247,7 @@ declare namespace deviceStandby { * @interface ResourceRequest * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ export interface ResourceRequest { @@ -257,7 +257,7 @@ declare namespace deviceStandby { * @type { int } * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ resourceTypes: int; @@ -268,7 +268,7 @@ declare namespace deviceStandby { * @type { int } * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ uid: int; @@ -279,7 +279,7 @@ declare namespace deviceStandby { * @type { string } * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ name: string; @@ -290,7 +290,7 @@ declare namespace deviceStandby { * @type { int } * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ duration: int; @@ -301,7 +301,7 @@ declare namespace deviceStandby { * @type { string } * @syscap SystemCapability.ResourceSchedule.DeviceStandby * @systemapi Hide this for inner system use. - * since arkts{ '1.1':'10','1.2':'20'} + * @since arkts{ '1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ reason: string; -- Gitee