add window init flag for bootanimation

Signed-off-by: zengqingyu <zengqingyu3@huawei.com>
Change-Id: Idd66418b0e47d5fa0ac8f1d7cc46ea9cd5fe69f1
This commit is contained in:
zengqingyu
2022-01-20 22:14:44 +08:00
parent 73bc0dfce9
commit bf01ccb5dc
4 changed files with 18 additions and 2 deletions
+6
View File
@@ -70,6 +70,12 @@ ohos_shared_library("libdms") {
"ipc:ipc_core",
]
if (is_standard_system) {
external_deps += [ "startup_l2:syspara" ]
} else {
external_deps += [ "startup:syspara" ]
}
part_name = "window_manager"
subsystem_name = "window"
}
+6
View File
@@ -104,6 +104,12 @@ ohos_shared_library("libwms") {
"ipc:ipc_core",
]
if (is_standard_system) {
external_deps += [ "startup_l2:syspara" ]
} else {
external_deps += [ "startup:syspara" ]
}
part_name = "window_manager"
subsystem_name = "window"
}
+1 -1
View File
@@ -21,6 +21,7 @@
#include <input_window_monitor.h>
#include <nocopyable.h>
#include <parameters.h>
#include <system_ability.h>
#include "singleton_delegator.h"
#include "wm_single_instance.h"
@@ -80,7 +81,6 @@ private:
sptr<WindowController> windowController_;
sptr<InputWindowMonitor> inputWindowMonitor_;
sptr<SnapshotController> snapshotController_;
const int WAITING_RS_TIME = 10;
};
}
}
+5 -1
View File
@@ -73,7 +73,6 @@ bool WindowManagerService::Init()
return false;
}
WLOGFI("WindowManagerService::Init success");
sleep(WAITING_RS_TIME); // for RS temporary
return true;
}
@@ -112,6 +111,11 @@ WMError WindowManagerService::AddWindow(sptr<WindowProperty>& property)
if (res == WMError::WM_OK) {
inputWindowMonitor_->UpdateInputWindow(property->GetWindowId());
}
if (property->GetWindowType() == WindowType::WINDOW_TYPE_NAVIGATION_BAR
|| property->GetWindowType() == WindowType::WINDOW_TYPE_STATUS_BAR) {
WLOGFI("WindowManagerService::AddWindow System Window called");
system::SetParameter("persist.window.boot.inited", "1");
}
return res;
}