From 454d7399d68c36690507ebd5622eb36f521a38a3 Mon Sep 17 00:00:00 2001 From: fengyang Date: Tue, 1 Jul 2025 20:11:30 +0800 Subject: [PATCH] =?UTF-8?q?usageStatistics=20=E6=94=AF=E6=8C=81ArkTs=201.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fengyang --- ...ohos.resourceschedule.usageStatistics.d.ts | 294 ++++++++++++------ 1 file changed, 196 insertions(+), 98 deletions(-) diff --git a/api/@ohos.resourceschedule.usageStatistics.d.ts b/api/@ohos.resourceschedule.usageStatistics.d.ts index 216c70f3b4..c00b522aec 100644 --- a/api/@ohos.resourceschedule.usageStatistics.d.ts +++ b/api/@ohos.resourceschedule.usageStatistics.d.ts @@ -31,14 +31,16 @@ import { AsyncCallback, Callback } from './@ohos.base'; * * @namespace usageStatistics * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ declare namespace usageStatistics { /** * @interface BundleStatsInfo * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ interface BundleStatsInfo { /** @@ -46,7 +48,8 @@ declare namespace usageStatistics { * @type { number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ id: number; @@ -55,7 +58,8 @@ declare namespace usageStatistics { * @type { ?number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ abilityInFgTotalTime?: number; @@ -64,7 +68,8 @@ declare namespace usageStatistics { * @type { ?number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ abilityPrevAccessTime?: number; @@ -73,7 +78,8 @@ declare namespace usageStatistics { * @type { ?number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ abilityPrevSeenTime?: number; @@ -82,7 +88,8 @@ declare namespace usageStatistics { * @type { ?number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ abilitySeenTotalTime?: number; @@ -91,7 +98,8 @@ declare namespace usageStatistics { * @type { ?string } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ bundleName?: string; @@ -100,7 +108,8 @@ declare namespace usageStatistics { * @type { ?number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ fgAbilityAccessTotalTime?: number; @@ -109,7 +118,8 @@ declare namespace usageStatistics { * @type { ?number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ fgAbilityPrevAccessTime?: number; @@ -119,7 +129,8 @@ declare namespace usageStatistics { * @type { ?number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ infosBeginTime?: number; @@ -129,7 +140,8 @@ declare namespace usageStatistics { * @type { ?number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ infosEndTime?: number; @@ -138,7 +150,8 @@ declare namespace usageStatistics { * @type { ?number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 15 + * @since arkts{ '1.1':'15', '1.2':'20' } + * @arkts 1.1&1.2 */ appIndex?: number; } @@ -147,7 +160,8 @@ declare namespace usageStatistics { * @interface HapFormInfo * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ interface HapFormInfo { /** @@ -155,7 +169,8 @@ declare namespace usageStatistics { * @type { string } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ formName: string; @@ -164,7 +179,8 @@ declare namespace usageStatistics { * @type { number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ formDimension: number; @@ -173,7 +189,8 @@ declare namespace usageStatistics { * @type { number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ formId: number; @@ -182,7 +199,8 @@ declare namespace usageStatistics { * @type { number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ formLastUsedTime: number; @@ -191,7 +209,8 @@ declare namespace usageStatistics { * @type { number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ count: number; } @@ -200,7 +219,8 @@ declare namespace usageStatistics { * @interface HapModuleInfo * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ interface HapModuleInfo { /** @@ -208,7 +228,8 @@ declare namespace usageStatistics { * @type { ?string } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ deviceId?: string; @@ -217,7 +238,8 @@ declare namespace usageStatistics { * @type { string } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ bundleName: string; @@ -226,7 +248,8 @@ declare namespace usageStatistics { * @type { string } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ moduleName: string; @@ -235,7 +258,8 @@ declare namespace usageStatistics { * @type { ?string } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ abilityName?: string; @@ -244,7 +268,8 @@ declare namespace usageStatistics { * @type { ?number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ appLabelId?: number; @@ -253,7 +278,8 @@ declare namespace usageStatistics { * @type { ?number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ labelId?: number; @@ -262,7 +288,8 @@ declare namespace usageStatistics { * @type { ?number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ descriptionId?: number; @@ -271,7 +298,8 @@ declare namespace usageStatistics { * @type { ?number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ abilityLableId?: number; @@ -280,7 +308,8 @@ declare namespace usageStatistics { * @type { ?number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ abilityDescriptionId?: number; @@ -289,7 +318,8 @@ declare namespace usageStatistics { * @type { ?number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ abilityIconId?: number; @@ -298,7 +328,8 @@ declare namespace usageStatistics { * @type { number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ launchedCount: number; @@ -307,7 +338,8 @@ declare namespace usageStatistics { * @type { number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ lastModuleUsedTime: number; @@ -316,7 +348,8 @@ declare namespace usageStatistics { * @type { Array } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ formRecords: Array; } @@ -325,7 +358,8 @@ declare namespace usageStatistics { * @interface DeviceEventStats * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ interface DeviceEventStats { /** @@ -333,7 +367,8 @@ declare namespace usageStatistics { * @type { string } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ name: string; @@ -342,7 +377,8 @@ declare namespace usageStatistics { * @type { number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ eventId: number; @@ -351,7 +387,8 @@ declare namespace usageStatistics { * @type { number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ count: number; } @@ -360,7 +397,8 @@ declare namespace usageStatistics { * @interface BundleEvents * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ interface BundleEvents { /** @@ -368,7 +406,8 @@ declare namespace usageStatistics { * @type { ?number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ appGroup?: number; @@ -377,7 +416,8 @@ declare namespace usageStatistics { * @type { ?string } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ bundleName?: string; @@ -386,7 +426,8 @@ declare namespace usageStatistics { * @type { ?string } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ indexOfLink?: string; @@ -395,7 +436,8 @@ declare namespace usageStatistics { * @type { ?string } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ nameOfClass?: string; @@ -404,7 +446,8 @@ declare namespace usageStatistics { * @type { ?number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ eventOccurredTime?: number; @@ -413,7 +456,8 @@ declare namespace usageStatistics { * @type { ?number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ eventId?: number; } @@ -422,7 +466,8 @@ declare namespace usageStatistics { * @interface AppGroupCallbackInfo * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ interface AppGroupCallbackInfo { /** @@ -430,7 +475,8 @@ declare namespace usageStatistics { * @type { number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ appOldGroup: number; @@ -439,7 +485,8 @@ declare namespace usageStatistics { * @type { number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ appNewGroup: number; @@ -448,7 +495,8 @@ declare namespace usageStatistics { * @type { number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ userId: number; @@ -457,7 +505,8 @@ declare namespace usageStatistics { * @type { number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ changeReason: number; @@ -466,7 +515,8 @@ declare namespace usageStatistics { * @type { string } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ bundleName: string; } @@ -491,7 +541,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10000006 - Failed to get the application information. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function isIdleState(bundleName: string, callback: AsyncCallback): void; @@ -515,7 +566,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10000006 - Failed to get the application information. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function isIdleState(bundleName: string): Promise; @@ -539,7 +591,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10000006 - Failed to get the application information. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts{ '1.1':'10', '1.2':'20' } + * @arkts 1.1&1.2 */ function isIdleStateSync(bundleName: string): boolean; @@ -564,7 +617,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10100002 - Failed to get the application group information. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryAppGroup(callback: AsyncCallback): void; @@ -589,7 +643,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10100002 - Failed to get the application group information. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryAppGroup(): Promise; @@ -613,7 +668,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10100002 - Failed to get the application group information. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts{ '1.1':'10', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryAppGroupSync(): number; @@ -639,7 +695,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10100002 - Failed to get the application group information. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryAppGroup(bundleName: string, callback: AsyncCallback): void; @@ -665,7 +722,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10100002 - Failed to get the application group information. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryAppGroup(bundleName: string): Promise; @@ -690,7 +748,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10100002 - Failed to get the application group information. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 10 + * @since arkts{ '1.1':'10', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryAppGroupSync(bundleName: string): number; @@ -698,7 +757,8 @@ declare namespace usageStatistics { * @typedef { Record } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ type BundleStatsMap = Record; @@ -723,7 +783,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10000007 - Failed to get the system time. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryBundleStatsInfos(begin: number, end: number, callback: AsyncCallback): void; @@ -748,7 +809,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10000007 - Failed to get the system time. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryBundleStatsInfos(begin: number, end: number): Promise; @@ -756,7 +818,8 @@ declare namespace usageStatistics { * @typedef { Record> } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 15 + * @since arkts{ '1.1':'15', '1.2':'20' } + * @arkts 1.1&1.2 */ type AppStatsMap = Record>; @@ -781,7 +844,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10000007 - Failed to get the system time. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 15 + * @since arkts{ '1.1':'15', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryAppStatsInfos(begin: number, end: number): Promise; @@ -805,7 +869,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10000007 - Failed to get the system time. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 15 + * @since arkts{ '1.1':'15', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryLastUseTime(appInfo: Record>): Promise; @@ -815,7 +880,8 @@ declare namespace usageStatistics { * @enum { number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ export enum IntervalType { /** @@ -823,7 +889,8 @@ declare namespace usageStatistics { * * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ BY_OPTIMIZED = 0, @@ -832,7 +899,8 @@ declare namespace usageStatistics { * * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ BY_DAILY = 1, @@ -841,7 +909,8 @@ declare namespace usageStatistics { * * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ BY_WEEKLY = 2, @@ -850,7 +919,8 @@ declare namespace usageStatistics { * * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ BY_MONTHLY = 3, @@ -859,7 +929,8 @@ declare namespace usageStatistics { * * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ BY_ANNUALLY = 4 } @@ -887,7 +958,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10000007 - Failed to get the system time. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryBundleStatsInfoByInterval( byInterval: IntervalType, @@ -919,7 +991,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10000007 - Failed to get the system time. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryBundleStatsInfoByInterval( byInterval: IntervalType, @@ -948,7 +1021,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10000007 - Failed to get the system time. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryBundleEvents(begin: number, end: number, callback: AsyncCallback>): void; @@ -973,7 +1047,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10000007 - Failed to get the system time. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryBundleEvents(begin: number, end: number): Promise>; @@ -996,7 +1071,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10000007 - Failed to get the system time. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryCurrentBundleEvents(begin: number, end: number, callback: AsyncCallback>): void; @@ -1019,7 +1095,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10000007 - Failed to get the system time. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryCurrentBundleEvents(begin: number, end: number): Promise>; @@ -1043,7 +1120,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10000007 - Failed to get the system time. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryModuleUsageRecords(maxNum: number, callback: AsyncCallback>): void; @@ -1067,7 +1145,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10000007 - Failed to get the system time. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryModuleUsageRecords(maxNum: number): Promise>; @@ -1090,7 +1169,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10000007 - Failed to get the system time. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryModuleUsageRecords(callback: AsyncCallback>): void; @@ -1113,7 +1193,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10000007 - Failed to get the system time. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryModuleUsageRecords(): Promise>; @@ -1123,7 +1204,8 @@ declare namespace usageStatistics { * @enum { number } * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ export enum GroupType { /** @@ -1131,7 +1213,8 @@ declare namespace usageStatistics { * * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ ALIVE_GROUP = 10, @@ -1140,7 +1223,8 @@ declare namespace usageStatistics { * * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ DAILY_GROUP = 20, @@ -1149,7 +1233,8 @@ declare namespace usageStatistics { * * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ FIXED_GROUP = 30, @@ -1158,7 +1243,8 @@ declare namespace usageStatistics { * * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ RARE_GROUP = 40, @@ -1167,7 +1253,8 @@ declare namespace usageStatistics { * * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ LIMITED_GROUP = 50, @@ -1176,7 +1263,8 @@ declare namespace usageStatistics { * * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ NEVER_GROUP = 60 } @@ -1201,7 +1289,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10100001 - Repeated operation on the application group. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function setAppGroup(bundleName: string, newGroup: GroupType, callback: AsyncCallback): void; @@ -1225,7 +1314,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10100001 - Repeated operation on the application group. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function setAppGroup(bundleName: string, newGroup: GroupType): Promise; @@ -1248,7 +1338,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10100001 - Repeated operation on the application group. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function registerAppGroupCallBack(groupCallback: Callback, callback: AsyncCallback): void; @@ -1271,7 +1362,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10100001 - Repeated operation on the application group. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function registerAppGroupCallBack(groupCallback: Callback): Promise; @@ -1292,7 +1384,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10100001 - Repeated operation on the application group. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function unregisterAppGroupCallBack(callback: AsyncCallback): void; @@ -1313,7 +1406,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10100001 - Repeated operation on the application group. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.AppGroup * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function unregisterAppGroupCallBack(): Promise; @@ -1338,7 +1432,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10000007 - Failed to get the system time. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryDeviceEventStats(begin: number, end: number, callback: AsyncCallback>): void; @@ -1363,7 +1458,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10000007 - Failed to get the system time. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryDeviceEventStats(begin: number, end: number): Promise>; @@ -1388,7 +1484,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10000007 - Failed to get the system time. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryNotificationEventStats( begin: number, @@ -1417,7 +1514,8 @@ declare namespace usageStatistics { * @throws { BusinessError } 10000007 - Failed to get the system time. * @syscap SystemCapability.ResourceSchedule.UsageStatistics.App * @systemapi Hide this for inner system use. - * @since 9 + * @since arkts{ '1.1':'9', '1.2':'20' } + * @arkts 1.1&1.2 */ function queryNotificationEventStats(begin: number, end: number): Promise>; } -- Gitee