/foundation/window/window_manager/utils/include/ |
H A D | cutout_info.h | 29 DMRect left; 30 DMRect top; 31 DMRect right; 32 DMRect bottom; 44 CutoutInfo(const std::vector<DMRect>& boundingRects, WaterfallDisplayAreaRects waterfallDisplayAreaRects); 52 DEFINE_VAR_FUNC_GET_SET(std::vector<DMRect>, BoundingRects, boundingRects); 55 bool WriteBoundingRectsVector(const std::vector<DMRect>& boundingRects, Parcel& parcel) const; 56 static bool ReadBoundingRectsVector(std::vector<DMRect>& unmarBoundingRects, Parcel& parcel);
|
H A D | fold_screen_info.h | 33 FoldCreaseRegion(DisplayId displayId, const std::vector<DMRect>& creaseRects) in FoldCreaseRegion() 47 std::vector<DMRect> creaseRects; in Unmarshalling() 56 DEFINE_VAR_FUNC_GET(std::vector<DMRect>, CreaseRects, creaseRects) 58 void SetCreaseRects(std::vector<DMRect> value) in SetCreaseRects() 63 static bool WriteCreaseRectVector(const std::vector<DMRect>& creaseRects, Parcel& parcel) in WriteCreaseRectVector() 81 static bool ReadCreaseRectVector(std::vector<DMRect>& creaseRects, Parcel& parcel) in ReadCreaseRectVector() 99 DMRect rect = {posX, posY, width, height}; in ReadCreaseRectVector()
|
/foundation/window/window_manager/dmserver/src/ |
H A D | display_cutout_controller.cpp | 67 DMRect boundingRect = CalcCutoutBoundingRect(svgPath); in SetCutoutSvgPath() 71 std::vector<DMRect> rectVec; in SetCutoutSvgPath() 80 std::vector<DMRect> boundingRects; in GetCutoutInfo() 93 void DisplayCutoutController::CheckBoundingRectsBoundary(DisplayId displayId, std::vector<DMRect>& boundingRects) in CheckBoundingRectsBoundary() 104 DMRect boundingRect = *iter; in CheckBoundingRectsBoundary() 118 DMRect DisplayCutoutController::CalcCutoutBoundingRect(std::string svgPath) in CalcCutoutBoundingRect() 120 DMRect emptyRect = {0, 0, 0, 0}; in CalcCutoutBoundingRect() 141 DMRect cutoutMinOuterRect = {.posX_ = left, .posY_ = top, .width_ = width, .height_ = height}; in CalcCutoutBoundingRect() 197 DMRect leftRect = CreateWaterfallRect(0, 0, left, displayHeight); in CalcBuiltInDisplayWaterfallRectsByRotation() 198 DMRect topRec in CalcBuiltInDisplayWaterfallRectsByRotation() [all...] |
/foundation/window/window_manager/window_scene/screen_session_manager/src/ |
H A D | screen_cutout_controller.cpp | 38 std::vector<DMRect> boundaryRects; in GetScreenCutoutInfo() 48 void ScreenCutoutController::ConvertBoundaryRectsByRotation(std::vector<DMRect>& boundaryRects, DisplayId displayId) in ConvertBoundaryRectsByRotation() 50 std::vector<DMRect> finalVector; in ConvertBoundaryRectsByRotation() 64 std::vector<DMRect> displayBoundaryRects; in ConvertBoundaryRectsByRotation() 98 void ScreenCutoutController::CurrentRotation90(const std::vector<DMRect>& displayBoundaryRects, in CurrentRotation90() 99 std::vector<DMRect>& finalVector, uint32_t displayWidth) in CurrentRotation90() 101 for (DMRect rect : displayBoundaryRects) { in CurrentRotation90() 102 finalVector.emplace_back(DMRect { in CurrentRotation90() 110 void ScreenCutoutController::CurrentRotation180(const std::vector<DMRect>& displayBoundaryRects, in CurrentRotation180() 111 std::vector<DMRect> in CurrentRotation180() [all...] |
H A D | screen_scene_config.cpp | 69 std::map<uint64_t, std::vector<DMRect>> ScreenSceneConfig::cutoutBoundaryRectMap_; 72 std::vector<DMRect> ScreenSceneConfig::subCutoutBoundaryRect_; 459 DMRect ScreenSceneConfig::CalcCutoutBoundaryRect(std::string svgPath) in CalcCutoutBoundaryRect() 461 DMRect emptyRect = { 0, 0, 0, 0 }; in CalcCutoutBoundaryRect() 484 DMRect cutoutMinOuterRect = { in CalcCutoutBoundaryRect() 493 std::vector<DMRect> ScreenSceneConfig::GetCutoutBoundaryRect(uint64_t displayId) in GetCutoutBoundaryRect() 501 std::vector<DMRect> ScreenSceneConfig::GetSubCutoutBoundaryRect() in GetSubCutoutBoundaryRect()
|
/foundation/window/window_manager/window_scene/test/dms_unittest/ |
H A D | screen_cutout_controller_test.cpp | 70 DMRect emptyRect = {0, 0, 0, 0}; in HWTEST_F() 71 DMRect emptyRect_ = {1, 2, 3, 3}; in HWTEST_F() 74 DMRect result = controller->CreateWaterfallRect(0, 0, 0, 0); in HWTEST_F() 76 DMRect result_ = controller->CreateWaterfallRect(1, 2, 3, 3); in HWTEST_F() 101 DMRect emptyRect = {0, 0, 0, 0}; in HWTEST_F() 102 DMRect emptyRect_ = {1, 2, 3, 3}; in HWTEST_F() 103 std::vector<DMRect> boundaryRects = {emptyRect, emptyRect_}; in HWTEST_F() 115 DMRect emptyRect = {0, 0, 0, 0}; in HWTEST_F() 116 DMRect emptyRect_ = {1, 2, 3, 3}; in HWTEST_F() 118 std::vector<DMRect> boundaryRect in HWTEST_F() [all...] |
/foundation/window/window_manager/dmserver/include/ |
H A D | display_cutout_controller.h | 56 DMRect CalcCutoutBoundingRect(std::string svgPath); 57 void CheckBoundingRectsBoundary(DisplayId displayId, std::vector<DMRect>& boundingRects); 60 void TransferBoundingRectsByRotation(DisplayId displayId, std::vector<DMRect>& boundingRects); 61 void CurrentRotation90(std::vector<DMRect> resultVec, std::vector<DMRect> displayBoundingRects, 63 void CurrentRotation180(std::vector<DMRect> resultVec, std::vector<DMRect> displayBoundingRects, 65 DMRect CreateWaterfallRect(uint32_t left, uint32_t top, uint32_t width, uint32_t height); 74 std::map<DisplayId, std::vector<DMRect>> boundingRects_;
|
H A D | display_manager_agent_controller.h | 53 void NotifyAvailableRectChanged(DMRect);
|
/foundation/window/window_manager/window_scene/screen_session_manager/include/ |
H A D | screen_cutout_controller.h | 44 void CheckBoundaryRects(std::vector<DMRect>& boundaryRects, ScreenProperty screenProperty); 45 void ConvertBoundaryRectsByRotation(std::vector<DMRect>& boundaryRects, DisplayId displayId); 46 void CurrentRotation90(const std::vector<DMRect>& displayBoundaryRects, std::vector<DMRect>& finalVector, 48 void CurrentRotation180(const std::vector<DMRect>& displayBoundaryRects, std::vector<DMRect>& finalVector, 50 void CurrentRotation270(const std::vector<DMRect>& displayBoundaryRects, std::vector<DMRect>& finalVector, 53 DMRect CreateWaterfallRect(uint32_t left, uint32_t top, uint32_t width, uint32_t height);
|
H A D | screen_scene_config.h | 38 static std::vector<DMRect> GetCutoutBoundaryRect(uint64_t displayId); 39 static std::vector<DMRect> GetSubCutoutBoundaryRect(); 56 static std::map<uint64_t, std::vector<DMRect>> cutoutBoundaryRectMap_; 58 static std::vector<DMRect> subCutoutBoundaryRect_; 75 static DMRect CalcCutoutBoundaryRect(const std::string svgPath);
|
/foundation/window/window_manager/utils/test/unittest/ |
H A D | cutout_info_test.cpp | 57 DMRect rect = {0, 0, 0, 0}; in HWTEST_F() 58 std::vector<DMRect> boundingRects; in HWTEST_F() 73 std::vector<DMRect> boundingRects; in HWTEST_F() 75 DMRect rect = {0, 0, 0, 0}; in HWTEST_F() 91 DMRect rect = {0, 0, 0, 0}; in HWTEST_F() 92 std::vector<DMRect> boundingRects; in HWTEST_F() 107 std::vector<DMRect> boundingRects; in HWTEST_F() 109 DMRect rect = {0, 0, 0, 0}; in HWTEST_F()
|
/foundation/window/window_manager/dmserver/test/unittest/ |
H A D | display_cutout_controller_test.cpp | 155 std::vector<DMRect> boundingRects; in HWTEST_F() 169 std::vector<DMRect> boundingRects; in HWTEST_F() 170 DMRect rect1 = {0, 0, 100, 100}; in HWTEST_F() 171 DMRect rect2 = {50, 50, 50, 50}; in HWTEST_F() 187 std::vector<DMRect> boundingRects; in HWTEST_F() 188 DMRect rect = {-1, -1, 100, 100}; in HWTEST_F() 203 std::vector<DMRect> boundingRects; in HWTEST_F() 204 DMRect rect1 = {-1, -1, 100, 100}; in HWTEST_F() 205 DMRect rect2 = {50, 50, 50, 50}; in HWTEST_F() 221 DMRect rec in HWTEST_F() [all...] |
/foundation/window/window_manager/utils/src/ |
H A D | cutout_info.cpp | 19 CutoutInfo::CutoutInfo(const std::vector<DMRect>& boundingRects, in CutoutInfo() 49 std::vector<DMRect> boundingRects; in Unmarshalling() 56 bool CutoutInfo::WriteBoundingRectsVector(const std::vector<DMRect>& boundingRects, Parcel& parcel) const in WriteBoundingRectsVector() 65 for (DMRect rect : boundingRects) { in WriteBoundingRectsVector() 74 bool CutoutInfo::ReadBoundingRectsVector(std::vector<DMRect>& unmarBoundingRects, Parcel& parcel) in ReadBoundingRectsVector() 92 DMRect rect = {posX, posY, width, height}; in ReadBoundingRectsVector()
|
/foundation/window/window_manager/previewer/include/ |
H A D | dm_common.h | 323 struct DMRect { struct 329 bool operator==(const DMRect& a) const in operator ==() 334 bool operator!=(const DMRect& a) const in operator !=() 344 bool IsInsideOf(const DMRect& a) const in IsInsideOf() 349 static DMRect NONE() in NONE()
|
H A D | display.h | 163 DMError GetAvailableArea(DMRect& area) const;
|
/foundation/window/window_manager/window_scene/session/screen/include/ |
H A D | screen_property.h | 139 DMRect GetAvailableArea() in GetAvailableArea() 144 void SetAvailableArea(DMRect area) in SetAvailableArea() 200 DMRect availableArea_;
|
/foundation/window/window_manager/interfaces/innerkits/dm/ |
H A D | dm_common.h | 432 struct DMRect { struct 438 bool operator==(const DMRect& a) const in operator ==() 443 bool operator!=(const DMRect& a) const in operator !=() 453 bool IsInsideOf(const DMRect& a) const in IsInsideOf() 458 static DMRect NONE() in NONE()
|
H A D | display.h | 170 DMError GetAvailableArea(DMRect& area) const;
|
/foundation/window/window_manager/interfaces/kits/napi/display_runtime/ |
H A D | js_display.h | 60 napi_value CreateJsRectObject(napi_env env, DMRect rect);
63 napi_value CreateJsBoundingRectsArrayObject(napi_env env, std::vector<DMRect> boundingRects);
|
/foundation/window/window_manager/interfaces/kits/cj/display_runtime/ |
H A D | cj_display_manager.cpp | 70 static void SetCRect(const DMRect &row, CRect *ptr) in SetCRect() 78 static CRect* CreateCreaseRects(std::vector<DMRect> &list) in CreateCreaseRects() 103 std::vector<DMRect> creaseRects = foldCreaseRegion->GetCreaseRects(); in CreateCFoldCreaseRegionObject()
|
H A D | cj_display_impl.cpp | 40 void SetCRect(const DMRect &row, CRect *ptr) in SetCRect() 48 CRect* CreateCBoundingRects(std::vector<DMRect> &bound) in CreateCBoundingRects() 79 std::vector<DMRect> boundingRects = cutoutInfo->GetBoundingRects(); in CreateCCutoutInfoObject()
|
/foundation/window/window_manager/window_scene/interfaces/kits/napi/screen_session_manager/ |
H A D | js_screen_utils.h | 27 bool ConvertDMRectFromJs(napi_env env, napi_value jsObject, DMRect& rect);
|
/foundation/arkui/ace_engine/adapter/ohos/entrance/ |
H A D | utils.h | 28 struct DMRect; 170 Rect ConvertDMRect2Rect(const OHOS::Rosen::DMRect& displayAvailableRect);
|
/foundation/window/window_manager/dm/include/ |
H A D | display_manager_agent_default.h | 48 void NotifyAvailableAreaChanged(DMRect area) override {};
|
/foundation/window/window_manager/dm/include/zidl/ |
H A D | display_manager_agent_interface.h | 88 virtual void NotifyAvailableAreaChanged(DMRect) = 0;
|