1/* 2 * Copyright (c) 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 */ 15export const ColorMode = { 16 COLOR_MODE_NOT_SET: -1, 17 COLOR_MODE_DARK: 0, 18 COLOR_MODE_LIGHT: 1, 19} 20export const Direction = { 21 DIRECTION_NOT_SET: -1, 22 DIRECTION_VERTICAL: 0, 23 DIRECTION_HORIZONTAL: 1, 24} 25export const ScreenDensity = { 26 SCREEN_DENSITY_NOT_SET: 0, 27 SCREEN_DENSITY_SDPI: 120, 28 SCREEN_DENSITY_MDPI: 160, 29 SCREEN_DENSITY_LDPI: 240, 30 SCREEN_DENSITY_XLDPI: 320, 31 SCREEN_DENSITY_XXLDPI: 480, 32 SCREEN_DENSITY_XXXLDPI: 640, 33} 34export function mockConfigurationConstant() { 35 const ConfigurationConstant = { 36 ColorMode, 37 Direction, 38 ScreenDensity 39 } 40 return ConfigurationConstant; 41}