Lines Matching refs:vpr
1015 float vpr = 0.0f; // This is an abnormal value, which is used to identify abnormal scenarios.
1019 return vpr;
1024 return vpr;
1942 float vpr = GetVirtualPixelRatio(displayInfo);
1943 int32_t decorHeightWithPx = static_cast<int32_t>(decorHeight * vpr);
1984 float vpr = GetVirtualPixelRatio(displayInfo);
1985 if (MathHelper::NearZero(vpr)) {
1986 WLOGFE("get decor height failed, because of wrong vpr: %{public}f", vpr);
1989 height = static_cast<int32_t>(height / vpr);
2023 float vpr = GetVirtualPixelRatio(displayInfo);
2024 if (MathHelper::NearZero(vpr)) {
2025 WLOGFE("failed, because of wrong vpr: %{public}f", vpr);
2030 titleButtonRect.posX_ = static_cast<int32_t>(titleButtonRect.posX_ / vpr);
2031 titleButtonRect.posY_ = static_cast<int32_t>(titleButtonLeftRect.posY_ / vpr);
2032 titleButtonRect.width_ = static_cast<uint32_t>(titleButtonLeftRect.width_ / vpr);
2033 titleButtonRect.height_ = static_cast<uint32_t>(titleButtonLeftRect.height_ / vpr);
2079 float vpr = GetVirtualPixelRatio(displayInfo);
2080 if (MathHelper::NearZero(vpr)) {
2081 WLOGFE("failed, because of wrong vpr: %{public}f", vpr);
2086 [vpr, weakThis = wptr(this)](Rect& decorRect, Rect& titleButtonLeftRect) {
2095 titleButtonRect.posX_ = static_cast<int32_t>(titleButtonRect.posX_ / vpr);
2096 titleButtonRect.posY_ = static_cast<int32_t>(titleButtonLeftRect.posY_ / vpr);
2097 titleButtonRect.width_ = static_cast<uint32_t>(titleButtonLeftRect.width_ / vpr);
2098 titleButtonRect.height_ = static_cast<uint32_t>(titleButtonLeftRect.height_ / vpr);