Lines Matching defs:property
892 bool WindowManagerService::CheckAnimationPermission(const sptr<WindowProperty>& property) const
894 WindowType type = property->GetWindowType();
896 if (property->GetAnimationFlag() == static_cast<uint32_t>(WindowAnimation::NONE) ||
901 if (property->GetAnimationFlag() == static_cast<uint32_t>(WindowAnimation::DEFAULT) &&
914 bool WindowManagerService::CheckSystemWindowPermission(const sptr<WindowProperty>& property) const
916 WindowType type = property->GetWindowType();
946 WMError WindowManagerService::CreateWindow(sptr<IWindow>& window, sptr<WindowProperty>& property,
949 if (!window || property == nullptr || surfaceNode == nullptr || !window->AsObject()) {
953 if (!CheckSystemWindowPermission(property)) {
959 property->isSystemCalling_ = Permission::IsSystemCalling();
960 auto task = [this, pid, uid, &window, &property, &surfaceNode, &windowId, &token]() {
962 return windowController_->CreateWindow(window, property, surfaceNode, windowId, token, pid, uid);
969 WMError WindowManagerService::AddWindow(sptr<WindowProperty>& property)
971 if (property == nullptr) {
972 WLOGFE("property is nullptr");
975 if (!CheckSystemWindowPermission(property) || !CheckAnimationPermission(property)) {
979 auto task = [this, &property]() {
981 Rect rect = property->GetRequestRect();
982 uint32_t windowId = property->GetWindowId();
984 "%{public}4d %{public}4d]", windowId, property->GetWindowType(), property->GetWindowMode(),
985 property->GetWindowFlags(), rect.posX_, rect.posY_, rect.width_, rect.height_);
987 WMError res = windowController_->AddWindowNode(property);
988 if (property->GetWindowType() == WindowType::WINDOW_TYPE_DRAGGING_EFFECT) {