/foundation/window/window_manager/test/systemtest/wms/ |
H A D | window_input_test.cpp | 88 Rect windowRect = window->GetRect(); in HWTEST_F() local 92 uint32_t hotAreaWidth = windowRect.width_ / hotAreasNum; in HWTEST_F() 93 uint32_t hotAreaHeight = windowRect.height_ / hotAreasNum; in HWTEST_F() 136 Rect windowRect = window->GetRect(); in HWTEST_F() local 141 uint32_t hotAreaWidth = windowRect.width_ / hotAreasNum; in HWTEST_F() 142 uint32_t hotAreaHeight = windowRect.height_ / hotAreasNum; in HWTEST_F() 149 rects.emplace_back(Rect{ -1, 0, windowRect.width_ / 2, windowRect.height_ / 2 }); in HWTEST_F() 153 rects.emplace_back(Rect{ 0, -1, windowRect.width_ / 2, windowRect in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | stylus_detector_mgr.cpp | 195 auto windowRect = pipeline->GetCurrentWindowRect(); in DeleteText() 196 TAG_LOGI(AceLogTag::ACE_STYLUS, "stylusGesture windowRect:%{public}f, %{public}f", in DeleteText() 197 windowRect.Left(), windowRect.Top()); in DeleteText() 198 Offset startCenterGlobalOffset = Offset(rect.Left - windowRect.Left(), in DeleteText() 199 rect.Top - windowRect.Top() + rect.Height / 2); in DeleteText() 200 Offset endCenterGlobalOffset = Offset(rect.Left - windowRect.Left() + rect.Width, in DeleteText() 201 rect.Top - windowRect.Top() + rect.Height / 2); in DeleteText() 237 auto windowRect = pipeline->GetCurrentWindowRect(); in ChoiceText() 238 TAG_LOGI(AceLogTag::ACE_STYLUS, "stylusGesture windowRect in ChoiceText() [all...] |
/foundation/window/window_manager/interfaces/kits/napi/extension_window/ |
H A D | js_extension_window_utils.cpp | 68 Rect windowRect = window->GetRect();
in CreateJsExtensionWindowPropertiesObject() local 69 napi_value windowRectObj = GetRectAndConvertToJsValue(env, windowRect);
in CreateJsExtensionWindowPropertiesObject() 87 Rect windowRect = window->GetRect();
in CreateJsExtensionWindowProperties() local 88 napi_value windowRectObj = GetRectAndConvertToJsValue(env, windowRect);
in CreateJsExtensionWindowProperties() 92 napi_set_named_property(env, objValue, "windowRect", windowRectObj);
in CreateJsExtensionWindowProperties()
|
/foundation/window/window_manager/window_scene/session_manager/src/ |
H A D | scene_session_dirty_manager.cpp | 214 WSRect windowRect = sceneSession->GetSessionGlobalRect();
in UpdateDefaultHotAreas() local 237 .width = windowRect.width_ + static_cast<int32_t>(touchOffset * 2), // 2 : double touchOffset
in UpdateDefaultHotAreas() 238 .height = windowRect.height_ + static_cast<int32_t>(touchOffset * 2) // 2 : double touchOffset
in UpdateDefaultHotAreas() 244 .width = windowRect.width_ + static_cast<int32_t>(pointerOffset * 2), // 2 : double pointerOffset
in UpdateDefaultHotAreas() 245 .height = windowRect.height_ + static_cast<int32_t>(pointerOffset * 2) // 2 : double pointerOffset
in UpdateDefaultHotAreas() 259 WSRect windowRect = sceneSession->GetSessionGlobalRect();
in UpdateHotAreas() local 468 if (extensionInfo.windowRect.width_ != 0 || extensionInfo.windowRect.height_ != 0) {
in AddModalExtensionWindowInfo() 469 MMI::Rect windowRect = {
in AddModalExtensionWindowInfo() local 470 .x = extensionInfo.windowRect in AddModalExtensionWindowInfo() 657 WSRect windowRect = sceneSession->GetSessionGlobalRect(); GetWindowInfo() local [all...] |
H A D | hidump_controller.cpp | 150 << "bounds requestRect windowRect" in DumpLayoutRectParamList() 164 Rect windowRect = property->GetWindowRect(); in DumpLayoutRectParam() local 176 << "[" << windowRect.posX_ << windowRect.posY_ << " " in DumpLayoutRectParam() 177 << windowRect.width_ << " " << windowRect.height_ << "]|" in DumpLayoutRectParam()
|
/foundation/window/window_manager/wmserver/src/ |
H A D | window_layout_policy.cpp | 55 Rect windowRect = node->GetRequestRect(); in LimitWindowToBottomRightCorner() local 57 windowRect.posX_ = std::max(windowRect.posX_, displayRect.posX_); in LimitWindowToBottomRightCorner() 58 windowRect.posY_ = std::max(windowRect.posY_, displayRect.posY_); in LimitWindowToBottomRightCorner() 59 windowRect.width_ = std::min(windowRect.width_, displayRect.width_); in LimitWindowToBottomRightCorner() 60 windowRect.height_ = std::min(windowRect.height_, displayRect.height_); in LimitWindowToBottomRightCorner() 62 if (windowRect in LimitWindowToBottomRightCorner() [all...] |
H A D | avoid_area_controller.cpp | 229 AvoidPosType AvoidAreaController::GetAvoidPosType(const Rect& windowRect, const Rect& overlayRect) const in GetAvoidPosType() argument 231 if (windowRect.width_ == 0 || windowRect.height_ == 0) { in GetAvoidPosType() 236 float res1 = float(centerY) - float(windowRect.height_) / float(windowRect.width_) * float(centerX); in GetAvoidPosType() 237 float res2 = float(centerY) + float(windowRect.height_) / float(windowRect.width_) * float(centerX) - in GetAvoidPosType() 238 float(windowRect.height_); in GetAvoidPosType()
|
H A D | window_controller.cpp | 958 auto windowRect = node->GetWindowRect(); in StopBootAnimationIfNeed() local 959 WmOcclusion::Rect curRect = { windowRect.posX_, windowRect.posY_, in StopBootAnimationIfNeed() 960 windowRect.posX_ + static_cast<int32_t>(windowRect.width_), in StopBootAnimationIfNeed() 961 windowRect.posY_ + static_cast<int32_t>(windowRect.height_)}; in StopBootAnimationIfNeed() 1458 auto windowRect = node->GetWindowRect(); in UpdateProperty() local 1459 callingWindowRestoringRect_.posX_ = windowRect.posX_; in UpdateProperty() 1460 callingWindowRestoringRect_.posY_ = windowRect in UpdateProperty() 1735 Rect windowRect = node->GetWindowRect(); UpdateTouchHotAreas() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/window_scene/scene/ |
H A D | window_scene.cpp | 164 Rosen::Rect windowRect { in RegisterResponseRegionCallback() 170 hotAreas.push_back(windowRect); in RegisterResponseRegionCallback() 224 Rosen::WSRect windowRect { in OnBoundsChanged() 232 host->GetGeometryNode()->SetFrameSize(SizeF(windowRect.width_, windowRect.height_)); in OnBoundsChanged() 242 windowRect.posX_ = std::round(bounds.x_ + session_->GetOffsetX()); in OnBoundsChanged() 243 windowRect.posY_ = std::round(bounds.y_ + session_->GetOffsetY()); in OnBoundsChanged() 245 auto transaction = transactionController && session_->GetSessionRect() != windowRect ? in OnBoundsChanged() 247 auto ret = session_->UpdateRect(windowRect, Rosen::SizeChangeReason::UNDEFINED, "OnBoundsChanged", transaction); in OnBoundsChanged() 462 RectF windowRect( in OnConnect() [all...] |
H A D | system_window_scene.cpp | 47 Rosen::WSRect windowRect { in OnBoundsChanged() 62 windowRect.posX_ = std::round(bounds.x_ + session_->GetOffsetX()); in OnBoundsChanged() 63 windowRect.posY_ = std::round(bounds.y_ + session_->GetOffsetY()); in OnBoundsChanged() 64 auto ret = session_->UpdateRect(windowRect, Rosen::SizeChangeReason::UNDEFINED, "OnBoundsChanged"); in OnBoundsChanged() 240 Rosen::Rect windowRect { in RegisterResponseRegionCallback() 246 hotAreas.push_back(windowRect); in RegisterResponseRegionCallback()
|
/foundation/window/window_manager/interfaces/kits/napi/window_runtime/window_napi/ |
H A D | js_extension_window_config.cpp | 81 BindNativePropertys(env, objValue, "windowRect", JsExtensionWindowConfig::GetWindowRect, in CreateJsExtensionWindowConfig() 153 return CreateJsValue(env, extensionWindowConfig_->windowRect.posX_); in OnGetWindowRectLeft() 165 return CreateJsValue(env, extensionWindowConfig_->windowRect.posY_); in OnGetWindowRectTop() 177 return CreateJsValue(env, extensionWindowConfig_->windowRect.width_); in OnGetWindowRectWidth() 189 return CreateJsValue(env, extensionWindowConfig_->windowRect.height_); in OnGetWindowRectHeight() 371 extensionWindowConfig_->windowRect.posX_ = res; in OnSetWindowRect() 376 extensionWindowConfig_->windowRect.posY_ = res; in OnSetWindowRect() 382 extensionWindowConfig_->windowRect.width_ = ures; in OnSetWindowRect() 387 extensionWindowConfig_->windowRect.height_ = ures; in OnSetWindowRect() 410 extensionWindowConfig_->windowRect in OnSetWindowRectLeft() [all...] |
H A D | js_window_utils.cpp | 436 Rect windowRect = window->GetRect();
in CreateJsWindowPropertiesObject() local 437 napi_value windowRectObj = GetRectAndConvertToJsValue(env, windowRect);
in CreateJsWindowPropertiesObject() 441 napi_set_named_property(env, objValue, "windowRect", windowRectObj);
in CreateJsWindowPropertiesObject() 642 const Rect& windowRect, Rect& touchableRect)
in ParseAndCheckRect() 671 (touchableRect.posX_ > static_cast<int32_t>(windowRect.width_)) ||
in ParseAndCheckRect() 672 (touchableRect.posY_ > static_cast<int32_t>(windowRect.height_)) ||
in ParseAndCheckRect() 673 (touchableRect.width_ > (windowRect.width_ - static_cast<uint32_t>(touchableRect.posX_))) ||
in ParseAndCheckRect() 674 (touchableRect.height_ > (windowRect.height_ - static_cast<uint32_t>(touchableRect.posY_)))) {
in ParseAndCheckRect() 677 "windowRect:[%{public}d %{public}d %{public}u %{public}u]",
in ParseAndCheckRect() 679 windowRect in ParseAndCheckRect() 641 ParseAndCheckRect(napi_env env, napi_value jsObject, const Rect& windowRect, Rect& touchableRect) ParseAndCheckRect() argument 685 ParseTouchableAreas(napi_env env, napi_callback_info info, const Rect& windowRect, std::vector<Rect>& touchableAreas) ParseTouchableAreas() argument [all...] |
/foundation/window/window_manager/window_scene/test/unittest/ |
H A D | move_drag_controller_test.cpp | 812 WSRect windowRect = { 0, 0, 0, 0 }; in HWTEST_F() local 813 moveDragController->CalcFirstMoveTargetRect(windowRect, false); in HWTEST_F() 816 moveDragController->CalcFirstMoveTargetRect(windowRect, false); in HWTEST_F() 822 moveDragController->CalcFirstMoveTargetRect(windowRect, false); in HWTEST_F() 825 moveDragController->CalcFirstMoveTargetRect(windowRect, false); in HWTEST_F() 828 moveDragController->CalcFirstMoveTargetRect(windowRect, false); in HWTEST_F() 831 moveDragController->CalcFirstMoveTargetRect(windowRect, false); in HWTEST_F() 834 moveDragController->CalcFirstMoveTargetRect(windowRect, false); in HWTEST_F() 836 moveDragController->CalcFirstMoveTargetRect(windowRect, true); in HWTEST_F() 849 WSRect windowRect in HWTEST_F() local 865 WSRect windowRect = { 5, 6, 7, 8 }; HWTEST_F() local [all...] |
H A D | scene_session_dirty_manager_test2.cpp | 109 WSRect windowRect = {0, 0, 1270, 2700}; in InitSceneSession() local 110 sceneSession->SetSessionRect(windowRect); in InitSceneSession() 137 WSRect windowRect = {0, 0, 1270, 2700}; in HWTEST_F() local 138 sceneSession->SetSessionRect(windowRect); in HWTEST_F() 139 sceneSession->globalRect_ = windowRect; in HWTEST_F() 173 WSRect windowRect = {0, 0, 1270, 2700}; in HWTEST_F() local 174 sceneSession->SetSessionRect(windowRect); in HWTEST_F()
|
/foundation/window/window_manager/utils/include/ |
H A D | window_helper.h | 481 static bool CalculateTouchHotAreas(const Rect& windowRect, const std::vector<Rect>& requestRects, in CalculateTouchHotAreas() argument 490 if (rect.posX_ >= static_cast<int32_t>(windowRect.width_) || in CalculateTouchHotAreas() 491 rect.posY_ >= static_cast<int32_t>(windowRect.height_)) { in CalculateTouchHotAreas() 495 hotArea.posX_ = windowRect.posX_ + rect.posX_; in CalculateTouchHotAreas() 496 hotArea.posY_ = windowRect.posY_ + rect.posY_; in CalculateTouchHotAreas() 498 windowRect.posX_ + windowRect.width_) - hotArea.posX_); in CalculateTouchHotAreas() 500 windowRect.posY_ + windowRect.height_) - hotArea.posY_); in CalculateTouchHotAreas()
|
/foundation/window/window_manager/window_scene/session/host/src/ |
H A D | move_drag_controller.cpp | 256 WSRect MoveDragController::GetFullScreenToFloatingRect(const WSRect& originalRect, const WSRect& windowRect) in GetFullScreenToFloatingRect() argument 264 return windowRect; in GetFullScreenToFloatingRect() 266 float newPosX = static_cast<float>(windowRect.width_) / static_cast<float>(originalRect.width_) * in GetFullScreenToFloatingRect() 271 windowRect.width_, in GetFullScreenToFloatingRect() 272 windowRect.height_, in GetFullScreenToFloatingRect() 965 void MoveDragController::CalcFirstMoveTargetRect(const WSRect& windowRect, bool isFullToFloating) in CalcFirstMoveTargetRect() argument 974 windowRect.width_, in CalcFirstMoveTargetRect() 975 windowRect.height_ in CalcFirstMoveTargetRect() 978 originalRect.posX_ = windowRect.posX_; in CalcFirstMoveTargetRect() 979 originalRect.posY_ = windowRect in CalcFirstMoveTargetRect() 1085 WSRect windowRect = GetTargetRect(TargetRectCoordinate::GLOBAL); GetNewAddedDisplayIdsDuringMoveDrag() local [all...] |
/foundation/window/window_manager/test/fuzztest/wms/windowscene_fuzzer/ |
H A D | windowscene_fuzzer.cpp | 78 Rect windowRect; in InitWindowOption1() local 79 startPos += GetObject<Rect>(windowRect, data + startPos, size - startPos); in InitWindowOption1() 80 windowOption.SetWindowRect(windowRect); in InitWindowOption1()
|
/foundation/window/window_manager/wm/src/ |
H A D | window_scene_session_impl.cpp | 1472 const auto& windowRect = GetRect(); in MoveTo() local 1486 "[%{public}d, %{public}d, %{public}d, %{public}d], windowRect: [%{public}d, %{public}d, " in MoveTo() 1489 requestRect.width_, requestRect.height_, windowRect.posX_, windowRect.posY_, in MoveTo() 1490 windowRect.width_, windowRect.height_, newRect.posX_, newRect.posY_, in MoveTo() 1656 const auto& windowRect = GetRect(); in Resize() local 1672 "[%{public}d, %{public}d, %{public}d, %{public}d], windowRect: [%{public}d, %{public}d, " in Resize() 1675 requestRect.width_, requestRect.height_, windowRect.posX_, windowRect in Resize() 3653 Rect windowRect = GetRequestRect(); UpdateNewSize() local 3862 const Rect& windowRect = GetRequestRect(); HandleWindowMask() local 4189 const auto& windowRect = GetRect(); HandleDownForCompatibleMode() local 4229 const auto& windowRect = GetRect(); HandleMoveForCompatibleMode() local 4275 const auto& windowRect = GetRect(); ConvertPointForCompatibleMode() local 4287 const auto& windowRect = GetRect(); IsInMappingRegionForCompatibleMode() local [all...] |
/foundation/window/window_manager/wmserver/include/ |
H A D | avoid_area_controller.h | 57 AvoidPosType GetAvoidPosType(const Rect& windowRect, const Rect& overlayRect) const;
|
/foundation/arkui/ace_engine/adapter/ohos/entrance/ |
H A D | ace_ability.cpp | 476 auto windowRect = window->GetRect(); in OnStart() 477 rect.SetRect(windowRect.posX_, windowRect.posY_, windowRect.width_, windowRect.height_); in OnStart() 507 auto windowRect = window->GetRect(); in OnStart() local 508 if (!windowRect.IsUninitializedRect()) { in OnStart() 510 OnSizeChange(windowRect, OHOS::Rosen::WindowSizeChangeReason::UNDEFINED); in OnStart()
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/ui_service_extension_ability/ |
H A D | ui_service_extension.cpp | 114 option->SetWindowRect(extensionWindowConfig->windowRect); in GetWindowOption()
|
/foundation/window/window_manager/window_scene/session/host/include/ |
H A D | move_drag_controller.h | 77 void CalcFirstMoveTargetRect(const WSRect& windowRect, bool isFullToFloating); 78 WSRect GetFullScreenToFloatingRect(const WSRect& originalRect, const WSRect& windowRect);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/ |
H A D | view_abstract_model_ng.cpp | 279 auto windowRect = pipelineContext->GetDisplayWindowRectInfo(); in BindContextMenu() 280 menuPosition += NG::OffsetF { windowRect.Left(), windowRect.Top() }; in BindContextMenu() 320 auto windowRect = pipelineContext->GetDisplayWindowRectInfo(); in BindContextMenu() 321 menuPosition += NG::OffsetF { windowRect.Left(), windowRect.Top() }; in BindContextMenu()
|
/foundation/window/window_manager/interfaces/kits/cj/window_runtime/ |
H A D | window_utils.h | 52 CRect windowRect; member
|
/foundation/window/window_manager/wmserver/test/unittest/ |
H A D | avoid_area_controller_test.cpp | 272 Rect windowRect = { 0, static_cast<int32_t>(statusBarRect.height_), statusBarRect.width_, in HWTEST_F() local 274 property->SetWindowRect(windowRect); in HWTEST_F() 324 Rect windowRect = { 0, static_cast<int32_t>(statusBarRect.height_), statusBarRect.width_, in HWTEST_F() local 326 property->SetWindowRect(windowRect); in HWTEST_F()
|