wms加入到开机event投票

Signed-off-by: xuhaodong <xuhaodong2@huawei.com>
This commit is contained in:
xuhaodong 2024-03-20 18:59:29 +08:00
parent 683a04e96d
commit 165903dbda
5 changed files with 9 additions and 5 deletions

View File

@ -12,3 +12,4 @@
# limitations under the License.
bootevent.wms.fullscreen.ready=false
bootevent.wms.ready=false

View File

@ -12,3 +12,4 @@
# limitations under the License.
bootevent.wms.fullscreen.ready = foundation:foundation:0775
bootevent.wms.ready = foundation:foundation:0775

View File

@ -133,7 +133,7 @@ ohos_shared_library("sms") {
if (scene_board_enabled) {
group("libwms") {
deps = []
deps = [ "../etc:wms_etc" ]
}
} else {
ohos_shared_library("libwms") {

View File

@ -57,6 +57,7 @@ const std::string ARG_DUMP_WINDOW = "-w";
const std::string KEY_SCENE_BOARD_TEST_ENABLE = "persist.scb.testmode.enable";
const std::string SCENE_BOARD_BUNDLE_NAME = "com.ohos.sceneboard";
const std::string TEST_MODULE_NAME_SUFFIX = "_test";
const std::string BOOTEVENT_WMS_READY = "bootevent.wms.ready";
} // namespace
class ClientListenerDeathRecipient : public IRemoteObject::DeathRecipient {
@ -187,7 +188,7 @@ bool MockSessionManagerService::SetSessionManagerService(const sptr<IRemoteObjec
RegisterMockSessionManagerService();
WLOGFI("sessionManagerService set success!");
system::SetParameter(BOOTEVENT_WMS_READY.c_str(), "true");
GetSceneSessionManager();
return true;

View File

@ -59,6 +59,7 @@ WM_IMPLEMENT_SINGLE_INSTANCE(WindowManagerService)
const bool REGISTER_RESULT = SceneBoardJudgement::IsSceneBoardEnabled() ? false :
SystemAbility::MakeAndRegisterAbility(&SingletonContainer::Get<WindowManagerService>());
const std::string BOOTEVENT_WMS_READY = "bootevent.wms.ready";
WindowManagerService::WindowManagerService() : SystemAbility(WINDOW_MANAGER_SERVICE_ID, true),
rsInterface_(RSInterfaces::GetInstance()),
@ -108,7 +109,7 @@ void WindowManagerService::OnStart()
sptr<IWindowInfoQueriedListener> windowInfoQueriedListener = new WindowInfoQueriedListener();
DisplayManagerServiceInner::GetInstance().RegisterWindowInfoQueriedListener(windowInfoQueriedListener);
system::SetParameter(BOOTEVENT_WMS_READY.c_str(), "true");
AddSystemAbilityListener(RENDER_SERVICE);
AddSystemAbilityListener(ABILITY_MGR_SERVICE_ID);
AddSystemAbilityListener(COMMON_EVENT_SERVICE_ID);