Lines Matching refs:avoidArea
111 NG::SafeAreaInsets ConvertAvoidArea(const OHOS::Rosen::AvoidArea& avoidArea)
113 return NG::SafeAreaInsets({ avoidArea.leftRect_.posX_, avoidArea.leftRect_.posX_ + avoidArea.leftRect_.width_ },
114 { avoidArea.topRect_.posY_, avoidArea.topRect_.posY_ + avoidArea.topRect_.height_ },
115 { avoidArea.rightRect_.posX_, avoidArea.rightRect_.posX_ + avoidArea.rightRect_.width_ },
116 { avoidArea.bottomRect_.posY_, avoidArea.bottomRect_.posY_ + avoidArea.bottomRect_.height_ });
122 Rosen::AvoidArea avoidArea;
123 Rosen::WMError ret = rsWindow->GetAvoidAreaByType(type, avoidArea);
125 auto safeAreaInsets = ConvertAvoidArea(avoidArea);
162 void OnAvoidAreaChanged(const OHOS::Rosen::AvoidArea avoidArea, OHOS::Rosen::AvoidAreaType type)
164 LOGD("Avoid area changed, type:%{public}d, topRect: avoidArea:x:%{public}d, y:%{public}d, "
165 "width:%{public}d, height:%{public}d; bottomRect: avoidArea:x:%{public}d, y:%{public}d, "
167 type, avoidArea.topRect_.posX_, avoidArea.topRect_.posY_, (int32_t)avoidArea.topRect_.width_,
168 (int32_t)avoidArea.topRect_.height_, avoidArea.bottomRect_.posX_, avoidArea.bottomRect_.posY_,
169 (int32_t)avoidArea.bottomRect_.width_, (int32_t)avoidArea.bottomRect_.height_);
177 systemSafeArea_ = ConvertAvoidArea(avoidArea);
179 navigationBar_ = ConvertAvoidArea(avoidArea);
181 cutoutSafeArea_ = ConvertAvoidArea(avoidArea);
187 [pipeline, safeArea, navSafeArea, cutoutSafeArea, type, avoidArea] {
196 pipeline->UpdateOriginAvoidArea(avoidArea, static_cast<uint32_t>(type));