diff --git a/brightness_manager/BUILD.gn b/brightness_manager/BUILD.gn index faf13ac00e2894d6ee530538cd3330d1b1c7b55d..3a02dfca244e5007399361aff09c9285f4597f03 100644 --- a/brightness_manager/BUILD.gn +++ b/brightness_manager/BUILD.gn @@ -66,7 +66,7 @@ ohos_static_library("brightness_manager") { "power_manager:power_setting", "power_manager:power_sysparam", "safwk:system_ability_fwk", - "window_manager:libdm", + "window_manager:libdm_lite", ] defines = [] diff --git a/brightness_manager/include/brightness_service.h b/brightness_manager/include/brightness_service.h index 9badf48fad6acb068d68ca43b999f2c67865b23c..c4f9ffd3ae3f6260c2ec9a539d478d7b39c33f5a 100644 --- a/brightness_manager/include/brightness_service.h +++ b/brightness_manager/include/brightness_service.h @@ -32,7 +32,7 @@ #include "calculation_manager.h" #include "display_common.h" #include "display_power_info.h" -#include "display_manager.h" +#include "display_manager_lite.h" #include "dm_common.h" #include "event_runner.h" #include "iremote_object.h" @@ -71,7 +71,7 @@ public: double mDiscount{1.0}; }; - class FoldStatusLisener : public Rosen::DisplayManager::IFoldStatusListener { + class FoldStatusLisener : public Rosen::DisplayManagerLite::IFoldStatusListener { public: FoldStatusLisener() = default; virtual ~FoldStatusLisener() = default; @@ -228,7 +228,7 @@ private: std::shared_ptr mDimming; LightLuxManager mLightLuxManager{}; BrightnessCalculationManager mBrightnessCalculationManager{}; - sptr mFoldStatusistener; + sptr mFoldStatusistener; std::shared_ptr queue_; bool mIsUserMode{false}; std::atomic mIsSleepStatus{false}; diff --git a/brightness_manager/src/brightness_action.cpp b/brightness_manager/src/brightness_action.cpp index e77cac6f1642c17daccb49779dc6c61b3053cf1a..6ae950e5e8fe9acb35a8cc7992d5e8a5f1709f0e 100644 --- a/brightness_manager/src/brightness_action.cpp +++ b/brightness_manager/src/brightness_action.cpp @@ -19,9 +19,9 @@ #include #include "display_log.h" -#include "display_manager.h" +#include "display_manager_lite.h" #include "dm_common.h" -#include "screen_manager.h" +#include "screen_manager_lite.h" namespace OHOS { namespace DisplayPowerMgr { @@ -41,7 +41,7 @@ void BrightnessAction::SetDisplayId(uint32_t displayId) DisplayState BrightnessAction::GetDisplayState() { DisplayState state = DisplayState::DISPLAY_UNKNOWN; - Rosen::ScreenPowerState powerState = Rosen::ScreenManager::GetInstance().GetScreenPower(mDisplayId); + Rosen::ScreenPowerState powerState = Rosen::ScreenManagerLite::GetInstance().GetScreenPower(mDisplayId); DISPLAY_HILOGI(FEAT_STATE, "ScreenPowerState=%{public}d", static_cast(powerState)); switch (powerState) { case Rosen::ScreenPowerState::POWER_ON: @@ -67,7 +67,7 @@ uint32_t BrightnessAction::GetBrightness() { std::lock_guard lock(mMutexBrightness); std::string identity = IPCSkeleton::ResetCallingIdentity(); - mBrightness = Rosen::DisplayManager::GetInstance().GetScreenBrightness(mDisplayId); + mBrightness = Rosen::DisplayManagerLite::GetInstance().GetScreenBrightness(mDisplayId); IPCSkeleton::SetCallingIdentity(identity); DISPLAY_HILOGD(FEAT_BRIGHTNESS, "displayId=%{public}u, brightness=%{public}u", mDisplayId, mBrightness); return mBrightness; @@ -84,7 +84,7 @@ bool BrightnessAction::SetBrightness(uint32_t displayId, uint32_t value) mDisplayId, displayId, value); DISPLAY_HILOGD(FEAT_BRIGHTNESS, "displayId=%{public}u, brightness=%{public}u", displayId, value); std::string identity = IPCSkeleton::ResetCallingIdentity(); - bool isSucc = Rosen::DisplayManager::GetInstance().SetScreenBrightness(displayId, value); + bool isSucc = Rosen::DisplayManagerLite::GetInstance().SetScreenBrightness(displayId, value); IPCSkeleton::SetCallingIdentity(identity); std::lock_guard lock(mMutexBrightness); mBrightness = isSucc ? value : mBrightness; diff --git a/brightness_manager/src/brightness_service.cpp b/brightness_manager/src/brightness_service.cpp index bd030beaff865c998a052cae1a6bfc534b0c99c7..a50475924fd9af841b5357dd3db3ac201bb87960 100644 --- a/brightness_manager/src/brightness_service.cpp +++ b/brightness_manager/src/brightness_service.cpp @@ -26,7 +26,7 @@ #include "delayed_sp_singleton.h" #include "display_common.h" #include "display_log.h" -#include "display_manager.h" +#include "display_manager_lite.h" #include "dm_common.h" #include "errors.h" #include "ffrt_utils.h" @@ -34,7 +34,7 @@ #include "new" #include "permission.h" #include "refbase.h" -#include "screen_manager.h" +#include "screen_manager_lite.h" #include "setting_provider.h" #include "system_ability_definition.h" @@ -111,14 +111,14 @@ void BrightnessService::Init(uint32_t defaultMax, uint32_t defaultMin) } #ifdef ENABLE_SENSOR_PART InitSensors(); - mIsFoldDevice = Rosen::DisplayManager::GetInstance().IsFoldable(); + mIsFoldDevice = Rosen::DisplayManagerLite::GetInstance().IsFoldable(); DISPLAY_HILOGI(FEAT_BRIGHTNESS, "Init mIsFoldDevice=%{public}d", mIsFoldDevice); #endif ConfigParse::Get().Initialize(); mLightLuxManager.InitParameters(); mBrightnessCalculationManager.InitParameters(); - bool isFoldable = Rosen::DisplayManager::GetInstance().IsFoldable(); + bool isFoldable = Rosen::DisplayManagerLite::GetInstance().IsFoldable(); brightnessValueMax = defaultMax; brightnessValueMin = defaultMin; DISPLAY_HILOGI(FEAT_BRIGHTNESS, "BrightnessService::init isFoldable=%{public}d, max=%{public}u, min=%{public}u", @@ -130,7 +130,7 @@ void BrightnessService::Init(uint32_t defaultMax, uint32_t defaultMin) void BrightnessService::DeInit() { - bool isFoldable = Rosen::DisplayManager::GetInstance().IsFoldable(); + bool isFoldable = Rosen::DisplayManagerLite::GetInstance().IsFoldable(); DISPLAY_HILOGI(FEAT_BRIGHTNESS, "BrightnessService::init isFoldable=%{public}d", isFoldable); if (isFoldable) { UnRegisterFoldStatusListener(); @@ -196,9 +196,9 @@ void BrightnessService::RegisterFoldStatusListener() DISPLAY_HILOGI(FEAT_BRIGHTNESS, "BrightnessService::RegisterDisplayModeListener newListener failed"); return; } - auto ret = Rosen::DisplayManager::GetInstance().RegisterFoldStatusListener(mFoldStatusistener); + auto ret = Rosen::DisplayManagerLite::GetInstance().RegisterFoldStatusListener(mFoldStatusistener); if (ret != Rosen::DMError::DM_OK) { - DISPLAY_HILOGI(FEAT_BRIGHTNESS, "Rosen::DisplayManager::RegisterDisplayModeListener failed"); + DISPLAY_HILOGI(FEAT_BRIGHTNESS, "Rosen::DisplayManagerLite::RegisterDisplayModeListener failed"); mFoldStatusistener = nullptr; } else { DISPLAY_HILOGI(FEAT_BRIGHTNESS, "BrightnessService::RegisterDisplayModeListener success"); @@ -211,7 +211,7 @@ void BrightnessService::UnRegisterFoldStatusListener() DISPLAY_HILOGI(FEAT_BRIGHTNESS, "BrightnessService::UnRegistermFoldStatusistener listener is null"); return; } - auto ret = Rosen::DisplayManager::GetInstance().UnregisterFoldStatusListener(mFoldStatusistener); + auto ret = Rosen::DisplayManagerLite::GetInstance().UnregisterFoldStatusListener(mFoldStatusistener); if (ret != Rosen::DMError::DM_OK) { DISPLAY_HILOGI(FEAT_BRIGHTNESS, "BrightnessService::UnRegisterDisplayModeListener failed"); } @@ -276,13 +276,13 @@ void BrightnessService::NotifyLightChangeToAps(uint32_t type, float value) uint32_t BrightnessService::GetCurrentDisplayId(uint32_t defaultId) { uint32_t currentId = defaultId; - bool isFoldable = Rosen::DisplayManager::GetInstance().IsFoldable(); + bool isFoldable = Rosen::DisplayManagerLite::GetInstance().IsFoldable(); if (!isFoldable) { DISPLAY_HILOGI(FEAT_STATE, "GetCurrentDisplayId not fold phone return default id=%{public}d", defaultId); return currentId; } std::string identity = IPCSkeleton::ResetCallingIdentity(); - auto foldMode = Rosen::DisplayManager::GetInstance().GetFoldDisplayMode(); + auto foldMode = Rosen::DisplayManagerLite::GetInstance().GetFoldDisplayMode(); currentId = static_cast(GetDisplayIdWithDisplayMode(foldMode)); DISPLAY_HILOGI(FEAT_STATE, "GetCurrentDisplayId foldMode=%{public}u", foldMode); IPCSkeleton::SetCallingIdentity(identity); @@ -608,13 +608,13 @@ void BrightnessService::DeactivateAmbientSensor1() void BrightnessService::ActivateValidAmbientSensor() { DISPLAY_HILOGI(FEAT_BRIGHTNESS, "ActivateValidAmbientSensor"); - bool isFoldable = Rosen::DisplayManager::GetInstance().IsFoldable(); + bool isFoldable = Rosen::DisplayManagerLite::GetInstance().IsFoldable(); if (!isFoldable) { ActivateAmbientSensor(); return; } std::string identity = IPCSkeleton::ResetCallingIdentity(); - auto foldMode = Rosen::DisplayManager::GetInstance().GetFoldDisplayMode(); + auto foldMode = Rosen::DisplayManagerLite::GetInstance().GetFoldDisplayMode(); int sensorId = GetSensorIdWithDisplayMode(foldMode); DISPLAY_HILOGI(FEAT_BRIGHTNESS, "ActivateValidAmbientSensor sensorId=%{public}d, mode=%{public}d", sensorId, foldMode); @@ -629,13 +629,13 @@ void BrightnessService::ActivateValidAmbientSensor() void BrightnessService::DeactivateValidAmbientSensor() { DISPLAY_HILOGI(FEAT_BRIGHTNESS, "DeactivateValidAmbientSensor"); - bool isFoldable = Rosen::DisplayManager::GetInstance().IsFoldable(); + bool isFoldable = Rosen::DisplayManagerLite::GetInstance().IsFoldable(); if (!isFoldable) { DeactivateAmbientSensor(); return; } std::string identity = IPCSkeleton::ResetCallingIdentity(); - auto foldMode = Rosen::DisplayManager::GetInstance().GetFoldDisplayMode(); + auto foldMode = Rosen::DisplayManagerLite::GetInstance().GetFoldDisplayMode(); int sensorId = GetSensorIdWithDisplayMode(foldMode); DISPLAY_HILOGI(FEAT_BRIGHTNESS, "DeactivateValidAmbientSensor sensorId=%{public}d, mode=%{public}d", sensorId, foldMode); @@ -650,7 +650,7 @@ void BrightnessService::DeactivateValidAmbientSensor() void BrightnessService::DeactivateAllAmbientSensor() { DISPLAY_HILOGI(FEAT_BRIGHTNESS, "DeactivateAllAmbientSensor"); - bool isFoldable = Rosen::DisplayManager::GetInstance().IsFoldable(); + bool isFoldable = Rosen::DisplayManagerLite::GetInstance().IsFoldable(); if (!isFoldable) { DeactivateAmbientSensor(); return; @@ -1202,13 +1202,13 @@ bool BrightnessService::GetIsSupportLightSensor() bool BrightnessService::IsCurrentSensorEnable() { - bool isFoldable = Rosen::DisplayManager::GetInstance().IsFoldable(); + bool isFoldable = Rosen::DisplayManagerLite::GetInstance().IsFoldable(); if (!isFoldable) { return mIsLightSensorEnabled; } bool result = false; std::string identity = IPCSkeleton::ResetCallingIdentity(); - auto foldMode = Rosen::DisplayManager::GetInstance().GetFoldDisplayMode(); + auto foldMode = Rosen::DisplayManagerLite::GetInstance().GetFoldDisplayMode(); int sensorId = GetSensorIdWithDisplayMode(foldMode); if (sensorId == SENSOR_TYPE_ID_AMBIENT_LIGHT) { result = mIsLightSensorEnabled; diff --git a/brightness_manager/test/unittest/BUILD.gn b/brightness_manager/test/unittest/BUILD.gn index e2ad2f97c0cb8e0aac73b38c3ad6390acfd21fbb..9cf0a0c10e03c570a4e483ca2f20d0c46baeeaca 100644 --- a/brightness_manager/test/unittest/BUILD.gn +++ b/brightness_manager/test/unittest/BUILD.gn @@ -55,7 +55,7 @@ set_defaults("ohos_unittest") { "power_manager:powermgr_client", "safwk:system_ability_fwk", "samgr:samgr_proxy", - "window_manager:libdm", + "window_manager:libdm_lite", ] } diff --git a/state_manager/service/BUILD.gn b/state_manager/service/BUILD.gn index 82a7f8ef1017f477874bf5518dc706d12ece6161..e7fd8b02de6aed5c53703f6d9f077251720cf601 100644 --- a/state_manager/service/BUILD.gn +++ b/state_manager/service/BUILD.gn @@ -75,7 +75,7 @@ ohos_shared_library("displaymgrservice") { "power_manager:power_sysparam", "power_manager:powermgr_client", "safwk:system_ability_fwk", - "window_manager:libdm", + "window_manager:libdm_lite", ] defines = [] diff --git a/state_manager/service/native/include/screen_action.h b/state_manager/service/native/include/screen_action.h index b25fcf42374cf9fbb58ec0261f4a209366b587f6..eb21e067fd07ea106f3ddeda271aba6400f8c661 100644 --- a/state_manager/service/native/include/screen_action.h +++ b/state_manager/service/native/include/screen_action.h @@ -23,7 +23,7 @@ #include #include "dm_common.h" -#include "display_manager.h" +#include "display_manager_lite.h" #include "display_power_info.h" namespace OHOS { diff --git a/state_manager/service/native/src/screen_action.cpp b/state_manager/service/native/src/screen_action.cpp index 5ad4f5a15b70f60067be946a67540e69615a58c1..38ad1de86c7f409920ba174a24919cfabcb455b3 100644 --- a/state_manager/service/native/src/screen_action.cpp +++ b/state_manager/service/native/src/screen_action.cpp @@ -20,7 +20,7 @@ #include "display_log.h" #include "power_state_machine_info.h" -#include "screen_manager.h" +#include "screen_manager_lite.h" namespace OHOS { namespace DisplayPowerMgr { @@ -30,7 +30,7 @@ ScreenAction::ScreenAction(uint32_t displayId) : displayId_(displayId) uint32_t ScreenAction::GetDefaultDisplayId() { std::string identity = IPCSkeleton::ResetCallingIdentity(); - uint64_t defaultId = Rosen::DisplayManager::GetInstance().GetDefaultDisplayId(); + uint64_t defaultId = Rosen::DisplayManagerLite::GetInstance().GetDefaultDisplayId(); IPCSkeleton::SetCallingIdentity(identity); return static_cast(defaultId); } @@ -38,7 +38,7 @@ uint32_t ScreenAction::GetDefaultDisplayId() std::vector ScreenAction::GetAllDisplayId() { std::string identity = IPCSkeleton::ResetCallingIdentity(); - std::vector allIds = Rosen::DisplayManager::GetInstance().GetAllDisplayIds(); + std::vector allIds = Rosen::DisplayManagerLite::GetInstance().GetAllDisplayIds(); IPCSkeleton::SetCallingIdentity(identity); std::vector displayIds; std::transform(allIds.begin(), allIds.end(), back_inserter(displayIds), [](uint64_t id) { @@ -55,7 +55,7 @@ uint32_t ScreenAction::GetDisplayId() DisplayState ScreenAction::GetDisplayState() { DisplayState state = DisplayState::DISPLAY_UNKNOWN; - Rosen::ScreenPowerState powerState = Rosen::ScreenManager::GetInstance().GetScreenPower(displayId_); + Rosen::ScreenPowerState powerState = Rosen::ScreenManagerLite::GetInstance().GetScreenPower(displayId_); DISPLAY_HILOGI(FEAT_STATE, "ScreenPowerState=%{public}d", static_cast(powerState)); switch (powerState) { case Rosen::ScreenPowerState::POWER_ON: @@ -101,7 +101,8 @@ bool ScreenAction::SetDisplayState(DisplayState state, const std::function(rosenState)); DisplayState state; switch (rosenState) { @@ -181,10 +182,10 @@ bool ScreenAction::SetDisplayPower(DisplayState state, uint32_t reason) bool ret = false; auto changeReason = ParseSpecialReason(reason); if (coordinated_ && reason == static_cast(PowerMgr::StateChangeReason::STATE_CHANGE_REASON_TIMEOUT)) { - ret = Rosen::ScreenManager::GetInstance().SetSpecifiedScreenPower( + ret = Rosen::ScreenManagerLite::GetInstance().SetSpecifiedScreenPower( displayId_, status, Rosen::PowerStateChangeReason::STATE_CHANGE_REASON_COLLABORATION); } else { - ret = Rosen::ScreenManager::GetInstance().SetScreenPowerForAll(status, changeReason); + ret = Rosen::ScreenManagerLite::GetInstance().SetScreenPowerForAll(status, changeReason); } DISPLAY_HILOGI(FEAT_STATE, "[UL_POWER] SetDisplayPower state=%{public}u, reason=%{public}u, ret=%{public}d, coordinated=%{public}d", @@ -196,7 +197,7 @@ uint32_t ScreenAction::GetBrightness() { std::lock_guard lock(mutexBrightness_); std::string identity = IPCSkeleton::ResetCallingIdentity(); - brightness_ = Rosen::DisplayManager::GetInstance().GetScreenBrightness(displayId_); + brightness_ = Rosen::DisplayManagerLite::GetInstance().GetScreenBrightness(displayId_); IPCSkeleton::SetCallingIdentity(identity); DISPLAY_HILOGD(FEAT_BRIGHTNESS, "displayId=%{public}u, brightness=%{public}u", displayId_, brightness_); return brightness_; @@ -206,7 +207,7 @@ bool ScreenAction::SetBrightness(uint32_t value) { DISPLAY_HILOGD(FEAT_BRIGHTNESS, "displayId=%{public}u, brightness=%{public}u", displayId_, value); std::string identity = IPCSkeleton::ResetCallingIdentity(); - bool isSucc = Rosen::DisplayManager::GetInstance().SetScreenBrightness(displayId_, value); + bool isSucc = Rosen::DisplayManagerLite::GetInstance().SetScreenBrightness(displayId_, value); IPCSkeleton::SetCallingIdentity(identity); std::lock_guard lock(mutexBrightness_); brightness_ = isSucc ? value : brightness_; diff --git a/state_manager/test/fuzztest/adjustbrightness_fuzzer/BUILD.gn b/state_manager/test/fuzztest/adjustbrightness_fuzzer/BUILD.gn index 049286183b9a90341ef6d8de223e955157e1bd6d..a3693c0bb0896e9d997fc0b306d7819c296ef8d1 100644 --- a/state_manager/test/fuzztest/adjustbrightness_fuzzer/BUILD.gn +++ b/state_manager/test/fuzztest/adjustbrightness_fuzzer/BUILD.gn @@ -77,7 +77,7 @@ ohos_fuzztest("AdjustBrightnessFuzzTest") { "power_manager:power_sysparam", "power_manager:powermgr_client", "safwk:system_ability_fwk", - "window_manager:libdm", + "window_manager:libdm_lite", ] if (has_sensors_sensor_part) { diff --git a/state_manager/test/fuzztest/autoadjustbrightness_fuzzer/BUILD.gn b/state_manager/test/fuzztest/autoadjustbrightness_fuzzer/BUILD.gn index a4fc11bfb4d87d22b0de8755f3f816a4bbc6d099..b5d2d92bd1a1ea1c5a1f23d3b16d3c9f46cd85e6 100644 --- a/state_manager/test/fuzztest/autoadjustbrightness_fuzzer/BUILD.gn +++ b/state_manager/test/fuzztest/autoadjustbrightness_fuzzer/BUILD.gn @@ -77,7 +77,7 @@ ohos_fuzztest("AutoAdjustBrightnessFuzzTest") { "power_manager:power_sysparam", "power_manager:powermgr_client", "safwk:system_ability_fwk", - "window_manager:libdm", + "window_manager:libdm_lite", ] if (has_sensors_sensor_part) { diff --git a/state_manager/test/fuzztest/boostbrightness_fuzzer/BUILD.gn b/state_manager/test/fuzztest/boostbrightness_fuzzer/BUILD.gn index 69d53ad016b00488f274fdfc67a921e1da177ca8..22ac526080d8d9188dd95050697f01fca6c310dd 100644 --- a/state_manager/test/fuzztest/boostbrightness_fuzzer/BUILD.gn +++ b/state_manager/test/fuzztest/boostbrightness_fuzzer/BUILD.gn @@ -77,7 +77,7 @@ ohos_fuzztest("BoostBrightnessFuzzTest") { "power_manager:power_sysparam", "power_manager:powermgr_client", "safwk:system_ability_fwk", - "window_manager:libdm", + "window_manager:libdm_lite", ] if (has_sensors_sensor_part) { diff --git a/state_manager/test/fuzztest/discountbrightness_fuzzer/BUILD.gn b/state_manager/test/fuzztest/discountbrightness_fuzzer/BUILD.gn index 3c433ab7b44b39e069630ed5a9c46ddd307a9c16..8af3b7abf518d756cdf2bf4057c614dd0e93d2c2 100644 --- a/state_manager/test/fuzztest/discountbrightness_fuzzer/BUILD.gn +++ b/state_manager/test/fuzztest/discountbrightness_fuzzer/BUILD.gn @@ -77,7 +77,7 @@ ohos_fuzztest("DiscountBrightnessFuzzTest") { "power_manager:power_sysparam", "power_manager:powermgr_client", "safwk:system_ability_fwk", - "window_manager:libdm", + "window_manager:libdm_lite", ] if (has_sensors_sensor_part) { diff --git a/state_manager/test/fuzztest/displaystate_fuzzer/BUILD.gn b/state_manager/test/fuzztest/displaystate_fuzzer/BUILD.gn index 742f1335280865227e05b5464af66fc0ca2d0b13..907853835d8dac77660d36e441ce127623c4d68a 100644 --- a/state_manager/test/fuzztest/displaystate_fuzzer/BUILD.gn +++ b/state_manager/test/fuzztest/displaystate_fuzzer/BUILD.gn @@ -76,7 +76,7 @@ ohos_fuzztest("DisplayStateFuzzTest") { "power_manager:power_sysparam", "power_manager:powermgr_client", "safwk:system_ability_fwk", - "window_manager:libdm", + "window_manager:libdm_lite", ] if (has_sensors_sensor_part) { diff --git a/state_manager/test/fuzztest/getbrightness_fuzzer/BUILD.gn b/state_manager/test/fuzztest/getbrightness_fuzzer/BUILD.gn index e4a1eb0bccc45f8d82b7d6a3cdae78bfefce3d6c..be8f7442a1002651e6dfa2fbad311805b4aaeafd 100644 --- a/state_manager/test/fuzztest/getbrightness_fuzzer/BUILD.gn +++ b/state_manager/test/fuzztest/getbrightness_fuzzer/BUILD.gn @@ -77,7 +77,7 @@ ohos_fuzztest("GetBrightnessFuzzTest") { "power_manager:power_sysparam", "power_manager:powermgr_client", "safwk:system_ability_fwk", - "window_manager:libdm", + "window_manager:libdm_lite", ] if (has_sensors_sensor_part) { diff --git a/state_manager/test/fuzztest/getdisplayid_fuzzer/BUILD.gn b/state_manager/test/fuzztest/getdisplayid_fuzzer/BUILD.gn index 704f449f7a0cd8daa05277fdf8e5910d3b1de96b..082a95ec1f2b81a2f3bec8cd12db75afe7cd9b5d 100644 --- a/state_manager/test/fuzztest/getdisplayid_fuzzer/BUILD.gn +++ b/state_manager/test/fuzztest/getdisplayid_fuzzer/BUILD.gn @@ -76,7 +76,7 @@ ohos_fuzztest("GetDisplayIdFuzzTest") { "power_manager:power_sysparam", "power_manager:powermgr_client", "safwk:system_ability_fwk", - "window_manager:libdm", + "window_manager:libdm_lite", ] if (has_sensors_sensor_part) { diff --git a/state_manager/test/fuzztest/overridebrightness_fuzzer/BUILD.gn b/state_manager/test/fuzztest/overridebrightness_fuzzer/BUILD.gn index 2cd2eb326a65bbe674c1ead4b95f82fb1e691d9b..adf209c049dcc5c42ef40eb9bc0b1ead4e9aaab4 100644 --- a/state_manager/test/fuzztest/overridebrightness_fuzzer/BUILD.gn +++ b/state_manager/test/fuzztest/overridebrightness_fuzzer/BUILD.gn @@ -77,7 +77,7 @@ ohos_fuzztest("OverrideBrightnessFuzzTest") { "power_manager:power_sysparam", "power_manager:powermgr_client", "safwk:system_ability_fwk", - "window_manager:libdm", + "window_manager:libdm_lite", ] if (has_sensors_sensor_part) { diff --git a/state_manager/test/fuzztest/overridedisplayoffdelay_fuzzer/BUILD.gn b/state_manager/test/fuzztest/overridedisplayoffdelay_fuzzer/BUILD.gn index 372d3aa5001e846a3bfc7c8593394903ee8fcd50..3070476fda7bc07b9fca6204f6831ee55a77a734 100644 --- a/state_manager/test/fuzztest/overridedisplayoffdelay_fuzzer/BUILD.gn +++ b/state_manager/test/fuzztest/overridedisplayoffdelay_fuzzer/BUILD.gn @@ -77,7 +77,7 @@ ohos_fuzztest("OverrideDisplayOffDelayFuzzTest") { "power_manager:power_sysparam", "power_manager:powermgr_client", "safwk:system_ability_fwk", - "window_manager:libdm", + "window_manager:libdm_lite", ] if (has_sensors_sensor_part) { diff --git a/state_manager/test/fuzztest/registercallback_fuzzer/BUILD.gn b/state_manager/test/fuzztest/registercallback_fuzzer/BUILD.gn index 869df6547c77e0874280ac82afb4c4e667a13bb0..430c46382aa461fe8288d55e453dcea46d89497e 100644 --- a/state_manager/test/fuzztest/registercallback_fuzzer/BUILD.gn +++ b/state_manager/test/fuzztest/registercallback_fuzzer/BUILD.gn @@ -77,7 +77,7 @@ ohos_fuzztest("RegisterCallbackFuzzTest") { "power_manager:power_sysparam", "power_manager:powermgr_client", "safwk:system_ability_fwk", - "window_manager:libdm", + "window_manager:libdm_lite", ] if (has_sensors_sensor_part) { diff --git a/state_manager/test/fuzztest/setbrightness_fuzzer/BUILD.gn b/state_manager/test/fuzztest/setbrightness_fuzzer/BUILD.gn index 0ba661099e9b7345a6d399b0f86957d794575289..a395342b1c4f0195e8cfc642361e2f88b016a449 100644 --- a/state_manager/test/fuzztest/setbrightness_fuzzer/BUILD.gn +++ b/state_manager/test/fuzztest/setbrightness_fuzzer/BUILD.gn @@ -77,7 +77,7 @@ ohos_fuzztest("SetBrightnessFuzzTest") { "power_manager:power_sysparam", "power_manager:powermgr_client", "safwk:system_ability_fwk", - "window_manager:libdm", + "window_manager:libdm_lite", ] if (has_sensors_sensor_part) { diff --git a/state_manager/test/fuzztest/setcoordinated_fuzzer/BUILD.gn b/state_manager/test/fuzztest/setcoordinated_fuzzer/BUILD.gn index 830f2e11ff70e4b6a32cf5aebbdf2300ab7a95d4..bf88856fb7121ebfc9e9f924014ccd51da0fcb30 100644 --- a/state_manager/test/fuzztest/setcoordinated_fuzzer/BUILD.gn +++ b/state_manager/test/fuzztest/setcoordinated_fuzzer/BUILD.gn @@ -77,7 +77,7 @@ ohos_fuzztest("SetCoordinatedFuzzTest") { "power_manager:power_sysparam", "power_manager:powermgr_client", "safwk:system_ability_fwk", - "window_manager:libdm", + "window_manager:libdm_lite", ] if (has_sensors_sensor_part) { diff --git a/state_manager/test/fuzztest/setlightbrightnessthreshold_fuzzer/BUILD.gn b/state_manager/test/fuzztest/setlightbrightnessthreshold_fuzzer/BUILD.gn index b50529657a35bccaaebbee6f0222b71f55723d38..b909b90a2b6611fbce0f1680cb2d73174892f175 100644 --- a/state_manager/test/fuzztest/setlightbrightnessthreshold_fuzzer/BUILD.gn +++ b/state_manager/test/fuzztest/setlightbrightnessthreshold_fuzzer/BUILD.gn @@ -77,7 +77,7 @@ ohos_fuzztest("SetLightBrightnessThresholdFuzzTest") { "power_manager:power_sysparam", "power_manager:powermgr_client", "safwk:system_ability_fwk", - "window_manager:libdm", + "window_manager:libdm_lite", ] if (has_sensors_sensor_part) { diff --git a/state_manager/test/fuzztest/setmaxbrightness_fuzzer/BUILD.gn b/state_manager/test/fuzztest/setmaxbrightness_fuzzer/BUILD.gn index 37a0134bdb92d45e26ffa45af11a73b2177d3e88..3f955901dddb517febc9c4d7bef1eddd861b78a8 100644 --- a/state_manager/test/fuzztest/setmaxbrightness_fuzzer/BUILD.gn +++ b/state_manager/test/fuzztest/setmaxbrightness_fuzzer/BUILD.gn @@ -77,7 +77,7 @@ ohos_fuzztest("SetMaxBrightnessFuzzTest") { "power_manager:power_sysparam", "power_manager:powermgr_client", "safwk:system_ability_fwk", - "window_manager:libdm", + "window_manager:libdm_lite", ] if (has_sensors_sensor_part) {