1/* 2 * Copyright (c) 2021-2022 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 16import { paramMock } from "../../utils" 17import { AbilityInfo } from './abilityInfo'; 18import { ApplicationInfo } from './applicationInfo'; 19import { ExtensionAbilityInfo } from './extensionAbilityInfo'; 20import { HapModuleInfo } from './hapModuleInfo'; 21 22export const UsedScene = { 23 abilities: [paramMock.paramStringMock], 24 when: "[PC preview] unknown when", 25} 26 27export const ReqPermissionDetail = { 28 name: "[PC preview] unknown name", 29 reason: "[PC preview] unknown reason", 30 reasonId: "[PC preview] unknown reasonId", 31 usedScene: UsedScene, 32} 33 34export const BundleInfo = { 35 name: "[PC preview] unknown name", 36 type: "[PC preview] unknown type", 37 appId: "[PC preview] unknown appId", 38 uid: "[PC preview] unknown uid", 39 installTime: "[PC preview] unknown installTime", 40 updateTime: "[PC preview] unknown updateTime", 41 appInfo: ApplicationInfo, 42 abilityInfos: [AbilityInfo], 43 reqPermissions: [paramMock.paramStringMock], 44 reqPermissionDetails: [ReqPermissionDetail], 45 vendor: "[PC preview] unknown vendor", 46 versionCode: "[PC preview] unknown versionCode", 47 versionName: "[PC preview] unknown versionName", 48 compatibleVersion: "[PC preview] unknown compatibleVersion", 49 targetVersion: "[PC preview] unknown targetVersion", 50 isCompressNativeLibs: "[PC preview] unknown isCompressNativeLibs", 51 hapModuleInfos: [HapModuleInfo], 52 entryModuleName: "[PC preview] unknown entryModuleName", 53 cpuAbi: "[PC preview] unknown cpuAbi", 54 isSilentInstallation: "[PC preview] unknown isSilentInstallation", 55 minCompatibleVersionCode: "[PC preview] unknown minCompatibleVersionCode", 56 entryInstallationFree: "[PC preview] unknown entryInstallationFree", 57 reqPermissionStates: [paramMock.paramStringMock], 58 extensionAbilityInfo: [ExtensionAbilityInfo], 59}; 60 61export const PixelMapFormat = { 62 UNKNOWN: 0, 63 RGB_565: 2, 64 RGBA_8888: 3, 65}