1/* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/** 17 * @name Stores FA usage information. 18 * @since 7 19 * @SysCap SystemCapability.Appexecfwk 20 * @permission NA 21 * @devices phone, tablet, tv, wearable, car 22 * @systemapi hide this for inner system use 23 */ 24export interface ModuleUsageRecord { 25 /** 26 * @default Indicates the name of the bundle containing the module 27 * @since 7 28 * @SysCap SystemCapability.Appexecfwk 29 */ 30 readonly bundleName: string; 31 /** 32 * @default Indicates the app label id of this module 33 * @since 7 34 * @SysCap SystemCapability.Appexecfwk 35 */ 36 readonly appLabelId: number; 37 /** 38 * @default Indicates the name of this module 39 * @since 7 40 * @SysCap SystemCapability.Appexecfwk 41 */ 42 readonly name: string; 43 /** 44 * @default Indicates the label id of this module 45 * @since 7 46 * @SysCap SystemCapability.Appexecfwk 47 */ 48 readonly labelId: number; 49 /** 50 * @default Indicates the description id of this module 51 * @since 7 52 * @SysCap SystemCapability.Appexecfwk 53 */ 54 readonly descriptionId: number; 55 /** 56 * @default Indicates the ability name of this module 57 * @since 7 58 * @SysCap SystemCapability.Appexecfwk 59 */ 60 readonly abilityName: string; 61 /** 62 * @default Indicates the ability label id of this module 63 * @since 7 64 * @SysCap SystemCapability.Appexecfwk 65 */ 66 readonly abilityLabelId: number; 67 /** 68 * @default Indicates the ability description id of this module 69 * @since 7 70 * @SysCap SystemCapability.Appexecfwk 71 */ 72 readonly abilityDescriptionId: number; 73 /** 74 * @default Indicates the ability icon id of this module 75 * @since 7 76 * @SysCap SystemCapability.Appexecfwk 77 */ 78 readonly abilityIconId: number; 79 /** 80 * @default Indicates the launched count of this module 81 * @since 7 82 * @SysCap SystemCapability.Appexecfwk 83 */ 84 readonly launchedCount: number; 85 /** 86 * @default Indicates the last launch time of this module 87 * @since 7 88 * @SysCap SystemCapability.Appexecfwk 89 */ 90 readonly lastLaunchTime: number; 91 /** 92 * @default Indicates whether the module is removed 93 * @since 7 94 * @SysCap SystemCapability.Appexecfwk 95 */ 96 readonly isRemoved: boolean; 97 /** 98 * @default Indicates whether free installation of the module is supported 99 * @since 7 100 * @SysCap SystemCapability.Appexecfwk 101 */ 102 readonly installationFreeSupported: boolean; 103}