Home
last modified time | relevance | path

Searched refs:boundingRects (Results 1 - 13 of 13) sorted by relevance

/foundation/window/window_manager/utils/test/unittest/
H A Dcutout_info_test.cpp58 std::vector<DMRect> boundingRects; in HWTEST_F() local
59 boundingRects.emplace_back(rect); in HWTEST_F()
61 bool ret = info->WriteBoundingRectsVector(boundingRects, parcel); in HWTEST_F()
73 std::vector<DMRect> boundingRects; in HWTEST_F() local
76 boundingRects.emplace_back(rect); in HWTEST_F()
79 bool ret = info->WriteBoundingRectsVector(boundingRects, parcel); in HWTEST_F()
92 std::vector<DMRect> boundingRects; in HWTEST_F() local
93 boundingRects.emplace_back(rect); in HWTEST_F()
95 bool ret = info->ReadBoundingRectsVector(boundingRects, parcel); in HWTEST_F()
107 std::vector<DMRect> boundingRects; in HWTEST_F() local
[all...]
/foundation/window/window_manager/dmserver/test/unittest/
H A Ddisplay_cutout_controller_test.cpp155 std::vector<DMRect> boundingRects; in HWTEST_F() local
156 controller->CheckBoundingRectsBoundary(displayId, boundingRects); in HWTEST_F()
157 ASSERT_TRUE(boundingRects.empty()); in HWTEST_F()
169 std::vector<DMRect> boundingRects; in HWTEST_F() local
172 boundingRects.push_back(rect1); in HWTEST_F()
173 boundingRects.push_back(rect2); in HWTEST_F()
174 controller->CheckBoundingRectsBoundary(displayId, boundingRects); in HWTEST_F()
175 ASSERT_FALSE(boundingRects.empty()); in HWTEST_F()
187 std::vector<DMRect> boundingRects; in HWTEST_F() local
189 boundingRects in HWTEST_F()
203 std::vector<DMRect> boundingRects; HWTEST_F() local
235 std::vector<DMRect> boundingRects; HWTEST_F() local
251 std::vector<DMRect> boundingRects; HWTEST_F() local
290 std::vector<DMRect> boundingRects; HWTEST_F() local
[all...]
/foundation/window/window_manager/utils/src/
H A Dcutout_info.cpp19 CutoutInfo::CutoutInfo(const std::vector<DMRect>& boundingRects, in CutoutInfo() argument
21 boundingRects_(boundingRects) in CutoutInfo()
49 std::vector<DMRect> boundingRects; in Unmarshalling() local
51 static_cast<void>(ReadBoundingRectsVector(boundingRects, parcel)); in Unmarshalling()
52 CutoutInfo *cutoutInfo = new CutoutInfo(boundingRects, waterfallDisplayAreaRects); in Unmarshalling()
56 bool CutoutInfo::WriteBoundingRectsVector(const std::vector<DMRect>& boundingRects, Parcel& parcel) const in WriteBoundingRectsVector() argument
58 uint32_t size = static_cast<uint32_t>(boundingRects.size()); in WriteBoundingRectsVector()
65 for (DMRect rect : boundingRects) { in WriteBoundingRectsVector()
/foundation/window/window_manager/utils/include/
H A Dcutout_info.h44 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;
/foundation/window/window_manager/dmserver/src/
H A Ddisplay_cutout_controller.cpp80 std::vector<DMRect> boundingRects; in GetCutoutInfo() local
83 TransferBoundingRectsByRotation(displayId, boundingRects); in GetCutoutInfo()
89 sptr<CutoutInfo> cutoutInfo(new CutoutInfo(boundingRects, waterfallDisplayAreaRects)); in GetCutoutInfo()
93 void DisplayCutoutController::CheckBoundingRectsBoundary(DisplayId displayId, std::vector<DMRect>& boundingRects) in CheckBoundingRectsBoundary() argument
103 for (auto iter = boundingRects.begin(); iter != boundingRects.end();) { in CheckBoundingRectsBoundary()
111 iter = boundingRects.erase(iter); in CheckBoundingRectsBoundary()
233 void DisplayCutoutController::TransferBoundingRectsByRotation(DisplayId displayId, std::vector<DMRect>& boundingRects) in TransferBoundingRectsByRotation() argument
237 boundingRects = resultVec; in TransferBoundingRectsByRotation()
242 boundingRects in TransferBoundingRectsByRotation()
[all...]
/foundation/window/window_manager/interfaces/kits/cj/display_runtime/
H A Dcj_display_impl.cpp64 if (info == nullptr || info->boundingRects == nullptr) { in SetCWaterfallDisplayAreaRects()
79 std::vector<DMRect> boundingRects = cutoutInfo->GetBoundingRects(); in CreateCCutoutInfoObject() local
81 info->number = static_cast<int64_t>(boundingRects.size()); in CreateCCutoutInfoObject()
82 info->boundingRects = CreateCBoundingRects(boundingRects); in CreateCCutoutInfoObject()
83 if (info->boundingRects == nullptr) { in CreateCCutoutInfoObject()
H A Ddisplay_utils.h47 CRect *boundingRects; member
/foundation/window/window_manager/dm/src/
H A Doh_display_manager.cpp287 static NativeDisplayManager_Rect* OH_CreateBoundingRects(const std::vector<DMRect> &boundingRects) in OH_CreateBoundingRects() argument
289 int32_t boundSize = static_cast<int32_t>(boundingRects.size()); in OH_CreateBoundingRects()
306 OH_SetDisplayRect(boundingRects[i], (ohBoundingRects + i)); in OH_CreateBoundingRects()
341 std::vector<DMRect> boundingRects = cutoutInfo->GetBoundingRects(); in OH_CreateCutoutInfoObject() local
343 ohCutoutInfo->boundingRectsLength = static_cast<int32_t>(boundingRects.size()); in OH_CreateCutoutInfoObject()
345 ohCutoutInfo->boundingRects = OH_CreateBoundingRects(boundingRects); in OH_CreateCutoutInfoObject()
346 if (ohCutoutInfo->boundingRects == NULL) { in OH_CreateCutoutInfoObject()
390 if (cutoutInfo->boundingRects != NULL) { in OH_NativeDisplayManager_DestroyDefaultDisplayCutoutInfo()
391 free(cutoutInfo->boundingRects); in OH_NativeDisplayManager_DestroyDefaultDisplayCutoutInfo()
[all...]
/foundation/window/window_manager/dmserver/include/
H A Ddisplay_cutout_controller.h57 void CheckBoundingRectsBoundary(DisplayId displayId, std::vector<DMRect>& boundingRects);
60 void TransferBoundingRectsByRotation(DisplayId displayId, std::vector<DMRect>& boundingRects);
/foundation/window/window_manager/interfaces/kits/dmndk/dm/
H A Doh_display_info.h190 /* boundingRects length */
193 /* boundingRects info pointer */
194 NativeDisplayManager_Rect *boundingRects; member
/foundation/window/window_manager/interfaces/kits/napi/display_runtime/
H A Djs_display.h63 napi_value CreateJsBoundingRectsArrayObject(napi_env env, std::vector<DMRect> boundingRects);
H A Djs_display.cpp706 std::vector<DMRect> boundingRects = cutoutInfo->GetBoundingRects(); in CreateJsCutoutInfoObject() local
708 napi_set_named_property(env, objValue, "boundingRects", CreateJsBoundingRectsArrayObject(env, boundingRects)); in CreateJsCutoutInfoObject()
747 napi_value CreateJsBoundingRectsArrayObject(napi_env env, std::vector<DMRect> boundingRects) in CreateJsBoundingRectsArrayObject() argument
750 napi_create_array_with_length(env, boundingRects.size(), &arrayValue); in CreateJsBoundingRectsArrayObject()
752 for (const auto& rect : boundingRects) { in CreateJsBoundingRectsArrayObject()
/foundation/window/window_manager/window_scene/screen_session_manager/src/
H A Dscreen_session_dumper.cpp418 std::vector<DMRect> boundingRects = cutoutInfo->GetBoundingRects(); in DumpCutoutInfoById() local
420 for (auto rect : boundingRects) { in DumpCutoutInfoById()

Completed in 9 milliseconds