mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-23 06:50:40 +00:00
wms加入到开机event投票
Signed-off-by: xuhaodong <xuhaodong2@huawei.com>
This commit is contained in:
parent
683a04e96d
commit
165903dbda
@ -11,4 +11,5 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
bootevent.wms.fullscreen.ready=false
|
||||
bootevent.wms.fullscreen.ready=false
|
||||
bootevent.wms.ready=false
|
@ -11,4 +11,5 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
bootevent.wms.fullscreen.ready = foundation:foundation:0775
|
||||
bootevent.wms.fullscreen.ready = foundation:foundation:0775
|
||||
bootevent.wms.ready = foundation:foundation:0775
|
@ -133,7 +133,7 @@ ohos_shared_library("sms") {
|
||||
|
||||
if (scene_board_enabled) {
|
||||
group("libwms") {
|
||||
deps = []
|
||||
deps = [ "../etc:wms_etc" ]
|
||||
}
|
||||
} else {
|
||||
ohos_shared_library("libwms") {
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user