Lines Matching refs:DMRect

67     DMRect boundingRect = CalcCutoutBoundingRect(svgPath);
71 std::vector<DMRect> rectVec;
80 std::vector<DMRect> boundingRects;
93 void DisplayCutoutController::CheckBoundingRectsBoundary(DisplayId displayId, std::vector<DMRect>& boundingRects)
104 DMRect boundingRect = *iter;
118 DMRect DisplayCutoutController::CalcCutoutBoundingRect(std::string svgPath)
120 DMRect emptyRect = {0, 0, 0, 0};
141 DMRect cutoutMinOuterRect = {.posX_ = left, .posY_ = top, .width_ = width, .height_ = height};
197 DMRect leftRect = CreateWaterfallRect(0, 0, left, displayHeight);
198 DMRect topRect = CreateWaterfallRect(0, 0, displayWidth, top);
199 DMRect rightRect = CreateWaterfallRect(displayWidth - right, 0, right, displayHeight);
200 DMRect bottomRect = CreateWaterfallRect(0, displayHeight - bottom, displayWidth, bottom);
205 DMRect leftRect = CreateWaterfallRect(0, 0, bottom, displayWidth);
206 DMRect topRect = CreateWaterfallRect(0, 0, displayHeight, left);
207 DMRect rightRect = CreateWaterfallRect(displayHeight - top, 0, top, displayWidth);
208 DMRect bottomRect = CreateWaterfallRect(0, displayWidth - right, displayHeight, right);
213 DMRect leftRect = CreateWaterfallRect(0, 0, right, displayHeight);
214 DMRect topRect = CreateWaterfallRect(0, 0, bottom, displayWidth);
215 DMRect rightRect = CreateWaterfallRect(displayWidth - left, 0, left, displayHeight);
216 DMRect bottomRect = CreateWaterfallRect(0, displayHeight - top, displayWidth, top);
221 DMRect leftRect = CreateWaterfallRect(0, 0, top, displayWidth);
222 DMRect topRect = CreateWaterfallRect(0, 0, displayHeight, right);
223 DMRect rightRect = CreateWaterfallRect(displayHeight - bottom, 0, bottom, displayWidth);
224 DMRect bottomRect = CreateWaterfallRect(0, displayWidth - left, displayHeight, left);
233 void DisplayCutoutController::TransferBoundingRectsByRotation(DisplayId displayId, std::vector<DMRect>& boundingRects)
235 std::vector<DMRect> resultVec;
240 std::vector<DMRect> displayBoundingRects = boundingRects_[displayId];
275 for (DMRect rect : displayBoundingRects) {
276 resultVec.emplace_back(DMRect {rect.posY_, displayWidth - rect.posX_ - rect.width_,
287 void DisplayCutoutController::CurrentRotation90(std::vector<DMRect> resultVec,
288 std::vector<DMRect> displayBoundingRects, uint32_t displayHeight)
290 for (DMRect rect : displayBoundingRects) {
291 resultVec.emplace_back(DMRect {.posX_ = displayHeight - rect.posY_ - rect.height_,
296 void DisplayCutoutController::CurrentRotation180(std::vector<DMRect> resultVec,
297 std::vector<DMRect> displayBoundingRects, uint32_t displayHeight, uint32_t displayWidth)
299 for (DMRect rect : displayBoundingRects) {
300 resultVec.emplace_back(DMRect {displayWidth - rect.posX_ - rect.width_,
305 DMRect DisplayCutoutController::CreateWaterfallRect(uint32_t left, uint32_t top, uint32_t width, uint32_t height)
308 return DMRect {0, 0, 0, 0};
310 return DMRect {left, top, width, height};