From 035fac38e66446f550767c24a51a997164892dcf Mon Sep 17 00:00:00 2001 From: lfSeanDragon <18309220525@163.com> Date: Mon, 8 Sep 2025 17:35:45 +0800 Subject: [PATCH] =?UTF-8?q?window=5Fmanager=E4=BE=9D=E8=B5=96=E8=A7=A3?= =?UTF-8?q?=E8=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lfSeanDragon <18309220525@163.com> --- bundle.json | 4 +++- .../pictureinpicture_fuzzer/BUILD.gn | 6 +++++- .../BUILD.gn | 6 +++++- .../scenesessionmgrlstubget_fuzzer/BUILD.gn | 6 +++++- .../BUILD.gn | 6 +++++- .../scenesessionmgrlstublayout_fuzzer/BUILD.gn | 6 +++++- .../BUILD.gn | 6 +++++- .../scenesessionmgrlstubpc_fuzzer/BUILD.gn | 6 +++++- .../scenesessionmgrlstubreg_fuzzer/BUILD.gn | 6 +++++- .../scenesessionmgrlstubset_fuzzer/BUILD.gn | 6 +++++- .../scenesessionmgrlstubuec_fuzzer/BUILD.gn | 6 +++++- window_scene/session_manager/BUILD.gn | 12 ++++++++++-- .../include/distributed_client.h | 2 ++ .../session_manager/src/distributed_client.cpp | 2 ++ .../src/scene_session_manager.cpp | 14 ++++++++++++++ window_scene/test/unittest/BUILD.gn | 17 ++++++++++++----- .../test/unittest/distributed_client_test.cpp | 2 ++ 17 files changed, 95 insertions(+), 18 deletions(-) diff --git a/bundle.json b/bundle.json index 08e37f6c89..f6b914c09d 100755 --- a/bundle.json +++ b/bundle.json @@ -32,7 +32,9 @@ "window_manager_feature_cam_mode", "window_manager_feature_multi_usr", "window_manager_feature_screenless", - "window_manager_feature_asbng_path" + "window_manager_feature_asbng_path", + "window_manager_feature_support_dsoftbus", + "window_manager_feature_support_dmsfwk" ], "adapted_system_type": [ "standard" ], "rom": "8000KB", diff --git a/test/fuzztest/window_scene/pictureinpicture_fuzzer/BUILD.gn b/test/fuzztest/window_scene/pictureinpicture_fuzzer/BUILD.gn index 9d46aba8b8..4aa7fc5872 100644 --- a/test/fuzztest/window_scene/pictureinpicture_fuzzer/BUILD.gn +++ b/test/fuzztest/window_scene/pictureinpicture_fuzzer/BUILD.gn @@ -72,7 +72,6 @@ ohos_fuzztest("PictureInPictureFuzzTest") { "bundle_framework:appexecfwk_core", "c_utils:utils", "config_policy:configpolicy_util", - "dsoftbus:softbus_client", "eventhandler:libeventhandler", "ffrt:libffrt", "graphic_2d:librender_service_client", @@ -89,6 +88,11 @@ ohos_fuzztest("PictureInPictureFuzzTest") { "resource_management:global_resmgr", "samgr:samgr_proxy", ] + defines = [] + if (window_manager_feature_support_dsoftbus) { + external_deps += [ "dsoftbus:softbus_client" ] + defines += [ "WINDOW_MANAGER_FEATURE_SUPPORT_DSOFTBUS" ] + } } ############################################################################### diff --git a/test/fuzztest/window_scene/scenesessionmgrlstubattribute_fuzzer/BUILD.gn b/test/fuzztest/window_scene/scenesessionmgrlstubattribute_fuzzer/BUILD.gn index bba75d5cce..41fc34c68d 100644 --- a/test/fuzztest/window_scene/scenesessionmgrlstubattribute_fuzzer/BUILD.gn +++ b/test/fuzztest/window_scene/scenesessionmgrlstubattribute_fuzzer/BUILD.gn @@ -73,7 +73,6 @@ ohos_fuzztest("SceneSessionMgrLStubAttributeFuzzTest") { "bundle_framework:appexecfwk_core", "c_utils:utils", "config_policy:configpolicy_util", - "dsoftbus:softbus_client", "eventhandler:libeventhandler", "ffrt:libffrt", "graphic_2d:librender_service_client", @@ -89,6 +88,11 @@ ohos_fuzztest("SceneSessionMgrLStubAttributeFuzzTest") { "resource_management:global_resmgr", "samgr:samgr_proxy", ] + defines = [] + if (window_manager_feature_support_dsoftbus) { + external_deps += [ "dsoftbus:softbus_client" ] + defines += [ "WINDOW_MANAGER_FEATURE_SUPPORT_DSOFTBUS" ] + } } ############################################################################### diff --git a/test/fuzztest/window_scene/scenesessionmgrlstubget_fuzzer/BUILD.gn b/test/fuzztest/window_scene/scenesessionmgrlstubget_fuzzer/BUILD.gn index b20220c66e..3c2de3a898 100644 --- a/test/fuzztest/window_scene/scenesessionmgrlstubget_fuzzer/BUILD.gn +++ b/test/fuzztest/window_scene/scenesessionmgrlstubget_fuzzer/BUILD.gn @@ -77,7 +77,6 @@ ohos_fuzztest("SceneSessionMgrLStubGetFuzzTest") { "bundle_framework:appexecfwk_core", "c_utils:utils", "config_policy:configpolicy_util", - "dsoftbus:softbus_client", "eventhandler:libeventhandler", "ffrt:libffrt", "graphic_2d:librender_service_client", @@ -93,6 +92,11 @@ ohos_fuzztest("SceneSessionMgrLStubGetFuzzTest") { "resource_management:global_resmgr", "samgr:samgr_proxy", ] + defines = [] + if (window_manager_feature_support_dsoftbus) { + external_deps += [ "dsoftbus:softbus_client" ] + defines += [ "WINDOW_MANAGER_FEATURE_SUPPORT_DSOFTBUS" ] + } } ############################################################################### diff --git a/test/fuzztest/window_scene/scenesessionmgrlstubhierarchy_fuzzer/BUILD.gn b/test/fuzztest/window_scene/scenesessionmgrlstubhierarchy_fuzzer/BUILD.gn index 163fb1a1e9..8a306f6f7a 100644 --- a/test/fuzztest/window_scene/scenesessionmgrlstubhierarchy_fuzzer/BUILD.gn +++ b/test/fuzztest/window_scene/scenesessionmgrlstubhierarchy_fuzzer/BUILD.gn @@ -77,7 +77,6 @@ ohos_fuzztest("SceneSessionMgrLStubHierarchyFuzzTest") { "bundle_framework:appexecfwk_core", "c_utils:utils", "config_policy:configpolicy_util", - "dsoftbus:softbus_client", "eventhandler:libeventhandler", "ffrt:libffrt", "graphic_2d:librender_service_client", @@ -93,6 +92,11 @@ ohos_fuzztest("SceneSessionMgrLStubHierarchyFuzzTest") { "resource_management:global_resmgr", "samgr:samgr_proxy", ] + defines = [] + if (window_manager_feature_support_dsoftbus) { + external_deps += [ "dsoftbus:softbus_client" ] + defines += [ "WINDOW_MANAGER_FEATURE_SUPPORT_DSOFTBUS" ] + } } ############################################################################### diff --git a/test/fuzztest/window_scene/scenesessionmgrlstublayout_fuzzer/BUILD.gn b/test/fuzztest/window_scene/scenesessionmgrlstublayout_fuzzer/BUILD.gn index 23713d26b6..f370d41d18 100644 --- a/test/fuzztest/window_scene/scenesessionmgrlstublayout_fuzzer/BUILD.gn +++ b/test/fuzztest/window_scene/scenesessionmgrlstublayout_fuzzer/BUILD.gn @@ -71,7 +71,6 @@ ohos_fuzztest("SceneSessionMgrLStubLayoutFuzzTest") { "bundle_framework:appexecfwk_core", "c_utils:utils", "config_policy:configpolicy_util", - "dsoftbus:softbus_client", "eventhandler:libeventhandler", "ffrt:libffrt", "graphic_2d:librender_service_client", @@ -90,6 +89,11 @@ ohos_fuzztest("SceneSessionMgrLStubLayoutFuzzTest") { "graphic_2d:window_animation", "input:libmmi-napi", ] + defines = [] + if (window_manager_feature_support_dsoftbus) { + external_deps += [ "dsoftbus:softbus_client" ] + defines += [ "WINDOW_MANAGER_FEATURE_SUPPORT_DSOFTBUS" ] + } } ############################################################################### diff --git a/test/fuzztest/window_scene/scenesessionmgrlstubnorthbound_fuzzer/BUILD.gn b/test/fuzztest/window_scene/scenesessionmgrlstubnorthbound_fuzzer/BUILD.gn index 4887191c25..9594f94d5d 100644 --- a/test/fuzztest/window_scene/scenesessionmgrlstubnorthbound_fuzzer/BUILD.gn +++ b/test/fuzztest/window_scene/scenesessionmgrlstubnorthbound_fuzzer/BUILD.gn @@ -71,7 +71,6 @@ ohos_fuzztest("SceneSessionMgrLStubNorthBoundFuzzTest") { "bundle_framework:appexecfwk_core", "c_utils:utils", "config_policy:configpolicy_util", - "dsoftbus:softbus_client", "eventhandler:libeventhandler", "ffrt:libffrt", "graphic_2d:librender_service_client", @@ -89,6 +88,11 @@ ohos_fuzztest("SceneSessionMgrLStubNorthBoundFuzzTest") { "resource_management:global_resmgr", "samgr:samgr_proxy", ] + defines = [] + if (window_manager_feature_support_dsoftbus) { + external_deps += [ "dsoftbus:softbus_client" ] + defines += [ "WINDOW_MANAGER_FEATURE_SUPPORT_DSOFTBUS" ] + } } ############################################################################### diff --git a/test/fuzztest/window_scene/scenesessionmgrlstubpc_fuzzer/BUILD.gn b/test/fuzztest/window_scene/scenesessionmgrlstubpc_fuzzer/BUILD.gn index 64e50d8864..5b1c7545dd 100644 --- a/test/fuzztest/window_scene/scenesessionmgrlstubpc_fuzzer/BUILD.gn +++ b/test/fuzztest/window_scene/scenesessionmgrlstubpc_fuzzer/BUILD.gn @@ -71,7 +71,6 @@ ohos_fuzztest("SceneSessionMgrLStubPcFuzzTest") { "bundle_framework:appexecfwk_core", "c_utils:utils", "config_policy:configpolicy_util", - "dsoftbus:softbus_client", "eventhandler:libeventhandler", "ffrt:libffrt", "graphic_2d:librender_service_client", @@ -87,6 +86,11 @@ ohos_fuzztest("SceneSessionMgrLStubPcFuzzTest") { "resource_management:global_resmgr", "samgr:samgr_proxy", ] + defines = [] + if (window_manager_feature_support_dsoftbus) { + external_deps += [ "dsoftbus:softbus_client" ] + defines += [ "WINDOW_MANAGER_FEATURE_SUPPORT_DSOFTBUS" ] + } } ############################################################################### diff --git a/test/fuzztest/window_scene/scenesessionmgrlstubreg_fuzzer/BUILD.gn b/test/fuzztest/window_scene/scenesessionmgrlstubreg_fuzzer/BUILD.gn index 062eeed0da..1e44d9946e 100644 --- a/test/fuzztest/window_scene/scenesessionmgrlstubreg_fuzzer/BUILD.gn +++ b/test/fuzztest/window_scene/scenesessionmgrlstubreg_fuzzer/BUILD.gn @@ -77,7 +77,6 @@ ohos_fuzztest("SceneSessionMgrLStubRegFuzzTest") { "bundle_framework:appexecfwk_core", "c_utils:utils", "config_policy:configpolicy_util", - "dsoftbus:softbus_client", "eventhandler:libeventhandler", "ffrt:libffrt", "graphic_2d:librender_service_client", @@ -93,6 +92,11 @@ ohos_fuzztest("SceneSessionMgrLStubRegFuzzTest") { "resource_management:global_resmgr", "samgr:samgr_proxy", ] + defines = [] + if (window_manager_feature_support_dsoftbus) { + external_deps += [ "dsoftbus:softbus_client" ] + defines += [ "WINDOW_MANAGER_FEATURE_SUPPORT_DSOFTBUS" ] + } } ############################################################################### diff --git a/test/fuzztest/window_scene/scenesessionmgrlstubset_fuzzer/BUILD.gn b/test/fuzztest/window_scene/scenesessionmgrlstubset_fuzzer/BUILD.gn index 9034bd6d33..c2834ed3f0 100644 --- a/test/fuzztest/window_scene/scenesessionmgrlstubset_fuzzer/BUILD.gn +++ b/test/fuzztest/window_scene/scenesessionmgrlstubset_fuzzer/BUILD.gn @@ -77,7 +77,6 @@ ohos_fuzztest("SceneSessionMgrLStubSetFuzzTest") { "bundle_framework:appexecfwk_core", "c_utils:utils", "config_policy:configpolicy_util", - "dsoftbus:softbus_client", "eventhandler:libeventhandler", "ffrt:libffrt", "graphic_2d:librender_service_client", @@ -93,6 +92,11 @@ ohos_fuzztest("SceneSessionMgrLStubSetFuzzTest") { "resource_management:global_resmgr", "samgr:samgr_proxy", ] + defines = [] + if (window_manager_feature_support_dsoftbus) { + external_deps += [ "dsoftbus:softbus_client" ] + defines += [ "WINDOW_MANAGER_FEATURE_SUPPORT_DSOFTBUS" ] + } } ############################################################################### diff --git a/test/fuzztest/window_scene/scenesessionmgrlstubuec_fuzzer/BUILD.gn b/test/fuzztest/window_scene/scenesessionmgrlstubuec_fuzzer/BUILD.gn index dbbbd98991..ae33305127 100644 --- a/test/fuzztest/window_scene/scenesessionmgrlstubuec_fuzzer/BUILD.gn +++ b/test/fuzztest/window_scene/scenesessionmgrlstubuec_fuzzer/BUILD.gn @@ -77,7 +77,6 @@ ohos_fuzztest("SceneSessionMgrLStubUecFuzzTest") { "bundle_framework:appexecfwk_core", "c_utils:utils", "config_policy:configpolicy_util", - "dsoftbus:softbus_client", "eventhandler:libeventhandler", "ffrt:libffrt", "graphic_2d:librender_service_client", @@ -93,6 +92,11 @@ ohos_fuzztest("SceneSessionMgrLStubUecFuzzTest") { "resource_management:global_resmgr", "samgr:samgr_proxy", ] + defines = [] + if (window_manager_feature_support_dsoftbus) { + external_deps += [ "dsoftbus:softbus_client" ] + defines += [ "WINDOW_MANAGER_FEATURE_SUPPORT_DSOFTBUS" ] + } } ############################################################################### diff --git a/window_scene/session_manager/BUILD.gn b/window_scene/session_manager/BUILD.gn index 3b355dba10..a42a45216d 100644 --- a/window_scene/session_manager/BUILD.gn +++ b/window_scene/session_manager/BUILD.gn @@ -64,7 +64,6 @@ ohos_shared_library("scene_session_manager") { sources = [ "../../wm/src/zidl/window_manager_agent_proxy.cpp", "src/anomaly_detection.cpp", - "src/distributed_client.cpp", "src/extension_session_manager.cpp", "src/ffrt_queue_helper.cpp", "src/hidump_controller.cpp", @@ -131,7 +130,6 @@ ohos_shared_library("scene_session_manager") { "bundle_framework:libappexecfwk_common", "c_utils:utils", "config_policy:configpolicy_util", - "dsoftbus:softbus_client", "eventhandler:libeventhandler", "ffrt:libffrt", "graphic_2d:librender_service_base", @@ -154,12 +152,22 @@ ohos_shared_library("scene_session_manager") { ] defines = [] + if (window_manager_feature_support_dmsfwk) { + sources +=[ "src/distributed_client.cpp" ] + defines += [ "WINDOW_MANAGER_FEATURE_SUPPORT_DMSFWK" ] + } + if (defined(global_parts_info) && defined(global_parts_info.resourceschedule_memmgr_override)) { external_deps += [ "memmgr:memmgrclient" ] defines += [ "MEMMGR_WINDOW_ENABLE" ] } + if (window_manager_feature_support_dsoftbus) { + external_deps += [ "dsoftbus:softbus_client" ] + defines += [ "WINDOW_MANAGER_FEATURE_SUPPORT_DSOFTBUS" ] + } + if (defined(global_parts_info) && defined(global_parts_info.powermgr_power_manager)) { external_deps += [ "power_manager:powermgr_client" ] diff --git a/window_scene/session_manager/include/distributed_client.h b/window_scene/session_manager/include/distributed_client.h index 797412ac4e..8511a8d1f0 100644 --- a/window_scene/session_manager/include/distributed_client.h +++ b/window_scene/session_manager/include/distributed_client.h @@ -15,6 +15,7 @@ #ifndef OHOS_ROSEN_WINDOW_SCENE_DISTRIBUTED_CLIENT_H #define OHOS_ROSEN_WINDOW_SCENE_DISTRIBUTED_CLIENT_H +#ifdef WINDOW_MANAGER_FEATURE_SUPPORT_DMSFWK #include @@ -72,4 +73,5 @@ private: }; } // namespace Rosen } // namespace OHOS +#endif // WINDOW_MANAGER_FEATURE_SUPPORT_DMSFWK #endif // OHOS_ROSEN_WINDOW_SCENE_DISTRIBUTED_CLIENT_H diff --git a/window_scene/session_manager/src/distributed_client.cpp b/window_scene/session_manager/src/distributed_client.cpp index 31c9b05c78..ffd15623fa 100644 --- a/window_scene/session_manager/src/distributed_client.cpp +++ b/window_scene/session_manager/src/distributed_client.cpp @@ -13,6 +13,7 @@ * limitations under the License. */ +#ifdef WINDOW_MANAGER_FEATURE_SUPPORT_DMSFWK #include "distributed_client.h" #include "ability_manager_errors.h" @@ -189,3 +190,4 @@ int32_t DistributedClient::SetMissionContinueState(int32_t missionId, const AAFw } } // namespace Rosen } // namespace OHOS +#endif \ No newline at end of file diff --git a/window_scene/session_manager/src/scene_session_manager.cpp b/window_scene/session_manager/src/scene_session_manager.cpp index bb1d458c4e..90977aae61 100644 --- a/window_scene/session_manager/src/scene_session_manager.cpp +++ b/window_scene/session_manager/src/scene_session_manager.cpp @@ -51,7 +51,9 @@ #include "common/include/fold_screen_state_internel.h" #include "common/include/session_permission.h" #include "display_manager.h" +#ifdef WINDOW_MANAGER_FEATURE_SUPPORT_DMSFWK #include "distributed_client.h" +#endif #include "dms_reporter.h" #include "hidump_controller.h" #include "image_source.h" @@ -75,7 +77,9 @@ #include "session_helper.h" #include "session_manager_agent_controller.h" #include "singleton_container.h" +#ifdef WINDOW_MANAGER_FEATURE_SUPPORT_DSOFTBUS #include "softbus_bus_center.h" +#endif #include "user_switch_reporter.h" #include "window_helper.h" #include "xcollie/watchdog.h" @@ -946,8 +950,10 @@ WSError SceneSessionManager::SetSessionContinueState(const sptr& return WSError::WS_ERROR_INVALID_PARAM; } sceneSession->SetSessionInfoContinueState(continueState); +#ifdef WINDOW_MANAGER_FEATURE_SUPPORT_DMSFWK DistributedClient::GetInstance().SetMissionContinueState(sceneSession->GetPersistentId(), static_cast(continueState), callingUid); +#endif TLOGNI(WmsLogTag::WMS_LIFE, "%{public}s: id:%{public}d, continueState:%{public}d", where, sceneSession->GetPersistentId(), continueState); return WSError::WS_OK; @@ -9476,6 +9482,7 @@ WSError SceneSessionManager::GetMainWindowStatesByPid(int32_t pid, std::vectorPostSyncTask(task, "GetMainWindowStatesByPid"); } +#ifdef WINDOW_MANAGER_FEATURE_SUPPORT_DMSFWK int SceneSessionManager::GetRemoteSessionInfos(const std::string& deviceId, int32_t numMax, std::vector& sessionInfos) { @@ -9487,6 +9494,7 @@ int SceneSessionManager::GetRemoteSessionInfos(const std::string& deviceId, int3 } return ERR_OK; } +#endif WSError SceneSessionManager::GetSessionInfo(const std::string& deviceId, int32_t persistentId, SessionInfoBean& sessionInfo) @@ -9576,10 +9584,12 @@ int SceneSessionManager::GetRemoteSessionInfo(const std::string& deviceId, { TLOGI(WmsLogTag::DEFAULT, "in"); std::vector sessionVector; +#ifdef WINDOW_MANAGER_FEATURE_SUPPORT_DMSFWK int result = GetRemoteSessionInfos(deviceId, MAX_NUMBER_OF_DISTRIBUTED_SESSIONS, sessionVector); if (result != ERR_OK) { return result; } +#endif for (auto iter = sessionVector.begin(); iter != sessionVector.end(); iter++) { if (iter->id == persistentId) { sessionInfo = *iter; @@ -9611,6 +9621,7 @@ bool SceneSessionManager::CheckIsRemote(const std::string& deviceId) bool SceneSessionManager::GetLocalDeviceId(std::string& localDeviceId) { +#ifdef WINDOW_MANAGER_FEATURE_SUPPORT_DMSFWK auto localNode = std::make_unique(); int32_t errCode = GetLocalNodeDeviceInfo(DM_PKG_NAME.c_str(), localNode.get()); if (errCode != ERR_OK) { @@ -9622,6 +9633,7 @@ bool SceneSessionManager::GetLocalDeviceId(std::string& localDeviceId) TLOGD(WmsLogTag::DEFAULT, "get local deviceId, deviceId=%{public}s", AnonymizeDeviceId(localDeviceId).c_str()); return true; } +#endlf TLOGE(WmsLogTag::DEFAULT, "localDeviceId null"); return false; } @@ -10050,6 +10062,7 @@ WSError SceneSessionManager::GetUIContentRemoteObj(int32_t persistentId, sptrGetUIContentRemoteObj(uiContentRemoteObj); } +#ifdef WINDOW_MANAGER_FEATURE_SUPPORT_DMSFWK int SceneSessionManager::GetRemoteSessionSnapshotInfo(const std::string& deviceId, int32_t sessionId, AAFwk::MissionSnapshot& sessionSnapshot) { @@ -10062,6 +10075,7 @@ int SceneSessionManager::GetRemoteSessionSnapshotInfo(const std::string& deviceI } return ERR_OK; } +#endif sptr SceneSessionManager::GetCollaboratorByType(int32_t collaboratorType) { diff --git a/window_scene/test/unittest/BUILD.gn b/window_scene/test/unittest/BUILD.gn index 61db84a37b..b62490c52e 100644 --- a/window_scene/test/unittest/BUILD.gn +++ b/window_scene/test/unittest/BUILD.gn @@ -23,7 +23,6 @@ group("unittest") { ":ws_anomaly_detection_test", ":ws_compatible_mode_property_test", ":ws_dfx_hisysevent_test", - ":ws_distributed_client_test", ":ws_ffrt_helper_test", ":ws_main_session_lifecycle_test", ":ws_move_drag_controller_test", @@ -90,6 +89,11 @@ group("unittest") { "window_recover:ws_window_recover_session_test", ] + if (window_manager_feature_support_dmsfwk) { + deps += [ "":ws_distributed_client_test"" ] + defines = [ "WINDOW_MANAGER_FEATURE_SUPPORT_DMSFWK" ] + } + if (window_manager_use_sceneboard) { deps += [ ":ws_hidumper_controller_test", @@ -1318,10 +1322,13 @@ ohos_unittest("ws_session_stub_property_test") { ohos_unittest("ws_distributed_client_test") { module_out_path = module_out_path - sources = [ - "../mock/mock_message_parcel.cpp", - "distributed_client_test.cpp", - ] + sources = [ "../mock/mock_message_parcel.cpp" ] + defines = [] + + if (window_manager_feature_support_dmsfwk) { + sources += [ "distributed_client_test.cpp" ] + defines += [ "WINDOW_MANAGER_FEATURE_SUPPORT_DMSFWK" ] + } deps = [ ":ws_unittest_common" ] diff --git a/window_scene/test/unittest/distributed_client_test.cpp b/window_scene/test/unittest/distributed_client_test.cpp index d585888a75..cb1be0a70c 100644 --- a/window_scene/test/unittest/distributed_client_test.cpp +++ b/window_scene/test/unittest/distributed_client_test.cpp @@ -13,6 +13,7 @@ * limitations under the License. */ +#ifdef WINDOW_MANAGER_FEATURE_SUPPORT_DMSFWK #include #include "ability_manager_errors.h" @@ -236,3 +237,4 @@ HWTEST_F(DistributedClientTest, SetMissionContinueState03, TestSize.Level1) } } // namespace Rosen } // namespace OHOS +#endif \ No newline at end of file -- Gitee