From 22ad14720cda38686efc1bdf6435a46e94812a35 Mon Sep 17 00:00:00 2001 From: SoftSquirrel Date: Tue, 29 Mar 2022 10:10:50 +0800 Subject: [PATCH] fixed 0e78229 from https://gitee.com/SoftSquirrel/interface_sdk-js/pulls/1466 IssueNo: #I501K0: delete moduleUsageRecord Description: delete moduleUsageRecord Sig: SIG_ApplicaitonFramework Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: SoftSquirrel --- api/@ohos.bundle.d.ts | 13 ---- api/bundle/moduleUsageRecord.d.ts | 103 ------------------------------ 2 files changed, 116 deletions(-) delete mode 100644 api/bundle/moduleUsageRecord.d.ts diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index b086100575..e095d4e67f 100644 --- a/api/@ohos.bundle.d.ts +++ b/api/@ohos.bundle.d.ts @@ -20,7 +20,6 @@ import { AbilityInfo } from './bundle/abilityInfo'; import { ExtensionAbilityInfo } from './bundle/extensionAbilityInfo'; import { Want } from './ability/want'; import { BundleInstaller } from './bundle/bundleInstaller'; -import { ModuleUsageRecord } from './bundle/moduleUsageRecord'; import { PermissionDef } from './bundle/PermissionDef'; import image from './@ohos.multimedia.image'; @@ -503,18 +502,6 @@ declare namespace bundle { function getLaunchWantForBundle(bundleName: string, callback: AsyncCallback): void; function getLaunchWantForBundle(bundleName: string): Promise; - /** - * get module usage record list in descending order of lastLaunchTime. - * - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - * @param maxNum the return size of the records, must be in range of 1 to 1000. - * @return Returns ability usage record list. - * @systemapi hide this for inner system use - */ - function getModuleUsageRecords(maxNum: number, callback: AsyncCallback>): void; - function getModuleUsageRecords(maxNum: number): Promise>; - /** * Clears cache data of a specified application. * diff --git a/api/bundle/moduleUsageRecord.d.ts b/api/bundle/moduleUsageRecord.d.ts deleted file mode 100644 index 4b7f457e9a..0000000000 --- a/api/bundle/moduleUsageRecord.d.ts +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright (c) 2021 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @name Stores FA usage information. - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - * @permission NA - * - * @systemapi hide this for inner system use - */ - export interface ModuleUsageRecord { - /** - * @default Indicates the name of the bundle containing the module - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly bundleName: string; - /** - * @default Indicates the app label id of this module - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly appLabelId: number; - /** - * @default Indicates the name of this module - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly name: string; - /** - * @default Indicates the label id of this module - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly labelId: number; - /** - * @default Indicates the description id of this module - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly descriptionId: number; - /** - * @default Indicates the ability name of this module - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly abilityName: string; - /** - * @default Indicates the ability label id of this module - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly abilityLabelId: number; - /** - * @default Indicates the ability description id of this module - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly abilityDescriptionId: number; - /** - * @default Indicates the ability icon id of this module - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly abilityIconId: number; - /** - * @default Indicates the launched count of this module - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly launchedCount: number; - /** - * @default Indicates the last launch time of this module - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly lastLaunchTime: number; - /** - * @default Indicates whether the module is removed - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly isRemoved: boolean; - /** - * @default Indicates whether free installation of the module is supported - * @since 7 - * @syscap SystemCapability.BundleManager.BundleFramework - */ - readonly installationFreeSupported: boolean; -} \ No newline at end of file -- Gitee