123b3eb3cSopenharmony_ci/* 223b3eb3cSopenharmony_ci * Copyright (c) 2021-2023 Huawei Device Co., Ltd. 323b3eb3cSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 423b3eb3cSopenharmony_ci * you may not use this file except in compliance with the License. 523b3eb3cSopenharmony_ci * You may obtain a copy of the License at 623b3eb3cSopenharmony_ci * 723b3eb3cSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 823b3eb3cSopenharmony_ci * 923b3eb3cSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1023b3eb3cSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1123b3eb3cSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1223b3eb3cSopenharmony_ci * See the License for the specific language governing permissions and 1323b3eb3cSopenharmony_ci * limitations under the License. 1423b3eb3cSopenharmony_ci */ 1523b3eb3cSopenharmony_ci 1623b3eb3cSopenharmony_ci#include "base/utils/system_properties.h" 1723b3eb3cSopenharmony_ci 1823b3eb3cSopenharmony_ci#include "base/log/log.h" 1923b3eb3cSopenharmony_ci 2023b3eb3cSopenharmony_cinamespace OHOS::Ace { 2123b3eb3cSopenharmony_cinamespace { 2223b3eb3cSopenharmony_ciconstexpr int32_t ORIENTATION_PORTRAIT = 0; 2323b3eb3cSopenharmony_ciconstexpr int32_t ORIENTATION_LANDSCAPE = 1; 2423b3eb3cSopenharmony_ciconstexpr char PROPERTY_DEVICE_TYPE_PHONE[] = "phone"; 2523b3eb3cSopenharmony_ciconstexpr char PROPERTY_DEVICE_TYPE_TV[] = "tv"; 2623b3eb3cSopenharmony_ciconstexpr char PROPERTY_DEVICE_TYPE_TABLET[] = "tablet"; 2723b3eb3cSopenharmony_ciconstexpr char PROPERTY_DEVICE_TYPE_TWO_IN_ONE[] = "2in1"; 2823b3eb3cSopenharmony_ciconstexpr char PROPERTY_DEVICE_TYPE_WEARABLE[] = "wearable"; 2923b3eb3cSopenharmony_ciconstexpr char PROPERTY_DEVICE_TYPE_CAR[] = "car"; 3023b3eb3cSopenharmony_ci 3123b3eb3cSopenharmony_cistatic constexpr char UNDEFINED_PARAM[] = "undefined parameter"; 3223b3eb3cSopenharmony_ci 3323b3eb3cSopenharmony_civoid Swap(int32_t& deviceWidth, int32_t& deviceHeight) 3423b3eb3cSopenharmony_ci{ 3523b3eb3cSopenharmony_ci int32_t temp = deviceWidth; 3623b3eb3cSopenharmony_ci deviceWidth = deviceHeight; 3723b3eb3cSopenharmony_ci deviceHeight = temp; 3823b3eb3cSopenharmony_ci} 3923b3eb3cSopenharmony_ci} // namespace 4023b3eb3cSopenharmony_ci 4123b3eb3cSopenharmony_cibool SystemProperties::svgTraceEnable_ = false; 4223b3eb3cSopenharmony_cibool SystemProperties::developerModeOn_ = false; 4323b3eb3cSopenharmony_cistd::atomic<bool> SystemProperties::layoutTraceEnable_(false); 4423b3eb3cSopenharmony_cistd::atomic<bool> SystemProperties::traceInputEventEnable_(false); 4523b3eb3cSopenharmony_cistd::atomic<bool> SystemProperties::stateManagerEnable_(false); 4623b3eb3cSopenharmony_cibool SystemProperties::buildTraceEnable_ = false; 4723b3eb3cSopenharmony_cibool SystemProperties::syncDebugTraceEnable_ = false; 4823b3eb3cSopenharmony_cibool SystemProperties::pixelRoundEnable_ = true; 4923b3eb3cSopenharmony_cibool SystemProperties::textTraceEnable_ = false; 5023b3eb3cSopenharmony_cibool SystemProperties::syntaxTraceEnable_ = false; 5123b3eb3cSopenharmony_cibool SystemProperties::accessTraceEnable_ = false; 5223b3eb3cSopenharmony_cibool SystemProperties::accessibilityEnabled_ = false; 5323b3eb3cSopenharmony_cibool SystemProperties::isRound_ = false; 5423b3eb3cSopenharmony_cibool SystemProperties::isDeviceAccess_ = false; 5523b3eb3cSopenharmony_ciint32_t SystemProperties::deviceWidth_ = 0; 5623b3eb3cSopenharmony_ciint32_t SystemProperties::deviceHeight_ = 0; 5723b3eb3cSopenharmony_ciint32_t SystemProperties::devicePhysicalWidth_ = 0; 5823b3eb3cSopenharmony_ciint32_t SystemProperties::devicePhysicalHeight_ = 0; 5923b3eb3cSopenharmony_cidouble SystemProperties::resolution_ = 1.0; 6023b3eb3cSopenharmony_ciDeviceType SystemProperties::deviceType_ { DeviceType::PHONE }; 6123b3eb3cSopenharmony_ciDeviceOrientation SystemProperties::orientation_ { DeviceOrientation::PORTRAIT }; 6223b3eb3cSopenharmony_cistd::string SystemProperties::brand_ = UNDEFINED_PARAM; 6323b3eb3cSopenharmony_cistd::string SystemProperties::manufacturer_ = UNDEFINED_PARAM; 6423b3eb3cSopenharmony_cistd::string SystemProperties::model_ = UNDEFINED_PARAM; 6523b3eb3cSopenharmony_cistd::string SystemProperties::product_ = UNDEFINED_PARAM; 6623b3eb3cSopenharmony_cistd::string SystemProperties::apiVersion_ = "9"; 6723b3eb3cSopenharmony_cistd::string SystemProperties::releaseType_ = UNDEFINED_PARAM; 6823b3eb3cSopenharmony_cistd::string SystemProperties::paramDeviceType_ = UNDEFINED_PARAM; 6923b3eb3cSopenharmony_ciint32_t SystemProperties::mcc_ = MCC_UNDEFINED; 7023b3eb3cSopenharmony_ciint32_t SystemProperties::mnc_ = MNC_UNDEFINED; 7123b3eb3cSopenharmony_ciColorMode SystemProperties::colorMode_ = ColorMode::LIGHT; 7223b3eb3cSopenharmony_ciScreenShape SystemProperties::screenShape_ { ScreenShape::NOT_ROUND }; 7323b3eb3cSopenharmony_ciLongScreenType SystemProperties::LongScreen_ { LongScreenType::NOT_LONG }; 7423b3eb3cSopenharmony_cibool SystemProperties::unZipHap_ = true; 7523b3eb3cSopenharmony_cibool SystemProperties::windowAnimationEnabled_ = false; 7623b3eb3cSopenharmony_cistd::atomic<bool> SystemProperties::debugBoundaryEnabled_(false); 7723b3eb3cSopenharmony_cibool SystemProperties::debugAutoUIEnabled_ = false; 7823b3eb3cSopenharmony_cibool SystemProperties::debugOffsetLogEnabled_ = false; 7923b3eb3cSopenharmony_cibool SystemProperties::downloadByNetworkEnabled_ = false; 8023b3eb3cSopenharmony_cibool SystemProperties::gpuUploadEnabled_ = false; 8123b3eb3cSopenharmony_cibool SystemProperties::isHookModeEnabled_ = false; 8223b3eb3cSopenharmony_cibool SystemProperties::astcEnabled_ = false; 8323b3eb3cSopenharmony_ciint SystemProperties::astcMax_ = 0; 8423b3eb3cSopenharmony_ciint SystemProperties::astcPsnr_ = 0; 8523b3eb3cSopenharmony_cibool SystemProperties::imageFileCacheConvertAstc_ = false; 8623b3eb3cSopenharmony_ciint32_t SystemProperties::imageFileCacheConvertAstcThreshold_ = 2; 8723b3eb3cSopenharmony_cibool SystemProperties::extSurfaceEnabled_ = false; 8823b3eb3cSopenharmony_ciuint32_t SystemProperties::dumpFrameCount_ = 0; 8923b3eb3cSopenharmony_cibool SystemProperties::resourceDecoupling_ = true; 9023b3eb3cSopenharmony_ci#ifndef ENABLE_ROSEN_BACKEND 9123b3eb3cSopenharmony_cibool SystemProperties::rosenBackendEnabled_ = false; 9223b3eb3cSopenharmony_ci#else 9323b3eb3cSopenharmony_cibool SystemProperties::rosenBackendEnabled_ = true; 9423b3eb3cSopenharmony_ci#endif 9523b3eb3cSopenharmony_cibool SystemProperties::enableScrollableItemPool_ = false; 9623b3eb3cSopenharmony_cibool SystemProperties::navigationBlurEnabled_ = true; 9723b3eb3cSopenharmony_cibool SystemProperties::gridCacheEnabled_ = false; 9823b3eb3cSopenharmony_cibool SystemProperties::sideBarContainerBlurEnable_ = false; 9923b3eb3cSopenharmony_cistd::atomic<bool> SystemProperties::acePerformanceMonitorEnable_(false); 10023b3eb3cSopenharmony_cibool SystemProperties::aceCommercialLogEnable_ = false; 10123b3eb3cSopenharmony_cistd::pair<float, float> SystemProperties::brightUpPercent_ = {}; 10223b3eb3cSopenharmony_cibool SystemProperties::faultInjectEnabled_ = false; 10323b3eb3cSopenharmony_cibool SystemProperties::imageFrameworkEnable_ = false; 10423b3eb3cSopenharmony_cifloat SystemProperties::dragStartDampingRatio_ = 0.2f; 10523b3eb3cSopenharmony_cifloat SystemProperties::dragStartPanDisThreshold_ = 10.0f; 10623b3eb3cSopenharmony_ciuint32_t SystemProperties::canvasDebugMode_ = 0; 10723b3eb3cSopenharmony_ci 10823b3eb3cSopenharmony_cibool SystemProperties::IsOpIncEnable() 10923b3eb3cSopenharmony_ci{ 11023b3eb3cSopenharmony_ci return false; 11123b3eb3cSopenharmony_ci} 11223b3eb3cSopenharmony_ci 11323b3eb3cSopenharmony_civoid SystemProperties::InitDeviceType(DeviceType type) 11423b3eb3cSopenharmony_ci{ 11523b3eb3cSopenharmony_ci // Properties: "phone", "tv", "tablet", "watch", "car" 11623b3eb3cSopenharmony_ci if (type == DeviceType::TV) { 11723b3eb3cSopenharmony_ci deviceType_ = DeviceType::TV; 11823b3eb3cSopenharmony_ci paramDeviceType_ = PROPERTY_DEVICE_TYPE_TV; 11923b3eb3cSopenharmony_ci } else if (type == DeviceType::WATCH) { 12023b3eb3cSopenharmony_ci deviceType_ = DeviceType::WATCH; 12123b3eb3cSopenharmony_ci paramDeviceType_ = PROPERTY_DEVICE_TYPE_WEARABLE; 12223b3eb3cSopenharmony_ci } else if (type == DeviceType::CAR) { 12323b3eb3cSopenharmony_ci deviceType_ = DeviceType::CAR; 12423b3eb3cSopenharmony_ci paramDeviceType_ = PROPERTY_DEVICE_TYPE_CAR; 12523b3eb3cSopenharmony_ci } else if (type == DeviceType::TABLET) { 12623b3eb3cSopenharmony_ci deviceType_ = DeviceType::TABLET; 12723b3eb3cSopenharmony_ci paramDeviceType_ = PROPERTY_DEVICE_TYPE_TABLET; 12823b3eb3cSopenharmony_ci } else if (type == DeviceType::TWO_IN_ONE) { 12923b3eb3cSopenharmony_ci deviceType_ = DeviceType::TWO_IN_ONE; 13023b3eb3cSopenharmony_ci paramDeviceType_ = PROPERTY_DEVICE_TYPE_TWO_IN_ONE; 13123b3eb3cSopenharmony_ci } else { 13223b3eb3cSopenharmony_ci deviceType_ = DeviceType::PHONE; 13323b3eb3cSopenharmony_ci paramDeviceType_ = PROPERTY_DEVICE_TYPE_PHONE; 13423b3eb3cSopenharmony_ci } 13523b3eb3cSopenharmony_ci} 13623b3eb3cSopenharmony_ci 13723b3eb3cSopenharmony_ciDeviceType SystemProperties::GetDeviceType() 13823b3eb3cSopenharmony_ci{ 13923b3eb3cSopenharmony_ci return deviceType_; 14023b3eb3cSopenharmony_ci} 14123b3eb3cSopenharmony_ci 14223b3eb3cSopenharmony_cibool SystemProperties::IsSyscapExist(const char* cap) 14323b3eb3cSopenharmony_ci{ 14423b3eb3cSopenharmony_ci return false; 14523b3eb3cSopenharmony_ci} 14623b3eb3cSopenharmony_ci 14723b3eb3cSopenharmony_civoid SystemProperties::InitDeviceTypeBySystemProperty() 14823b3eb3cSopenharmony_ci{ 14923b3eb3cSopenharmony_ci deviceType_ = DeviceType::PHONE; 15023b3eb3cSopenharmony_ci} 15123b3eb3cSopenharmony_ci 15223b3eb3cSopenharmony_civoid SystemProperties::InitDeviceInfo( 15323b3eb3cSopenharmony_ci int32_t deviceWidth, int32_t deviceHeight, int32_t orientation, double resolution, bool isRound) 15423b3eb3cSopenharmony_ci{ 15523b3eb3cSopenharmony_ci // SetDeviceOrientation should be eralier than deviceWidth/deviceHeight init. 15623b3eb3cSopenharmony_ci if (orientation == ORIENTATION_PORTRAIT) { 15723b3eb3cSopenharmony_ci orientation_ = DeviceOrientation::PORTRAIT; 15823b3eb3cSopenharmony_ci } else if (orientation == ORIENTATION_LANDSCAPE) { 15923b3eb3cSopenharmony_ci orientation_ = DeviceOrientation::LANDSCAPE; 16023b3eb3cSopenharmony_ci } else { 16123b3eb3cSopenharmony_ci LOGW("SetDeviceOrientation, undefined orientation"); 16223b3eb3cSopenharmony_ci } 16323b3eb3cSopenharmony_ci 16423b3eb3cSopenharmony_ci isRound_ = isRound; 16523b3eb3cSopenharmony_ci resolution_ = resolution; 16623b3eb3cSopenharmony_ci deviceWidth_ = deviceWidth; 16723b3eb3cSopenharmony_ci deviceHeight_ = deviceHeight; 16823b3eb3cSopenharmony_ci if (isRound_) { 16923b3eb3cSopenharmony_ci screenShape_ = ScreenShape::ROUND; 17023b3eb3cSopenharmony_ci } else { 17123b3eb3cSopenharmony_ci screenShape_ = ScreenShape::NOT_ROUND; 17223b3eb3cSopenharmony_ci } 17323b3eb3cSopenharmony_ci} 17423b3eb3cSopenharmony_ci 17523b3eb3cSopenharmony_civoid SystemProperties::SetDeviceOrientation(int32_t orientation) 17623b3eb3cSopenharmony_ci{ 17723b3eb3cSopenharmony_ci if (orientation == ORIENTATION_PORTRAIT && orientation_ != DeviceOrientation::PORTRAIT) { 17823b3eb3cSopenharmony_ci Swap(deviceWidth_, deviceHeight_); 17923b3eb3cSopenharmony_ci orientation_ = DeviceOrientation::PORTRAIT; 18023b3eb3cSopenharmony_ci } else if (orientation == ORIENTATION_LANDSCAPE && orientation_ != DeviceOrientation::LANDSCAPE) { 18123b3eb3cSopenharmony_ci Swap(deviceWidth_, deviceHeight_); 18223b3eb3cSopenharmony_ci orientation_ = DeviceOrientation::LANDSCAPE; 18323b3eb3cSopenharmony_ci } else { 18423b3eb3cSopenharmony_ci LOGI("SetDeviceOrientation, no change info: %{public}d", orientation); 18523b3eb3cSopenharmony_ci } 18623b3eb3cSopenharmony_ci} 18723b3eb3cSopenharmony_ci 18823b3eb3cSopenharmony_cifloat SystemProperties::GetFontWeightScale() 18923b3eb3cSopenharmony_ci{ 19023b3eb3cSopenharmony_ci return 1.0f; 19123b3eb3cSopenharmony_ci} 19223b3eb3cSopenharmony_ci 19323b3eb3cSopenharmony_civoid SystemProperties::InitMccMnc(int32_t mcc, int32_t mnc) 19423b3eb3cSopenharmony_ci{ 19523b3eb3cSopenharmony_ci mcc_ = mcc; 19623b3eb3cSopenharmony_ci mnc_ = mnc; 19723b3eb3cSopenharmony_ci} 19823b3eb3cSopenharmony_ci 19923b3eb3cSopenharmony_cibool SystemProperties::IsScoringEnabled(const std::string& name) 20023b3eb3cSopenharmony_ci{ 20123b3eb3cSopenharmony_ci return false; 20223b3eb3cSopenharmony_ci} 20323b3eb3cSopenharmony_ci 20423b3eb3cSopenharmony_cibool SystemProperties::GetDebugEnabled() 20523b3eb3cSopenharmony_ci{ 20623b3eb3cSopenharmony_ci return false; 20723b3eb3cSopenharmony_ci} 20823b3eb3cSopenharmony_ci 20923b3eb3cSopenharmony_cibool SystemProperties::GetLayoutDetectEnabled() 21023b3eb3cSopenharmony_ci{ 21123b3eb3cSopenharmony_ci return false; 21223b3eb3cSopenharmony_ci} 21323b3eb3cSopenharmony_ci 21423b3eb3cSopenharmony_cistd::string SystemProperties::GetLanguage() 21523b3eb3cSopenharmony_ci{ 21623b3eb3cSopenharmony_ci return UNDEFINED_PARAM; 21723b3eb3cSopenharmony_ci} 21823b3eb3cSopenharmony_ci 21923b3eb3cSopenharmony_cistd::string SystemProperties::GetRegion() 22023b3eb3cSopenharmony_ci{ 22123b3eb3cSopenharmony_ci return UNDEFINED_PARAM; 22223b3eb3cSopenharmony_ci} 22323b3eb3cSopenharmony_ci 22423b3eb3cSopenharmony_cistd::string SystemProperties::GetPartialUpdatePkg() 22523b3eb3cSopenharmony_ci{ 22623b3eb3cSopenharmony_ci return {}; 22723b3eb3cSopenharmony_ci} 22823b3eb3cSopenharmony_ci 22923b3eb3cSopenharmony_cistd::string SystemProperties::GetNewPipePkg() 23023b3eb3cSopenharmony_ci{ 23123b3eb3cSopenharmony_ci return {}; 23223b3eb3cSopenharmony_ci} 23323b3eb3cSopenharmony_ci 23423b3eb3cSopenharmony_ciint32_t SystemProperties::GetSvgMode() 23523b3eb3cSopenharmony_ci{ 23623b3eb3cSopenharmony_ci return 1; 23723b3eb3cSopenharmony_ci} 23823b3eb3cSopenharmony_ci 23923b3eb3cSopenharmony_cibool SystemProperties::GetIsUseMemoryMonitor() 24023b3eb3cSopenharmony_ci{ 24123b3eb3cSopenharmony_ci return false; 24223b3eb3cSopenharmony_ci} 24323b3eb3cSopenharmony_ci 24423b3eb3cSopenharmony_cibool SystemProperties::IsFormAnimationLimited() 24523b3eb3cSopenharmony_ci{ 24623b3eb3cSopenharmony_ci return true; 24723b3eb3cSopenharmony_ci} 24823b3eb3cSopenharmony_ci 24923b3eb3cSopenharmony_cibool SystemProperties::GetDebugPixelMapSaveEnabled() 25023b3eb3cSopenharmony_ci{ 25123b3eb3cSopenharmony_ci return false; 25223b3eb3cSopenharmony_ci} 25323b3eb3cSopenharmony_ci 25423b3eb3cSopenharmony_cibool SystemProperties::GetResourceDecoupling() 25523b3eb3cSopenharmony_ci{ 25623b3eb3cSopenharmony_ci return true; 25723b3eb3cSopenharmony_ci} 25823b3eb3cSopenharmony_ci 25923b3eb3cSopenharmony_cibool SystemProperties::GetTitleStyleEnabled() 26023b3eb3cSopenharmony_ci{ 26123b3eb3cSopenharmony_ci return false; 26223b3eb3cSopenharmony_ci} 26323b3eb3cSopenharmony_ci 26423b3eb3cSopenharmony_ciint32_t SystemProperties::GetJankFrameThreshold() 26523b3eb3cSopenharmony_ci{ 26623b3eb3cSopenharmony_ci return 0; 26723b3eb3cSopenharmony_ci} 26823b3eb3cSopenharmony_ci 26923b3eb3cSopenharmony_cistd::string SystemProperties::GetCustomTitleFilePath() 27023b3eb3cSopenharmony_ci{ 27123b3eb3cSopenharmony_ci return UNDEFINED_PARAM; 27223b3eb3cSopenharmony_ci} 27323b3eb3cSopenharmony_ci 27423b3eb3cSopenharmony_cibool SystemProperties::Is24HourClock() 27523b3eb3cSopenharmony_ci{ 27623b3eb3cSopenharmony_ci return false; 27723b3eb3cSopenharmony_ci} 27823b3eb3cSopenharmony_ci 27923b3eb3cSopenharmony_cibool SystemProperties::GetDisplaySyncSkipEnabled() 28023b3eb3cSopenharmony_ci{ 28123b3eb3cSopenharmony_ci return true; 28223b3eb3cSopenharmony_ci} 28323b3eb3cSopenharmony_ci 28423b3eb3cSopenharmony_cibool SystemProperties::GetNavigationBlurEnabled() 28523b3eb3cSopenharmony_ci{ 28623b3eb3cSopenharmony_ci return navigationBlurEnabled_; 28723b3eb3cSopenharmony_ci} 28823b3eb3cSopenharmony_ci 28923b3eb3cSopenharmony_cibool SystemProperties::GetGridCacheEnabled() 29023b3eb3cSopenharmony_ci{ 29123b3eb3cSopenharmony_ci return gridCacheEnabled_; 29223b3eb3cSopenharmony_ci} 29323b3eb3cSopenharmony_ci 29423b3eb3cSopenharmony_cibool SystemProperties::GetGridIrregularLayoutEnabled() 29523b3eb3cSopenharmony_ci{ 29623b3eb3cSopenharmony_ci return false; 29723b3eb3cSopenharmony_ci} 29823b3eb3cSopenharmony_ci 29923b3eb3cSopenharmony_cibool SystemProperties::WaterFlowUseSegmentedLayout() 30023b3eb3cSopenharmony_ci{ 30123b3eb3cSopenharmony_ci return false; 30223b3eb3cSopenharmony_ci} 30323b3eb3cSopenharmony_ci 30423b3eb3cSopenharmony_cibool SystemProperties::GetSideBarContainerBlurEnable() 30523b3eb3cSopenharmony_ci{ 30623b3eb3cSopenharmony_ci return sideBarContainerBlurEnable_; 30723b3eb3cSopenharmony_ci} 30823b3eb3cSopenharmony_ci 30923b3eb3cSopenharmony_cifloat SystemProperties::GetDefaultResolution() 31023b3eb3cSopenharmony_ci{ 31123b3eb3cSopenharmony_ci return 1.0f; 31223b3eb3cSopenharmony_ci} 31323b3eb3cSopenharmony_ci 31423b3eb3cSopenharmony_cistd::string SystemProperties::GetAtomicServiceBundleName() 31523b3eb3cSopenharmony_ci{ 31623b3eb3cSopenharmony_ci return UNDEFINED_PARAM; 31723b3eb3cSopenharmony_ci} 31823b3eb3cSopenharmony_ci 31923b3eb3cSopenharmony_cifloat SystemProperties::GetDragStartDampingRatio() 32023b3eb3cSopenharmony_ci{ 32123b3eb3cSopenharmony_ci return dragStartDampingRatio_; 32223b3eb3cSopenharmony_ci} 32323b3eb3cSopenharmony_ci 32423b3eb3cSopenharmony_cifloat SystemProperties::GetDragStartPanDistanceThreshold() 32523b3eb3cSopenharmony_ci{ 32623b3eb3cSopenharmony_ci return dragStartPanDisThreshold_; 32723b3eb3cSopenharmony_ci} 32823b3eb3cSopenharmony_ci 32923b3eb3cSopenharmony_cibool SystemProperties::IsSmallFoldProduct() 33023b3eb3cSopenharmony_ci{ 33123b3eb3cSopenharmony_ci return false; 33223b3eb3cSopenharmony_ci} 33323b3eb3cSopenharmony_ci 33423b3eb3cSopenharmony_cistd::string SystemProperties::GetDebugInspectorId() 33523b3eb3cSopenharmony_ci{ 33623b3eb3cSopenharmony_ci return UNDEFINED_PARAM; 33723b3eb3cSopenharmony_ci} 33823b3eb3cSopenharmony_ci 33923b3eb3cSopenharmony_cidouble SystemProperties::GetSrollableVelocityScale() 34023b3eb3cSopenharmony_ci{ 34123b3eb3cSopenharmony_ci return 0.0; 34223b3eb3cSopenharmony_ci} 34323b3eb3cSopenharmony_ci 34423b3eb3cSopenharmony_cidouble SystemProperties::GetSrollableFriction() 34523b3eb3cSopenharmony_ci{ 34623b3eb3cSopenharmony_ci return 0.0; 34723b3eb3cSopenharmony_ci} 34823b3eb3cSopenharmony_ci} // namespace OHOS::Ace 349