Lines Matching defs:property
217 bool WindowController::CheckParentWindowValid(const sptr<WindowProperty>& property)
219 if (WindowHelper::IsSubWindow(property->GetWindowType())) {
220 if (property->GetParentId() == INVALID_WINDOW_ID) {
224 sptr<WindowNode> parentWindow = windowRoot_->GetWindowNode(property->GetParentId());
229 } else if (WindowHelper::IsSystemSubWindow(property->GetWindowType())) {
230 if (property->GetParentId() == INVALID_WINDOW_ID) {
234 sptr<WindowNode> parentWindow = windowRoot_->GetWindowNode(property->GetParentId());
240 if (property->GetParentId() != INVALID_WINDOW_ID) {
248 WMError WindowController::CreateWindow(sptr<IWindow>& window, sptr<WindowProperty>& property,
252 if (!CheckParentWindowValid(property)) {
260 if (property->GetWindowType() != WindowType::WINDOW_TYPE_BOOT_ANIMATION) {
265 if (node != nullptr && WindowHelper::IsMainWindow(property->GetWindowType()) && node->startingWindowShown_) {
266 StartingWindow::HandleClientWindowCreate(node, window, windowId, surfaceNode, property, pid, uid);
269 WLOGFD("Flags: %{public}u, API version: %{public}u", property->GetWindowFlags(),
271 if (property->GetWindowFlags() & static_cast<uint32_t>(WindowFlag::WINDOW_FLAG_SHOW_WHEN_LOCKED) &&
272 node->GetWindowProperty()->GetApiCompatibleVersion() >= 9 && !property->isSystemCalling_) { // 9: API ver.
273 property->SetWindowFlags(property->GetWindowFlags() &
276 property->SetApiCompatibleVersion(node->GetWindowProperty()->GetApiCompatibleVersion());
281 sptr<WindowProperty> windowProperty = new WindowProperty(property);
292 node->stateMachine_.SetWindowType(property->GetWindowType());
315 WMError WindowController::AddWindowNode(sptr<WindowProperty>& property)
317 auto node = windowRoot_->GetWindowNode(property->GetWindowId());
329 if (WindowHelper::IsEmptyRect(property->GetRequestRect()) && node->startingWindowShown_) { // for tile and cascade
330 property->SetRequestRect(node->GetRequestRect());
331 property->SetWindowRect(node->GetWindowRect());
332 property->SetDecoStatus(true);
334 node->GetWindowProperty()->CopyFrom(property);
338 WMError res = windowRoot_->AddWindowNode(property->GetParentId(), node);
345 FlushWindowInfo(property->GetWindowId());
699 auto property = node->GetWindowProperty();
701 Rect lastRect = property->GetWindowRect();
720 property->SetRequestRect(newRect);
1015 auto property = node->GetWindowProperty();
1016 property->SetWindowType(type);
1035 auto property = node->GetWindowProperty();
1036 uint32_t oldFlags = property->GetWindowFlags();
1037 if (property->GetApiCompatibleVersion() >= 9 && !isSystemCalling && // 9: api version.
1042 property->SetWindowFlags(flags);
1043 // only forbid_split_move flag change, just set property
1057 WMError WindowController::SetSystemBarProperty(uint32_t windowId, WindowType type, const SystemBarProperty& property)
1064 node->SetSystemBarProperty(type, property);
1199 auto property = node->GetWindowProperty();
1201 property->SetRequestRect(property->GetWindowRect());
1309 auto property = node->GetWindowProperty();
1310 if (!property->GetFocusable()) {
1431 WMError WindowController::UpdateProperty(sptr<WindowProperty>& property, PropertyChangeAction action)
1433 if (property == nullptr) {
1434 WLOGFE("property is invalid");
1438 uint32_t windowId = property->GetWindowId();
1448 node->SetDecoStatus(property->GetDecoStatus());
1449 node->SetOriginRect(property->GetOriginRect());
1450 node->SetDragType(property->GetDragType());
1451 ret = ResizeRectAndFlush(windowId, property->GetRequestRect(), property->GetWindowSizeChangeReason());
1454 if (property->GetWindowSizeChangeReason() != WindowSizeChangeReason::MOVE) {
1466 node->SetDecorEnable(property->GetDecorEnable());
1467 ret = SetWindowMode(windowId, property->GetWindowMode());
1471 ret = SetWindowFlags(windowId, property->GetWindowFlags(), property->isSystemCalling_);
1475 auto& props = property->GetSystemBarProperty();
1482 node->SetFocusable(property->GetFocusable());
1489 node->SetTouchable(property->GetTouchable());
1495 node->SetCallingWindow(property->GetCallingWindow());
1499 node->SetRequestedOrientation(property->GetRequestedOrientation());
1502 SetOrientationFromWindow(node->GetDisplayId(), property->GetRequestedOrientation());
1507 node->SetTurnScreenOn(property->IsTurnScreenOn());
1512 node->SetKeepScreenOn(property->IsKeepScreenOn());
1517 node->SetBrightness(property->GetBrightness());
1522 node->SetModeSupportInfo(property->GetModeSupportInfo());
1527 property->GetTouchHotAreas(rects);
1532 node->GetWindowProperty()->SetAnimationFlag(property->GetAnimationFlag());
1537 node->SetTransform(property->GetTransform());
1544 bool isPrivacyMode = property->GetPrivacyMode() || property->GetSystemPrivacyMode();
1556 bool isPrivacyMode = property->GetPrivacyMode() || property->GetSystemPrivacyMode();
1568 bool isSnapshotSkip = property->GetSnapshotSkip() || property->GetSystemPrivacyMode();
1579 ret = SetAspectRatio(windowId, property->GetAspectRatio());
1583 MaximizeMode mode = property->GetMaximizeMode();
1603 node->GetWindowProperty()->SetTextFieldPositionY(property->GetTextFieldPositionY());
1604 node->GetWindowProperty()->SetTextFieldHeight(property->GetTextFieldHeight());